Superfluou​s confirm popup in UI editor?

Hello NI,
I have a XY graph with several annotations.
If I open the uir file and double click on the graph (-> Edit Graph popup), click on the 'Annotations' button (-> Edit Annotations popup) and change Current Annotation say from 24 to 23 (to see its properties).
Then I want to close everything (not changing anything): I click on the X button in the panel title of the 'Edit Annotations popup: a confirm popup shows up asking if I am sure to discard the changes. This popup is ok for the current annotation has changed. So I click Yes.
By this all changes should have discarded, right?
But now, if I click the X button in the panel of the Edit Graph popup the same confirm popup shows up again... In my opinion this should not happen ;-)
(I know that I can leave the two popups faster by hitting ESC twice)
Solved!
Go to Solution.

Yes, this is a bug, and it's been around since the beginning of CVI from what I can tell.
It's actually two bugs: 1) you shouldn't see the prompt in the annotations dialog in the first place, if all that you change in that dialog is the current annotation (and the analogous control, in the graph's cursors dialog, or the strip chart's traces dialog), since changing the current annotation/cursor/trace does not change the state of the graph or chart. And 2), as you pointed out, you shouldn't see the prompt again when you exit the main dialog if you discarded your changes in the sub-dialog.
Bug 477231.

Similar Messages

  • How to Stop confirmation popup arising for datepicker control in IE

    Hello All,
    I m using a confirmation popup to notify user when they try to navigate away from the page with out saving the changes made. I executed it through the javascript and it even works properly for most of the items and buttons except Datepicker control. This issue is only with Internet Explorer and all others are fine.
    I use the following block of code to do the job
    +function isFormChanged()
    {+
    var rtnVal = false;
    var frm = document.wwv_flow;
    var ele = frm.elements;
    for ( i=0; i < ele.length; i+ )
    {+  
    +if ( isElementChanged( ele, i ) )
    {+
    rtnVal = true;
    break;
    +}+
    +}+
    return rtnVal;
    +}+
    +function isElementChanged( ele, i )
    {+
    var isEleChanged = false;
    +switch ( ele.type ) {+
    case "text" :
    +if ( ele[i].value != ele[i].defaultValue ) return true;+
    +if( ele[i].id.indexOf('Date')!=-1) return false;+
    break;
    case "textarea" :
    +if ( ele[i].value != ele[i].defaultValue ) return true;+
    break;
    case "radio" :
    val = "";
    +if ( ele[i].checked != ele[i].defaultChecked ) return true;+
    break;
    case "select-one" :
    +if      (ele[i].id>99 ) return false;+
    +for ( var x =0 ; x <ele[i].length; x++ )
    {+
    +if ( ele[i].options[ x ].selected+
    +!= ele[i].options[ x ].defaultSelected ) return true;+
    +}+
    break;
    case "select-multiple" :
    +if      (ele[i].id>99 ) return false;+
    +for ( var x =0 ; x <ele[i].length; x++ )
    {+
    +if ( ele[i].options[ x ].selected !=+
    +ele[i].options[ x ].defaultSelected ) return true;+
    +}+
    break;
    case "checkbox" :
    +if ( ele[i].checked != ele[i].defaultChecked ) return true;+
    default:
    return false;
    break;
    +}+
    +}+
    var g_saving = false;
    var IsThe2ndNavAway = false;
    var g_errmsg="The changes you made to the page were not saved.";
    +function WarnSave()
    {+
    var formChanged = isFormChanged();
    if (!g_saving && formChanged)
    +{+
    if(!IsThe2ndNavAway)
    +{+
    IsThe2ndNavAway=true;
    +var tOut = window.setTimeout(function () { IsThe2ndNavAway = false; }, 0);+
    return g_errmsg;
    +}+
    +}+
    +}+
    function doSave()
    +{+
    g_saving=true;
    doSubmit('SAVE');
    +}+
    the above lines on page Html header and the Html body attribute with onBeforeUnload="return WarnSave();"
    Can any one say why the confirmation popup is pushed of in IE for DatePicker Calendar alone and provide the work around if any..

    Are you still having this problem?  See this post how one AOL user solved it: http://forums.adobe.com/message/3024814#3024814

  • Confirmation popup in FPM OVP application controller?

    Is it possible to make use of confirmation boxes within the application controller of an FPM-OVP? In my application there is a logout button in the global toolbar. The event is captured within the application controller of the FPM-OVP application, thus in the method IF_FPM_OVP_CONF_EXIT~OVERRIDE_EVENT_OVP. Now, I would like to open a confirmation popup (Are you really, really, really sure? Yes/No/I will think about it) and to trigger the event only when it is answered with yes. In forms I have the possibility to make use of the extended interfaces and to implement the NEEDS_CONFIRMATION method. Is there something similar in the current context?
    Best regards,
    Thomas

    Hi Thomas,
    Try to use AFTER_NEEDS_CONFIRMATION method in application controller.
    Kind regards, Aliaksandr.

  • Validation popup conflicting with confirmation popup

    I am using 11gR1.
    I have a form with three buttons on it CreateInsert, Next, Cancel.
    The next button fires model layer validation on a new record, the cancel button opens a confirmation popup and if the user clicks yes, navigates the away from the form. When a user clicks next AND the form does not pass the model layer entity validation, a validation error is raise in a validation popup. The problem comes when the user then decides to not fix the validation, but instead cancel out of the form via the cancel button AFTER they have already clicked next.
    When the user clicks the cancel button it raises the confirmation pop-up and whether the users clicks yes or no on the pop-up, the model layer validation still fires. I have immediate set to true on the cancel button to bypass validation, BUT if they user has already clicked next the validation still runs when they try to answer the pop-up. This results in the user being stuck in a never ending series of pop-ups because the confirmation pop-up can not close because the model layer validation keeps firing.
    I have a dialoglistener on the dialog and a method in the backing bean (backingBeanScope.backing_IAEdit.cancelConfirmDialog) but that code never fires. Anyone else run across this problem or have any ideas how to resolve it?
    Here is the code from the command buttons...
    <af:commandButton actionListener="#{bindings.CreateInsert.execute}" text="CreateInsert"    disabled="#{!bindings.CreateInsert.enabled}"
                                id="cb5"/>
    <af:commandButton actionListener="#{bindings.Next.execute}" text="Next" disabled="#{!bindings.Next.enabled}" partialSubmit="true"                    
                                id="cb2"/>
    <af:commandButton text="Cancel"  id="cb4" action="Cancel" immediate="true">
                    <af:showPopupBehavior popupId="p1"/>
    </af:commandButton>
    <af:popup id="p1">
                  <af:dialog id="CancelConfirmDialog" title="Confirm Cancel"  type="yesNo"
                                   dialogListener="#{backingBeanScope.backing_IAEdit.cancelConfirmDialog}">
                          <af:outputText value="Are you sure you would like to cancel?" id="CancelOutput"
                                         inlineStyle="font-weight:bold; font-size:small;"/>
                  </af:dialog>
    </af:popup>

    Thanks for the suggestion, but the code in the dialoglistener never fires.
    When the user clicks yes or no to dismiss the dialog box, the validation from the bc layer fires (even though immediate is set to true on the cancel button) and pops up an error box. When the error box opens, it opens in a modal way, the dialog box grays out and all you can do is dismiss the error box. When the user clicks ok to dismiss the error box, the dialog box is still open. Then when the user again clicks yes or no on the dialog box, it again fires validation and pops up the error box in a modal way. So now the user is stuck with these two pop ups and can never get rid of the dialog box.
    Just to clarify, this ONLY happens if the user FIRST clicked the next button which triggered the bc layer validation. If the user just clicks the cancel button, everything works as expected with the dialog box popping up, the user selects yes or no, the dialoglistener code is run and the user is navigated to another page. If the user just clicks the cancel button validation is never run as is expected by having immedate set to true.

  • Disable confirmation popup

    Hi,
    I am calling a standard utility to post PGI for delivery from an exit.
    Now, it asks for a confirmation to post or not.
    I want to disable this confirmation popup message.
    Is there any way to do this ?
    Thanks in advance.
    Regards
    Megha

    Hey Ramjee,
    Unfortunately, I don't believe there is any way to disable the dialog. I saw your other thread about the station globals, and would be happy to try and help figure out a different way to accomplish what you're trying to do that wouldn't require you to keep updating the globals. Let us know if we can do anything to help!
    Daniel E.
    TestStand Product Support Engineer
    National Instruments

  • Javascript Confirm popup Yes, No button instead of OK and Cancel?

    Hi,
    I wrote javascript for confirm popup like below:
    var answer = confirm ("Are you sure you want to delete this item ?");
    It is showing OK Cancel button popup , but I want to display Yes No buttons on popup insted of OK Cancel buttons...
    Appreciate if anyone give proper solution.
    Thank you.
    Still I could not get proper solution.... Please any one help me solve this... need js solution not jquery..

    Hi Praveen
    There is not direct option in JavaScript to get Yes/No buttons in a Confirm dialog.
    But, we can create a customized dialog box with our own HTML tags, controls and scripts and show it as a confirmation dialog using
    window.showModalDialog() function
    Here is the sample HTML to demonstrate how to create a customized confirmation dialog.
    Dialog.HTML (This contains the UI for the confirmation dialog. Message, Yes No buttons etc)
    <!DOCTYPE>
    <html>
    <head>
    <title>Confirmation Message</title>
    <script language="javascript" type="text/javascript">
    window.onload = function()
    var messageDiv = document.getElementById('dlgMessage');
    if ( messageDiv != null && typeof(messageDiv) != "undefined" )
    messageDiv.innerHTML = window.dialogArguments;
    function confirmClick(args)
    window.returnValue = args;
    window.close();
    </script>
    </head>
    <body>
    <div id="dlgMessage">
    </div>
    <input type="button" value="Yes" id="btnYes" onclick="javascript:confirmClick('yes')"/>
    <input type="button" value="No" id="btnNo" onclick="javascript:confirmClick('no');"/>
    </body>
    </html>
    MainPage.HTML (From where the confirmation dialog will be shown. In your case, u can use the script in this html and customize it according to ur needs)
    <!DOCTYPE>
    <html>
    <head>
    <title>Main Page</title>
    <script language="javascript" type="text/javascript">
    function showConfirmDlg(message)
    var returnValue = window.showModalDialog("dialog.html",message,"dialogHeight:150px;dialogWidth:200px");
    if ( returnValue == 'yes' )
    alert('Yes button is clicked in the dialog');
    else
    alert('No button is clicked in the dialog');
    </script>
    </head>
    <body>
    <input id="btnConfirm" type="button" value="Confirm" onclick="javascript:showConfirmDlg('Do you want to continue?');" />
    </body>
    </html>
    Hope this helps.
    See this MSDN Link for more information on how to use and customize the showModalDialog() function
    http://msdn.microsoft.com/en-us/library/ie/ms536759(v=vs.85).aspx

  • Call a process based on the click of a javascript confirm popup box

    I have created a function to create a javascript confirm popup box which calls an update process called Reactivate_save(), see below:
    function reactivate_save()
    var r=confirm("Do you wish to save pending changes?")
    if (r==true)
    document.getElementById('Reactivate_Save').call();
    I want to make the update process conditional on clicking the 'ok' button inside the popup box.....Is this possible?
    I thought that I could reference it by using:
    value in expression 1 = expression 2
    reactivate_save() = true or 1
    Neither of these worked and wondering if there is something else that I can use?
    Thanks,
    Chris

    Hi,
    Your function is in Javascript while the process is PL/SQL. What you need to do is somewthing like this
    if (r==true)
    document.getElementById('Reactivate_Save').call(); // not sure what this does so left it as it is
    doSubmit('MY_REQUEST');
    }You can now use the 'MY_REQUEST' request, or whatever else you choose to call it, in the process condition using
    1. Request = e condition type by entering MY_REQUEST in the Expression 1
    or
    2. PL/SQL Expression type with :REQUEST = 'MY_REQUEST' in expression 1
    Note : In Apex 3 and below you need to add a semi colon at the end of PL/SQL Expresssions
    Regards,
    PS : Noticed that this is the same as call a process based on the click of a javascript confirm popup box
    Edited by: Prabodh on Sep 28, 2010 9:05 PM

  • Confirmation popup problem not sending mail

    Hi,
    I am working on apex.oracle.com
    i am sending mail to users.when i simply click on send mail button it is working fine .it is sending mail to users.
    i want to display confirmation msg before send mail to users. i created confirmation using dynamic actions.
    when i click on send mail button it raise popup. but when i click on ok button of confirmation popup.it is not sending the mail.
    where i am doing wrong. please help me to rectify the problem.
    Thanks in advance.
    Vedant

    Hi
    the code is
    DECLARE
    l_id number;
    to_add varchar2(2000);
    from_add varchar2(1000);
    l_sub varchar2(1000);
    l_temp_descrp clob;
    CURSOR C1 IS select distinct email_id from crm_cam_target_list tl where target_id in (select target_id from crm_cam_campaign_target ct where ct.CAMPAIGN_ID=:P221_X);
    REC C1%ROWTYPE;
    BEGIN
    select CAMPAIGN_NAME,FROM_EMAIL_ID into l_sub,from_add from CRM_CAMPAIGN_MAS where CAMPAIGN_ID=:P221_X;
    select TM.DESCRIPTION_IMAGE into l_temp_descrp from CRM_CAM_TEMPLATE_MAS TM,CRM_CAMPAIGN_MAS CM where TM.TEMPLATE_ID=CM.TEMPLATE_ID and CM.CAMPAIGN_ID=:P221_X;
    OPEN C1;
    LOOP
    FETCH C1 INTO REC;
    EXIT WHEN C1%NOTFOUND;
    l_id:=APEX_MAIL.SEND(
             p_to        => REC.email_id, -- change to your email address
             p_from      => from_add,
             p_body      => l_temp_descrp,
             p_body_html     => l_temp_descrp,
             P_subj      => l_sub
    end loop;
    CLOSE C1;
    apex_mail.push_queue(
    P_SMTP_HOSTNAME => '11.1.9.2',
    P_SMTP_PORTNO => 25);
    UPDATE CRM_CAMPAIGN_MAS SET EXECUTE_STATUS='Y' WHERE CAMPAIGN_ID=:P221_X;
    END;Thanks & Regards
    Vedant

  • How do i get rid of the confirmation popup that says This web page is being redirected to a new location. Would you like to resend the form data you have typed

    when navigating on certain sites (fiverr.com is one), i get the popup confirmation "This web page is being redirected to a new location. Would you like to resend the form data you have typed to the new location?"
    this is highly annoying and i can't find a way to turn this annoyance off. help!

    because of its impact on security this error message cannot be suppressed. you might want to contact the admins of the website where this is occuring and ask them to implement a handling of user input without sending it to a different server...

  • WDA Leave Request -- Hide Customer Field in Confirmation Popup

    Hello folks,
    System Information:
    NW AS 7.03 ABAP Stack 731 Level 11, ECC 606 (EHP 6) with SAP_HR 604 Level 73 and EA_HR 607 (HR-Renewal 1) Level 24
    Background:
    For Our WDA Leave Request application, our special department has requested to provide certain additional fields for particular Leave Types, all in all these are three check boxes and one Link-To-URL-UI. I have created these fields, or rather configured them via IMG Customizing Tables V_PT_FIELD_SEL / V_PT_FIELD_SEL_C, using the ten standard customer fields provided by SAP CUSTOMER01 - CUSTOMER10.
    After making the subsequential customizing configurations, I have enhanced the WDA OVP-FPM CC "HRESS_CC_GUIBBF_LEAVREQ" to change the respective fields' UI-Type from "Inputfield" to "Checkboxgroup" and "LinkToAction". So far so good; it's nothing fancy and everything works out the way it should.
    Problem:
    Our special department has recently noted, that the Link-To-Action provided is also taken into account by the Confirmation Dialogue Popup-Box and correctly set read-only like any other field as well. However, the fact that this read-only-link is then also shown in the Popup-Box is confusing to some users and should therefore be hidden. My plan was to enhance the WDA OVP-FPM CC "HRESS_CC_GUIBBF_LEAVREQDIALOG" and simply set the field CUSTOMER01(that's the one field I use for the Link-To-Action-UI) invisible and that's exactly what I did. But look what the effect is:
    You can see behind the lightbox in the Form, how the field is usually displayed in the Form-UIBB. What I "achieved" now, though, is, that only the lable is hidden in the Popup-Box through my enhancement in "HRESS_CC_GUIBBF_LEAVREQDIALOG" and the LinkText is still visible.
    What I did so far / Question:
    So... I went ahead and debugged the feeder class CL_HRESS_PTARQ_LEAVREQ_GUIBBF. I found out that in the Methods "FIELDS_SHOW_HIDE_CLEAR" and "FIELD_SETTING_BY_CUSTOMIZING" I would theoretically be able to manipulate the visibility, but:
    This would mean I'd have to create overwrite-exits, which I would like to avoid, because maintenance is a pain.
    Manipulating the process flow here probably has side effects on the field control of the overall application which must not happen. If I'm extremely unlucky it might even effect the data flow.
    This brings me to my ultimate question: How do I make a field from this Confirmation Dialogue Popupbox cleanly disappear/invisible in a super-duper-elegant way without using a sledgehammer? Maybe there is a customizing-way I have overlooked so far? (please?)
    Cheers, Lukas

    Hi Samuli/Yugandhar,
    what you suggest is exactly what I did:
    My plan was to enhance the WDA OVP-FPM CC "HRESS_CC_GUIBBF_LEAVREQDIALOG" and simply set the field CUSTOMER01(that's the one field I use for the Link-To-Action-UI) invisible and that's exactly what I did.
    The only derivation from your suggestions is that I didn't make a deep copy but an enhancement instead, which Creates a delegation Object that automatically inherits from the standard CC. Technically a copy or an enhancement do exactly the same but maintenance is a lot smoother for enhancements, that's why.
    Cheers, Lukas
    P.S. @ Yugandhar, nice to see you are still around! Indeed I'm primarily occupied with the module FI-TV, that's why I'm only wandering around the ESS/MSS subforums now and then.
    Message was edited by: Lukas Weigelt

  • Html db - confirmation popup

    Hi everyone,
    I would like a "popup" which is posted when I press on Close button in my page and I've forgotten to record my data.
    Is this with Javascript which I can create this popup confirmation or HTML-DB offers something in this case ?
    Thank you very much. Bye.

    Do you mean a close button in HTMLDB or the browser window's close button? [HTMLDB cannot help much with the latter!]
    For buttons you created, just add a URL target as
    javascript:if(confirm("Are you sure?")) doSubmit('CLOSE');
    That will popup the box and if OK is clicked submit the page with REQUEST set to CLOSE

  • Mixing Confirm popup with Validation

    We have an application where we key information. In some cases, we are collecting hours worked and we want to put in a "soft" validation - ie a popup confirmation box if the number of hours is over a certain number (we are subject to laws, etc.). Can anyone guide me through where to put the Javascript confirmDelete? Or is there an easier way?

    Sorry, I had some fires to put out and hadn't been able to try this.
    Here's a slight hitch and maybe someone can suggest a workaround: the dates get entered in chunks: i.e. the date, start hours, start minutes, start AM/PM, end hours, end minutes, end AM/PM are all different fields (7 in total). This was for entry speed purposes. When I go to calculate everything up for insert, I use a PL/SQL function to concatenate everything that works great.
    Would this work: using the same methodology in a PL/SQL calculation to set a hidden field value to the total hours, then an onChange() call to the popup warning? I haven't been able to put together a JavaScript equivalent of the following (which is what I would need):
    declare
      str_day     VARCHAR2(12);
      dt_indx     DATE;
      db_dt_indx  VARCHAR2(12);
      str_st_tm   VARCHAR2(25);
      dt_st_tm    DATE;
      str_ed_tm   VARCHAR2(25);
      dt_ed_tm    DATE;
      hrs         NUMBER;
    begin
      str_day    := :P1050_DATE_MM || '/' || :P1050_DATE_DD || '/' ||  :P1050_DATE_YYYY;
      dt_indx    := to_date(str_day, 'MM/DD/YYYY');
      db_dt_indx := to_char(dt_indx, 'MM/DD/YYYY');
      str_st_tm  := str_day || ' ' || :P1050_TIME_IN_HH || ':' || :P1050_TIME_IN_MI || ' ' || :P1050_TIME_IN_AM;
      dt_st_tm   := TO_DATE(str_st_tm, 'MM/DD/YYYY HH:MI AM');
      str_ed_tm  := str_day || ' ' || :P1050_TIME_OUT_HH || ':' || :P1050_TIME_OUT_MI || ' ' || :P1050_TIME_OUT_AM;
      dt_ed_tm   := TO_DATE(str_ed_tm, 'MM/DD/YYYY HH:MI AM');
      select FN_GET_TC_HRS(dt_st_tm, dt_ed_tm) into hrs from DUAL;
      --Alter date if night shift
      IF dt_ed_tm < dt_st_tm THEN
        dt_ed_tm := dt_ed_tm + 1;
      END IF;
      :P1050_TTL_HRS := hrs;
    end;

  • HTTPUNIT - How to click OK on a javascript confirm popup

    Hi all,
    I'm new using httpunit. I've to test a webpage that deletes an item. When you click on the delete button, a confirmation's popup is shown with two buttons (Accept and reject). To go on testing the whole website, I need to click on the accept button and I don't know how to do this. Could anyone help me please?
    Let me type some code to ilustrate the case.
    //This is the delete button as is written in the html's form tag
    buch of code
    <input type="button" class="button" value="delete" onclick="verify.onBorrar(this.form)"/>
    bunch of code
    //This is the javascript that handles the onclick event
    function verify_onBorrar(form){
    for(var i = 0;i<form.selection.length;i++){
    if(form.selection[i].checked){
    if(confirm('blablabla'){
    form.action = 'ConsAlmBorrar.jsp?';
    form.submit();
    verify.onBorrar = verify_onBorrar;
    note that selection is the name of a group of radio buttons
    With the httpunit java class that I've made, I'm able to select the item I want to delete, click on the delete button, and here is where the popup window appear and I can't go further.
    Thank you Indeed.

    Hi Maciejhttp://forums.adobe.com/people/Maciej%20Przepi%C3%B3ra
    Thanks for your inputs.
    I have memory leaks in my code. I have tried iDialog->Release() code which reduces some of the memory leaks
    Though I want to use more clean method of InterfacePtr.
    "To prevent reference counts  from incrementing, as in Type 1a and 1b, use this constructor, which does not  call IPMUnknown::AddRef:"
    Which Constructor you are pointing out, I didn't get it.
    I tried InterfacePtr<IDialog> iDialog((IDialog *)iWidgetParent->QueryParentFor(IID_IDIALOG));
    It started giving me assert again.
    Please give an example how to do it or which InterfacePtr constructor doesn't call AddRef().
    Many thanks for helping me with this.
    D

  • Dynamic link in a report with confirmation popup and plsql call

    Hi all
    I have a table T1 with Name, City, Status.
    I create a report in an html region with a query to obtain Name and City and for each record with status = '5' a link with "Remove" label.
    To generate the link I need to use a Case so the link will be present only for some records (status = '5').
    Then I want to use a dynamic action with "Confirm" to show a confirmation pop up and an "Execute PL/SQL Code" to remove the record with a simple delete command.
    My question: how should I write the link in the case statement to call the dynamic action in my form?
    Thanks,
    Massimo

    Hi Tauceef,
    im trying to use your solution in this way
    The report is
    ,case when min(status) = 'New'
         then '<a href="---URL---"><img src="#WORKSPACE_IMAGES#Trash.ico" alt="Delete"></a>'
         else '<img src="#WORKSPACE_IMAGES#Banned.ico" alt="-">'
    end col_name,where ---URL--- is javascript:Delete('||myTable.ROW_ID||');
    The javascript is
    function Delete(parID) {
      document.getElementById('P30_SELECTED_ROW_ID').value = parID;
      if (confirm('are you sure?')) {
        doSubmit('DELETE');
    };The PL/SQL anonymous block is
    DECLARE
    parId number;
    BEGIN
    parId:=:P30_SELECTED_ROW_ID;
    PKG_myPack.test(parId);
    -- delete from myTable where row_id = :P30_SELECTED_ROW_ID;
    -- :P30_SELECTED_ROW_ID := null;
    END;As you can see i first try to execute my simple delete but not work, then i create a test procedure to inspect the item value and i realize that it has no value. I show the item on the page and afer selection it still remain null.
    My qyestions are:
    - which is the correct Process Point to set for the PL/SQL anonymous block?
    - which is the correct syntax to refer to the item ? (:P30_SELECTED_ROW_ID, &:P30_SELECTED_ROW_ID. or v('...'))
    Im sorry for the length of the request and i hope you can help me.
    Best regards.
    Alex

  • Create a confirmation popup dialog when submitting a form

    Hi all,
    I have a simple business : ask a question (yes/no) to a user when he is submitting a form.
    This form is an "ADF Form (11g)" and is displayed in a inline dialog. It is triggered for an EntityView when user clicks on an edit button of a table row.
    I've tried lot of different solutions but it never works.
    Let me tell you about these:
    Solution 1: Adding a showPopupBehavior
        <af:document id="d1">
          <af:messages id="m1"/>
          <af:form id="f1">
            <af:panelFormLayout id="pfl1">
              <af:inputDate value="#{bindings.Datedeb.inputValue}" label="From:" required="#{bindings.Datedeb.hints.mandatory}" shortDesc="#{bindings.Datedeb.hints.tooltip}" id="id2">
                <f:validator binding="#{bindings.Datedeb.validator}"/>
                <af:convertDateTime pattern="#{bindings.Datedeb.format}"/>
              </af:inputDate>
           <!-- ... -->
              <f:facet name="footer">
                <af:group id="g1">
                  <af:commandButton text="Submit" id="cb1">
                    <af:showPopupBehavior popupId="p1" />
                    <af:returnActionListener/>
                  </af:commandButton>
                  <af:popup id="p1">
                    <af:dialog id="d2" title="Assistance" type="yesNo" dialogListener="#{backingBeanScope.dialogBackingBean.mustClosePreviousAddress}">
                      <af:outputText value="Do you want to close the previous adress automatically ? " id="ot1"/>
                    </af:dialog>
                  </af:popup>
                </af:group>
              </f:facet>
            </af:panelFormLayout>
          </af:form>
        </af:document>The issue is that the +<af:returnActionListener/>+ is never triggered and the form do not close.
    Solution 2: Adding a showPopupBehavior and change the triggerType
        <af:document id="d1">
          <af:messages id="m1"/>
          <af:form id="f1">
            <af:panelFormLayout id="pfl1">
              <af:inputDate value="#{bindings.Datedeb.inputValue}" label="From:" required="#{bindings.Datedeb.hints.mandatory}" shortDesc="#{bindings.Datedeb.hints.tooltip}" id="id2">
                <f:validator binding="#{bindings.Datedeb.validator}"/>
                <af:convertDateTime pattern="#{bindings.Datedeb.format}"/>
              </af:inputDate>
           <!-- ... -->
              <f:facet name="footer">
                <af:group id="g1">
                  <af:commandButton text="Submit" id="cb1">
                    <af:showPopupBehavior popupId="p1" triggerType="click" />
                    <af:returnActionListener/>
                  </af:commandButton>
                  <af:popup id="p1">
                    <af:dialog id="d2" title="Assistance" type="yesNo" dialogListener="#{backingBeanScope.dialogBackingBean.mustClosePreviousAddress}">
                      <af:outputText value="Do you want to close the previous adress automatically ? " id="ot1"/>
                    </af:dialog>
                  </af:popup>
                </af:group>
              </f:facet>
            </af:panelFormLayout>
          </af:form>
        </af:document>By reading in your forum I find this solution to be able to initiate a popup and execute the commandButton action by adding the triggerType="click" on the showPopupBehavior.
    The issue then is that the dialog get closed without waiting for a user response on the popup dialog (yes/no)
    Solution 3: Adding aAdfFacesContext.getCurrentInstance().returnFromDialog(null, null); in my dialog listener
        <af:document id="d1">
          <af:messages id="m1"/>
          <af:form id="f1">
            <af:panelFormLayout id="pfl1">
              <af:inputDate value="#{bindings.Datedeb.inputValue}" label="From:" required="#{bindings.Datedeb.hints.mandatory}" shortDesc="#{bindings.Datedeb.hints.tooltip}" id="id2">
                <f:validator binding="#{bindings.Datedeb.validator}"/>
                <af:convertDateTime pattern="#{bindings.Datedeb.format}"/>
              </af:inputDate>
           <!-- ... -->
              <f:facet name="footer">
                <af:group id="g1">
                  <af:commandButton text="Submit" id="cb1">
                    <af:showPopupBehavior popupId="p1" triggerType="click" />
                  </af:commandButton>
                  <af:popup id="p1">
                    <af:dialog id="d2" title="Assistance" type="yesNo" dialogListener="#{backingBeanScope.dialogBackingBean.mustClosePreviousAddress}">
                      <af:outputText value="Do you want to close the previous adress automatically ? " id="ot1"/>
                    </af:dialog>
                  </af:popup>
                </af:group>
              </f:facet>
            </af:panelFormLayout>
          </af:form>
        </af:document>
      public void mustClosePreviousAddress(DialogEvent dialogEvent)
        //Business logic
        AdfFacesContext.getCurrentInstance().returnFromDialog(null, null);
      }It looks like it work and close the dialog when click on yes/no on the popup dialog but the value are not submitted and the data model do not change.
    Solution 4: Sendind an ActionEvent on the button when user has made his selection
        <af:document id="d1">
          <af:messages id="m1"/>
          <af:form id="f1">
            <af:panelFormLayout id="pfl1">
              <af:inputDate value="#{bindings.Datedeb.inputValue}" label="From:" required="#{bindings.Datedeb.hints.mandatory}" shortDesc="#{bindings.Datedeb.hints.tooltip}" id="id2">
                <f:validator binding="#{bindings.Datedeb.validator}"/>
                <af:convertDateTime pattern="#{bindings.Datedeb.format}"/>
              </af:inputDate>
           <!-- ... -->
              <f:facet name="footer">
                <af:group id="g1">
                  <af:commandButton text="Submit" id="cb1" binding="#{backingBeanScope.dialogBackingBean.cb1}">
                    <af:showPopupBehavior popupId="p1" />
                    <af:returnActionListener/>
                  </af:commandButton>
                  <af:popup id="p1">
                    <af:dialog id="d2" title="Assistance" type="yesNo" dialogListener="#{backingBeanScope.dialogBackingBean.mustClosePreviousAddress}">
                      <af:outputText value="Do you want to close the previous adress automatically ? " id="ot1"/>
                    </af:dialog>
                  </af:popup>
                </af:group>
              </f:facet>
            </af:panelFormLayout>
          </af:form>
        </af:document>
      public void mustClosePreviousAddress(DialogEvent dialogEvent)
        //Business logic
        cb1.queueEvent(new ActionEvent(cb1));
      }The same as foor the third solution, it looks like it work and close the dialog when click on yes/no on the popup dialog but the value are not submitted and the data model do not change.
    I've verified with an actionListener, the actionEvent received when the user click on the button is exactly the same as the one i've dispatched manually.
    Can you help me with a solution adressing this issue?
    Best regards,
    Alex

    Mmm something like this ?
        public void newDialogListener(DialogEvent dialogEvent) {
            if (dialogEvent.getOutcome().name().equals("ok")) {
                this.getBindings().getOperationBinding("Commit").execute();
                    // Do something
        }

Maybe you are looking for

  • When I send a text message, daughter's iphone records as also sending.

    When I send a text message, daughter's iphone records as also sending. I have an iphone 4 and she has an iphone 5. We both recently updated to ios 7. This problem did not happen before the update.

  • How do I Fix a 403 Forbidden Error in my Calendar app on my iMac

    Re my 403 problem..didn't get my whole paragraph there. It's a 403 which opens a window saying, "... Access to XXX in "My Calendar" in account iCloud is not permitted.  The server responded: 403  to operation CalDavWriteEntityQueueableOperation. How

  • IPhone to Computer App Transfer

    I download basically all my apps from my iPhone, but when I connect to my computer to backup my apps the "transferring applications" load bar comes up but just jumps back and forth at the start while it runs through the Applications I have. In the en

  • Problem running tomcat on solaris 10

    Hi, I installed tomcat 5.5.25 on Sun Solaris 10. I didn't get any errors. Nothing in tomcat log. When i type localhost:8080 in the address bar of firefox i got error "Unable to Connect" Firefox can't establish a connection to a server at localhost:80

  • Excel with Labview

    hi every bady,  Any one can tell me how can I import an excel file to LabVIEW 8.6 ??  I need to read it and make some treatements on it on LabVIEW ! Thanks Solved! Go to Solution.