Cannot process the request because a modal dialog box or the alert is active

I can't work for the life of me why I get this message when "cannot process the request because a modal dialog box or the alert is active. I simplified my code to reproduce the problem.

All I want to do is have a dialog box that allows me to edit items on the page... But it does not seem to allow it. I must be missing something simple.

var selection = app.activeDocument.selection[0];

dialog = new Window('dialog');

var button = dialog.add('button', undefined, 'Resize');

  button.onClick = function() {

  selection.geometricBounds = [0, 0, 10, 10];

};

dialog.show();

If you use 'dialogue', then you must leave the modal state to interact with the app was done by closing the dialog box.

var w = new Window('dialog');
var v = w.add ('edittext');
var b = w.add('button');
b.onClick = function(){
    w.close(1);
}
if (w.show()==1) alert (v.text);

Or switch to modal MOM like brother suggested dialog boxes...

Loïc

Ozalto | Productivity-oriented - Loïc Aigon

Tags: InDesign

Similar Questions

  • the user gets after warning when opening document "cannot handle the request because a modal dialog box or warning is active.

    This occurs after the user connected to the mac Server network share and open an Indesign document.

    The user has the right to full user for the network share and all documents.

    This warning means that there is an open dialog box (in this case most likely off the screen or hidden behind something else).

  • How to remove "modal dialog box or alert" when the script is underway?

    Hi all

    I've created a script that will set the text of the rtf files from a folder to a document on a different page based on the correspondence. But if a font which was in doc file but absent on my mac, showed an error when running the script.

    This means that Indesign has opened a missing alert police box and script stop to this line and the error shows "cannot process the request because a modal dialog box or the alert is active.

    Is possible to remove this error and the script is continue to place all RTF files? I have little knowledge of try/catch.

    indesign #target

    myDoc var = app.documents.item (0);

    sourceFolder var = Folder("/Users/admin4/Desktop/ec_txt");

    myFiles = sourceFolder.getFiles ("*.rtf");

    var myFrame1 = myDoc.pageItems.itemByID (111076);  Switzerland

    var myDoc.pageItems.itemByID = myFrame2 (111114);  euro area

    var myFrame3 = myDoc.pageItems.itemByID (111146);  Germany

    for (var i = 0; i < myFiles.length; i ++)

    {

    switch (myFiles [i].name.slice (6, myFiles [i].name.lastIndexOf ("_")))

    {

    case 'Switzerland_en ':

    myFrame1.parentStory.insertionPoints.item(-1).place (file (sourceFolder + "/" + myFiles [i] .name))

    break;

    case 'Eurozone_en ':

    myFrame2.parentStory.insertionPoints.item(-1).place (file (sourceFolder + "/" + myFiles [i] .name))

    break;

    case 'Germany_en ':

    myFrame3.parentStory.insertionPoints.item(-1).place (file (sourceFolder + "/" + myFiles [i] .name))

    break;

    }

    }

    To remove alerts, you can use different levels of user interaction.

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
    

    Not forgotten to reset after the end of the script with the following:

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    

    Hope it resolve your request.

    --------

    Green4ever

  • Have 12 items. Many worked on 8.1, my new laptop has Windows 10. Now the elements photo editing software will open the image in raw, but once I did my settings and try to 'open image', it tells me it "cannot complete my request because an error occurred."

    Well, I typed my question in my title.  I have had absolutely no problem under windows 8.1 to 12 items, but unfortunately the death of my laptop could not be repaired, so I had to get a new 8.1 one and that time windows was no longer available on the laptop I wanted. Who would have the go-getter, comparable to my old and able to handle my photography.  SO I have an I7 processor 2.6 Ghz with 6 MB of cache and 16 GB of Ram with Windows 10 64-bit operating system.

    As indicated above, while the Publisher will open the photos in camera raw, once I made my changes and try to "open image" I get the message he, "it cannot complete my request because an error occurred." I tried uninstalling and reinstalling several times with the same results.  I made also all updates have been made. About 10% of the time, it will open up the photo, but then when I try to record it says that I don't have enough memory.  Do not know how this can be, this configuration of the computer is basically the same as my other, only difference is windows 10.  Not even close to a full hard drive. No other program running. Help!

    reset your preferences - https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html, http://www.photokaboom.com/photography/learn/Photoshop_Elements/troubleshooting/1_delete_p references_file.htm

  • When I pick a color for the foreground color, I have a popup saying "cannot process your request due to a bug"

    I have the CC legal of Photoshop, working with Windows 8.1, 8 GB...

    When I pick a color for the foreground color, I have a popup saying something like "Cannot process your request due to a bug" (I have the Dutch version, so it is translated). When I click 'OK', popup goes you and I can use the color that I took. When I pick a color for the background color, there is no problem. When I switch the front - and the background color, I get the popup again.

    I use Illustrator, InDesign, and Premiere Pro also, I have no problem with these programs.

    -Restarting my laptop does not work

    -Restart Photoshop and the Adobe app does not work

    -I can't update to Photoshop

    -I want to try to remove Photoshop and install it again, but I'm afraid I have to re - install all my brushes and my actions again

    Could someone help me? It's really annoying :/

    What did you do for troubleshooting so far?

    Restoration of preferences after checking all the presets custom like stocks, models, brushes etc. have been saved can be a good starting point:

    t http://blogs.Adobe.com/Crawlspace/2012/07/Photoshop-basic-troubleshooting-steps-to-fix-MOS - issues.html

  • Number of the modal dialog box

    Hi team,

    I'm developing a modal pop-up dialog page base to APEX 5. My requirement is during the click on column interactive report, I need to open the modal dialog box... I don't understand what I'm doing wrong with that:

    Step 1: Created a page of normal mode 1 with interactive report and column link to page 2

    Step 2: Page created 2 with the dialog box modal as a model.

    But my link does not have apex.naviagtion.dialog as seen in the application "sample dialog. I am getting following error

    2 request 102358 dialog page cannot be returned successfully. If make sure that the template in use on page 2 is the type of model 'Page of dialogue', with the JavaScript dialog initialization appropriate, closing the dialog and dialog box cancel the code defined.

    Workspace: sun_bhatia

    User name: sunil

    Password: sunil

    Application 102358

    Please can someone tell me what wrong I do it in steps. T

    Thank you

    Sunil Bhatia

    OK, the trick to work around this problem is that the dummy parameter value must be a substitution of the report the column value string and not a literal, as I used initially.

    The IR link column and the column link in column 1 are working in the area of interactive report migrated from Standard report .

  • State of the coast customer Pass to the modal dialog box

    Hi guys,.

    I would like to open a modal dialog box and change the value of a select list of the modal dialog box. I have to be able to switch the status of the customer value using apex.item("P1_DEPTNO").getValue (). The declarative method to use modal dialog boxes is to use a button and a link to the page, where everything is taken care for us, the value, the checksum for the protection of session state, etc..

    But sometimes we need to go on the side of current customer State the modal page, for example, while we are in the middle of creating a new row in a table... and the value is not yet stored in the database.

    So, how can we do this? By the way the page in progress and also variables to generate the control are appropriate for the items to be passed.

    Since there is no dynamic action to do this directly, I tried to attach a dynamic action to a button and run javascript to open the dialog box (https://docs.oracle.com/cd/E59726_01/doc.50/e39149/javascript_api.htm#AEAPI29504):

    var l_url="f?p="+$v("pFlowId")+":2:"+$v("pInstance")+"::::P2_DEPTNO:"+apex.item("P1_DEPTNO").getValue();
    alert (l_url);
    
    
    apex.navigation.dialog(l_url, {
        title:'About',
        height:'480',
        width:'800',
        maxWidth:'1200',
        modal:true,
        resizable:false },
        '',
        $('#EMP_REPORT'));
      
    
    
    

    Unfortunately, I get an error internal an error:

    2 request 157 dialog page cannot be returned successfully. If make sure that the template in use on page 2 is the type of model 'Page of dialogue', with the JavaScript dialog initialization appropriate, closing the dialog and dialog box cancel the code defined.

    I do not understand the error message since I use the theme 42 and the handling of the ordinary modal dialog box works.

    Would appreciate advice.

    See you soon,.

    ~ Dietmar.

    Hi Dietmar,

    you're always coming to these requirements of fancy...

    The following has worked for me in Chrome. But to test if it works in any browser.

    1. Describe your button as usual with a link to the page of the dialog box
    2. For example to set items , specify P7_CUSTOMER_ID as the name and ~ CUSTOMER_ID ~ as value. ~ CUSTOMER_ID ~ is our placeholder that will NOT get replaced by APEX. We use it in our JavaScript code.
    3. Set the static ID of your my_button button so that we are able to access in JavaScript
    4. In the run when the Page loads page level attribute, add something like
      var myButton$ = $( "#my_button" );
      myButton$.attr( "onclick", myButton$.attr( "onclick" ).replace( "~CUSTOMER_ID~", "' + $v( 'P2_CUSTOMER_ID' ) + '" ));
      

    The JS code above will replace your reserved space and turn the link into something like

    javascript:apex.navigation.dialog('f?p=73380:7:109940056598048::NO:RP:P7_CUSTOMER_ID:' + $v( 'P2_CUSTOMER_ID' ) + '\u0026p_dialog_cs=QxixrjW-ZGmCMXTNBPlITtOG_X3aShXqYmmaugetfJ8rYKRHHpJpeskKbIEO3qpqVIkX-dWYaqbZ0_AGq3ASTg',{title:'Sample Database Application - Customer Details',height:'480',width:'660',maxWidth:'1000',modal:true,dialog:null},'t-Dialog--wizard',$('#my_button'));
    

    Obviously, you will not be able to use the Protection of the Session State for the P7_CUSTOMER_ID dialog page item, so you set the page of dialogue level attribute Access Protection Page to the Unrestricted.

    The amount of control that see you in the URL is really just to protect the dialog box itself.

    Concerning

    Patrick

  • Article not saved when the item is in a modal dialog box of jquery

    Hi all


    I followed the instructions here:
    http://shijesh.WordPress.com/2010/04/10/jQuery-modal-form-in-Apex-4/
    to create a modal jquery dialog, this is the code that I added in the html header:
    <link rel="stylesheet" href = "http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/themes/
    redmond/jquery-ui.css" type="text/css" />
    
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"> </script>
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.js"> </script>
    <script type="text/javascript">
    $( function() {
       $('#ModalForm').dialog(
       {
            modal : true ,
            autoOpen : false ,
            width : 425,
            closeText : 'Close',
            stack : false,
            resizable : false,
            buttons  : {
                Cancel : function() {
                         closeForm();
                    } ,
                Save : function() {
                    updateMEMOVELD();
                }
                       }
       });
    });
    
    function openForm()
    {
        $('#ModalForm').dialog('open');
    }
    
    function closeForm()
    {
        //$('#ModalForm input[type="textarea"]').val('');
        $('#ModalForm').dialog('close');
    }
    
    function updateMEMOVELD () 
    {
       var get = new htmldb_Get(null, &APP_ID.,    
                        'APPLICATION_PROCESS=f_memo', 0);
       get.add('P9_MEMOVELD',$v('P9_MEMOVELD'));
       var gReturn= get.get();
       //alert(gReturn);
       //alert($v('P9_DATUM'));
      $s('P9_MEMOVELD',gReturn);
      alert($v('P9_MEMOVELD'));
      $s('P9_MEMOVELD_COPY',$v('P9_MEMOVELD'));  
      $('#ModalForm').dialog('close');
    }
    </script>
    my situation is a little different, my modal doesn't have to perform a sql update, just to change a field
    the user will then record in the main form
    for some reason any field never gets updated in the db
    I even created an application on the application called f_memo process:
    BEGIN
      APEX_UTIL.SET_SESSION_STATE('P9_MEMOVELD',:P9_MEMOVELD);
      htp.p(:P9_MEMOVELD);
    END;
    Why my domain is not send to the db?
    It works when I remove this from the header of the region:
    < d i v id="ModalForm" title="Add Person" style=" d isplay:n one  "   >
    but then of course I have more a modal dialog box



    What's wrong?


    I put the code online at apex.oracle.com
    workspace XONIXRS
    login/password demo/demo
    Run the application
    Click lijst (invoices) without (in the region of the right sidebar)
    Then click on the button Search (search)
    a report is displayed, click on edit on the first line (200900017)
    now, a form appears, click the memo of pure and simple button
    now the modal shows upward, change the field and click Save
    Click ok (for warning) and then click on save the invoice
    you stay on the same page
    Now click on town
    and then click on edit on the first line (200900017) new
    then click on note even once, you will see that the memo has not been changed

    How comes?

    KR
    Martin

    The problem is that the creation of a region of a modal rise this area of the html code. Take a look at the DOM when you run your page and not the html source code, because that does not reflect the changes to the DOM is the loading of the page. This means that your memo field is far from the FORM tags and actually only submit to the session state. The issue is not addressed when you send page! You can follow through your debugging page. Memo is not saved and untreated.
    Try saving the value of session state is not enough, it does not really matter in this case. The time that you submit the page, session state is crushed by the submitted values of the elements.
    So what I did:


    • Move P9_MEMOVELD to the FACTUUR region, as well as all other db fields

    • change the type of hidden

    • the protected value not

    • in modal region to create a new page P9_MEMOVELD_POP, type textfield element

    • Set the source to always use a page element as a source, with the source P9_MEMOVELD

    • change of function updatememoveld:

      function updateMEMOVELD ()
      {
         /*
         var get = new htmldb_Get(null, &APP_ID.,
                          'APPLICATION_PROCESS=f_memo', 0);
         get.add('P9_MEMOVELD',$v('P9_MEMOVELD'));
         var gReturn= get.get();
         //alert(gReturn);
         //alert($v('P9_DATUM'));
        $s('P9_MEMOVELD',gReturn);
        alert($v('P9_MEMOVELD'));
        $s('P9_MEMOVELD_COPY',$v('P9_MEMOVELD'));
        */
        $s('P9_MEMOVELD',$v('P9_MEMOVELD_POP'));
        $('#ModalForm').dialog('close');
      }
      

      If you want or need the session state as a whole belongs to you, it depends on if you are using this also dynamically on the page and therefore to influence results, but I don't think it will be (it's a Memo field...)



    Additional notes:

    • Be careful with the jquery libraries! The standard libraries are included, but you add previous versions too! 1.4.2 this could cause problems of...

    • Use your models better. Why did you would wrap a region in the div tags? Change or add a model of region to be DIV tags You can then easily assign a static id in this region and target. This will save you from enveloping the wrappers wrapped (cause it is what looks like the code that is generated in the end).

  • APEX 5.0 after you close a modal dialog box, I want to introduce the parent page, without losing session values

    I have a parent page that triggers a modal dialog box in APEX 5.0. When the user confirms in the dialog box, it closes the dialog box by using the process of dialogue.

    In the parent page, if I do not have a dynamic action "Dialog box closed", the user returned to page with the values, they recently came again here. If I add a closed action dialog box to send the page, the values are lost - it's as if the page refreshes before submitting. Someone knows how to solve this problem.

    Thank you.

    user3282753 wrote:

    Please update your forum profile with a recognizable username instead of "user3282753": Video tutorial how to change username available

    Also, is it possible to display the success message from the Page of the dialog box without updating the parent page.

    See Roels Blog: display a success message after you close a modal dialog box

  • Skillbuilders modal dialog box - condition for the parent page dialog box

    Hello

    When you use this great plugin, I have a dynamic action on my calling page that deals with the selection of the dialog box.
    It uses
    Select the type object: DOM
    DOM object: document
    Condition: expression javascript
    ($v ('P110_PROD_SEARCH') is 'BLAH')
    where the js expression is to ensure that I run the correct dynamic action, especially when I have a few buttons on the page referring to different variants of the modal dialog box.

    My first action is some javascript which questions the value of
    this.data.modalPageCloseValue
    It helps me to make decisions in subsequent actions on the opportunity to execute some pl/sql, for example

    In the light of a recent issue of my about a possible bug APEX (displayed with HTML item affected by the dynamic action and since we cannot put conditions on measures - I was wondering if I could incorporate something in my condition of dynamic action to stop all the dynamic enforcement action if modalPageCloseValue is null - but it seems to be out of reach?)

    Scott

    Scott,

    Ah, of course, use this:

    $v('P110_PROD_SEARCH') == 'BLAH' && this.data && this.data.modalPageCloseValue
    

    Kind regards
    Dan

    blog: http://DanielMcghan.us/
    work: http://SkillBuilders.com/APEX/
    Twitter: https://twitter.com/dmcghan

  • How to open a modal dialog box of click of a button on the Panel?

    Hi all

    I tried to open a modal dialog box on the click of a button on the Panel the other day. But failed. I managed to have a panel appear on click of a button. But the Group appeared at the forefront of the parent panel. I don't want to. Here are some screenshots of what I managed to do and what I want to do.

    This Panel will appear on the click on the button "Click." Note that the child Panel cannot be moved outside the bounds of the parent panel.

    1.JPG

    Instead, I want the behavior of the child Panel as shown below. As the modal dialog box that appears when we create a new action game in the Actions Panel.

    2.JPG

    This Panel can be moved all around the application window. Kindly guide my way through from there to achieve.

    Thank you!

    Post edited by: poortip87

    You can open a modal secondary window like this:

    var w: Window = new Window(); A mx:Window, or your own subclass

    w.type = CSXSWindowTypes.MODAL_DIALOG; in the package com.adobe.csxs.types

    w.Open ();

    There are up to four types of different windows that you can open in the form of secondary windows, although not all are currently available in all products.

    HTH

    David.

  • modal dialog box cannot be left

    I feel almost every day a pretty serious bug with Photoshop CS5.

    Sometimes, when I open a modal dialog box, I can not exit. Clicking OK or cancel is no nothing that I can continue to resolve things in the dialog box, all I want.  The strange thing is that the rest of the interface of Photoshop becomes partially admissible.  I can change the history State and use some tools.  I can't save anything, however.  I lost a lot of work due to this bug.

    The only thing different on this machine (the latest mac pro) that most of the others is that I often Extendscript Toolkit open.  I don't know if it's confusing Photoshop because they may be related?  I think that I had the problem before what ESTK is not open.

    Have you tried to bring up the preferences (command-K) and cancellation of these cases the problem occurs?

    In any case, to be on the safe side you can do the usual routines of troubleshooting (trash prefs, system maintenance, disable 3rd party plugins, check the fonts etc.).

  • Foglight display size of the modal dialog box

    Hello

    Dashboards drilled down, I can choose how to display the detailed view.  So I chose popup--> the modal dialog box.  Now when I click on a line, instead of leading me to another page, it will display a popup window and view detail info.  The popup window has a fixed size and I can't change it.  Is there a way to change or set a certain size?

    Yes. You must change the settings from the view of exploration down, not the parent view. The settings are located under Configuration-> Options of Popup. You can play with the default size, size maximum and scroll bar to display the drilled down. It took me a while to figure this one out myself.

  • How to set the location of the display of the modal dialog box?

    Hello

    Setting the height of a modal dialog box seems to influence the position of the modal dialog in the window.

    (See also the Position of the modal dialog box)

    If anyone can confirm this? And if so, how can I handle it?

    Thank you

    Jos

    Hello

    Thanks John: How to persist APEX dialog size and position. HardLikeSoftware

  • Position of the modal dialog box

    Hi,.

    Could someone explain to me how the op i tion to the wide a modal dialog is calculated?

    I put the height of my modal dialog box to 780px (all of the page of the dialog box is displayed), and the modal dialog box is displayed at the top of the window:

    780px.PNG

    A user complains that the modal dialog box is located roughly halfway to the window and having to drag upward to display all items and buttons.


    After you change the height to 600px, I get the same answer (the modal dialog box is about to halfway through the window) on my environments: different types of MacBook (Air/Pro), a window PC, all modern browsers.

    600px.PNG

    Then sometimes (how SMART is that! ) ) the modal dialog box (with the height value 780px) is positioned at the top of the page, sometimes the top less x.


    Thank you


    Jos

    Thanks John:

    Hello

    Thanks John: How to persist APEX dialog size and position. HardLikeSoftware

Maybe you are looking for