• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to ensure modal dialog to appear in front?

Contributor ,
Jun 09, 2017 Jun 09, 2017

Copy link to clipboard

Copied

We have an issue with modal dialogs in connection with InDesign/InCopy-CEP. Sometimes, very infrequently, a modal dialog will appear behind a CEP panel. The user can dismiss is by hitting esc (or Return) but of course he should be able to read the message. This does only happen on Windows OS.

We are calling the dialog from jsx as CEP does not allow pass parameters to other CEP windows. To put the message within the CEP panel is not a practical solution, because we have very narrow control-strip-like panels.

Any idea how to solve this?

Ralf

TOPICS
Scripting

Views

364

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Jun 09, 2017 Jun 09, 2017

Copy link to clipboard

Copied

CEP panels can totally exchange data thanks to CSEvents.

Emitter:

        var event = new CSEvent("cep.sender.event.message", "APPLICATION");

        event.data = "HELLO";

        csInterface.dispatchEvent ( event );

Receiver

csInterface.addEventListener ( "cep.sender.event.message" , function (event) {

        alert(event.data);

    })

Capture d’écran 2017-06-09 à 11.36.42.png

Capture d’écran 2017-06-09 à 11.36.47.png

And if you need to communicate through apps, you have VULCAN.

Apart from that I have no clue for your modal dialog issue, sorry.

Loic

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 09, 2017 Jun 09, 2017

Copy link to clipboard

Copied

LATEST

Thank you. I know. Problem is that we have six or seven CEP panels. I can call a special Modal CEP but this would have no idea with which CEP to communicate. So I would have to build a modal CEP for each panel CEP. In addition I read somewhere that CEP modals also go into the background sometimes. So it does not help me.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines