2 Replies Latest reply on Jun 9, 2017 3:11 AM by liedzeit

    How to ensure modal dialog to appear in front?

    liedzeit Level 2

      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

        • 1. Re: How to ensure modal dialog to appear in front?
          Loic.Aigon Adobe Community Professional

          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

          • 2. Re: How to ensure modal dialog to appear in front?
            liedzeit Level 2

            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.