Popup dialog not functioning

HI,
i want to use the popup dialog in the jdeveloper 10.1.3,
i set the use window to true, the action to "dialog:testPopup" but when i run the page and click the button, the popup dialog doesn't appear,
the same example works fine in all other pages, but i don't know what is the wrong with this page,
does anyone have any idea?
thanks

Hi,
the same example works in other pages fine,
-- this tells me that Popup dialogs work in general for you
actually i made some changes in the layout of the page by adding panel forms and panel horizontal, before that the popup was working properly
-- this would make me think that undoing the modifications and then bringing them back one-by-one until you find the source of the problem will solve the issue
but i don't think there's a relation between the layout and the problem!
-- Yes, but you don't t have a proof for this statement. Sometimes you unintentionally e.g. move a component out of the form element is was in, or create a new one that is warpped in a <verbatime> tag.
Frank

Similar Messages

  • ADF Popup Dialog Not Showing Working

    I'm using JDeveloper 10.1.3 and ADF. I have been unable to get a dialog popup working. When I click on a commandLink in the Originating page, it only refreshes the Originating page and does not open the destination page at all. It's happening in both FF and IE.
    Within the faces-config.xml I created a navigational rule with outcome that begins with dialog.
    Extracted sample from faces-config.xml:
    *<navigation-rule>*
    *<from-view-id>/Originate.jspx</from-view-id>*
    *<navigation-case>*
    *<from-outcome>dialog:dest</from-outcome>*
    *<to-view-id>/Destination.jspx</to-view-id>*
    *</navigation-case>*
    *</navigation-rule>*
    The commandLink action attribute begins with dialog: and useWindow attribute is true.
    Extracted sample from JSP document:
    *<af:commandLink text="Go to Destination" action="'dialog:dest'"*
    useWindow="true" windowHeight="250" windowWidth="300"
    partialSubmit="true" id="originate"/>
    Is there something I'm doing wrong? Any help would be greatly appreciated.
    Thanks.

    It seems like the dialog:popUp does not work if it is not nested within
    &lt;afh:html&gt;
    &lt;afh:body&gt;
    &lt;af:form&gt;
    &lt;af:commandLink action="dialog:popUp"/&gt;
    &lt;/af:form&gt;
    &lt;/afh:body&gt;
    &lt;/afh:html&gt;
    I currently have it this way
    &lt;html&gt;
    &lt;body&gt;
    &lt;h:form&gt;
    &lt;af:commandLink action="dialog:popUp"/&gt;
    &lt;/h:form&gt;
    &lt;/body&gt;
    &lt;/html&gt;
    P.S.
    The former way works but it messes up page layout. It seems not to notice DIVs and image positioning.
    Any clues as to why?
    Edited by: user2709995 on Dec 31, 2008 6:31 AM

  • ReportViewerBean popup dialogs not located correctly

    When invoking ReportViewerBean.exportView, the confirmation dialog after export completion is located at the top-left of the screen. Is there a fix / workaround for this problem?
    The same problem occurs when invoking the standard Export and Print buttons on the toolbar.

    I'm not aware of any recent bugs with JVM 1.6.x - there were some way back in 1.2/1.3.
    The Print Dialog - it's the standard Java one - shouldn't be centered.  The export dialog should.
    Quick test - the ReportViewerBean is located in the CrystalReportsRuntime.jar. 
    Put all the 12.x jars in the classpath, and execute:
    java com.crystaldecisions.ReportViewer.ReportViewerFrame
    make sure the "Crystal Reports 2008" appears on the top right corner, then select "All Files" then a rpt with saved data. 
    Does the bare ReportViewerBean in a JFrame exibit the same behavior?
    If so, then there's some issue with your environment.
    If not, then I'd go to your project and introspect the JSwing hierarchy - there's something causing the parent frame location to be zeroed, from the JDialog perspective.
    Sincerely,
    Ted Ueda

  • OK button not visible in popup dialog box.

    Hi,
    There is some problem with the popup dialog boxes that I am using. Sometimes I can see the OK button while sometimes it is not visible.
    Any clue regarding this odd behaviour?
    Many Thanks,
    Anagha

    HI everybody,
    I am also having similar error now.
    IN the standard Dialog box, I am not able to get the button, despite of doing everything properly.
    Please find the code used:
    IWDControllerInfo conInfo= wdThis.wdGetAPI().getControllerInfo();
                                  IWDEventHandlerInfo evntInfo = conInfo.findInEventHandlers("Ok");
                                  IWDConfirmationDialog confDialog =wdComponentAPI.getWindowManager().createConfirmationWindow("Please Enter a search Criteria", evntInfo , "OK");
                                  confDialog.setTitle("Confirmation Window");
                                  confDialog.open();
    I  have created the eventhanler.
    I tried all possible ways but nothing has resolved the issue.
    The only difference is that I need to place this code in custom controller only.

  • Af:richTextEditor can not work fine in the popup dialog.

    Hi all:
    I want to use af:richTextEditor in a pop up dialog, but it can not be used correctly. The code is like below:
    <af:popup id="***">
    <af:dialog >
    <af:richTextEditor contentStyle="width:100%" value="this is a test" inlineStyle="width:100%" binding="#{backing_myBackingBean.richTextEditor1}"
    id="richTextEditor1"/>
    </af:dialog>
    <af:popup>
    The value "this is a test" can not be shown in the editor and I can not write/edit in this rich text editor.
    Anyone has some experience on using these components? Please help me.
    Thanks
    Hart

    Hi Frank,
    Below is my test code, the text editor does not work fine actually. Can you help me to find where I was wrong using this code OR is is a bug to use richtexteditor in popup dialog?
    <?xml version='1.0' encoding='GBK'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=GBK"/>
    <f:view>
    <af:document>
    <af:form>
    <af:outputText value="This is test page"/>
    <af:commandButton text="PopupRichTextEditor">
    <af:showPopupBehavior popupId="test">
    </af:showPopupBehavior>
    </af:commandButton>
    <af:popup id="test">
    <af:dialog modal="true">
    <af:richTextEditor value="this is for test">
    </af:richTextEditor>
    </af:dialog>
    </af:popup>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Thanks in advance.
    Hart
    Message was edited by:
    harth
    Message was edited by:
    harth

  • Popup dialog or information message after planning functions run

    Hi Guru,
              Anyone who encounter an issue on BPS where a popup dialog or information message appear with SQL statements (one line of statement per dialog). When I debug it the message was raise by form write_sql_log_begin/end.
    Thanks,
    Irish

    MODULE m_pai INPUT.
    CASE fcode.
        WHEN 'ENT'.
            PERFORM f_force_enter.
            LOOP AT git_tab INTO gwa_tab.
                  PERFORM f_update_it9090 USING l_tabix.
            ENDLOOP.
      ENDCASE.
      CLEAR fcode.
    ENDMODULE.      
    FORM f_update_it9090 USING fu_tabix.
    PERFORM f_read_9090 TABLES lit_p9090 USING fu_tab CHANGING lwa_p9090.
        IF lwa_p9090-pernr IS NOT INITIAL.
      ELSE.
          CONCATENATE fu_tab-pernr text-014 '.' INTO l_text SEPARATED BY space.
          <b>MESSAGE i004 WITH l_text.</b>
          g_final_flag = 'X'.
        ENDIF.
    ENDFORM.          
    FORM f_force_enter.
      CALL METHOD g_alv->check_changed_data
        IMPORTING
          e_valid = g_valid.
    ENDFORM.
    Therefore, when this code is run the statement highlighted in BOLD behaves differently when 'Enter' is strike before save and when 'Enter' is not strike before save.  The f_force_enter subroutine is invoke to cause data_changed method to be invoke to capture relevant data before proceeding to other processing.

  • Acquire data from a tab delimited file using a popup dialog object on a stamp

    I am trying to import data from a tab delimited file using a popup dialog object on a stamp.  I have purchased the book by Thom Parker--All About PDF Stamps in Acrobat and Paperless Workflows and have been working through the examples in the appendix.
    My problem is understanding how to bring the data into the dialog object from the file.
    I don't want to plagiarize his book--so am electing at this time not to show my code.  The  script is reading the file, just not bringing in the records from the file so that I can select which line to import into the stamp.
    I have typed in the code exactly how the book describes, but when the popup dialog object is selected, there is nothing in the drop-down.  When I click OK, the first record is put on the stamp--except for the fields that I am wanting to appear in the dialog object popup box.
    I have searched the forums, and also the JavaScript reference.  There are examples of the popup dialog object, but none of them show how to import the data from a file--just for the items to be typed in as the list.
    Any help would be greatly appreciated!  i have been trying to work on this for several months now.

    Karl
    Thank you for getting back with me!
    In answer to your questions:
    1. Your trusted function is not a trusted function. Did you put this
    function into a folder level script so that it will get executed at system
    startup?--
         yes--I saved the script as a .js file and put it in the following path (I have Acrobat XI Pro for Windows)
    C:\Documents and Settings\tjohnson\Application Data\Adobe\Acrobat\Privileged\11.0\JavaScripts\GetTabData.js
    2. The script cannot find your tab delimited data file, or it cannot
    extract the data. Did you add the data file in the correct location? The
    location from the script in the book would be c:\mydata\Contacts.txt
    Yes--the file is in the same path as the book.
    Below is my code that references the file.
    var cPath = "/c/mydata/Contacts.txt";
    the slashes in the book go in the direction of the text above--should they go in the direction that you have in your question?
    Also,  the name and email address need to be separated by one Tab character.
    They are. 
    3. The fields need to be named the same way as the columns in the data file (the two names are in the first line of the file).
    My headings are RevByFromTab and EmailFromTab--which match the names of the two fields on the stamp.
    So, check that you are not getting any errors in the JavaScript console
    (Ctrl-J or Cmd-J), and verify that the tab delimited file is in the correct
    location
    When I run in the java script console--and I just run the script on the stamp,
    it says
    TypeError: event.source is null
    17:Console:Exec
    undefined
    When I place the stamp on the page, the popup box is working, but when you click on the down arrow, there is nothing listed.  When I click OK, the RevByFromTab is populated by the first item in the file, but the EmailFromTab field says undefined.
    Thank you
    Message was edited by: tdjohnson7700

  • How to close a popup using a function key in adf + Jquery

    Hello All,
    I want to display some error message using function key so I have used javascript function
    *function showText(event) {*
    var k = event.getKeyCode();
    *if (k == 115) {*
    ------------------------------------------CODE-------------------------------------------
    This is working fine on click of F4 it is invoking a popup and inside that popup in dialog it is showing some error messages. The property modal of dialog is true. So that user should not be able to navigate to main form until error message is closed.
    Now on click of F6 I want that error message to be closed. When I added af:clientListener on popup or dialog type="keyDown" is not available.
    So I thought using jquery for this. I have created a form.js file inside that I have written:
    *$(function first()*
    *               jQuery('*').bind('keydown', 'F6', function (evt){closePopup();evt.stopPropagation();return false;});*
    *function closePopup(){*
    *     alert("Do you want to close the error message");*
    I have also added jquery.hotkeys.js and jquery-latest.js file.
    My question here is How can i find that popup or dialog inside that jquery function and close it?
    On click of F6 I am getting that alert Do you want to close the error message but after that how can I find the popup or dialog and close it?
    I am new to jquery still I tried using some code:
    var dialog = event.getSource();
    var popup = dialog.findComponent("p1");
    popup.close();
    and
    var output1 = AdfUIComponent.findComponent("p1");
    output1.close();
    and
    curElm = document.activeElement;
    var frm = curElm.close();
    But none of them worked.
    Please help
    Thanks

    Hi,
    this whitepaper: http://www.oracle.com/technetwork/developer-tools/jdev/1-2011-javascript-302460.pdf has an example of registering keyboard keys on a global level (see page 36). So you would define a key to close dialogs in general. The paper also explains how to search and find components. Note that you should always work with the ADF Faces client side API and never against the generated markup or DOM (which in fact your code does)
    Frank

  • Cancel / Reset links in popup dialog

    Hi, I'm new to ADF 11g (using Jdeveloper 11.1.1.4.0) so this is probably an easy question. I have a popup dialog (using <af:popup>, <af:dialog>), and in the dialog, I want to have Cancel and Reset links. I know that if I set the type attribute of <af:dialog> to "cancel", I could get a Cancel button for free. But I want to have a Cancel link instead of a button so I have the type attribute of <af:dialog> set to "none" to not show any of the default buttons. How could I best implement a Cancel link as a commandLink or goLink? The documentation for <af:dialog> at http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_dialog.html says this about the cancel button behavior and I just want to have the same for my Cancel link:
    The ESC key, "cancel" button and close icon queues a client dialog event with a "cancel" outcome. Dialog events with a "cancel" outcome will not be sent to the server.
    Also, I want to have a Reset link in my dialog that just resets the form fields in the dialog. How would this be done? I saw that there's a <af:resetButton> component available, but this renders as a button and again I want to have a Reset link instead of a button.
    Thanks.

    Ok, this worked for me:
    <af:resource type="javascript">
    function closePopup(actionEvent) {
    var eventSource = actionEvent.getSource();
    var popup = eventSource.findComponent("p1"); // p1 is the id of my popup
    popup.hide();
    actionEvent.cancel();
    </af:resource>
    <af:commandLink text="Cancel" id="cl1" partialSubmit="true">
    <af:clientListener type="click" method="closePopup"/>
    </af:commandLink>
    Interestingly, I found that if I did not have partialSubmit="true" on the commandLink, then the popup would disappear on its own. I did not even have to have a clientListener on the commandLink. I guess this is due to the following mentioned at http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_dialog.html
    Using partial submit custom buttons is recommended because by default, a popup will not restore visibility after a full postback. The immediate parent (af:popup) controls this behavior. If the parent popup's autoCancel property is enabled, full submit commands will cause the popup dialog to auto-dismiss. When the autoCancel property is disabled, full submit commands will restore visibility on postback. See the af:popup tag documentation for more information on controlling aspects of auto-dismissal.
    Does anyone know what the difference between using popup.hide() and popup.cancel() would be in the above javascript? They seem to have the same effect. Also, do I really need to have actionEvent.cancel() in the above javascript? I have seen that in some other examples, but not really sure if it's really necessary as having it there or not there doesn't seem to make a difference either.

  • Disable menubar and location from popup dialog in new browser window

    How to hide the toolbar, menubar, location and status for the popup window (not inline, but new browser window style) using ADF 11g?
    Just like HTML javascript:
    window.open ('page.jsp', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')In ADF 11g, I have a jspx refered by a taskflow action with "dialog:" prefix, and I call it from a button like this:
    <af:commandToolbarButton text="Add"
    id="ctbAdd"
    action="dialog:create"
    useWindow="true"
    windowEmbedStyle="window"
    windowModalityType="applicationModal"
    windowHeight="400"
    windowWidth="600"
    />How to control the toolbar, menubar, location and status for the popup window?
    Thanks in advanced,
    Samson Fu

    I tried it but not success. My code as below:
        public void handleAddLaunch(LaunchEvent launchEvent) {
            launchEvent.getWindowProperties().put("toolbar", "no");
            launchEvent.getWindowProperties().put("menubar", "no");
            launchEvent.getWindowProperties().put("scrollbars", "no");
            launchEvent.getWindowProperties().put("resizable", "no");
            launchEvent.getWindowProperties().put("location", "no");
            launchEvent.getWindowProperties().put("status", "no");The popup windows contains all the toolbar, menubar, location...
    Is there any example or reference for the keys and values for getWindowProperties()?
    Regards,
    Samson Fu

  • How to display a screen as Popup Dialog box in Module Pool

    Hi All,
    I have a requirement to display a popup dialoge box into module pool.
    i need to display a screen as a popup on the current screen on a button click.I have developed a screen and in atribute tab i have defined the screen type as modal dialog box but  it is displaying previous screen screen is hide i want to display on the same screen as a popup.
    Thanks
    Narendra

    Hi Narendra,
    Try to trigger the popup once it is done with the previous action might be anything.
    i have shown one sample code where after i click on save button when the data is saved successfully
    after that it has to trigger me a popup asking for conformation for the next action.
    A small piece of code
    INSERT INTO ZORMD1 VALUES WA_ZORMD1.
        IF SY-SUBRC = 0.
          G_LOCAL1 = 0.
          MESSAGE S000.  " Data saved successfully and immediately call the popup
    CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
            EXPORTING
      DEFAULTOPTION  = 'Y'
    TEXTLINE1 = 'SUCCESSFULLY SAVED'
              TITEL = 'POPUP FOR conformation'
             START_COLUMN         = 25
             START_ROW            = 10
            CANCEL_DISPLAY       = 'X'
           IMPORTING
    ANSWER  = G_PRINT
    IF G_PRINT = 'J'.
    PERFORM PRINT_OUT.
    ENDIF.
    Do the modification according to your requirement.
    Cheers!!
    VEnk@

  • Some hyperlinks do not function with FF 29.0.1 vista

    OS VISTA
    Firefox ver. 29.0.1
    Some links on some websites (eg. www.change.org) do not respond when clicked. (Others do.)
    Some objects on these pages do not function (eg. "thermometer" progress bar and "Sign" button)
    Pages work under Internet Explorer. (copy from FF address bar to IE address bar)
    Site used to work under FF 28. Site did not work with FF 29.0.
    Still using same add-ons as with FF 28 except added The Add-on Bar.
    No prefs changed.
    OS fully up to date.
    Adobe software fully up to date.

    The sign button appears, but it isn't active for 30 seconds, at least in my test. The page loads scripts from several additional sites during that process.
    To determine whether any of your extensions is involved, could you test some of the problem sites in Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    Not all add-ons are disabled: Flash and other plugins still run
    After Firefox shuts down, a small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).
    Any difference?

  • Best strategy for working with popup dialog/PanelWindow (refbook)?

    In JD 11g I want selecting the value from reference book (which returned from DB). This reference book must show in popup dialog.
    I create bounded task flow with page fragment in which place the query filter and table with values for selecting.
    1. I inserted task flow as region in DIALOG component and place command button "OK" and "Cancel" into DIALOG buttons facet.
    Problem - I cant gain access to binding value (which contain ID of selected row) from fragments page definition.
    I try set the "Data Control Scope" value of task flow to "shared", but this did not help.
    2. I place command button "OK" and "Cancel" into page fragment and inserted task flow as region in panelWindow component. Now I cant gain access to binding value from fragments page definition (of course). But I cant auto-close the panelWindow after pressing buttuns on page fragment.
    Please help to solve a problem!

    Thank you for help, Frank!
    I have many reference books (reftables), which contains much records each (two columns - ID, TITLE). Also I have several tables (main tables), which refer to these reference books (maintable.ID_REF1 -> REF1.ID). On page, where I edit record from one of the main tables, i cant use simple LOV combobox, coz many records from reftable. Also I cant use ADF LOV input / ADF CHOICE LIST coz in input fields shows the ID of ref row (i want - the "title" column, bun cant do it). So I have solved to use the modal dialog / panel window in which include the region with reftable (coz each reftable may use in many page with edit of main tables).

  • Avoid popup dialog in smartforms

    hi all,
    i'm facing a problem, i want to avoid popup dialog in smartforms.
    i have set structure SSFCTRLOP-no_dialog = 'X'. but it still show popup dialog. did i miss something?

    Hi,
    I had the same issue, no need to set device to PRINTER since the underlying function module will default that if blank.
    On debugging the SMARTFORM function module.
    It turns out that the parameter USER_SETTINGS defaults to 'X', which will display the printer dialog popup.
    Changing this setting (USER_SETTING) to ' ' (SPACE) when calling the generated SMARTFORM function module as below then stopped the pop up appearing.
    (The actual issue is that the destination specified was being overwritten with *, so it was looking to the users settings for a printer. Normally LOCAL PRINTER, changing the user_setting to ' ' keeps the printer specified and no need for the printer dialog popup)
    * Get function module name
       CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
         EXPORTING
           formname           = i_formname
         IMPORTING
           fm_name            = l_fm_name
         EXCEPTIONS
           no_form            = 1
           no_function_module = 2
           OTHERS             = 3.
       IF sy-subrc <> 0.
         CASE sy-subrc.
           WHEN 1.
             RAISE no_form.
           WHEN 2.
             RAISE no_function_module.
           WHEN OTHERS.
         ENDCASE.
       ENDIF.
      CALL FUNCTION l_fm_name
         EXPORTING
           control_parameters   = i_ctrl_params
           output_options       = i_output_opts
          user_settings        = ' '                                        <--- *** Set this to SPACE ***
           t_line_items         = it_trolley_items
         IMPORTING
           job_output_options   = l_job_output_options
         EXCEPTIONS
           formatting_error     = 1
           internal_error       = 2
           send_error           = 3
           user_canceled        = 4
           OTHERS               = 5.
    This fixed the issue in my case, every case is different.
    Hope this helps someone, even though this is posted long after the original question.
    Thanks
    Jodh Atwal

  • Af:popup dialog width and height

    hi all,
    i want to know how to define popup dialog width and height.
    here is my code.
    <af:popup id="popup1" contentDelivery="lazyUncached"
    launcherVar="source" eventContext="launcher" >
    <af:dialog title="General Details - Standard Statement" type="none" id="AddInstDialog"
    inlineStyle="width:600px;height:400px">
    I do something like in above code.
    but it is not working.
    With Regards,
    WP

    add panelWindow
                          <af:popup id="popup5" contentDelivery="lazyUncached">
                            <af:panelWindow id="panelWindow5" title="Stop" modal="true" inlineStyle="width:369px;height:350px;">

Maybe you are looking for