Contextual Event for a Button in Dialogue (inline popup)

I have dialogue(in-line popup window) which opens on click of button "viewPopUp" in parent window.
I have a table and "select" button inside dialogue. I have contextual event created for this button inside child wondow.
It never works for me. Its not calling the event handler method. But, If I add a contextual event for the button "viewPopUp" on the parent page works fine.
Anybody faced similar issue?
Any idea or tips to get it work?
Edited by: sideeque on Sep 17, 2011 11:08 PM
Edited by: sideeque on Sep 17, 2011 11:09 PM

I use JDeveloper 11.1.1.5. I might be doing something wrong here. Do you have the sample code to share and test in JDeveloper 11.1.1.5? Is it running for you in JDeveloper 11.1.1.5 version?

Similar Messages

  • Writting Events for TableView Buttons

    Hi SDN,
    I created a table view in a jsp dynpage which has one of the columns type as button.i got it by using "setColumnType" attribute of tableview.
    now i want to fire server and client events onclick of those buttons.how to achieve it? can we write client and server events for those buttons as like normal buttons.
    if yes tell me how and where to write?
    explain me with example (coding) if possible.
    Thanks & Regards,
    Art.
    /points will be rewarded/

    Hi Subathra,
    Thank you for ur reply.i know that we can achieve it using "setOnCellClick " but i want to know whether we can use the normal attributes of a button for this button placed in a cell of a tableview.
    if yes how to use it.is there any relation between cell renderer attribute and my requirement.
    <b><u>Note:</u></b>
    you can share ur ideas about other components also which can be used in a tableview (inputfield,link,image...) and writting events for those components.
    Thanks & Regards,
    Art

  • How the PCUI event for export button works?

    Hi All,
    After get the order search result in PCUI, when I click the Export button.
    It show me the message that : Microsoft office 2003 or higher is not installed on your computer.
    In fact, I have the office 2003. And I found that the event for Export button is PCF_DL_EXPORT.

    Have you tried double-clicking on the auto complete component in the designer? You should be taken to a method like "autocomplete1_complete". This method is called when the autocomplete gets focus and also for each character typed in the field.
    Cheers!
    -David

  • How to add a new button in IC tool bar and handle the event for the button?

    Hi,
        I am working on CRM 2007 Interaction center. To add a new button to IC toolbar, customizing is available to define a new button and then assign in to the profile.
    In SPRO->CRM->IC webclient->Customer Specifc System Modifications->Define Toolbar Buttons, I defined one new button with ID ZSTART.
    Now in SPRO->CRM->IC webclient->Basic Functions->Communication Channels->Define Toolbar Profiles , I selected Default profileid and in Generic Layout Buttons Tab, I added the new button ZSTART in Position 3.
         So after completing the customizing when the user logs in using role IC_AGENT,  the button (with ID:ZSTART) gets displayed in the IC toolbar too.
          Now on click of this button, I need to create an object.
    To do so, I have to catch the event which is raised by this new button.
           Please let me how to implement the event handler for this new button. What will be the event name for this button click event and how I can subscribe for it ?
         Please let me know if anyone of you have already worked on similar requirements.
    Regards,
    Manas.
    Edited by: manas sahoo on Jul 22, 2008 7:49 PM

    Hello Manas,
    There are a couple of threads in the community that might help you out (if you haven't already found them):
    Re: IC Web Client Toolbar
    /message/3621917#3621917 [original link is broken]
    Regards,
    Renee Wilhelm
    Edited by: Renee Wilhelm on Nov 6, 2008 7:46 PM

  • Event for a Button

    Hi, Im principiant and i need to asign a event to a Button.
    I want when i clicke de button the text in a etiquete go to an area panel.
    Somebody can help me?
    Thanks

    something like the following.
    TextArea area = new TextArea();
    Button myButton = new Button("click me");
    myButton.addActionListener(this);
    public void actionPerformed(ActioneEvent E){
    area.setText("text to be displayed");
    }

  • OnClick event for a button

    hi! i did up a form using the wizard and added an extra button besides the usual update,reset etc.
    i need the onClick event of the extra button to call up a pl/sql procedure, pass in a parameter and ideally open up the report/chart in a new window and without the toolbars etc.
    i tried the following:
    phang.aresulttally?qid_p='QUESTION_RESULT.MASTER_BLOCK.QID.01.value'
    where QUESTION_RESULT.MASTER_BLOCK.QID.01.value is a text box value from the form.
    It gives me some scripting error when i run the form.
    but if i use the following:
    phang.aresulttally?qid_p=2
    it works and opens in a new window?!
    pls advise.
    thx

    For the onClick javascript event of the new button, call your own javascript function as:-
    myFunc(this);return;
    Then, you need to generate this javascript function using pl/sql in the Additional pl/sql Section - ... before displaying the page or ... after displaying the page.
    The code to get the value of a field and to open a new window would look something like :-
    htp.p('
    <script>
    function myFunc(ele)
    var l_form = ele.form;
    var win;
    var val;
    var l_url = "<url>?";
    for (var i = 0; i < l_form.length ; i++){
    if (l_form.elements.name == "QUESTION_RESULT.MASTER_BLOCK.QID.01"){
    val = l_form.elements[i].value;
    l_url = l_url+val;
    win=window.open(l_url);
    </script>

  • How to Handle Events for JOptionPane buttons?

    Hi All,
    I need a help...
    I am trying to develop a simple SWING application that consists of multiple elements (mainly text fields) and a Submit button. On pressing Submit button, it should validate all the fields and then do something else. But if some fields are left blank, then it should give a pop-up message and on clicking the OK button on the pop-up message, the focus should go to that text field which is left null.
    The problem is I am not able to understand how to Capture this OK button click-event of the pop-up message. I mean how to do something when the OK/Cancle button of the pop-up window is clicked.
    Please Help me.
    Thanks in Advance,
    Ujjal

    As already pointed out, JOptionPane has some static methods which show a dialog, and return an int, or a string. The whole point of this class is to remove the need for any event handling by the developer, that is, you simply call the showDialog method or whatever, and it returns a value telling you, for example, which button was pressed - no need for action listeners at all. The result of the showDialog method (or whichever you use) tells you which button was pressed. Check the javadocs for JOptionPane for details of several constants that indicate which button was pressed
    The class exists to make simple dialogs trivial to generate - you're overcomplicating things!

  • Triggering PAI event for Radio button

    Hi Experts,
      In module pool programming, I create 2 radio buttons, namely fileins and tableins, and they have been grouped. But while running, change of radio button doesn't trigger PAI event. Is there any possiblity to trigger PAI without ENTER key pressing.
    Thanks and regards,
    Venkat

    Hi
    U need to assign an ok_code to the radiobutton, in this way it'll be like a pushbutton and the pai will be triggerd as soon as it'll press it.
    Max

  • Can a program a double click event for a button in Flash Catalyst?

    I currently have a button programed in FC with a single click. I would like the exact same behavior to happen whether there is a single or double click on the same button.
    Is there a way to do this in FC? If not can I pull it into another program to edit the code?
    Thank you!
    Sarah

    Thanks for letting me know.
    Unfortunatly it looks like I can't upgrade unless I upgrade my whole suite, which is a bummer. We just spent a small fortune on upgrading everyone from CS3 - SC5. I will have to check with our account rep, but I doubt I can get another software update approved this year. Maybe next.
    Thanks again Chirs!

  • Event for browse button for fileupload control

    I'm creating an application, where I need to check which file is choosen for the file-upload. Depending on the file upload, 2 other fields will be filled in because the filename is concerning a certain standard.
    Can I do this with javascript for example without needing to post my page.
    Any help would be most welcome

    You can do this with javascript.
    var fileName = document.getElementById('fileUploadComponentId').value;
    if (fileName.substring(fileName.indexOf('.' + 1)) == 'ext') {
        // the extension is "ext".
    } else {
        // the extension is not "ext".
    }

  • Contextual event - handler called before producer bean's setter

    I am trying a simple contextual events usecase:
    Page A.jsff has an input text field whose value is directly stored in a bean variable (bean is in pageFlowScope). Contextual event is defined on value change event for this input field. A.jsff has taskflow B_btf as an embedded region.This B_btf will simply display the value entered in the A.jsff. So, when contextual event is raised, the handler sets the value in a local variable of B_btf bean. The problem is that the handler method is getting called before the setter for the attribute of the bean of A.jsff. This is resulting in the B_btf displaying the last-but-one value entered in the input field of A.jsff instead of the current/latest value. Any tips?
    Thanks,
    Amitabh

    The issue was with the (lack of) understanding of the JSF lifecycle. The value change listener is called during the Process Validation phase, whereas the managed bean (Model) values will be set in the Update Model phase which lies next-in-line after Process Validation phase. Hence, if the value change listener is to be used, then the handler code should have used the default payload and not the custom payload. For a value change event the default payLoad will be a DCBindingContainerValueChangeEvent, and one can invoke getNewValue() to get the value entered in the text field (For details watch Frank Nimphius' video here: ADF Region Interaction - Contextual Events - YouTube). For my case, I added a command button to the page, and moved the contextual event to that button.

  • How to publish contextual event from dynamic region

    Hi Experts, plz help.
    Scenario :
    I have a page , say Page A.
    I have two bounded task flows, say HeaderTF and LinesTF.
    HeaderTF is placed as a static Region in page A and LinesTF is a dynamic region in page A.
    LinesTF has a table with Amount Column.
    HeaderTF has a text field which shows the total of amount column.
    Requirement :
    when user adds new rows or changes existing rows or deletes any rows in LinesTF, total field in HeaderTF should be updated.
    On change of amount value in lines, I am calculating and updating the total attribute of header VO as all of them are sharing same DC.
    but the value is not reflecting becos partial triggers cannot be kept for total field.
    So I am using contextual events.
    I created a contextual events for amount field, delete button and table as well (In LinesTF).
    and I created handler method in AM which calculates total and dragged it as a text field in HeaderTF.
    Now when I am trying to subscribe from pagedef of pageA, i am able to find the handler which is created in HeaderTF but could not find any contextual events in event lov.
    Question :
    1. Is my approach correct?
    2. Cant we publish contextual events from dynamic regions?
    3. Is there any alternate way of achieving this?
    I did not try refreshing HeaderTF by passing input params because I dont want the entire region to be refreshed.

    Try creating the event mapping - please see "28.7.2 How to Create Contextual Events Manually" in Dev Guide http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/web_adv.htm#CACJBFGI

  • Taskflow as inline popup causes issues while returning..

    Hi,
    I am using 11gr1p1. I have an ADF application where I have a bounded taskflow I call as inline popup. And in the popup I return from the taskflow ..
    Everything works fine when I launch my app within JDeveloper or when I launch it directly.
    It fails when I call the ADF application from a different web page by opening it in a new window. In this case when I click the button in the inline popup to return from the taskflow I got an error in the IE's log as below..
    Line :1
    Char:86
    Error : Access is denied.
    Any help will be great, we spent quite a time to make this work ...
    Test page to launch the ADF app
    <html>
    <head>
    </head>
    <body>
    <div >
    <p ><a href="http://msoyerxp:7101/PopupTest-ViewController-context-root/faces/adf.task-flow?adf.tfId=tf-main&amp;adf.tfDoc=/WEB-INF/tf-main.xml" target="_blank" > Test </a></p>
    </div>
    </body>
    </html>Main taskflow
    <?xml version="1.0" encoding="UTF-8" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="tf-main">
        <default-activity id="__1">MainPage</default-activity>
        <view id="MainPage">
          <page>/MainPage.jspx</page>
          <redirect/>
        </view>
        <task-flow-call id="tf-popup">
          <task-flow-reference>
            <document>/WEB-INF/tf-popup.xml</document>
            <id>tf-popup</id>
          </task-flow-reference>
          <run-as-dialog>
            <display-type id="__7">
              <inline-popup/>
            </display-type>
          </run-as-dialog>
        </task-flow-call>
        <control-flow-rule id="__2">
          <from-activity-id id="__3">MainPage</from-activity-id>
          <control-flow-case id="__5">
            <from-outcome id="__6">Popup</from-outcome>
            <to-activity-id id="__4">tf-popup</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
        <visibility id="__8"/>
      </task-flow-definition>
    </adfc-config>Task flow that I call as inline popup
    <?xml version="1.0" encoding="UTF-8" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="tf-popup">
        <default-activity id="__1">PopUpPage</default-activity>
        <view id="PopUpPage">
          <page>/PopUpPage.jspx</page>
          <redirect/>
        </view>
        <task-flow-return id="taskFlowReturn1">
          <outcome id="__17">
            <name>taskFlowReturn1</name>
          </outcome>
        </task-flow-return>
        <control-flow-rule id="__20">
          <from-activity-id id="__21">PopUpPage</from-activity-id>
          <control-flow-case id="__22">
            <from-outcome id="__24">Return</from-outcome>
            <to-activity-id id="__23">taskFlowReturn1</to-activity-id>
          </control-flow-case>
        </control-flow-rule>
        <visibility id="__8"/>
      </task-flow-definition>
    </adfc-config>Main Page
    <f:view>
        <af:document id="d1">
          <af:form id="f1" targetFrame="_self">
            <af:panelSplitter orientation="vertical" splitterPosition="50" id="ps1">
              <f:facet name="first">
                <af:panelFormLayout id="pfl1">
                  <f:facet name="footer"/>
                  <af:commandButton text="Open Popup" id="cb1" action="Popup" useWindow="true"
                                    windowEmbedStyle="inlineDocument" windowHeight="300"
                                    windowWidth="400"/>
                </af:panelFormLayout>
              </f:facet>
              <f:facet name="second">
                <!-- id="af_one_column_header_stretched_with_splitter"   -->
              </f:facet>
            </af:panelSplitter>
          </af:form>
        </af:document>
      </f:view>Popup Page
    <f:view>
        <af:document id="d1">
          <af:form id="f1">
              <af:panelSplitter orientation="vertical" splitterPosition="50" id="ps1">
                <f:facet name="first">
                  <af:commandButton text="Return1" id="cb1" action="Return" partialSubmit="true"/>
                </f:facet>
                <f:facet name="second"/>
              </af:panelSplitter>
          </af:form>
        </af:document>
      </f:view>

    That is the problem actually. When I run the link directly it works fine. But I need to launch the ADF application from a non-ADF app which is not hosted on WLS.
    The scenario above was just to simplify the problem...
    Is there any security settings etc that may cause this ?
    Thanks

  • How to click several buttons at once on Popup Message

    hello
    I have been creating 5boutons on Popup Message [ "Can1", "Can2" .....] and that we can click once to execute the programm eg Can1Sequence or Can2Sequence.
      I 'like to know if it is possible to click on two buttons at a time that is to say can click the same button twice or clicking two different buttons and can execute both programs in parallel.

    Dennis_Knutson a écrit :
    Why aren't you using either the batch or parallel model? The gui for either allows you start one or more threads. There are some examples that come with TestStand. There is even one called OverrideSerialNumForBatchModel where the PreBatch callback is used. This can be modified to pop up your own dialog.
    how was that during the execution of the test we have the opportunity to press two buttons below there is a picture. For 5 buttons I have used Popup Message at this time and can not be as pressing a button (so when I press a button the image disappears below and choose Test to execute).
    at this time I ask myself if this is possible with Message Popup.
    if possible I'd like as after the second stage with two "Sequence Call" to call the respective functions (that is to say if it was based on CH1 and CanX, then Can1Sequence functions and Can2Sequence be delivered). I will like to use Parallel execution.
      "OverrideSerialNumForBatchModel" is difficult for me, because I do not know if it will be possible with what I have just described, and I do not understand how its function
    Attachments:
    Select Can.PNG ‏11 KB

  • Inline popup sending contextual event to calling taskflow?

    Is it possible?
    Because of the returnListener not firing consistently, I was thinking of using contextual events. I am not sure, however, if that will work.
    11.1.1.4
    Basically I have a link, opens an inline popup to display a task flow as JSPX. Upon clicking on the okay button there, I want to fire an contextual event back to the
    parent to refresh it's data.

    Hi,
    yes, this should work because the calling task flow also remains active
    Frank

Maybe you are looking for