How do you fire a button click event on apex page from fancybox iframe that was created by page

I am trying to fire off the button click event from fancybox iframe. The apex page has a button that launches a fancybox iframe which is loaded with an APEX form. On close of that fancy box, I am trying to fire a click event on the parent page which will refresh a div with html that is created with plsql. The button on the page works as expected when clicked from the page. It will show a debug alert message to prove it was called and then load the div with the correct data. I am unable to fire off this button click from the fancybox iframe when it closes.
A couple of points:
I using Plug-in: Execute PL/SQL Code and Return Content ("PLUGIN_MULEDEV.SERVER_REGION_REFRESH") to place the create fancybox statement. It is used to populate a div using plsql.
The name of the button on the main page is P2020_REFRESH_SECTION_BUILDER_BTN.
The click dynamic action on the button is calling the plugin to replace the html in the div.
The data in the form in the fancybox is being saved to the database. On close of the fancybox box I want to refresh the div so the new record is included in the div html.
Can anyone help. Here is the fancybox code:
  function customProcessOnReadyState4(){
    for (var i=0;i<11;i++){
      $( "#tabs"+i ).tabs();
      $("#createNewExerciseLink"+i).fancybox({
          ''width''         : ''60%'',
          ''height''        : ''70%'',
          ''autoScale''     : true,
          ''transitionIn''  : 200,
          ''transitionOut'' : 200,
          ''type''          : ''iframe'',
          ''onClosed''         : function() {
                                     window.parent.$(''#P2020_REFRESH_SECTION_BUILDER_BTN'').click();
Here are the dynamic actions assigned to the button:
5 - Execute JavaScript Code
alert("Starting refresh");
10 - Execute PL/SQL Code and Return Content [Plug-in]
begin
  SCTUI.create_sct_tabs2(:P2020_CREATE_SECTION_LOV, '1');
end;

user setActionListener...
<af:setActionListener from="#{bindings.XXX.inputValue" to="#{backingbean.variable}"
              <af:inputText value="#{bindings.Email.inputValue}"
                            label="#{bindings.Email.hints.label}"
                            binding="#{backingBeanScope.backing_ShuttlePage.it2}"
                            id="it2">
                <f:validator binding="#{bindings.Email.validator}"/>
              </af:inputText>
              <af:commandButton text="commandButton 2"
                                binding="#{backingBeanScope.backing_ShuttlePage.cb2}"
                                id="cb2" action="passing">
                <af:setActionListener from="#{bindings.Email.inputValue}"
                                      to="#{processScope.detail}"/>
              </af:commandButton>next jsf page:
            <af:outputText value="#{processScope.detail}"
                           binding="#{backingBeanScope.backing_ProcessScope.ot1}"
                           id="ot1"/>setPropertyListener also should work
<af:setPropertyListener from="#{bindings.Email.inputValue}" to="#{processScope.detail}" type="action"/>

Similar Messages

  • How to generate barcode on button click event in PDF using adobe livecycle?

    I already created form in PDF file which is validate completely .But , I required generate a barcode of all field of form using custom script on button click event.
    Please give me right way for doing it .
    Thanks in Advance,
    Jaydeep Solanki.

    Hi vijay,
    What project are you doing? Is it Asp.Net project? If so, you'll need to post it in the dedicated ASP.Net Forum
    http://forums.asp.net  for more efficient responses, where you can contact ASP.NET experts.
    Have a nice day!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to listen for actionContent button click event in View

    Hello,
    Doing this:
    FlexGlobals.topLevelApplication.addEventListener('actionContentClick',showOptions);
    Results in calling showOptions() as many times as the view was showed. The handler sticks and each time I enter a view in the creationComplete hander for it I add the same listener over and over again.
    How should this be done?
    1. FlexGlobals.topLevelApplication is the right object to listen to?
    2. I can remove the listener on view deactivate, but I am not sure if that will be called each time the view goes away.
    3. Can I check if an object already has a listener and which is it?
    Thank you.

    Thank you, Tom.
    I was complicating things for myself by exposing methods in the main MXML file to add and remove and listen to click events on a button placed in the actionContent, instead of declaring it in MXML for each and adding a listener to it. Views had different actionContent buttons or rather icons for them.
    In regards to hasEvenListener, can I also get the method(s) attached to that? Probably not though.

  • How do I catch the button click event from toolbar for my JSP?

    I am using JDev 3.2 and BC4J for my JSP. I am using data web bean methods to create my JSPs. I need to implement a
    master-detail relation in my JSP. Currently I put my master browser as the top frame of JSTabContainer bean and put my
    6 detailed tables into 6 tabs. I found that when I click the next or previous button of toolbar of master frame, the detail tab
    does not display the corresponding detail data properly. I think the reason is that I did not refresh the tab content when
    the user change the current record of master table. Now my question is that how do I catch those events so that I can
    refresh the content of my detail table? Or whatever suggestion can make this work.
    Thanks,
    Lisa

    You posted here with Firefox 17.0.1.
    Try running a Norton Live Update so Norton can update their Firefox add-on and get that Toolbar working again.
    That said, Norton doesn't do anything about Malware. You need a Malware application to locate and remove Malware.
    Install, update, and run these programs in this order. They are listed in order of efficacy.<br />'''''(Not all programs detect the same Malware, so you may need to run them all to solve your problem.)''''' <br />These programs are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
    ''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    Windows Defender: Home Page - [http://windows.microsoft.com/en-US/windows7/products/features/windows-defender]<br />
    Also, if you have a search engine re-direct problem, see this:<br />
    http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
    [http://www.spywarewarrior.com/index.php] <br />
    [http://forum.aumha.org/] <br />
    [http://www.spywareinfoforum.com/] <br />
    [http://bleepingcomputer.com]

  • HOW TO CALL APPROVAL WORK FLOW ON BUTTON CLICK EVENT OF VISUAL WEB PART?

    Hiall,
    I created an OOB an approval work flow I want to start that approval work flow through visual web  part button click event
    In work flow Settings I selected to manually start .Is this possible ? if possible please guide me how to do this
    Thanking you,
    Arun  kumar

    Hi,
    If you have an instance of SPListItem, and know the workflow association name, you can start it. First you need to find workflow assocation instance and tell SPSite.SPWorkflowManager to start your workflow.
    See this for more information:
    http://blog.mmasood.com/2012/06/programatically-start-workflow.html
    Please remember to up-vote or mark the reply as answer if you find it helpful.

  • How to call elem. Search help on Button click event in WD appilcation

    Hello All,
    i have requirement to call elem. search help on button click event in WD application. currently i am calling FM  F4IF_START_VALUE_REQUEST but getting the short dump as below,
    The following error text was processed in the system X31 : Screen output without connection to user.
    The error occurred on the application server saps_X31_31 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    SYSTEM-EXIT of program SAPLSDH4
    Function: F4_PRESEL_WITH_TABSTRIP of program SAPLSDH4
    Form: F4PROZ_STEP_PRESEL of program SAPLSDSD
    Function: DD_SHLP_SINGLE_STEP of program SAPLSDSD
    Form: F4PROZ_LOOP of program SAPLSDSD
    Form: F4PROZ of program SAPLSDSD
    Function: F4IF_START_VALUE_REQUEST of program SAPLSDHI
    Method: ONACTIONSEARCH_CUSTOMER of program /1BCWDY/50TU5ZEXF3K0IWCWE153==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/50TU5ZEXF3K0IWCWE153==CP
    Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
    is there any way to achieve the required behaviour.
    please let me know.
    Regards,
    Chandra

    Hi Friends,
    I have the similar kind of requirement. Upon click on a Button on screen i need to call a search help, and collect one or more selected material numbers.
    The search help is working fine and i am getting the entries with the following code.
    The problem is i am finding extra popup on screen.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    tabname         =  space
    fieldname       =  space
    SEARCHHELP      =  'MAT1'
    MULTIPLE_CHOICE =  'X'
    STEPL           =  0
    value           = 'MATNR'
    *dynpprog        =  progname
    *dynpnr          =  dynnum
    *dynprofield     = 'CARRIER'
    CALLBACK_PROGRAM          = 'ZTEST_1_PRA'
    CALLBACK_FORM             = 'F4CALLBACK'
    TABLES
    RETURN_TAB                = RETURN_TAB
    EXCEPTIONS
    FIELD_NOT_FOUND           = 1
    NO_HELP_FOR_FIELD         = 2
    INCONSISTENT_HELP         = 3
    NO_VALUES_FOUND           = 4
    OTHERS                    = 5.

  • How can you make one button preform different actions in Xcode?

    How can you make one button "preform a click" and "orderfront"? Is that possible? Because what I am doing is making a welcome window to my application for Mac OS X 10.6, and I have two buttons in that window, one says "Connect" which connects a a WebView to a url and the other button opens up the main window. So how can I a make a button do multiple things at once??

    Ah - If you are just using bindings between various objects from Interface Builder, you can reduce your application code a bit (sometimes quite a bit), but there is only so far you can go. Typically variables and routines are defined in your application that Interface Builder hooks into, so that your application code (usually Objective-C, but can be others) can use these variables and routines to determine what is happening in the user interface.
    I'm not sure how up-to-date the project code is (or what programming code you are familiar with), but you can take a look at Apple's Cocoa Application Tutorial to see what is (usually) involved in creating an application.

  • How do you change the color of events on ICal.

    How do you changed the color of events on ICal? I was able to do this when I utilized ICal on the Snow Leopard system but can no longer do this with Lion.
    I know that I can select the Calanders list, but when I create a new "Calander" it doesn't allow me to choose a color and it doesn't show up in my list when working within an event.
    Thanks!

    Phoebe,
    Right-click on the new calendar and select "Get Info."
    Make sure that the ✓ mark is selected.
    Then choose the color from this pane:

  • Sharepoint 2010 Custom Visual Webpart button click event firing on page refresh

    I have developed a Visual Webpart to create a list in SP using vs2010 and  the button click event I have written the list create method. If I click the button list is created successfully.  And I refresh the page again list is creating(Again button
    click event is triggering).please help me to solve the issue.
     protected void Button1_Click(object sender,
    EventArgs e)
                SPWeb web
    = SPContext.Current.Web;
                //SPList list=web.Lists["Auto"];
                SPList list
    = web.Lists[DropDownList2.SelectedItem.Text];
                if
    (string.IsNullOrEmpty(TextBox1.Text)
    || string.IsNullOrEmpty(DropDownList1.Text))
    Label4.Text =
    "Fields Are Empty";
                else
    if (DropDownList1.SelectedItem.Text
    == "Single line of Text")
                    list.Fields.Add(TextBox1.Text,
    SPFieldType.Text,
    true);
    SPView viewname = list.Views["All Items"];
                    viewname.ViewFields.Add(TextBox1.Text);
    //viewname.Update();
                    list.Update();
    Label4.Text =
    "Field Created Successfully";
    TextBox1.Text =
    string.Empty;
    // Label4.Text = string.Empty;

    Hi,
    This is because the request is sent to the server when you refresh the page.
    A workaround for this is that we can “provide a refresh link that redirects to the same page (or if you have some action causing the refresh programmatically, you could just
    redirect to the page after that, with Response.Redirect)
    so that page is requested by the browser (with GET method, default with hyperlinks)”.
    More information:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/45648b39-1229-405c-ac9e-60eb82905982/click-event-getting-fired-on-page-refresh
    Or we can use the Session to save a value which used as a flag for us to check whether it is a page refresh and perform accordingly.
    http://www.codeproject.com/Articles/28099/Refresh-Page-Issue-in-ASP-Net
    http://www.codeproject.com/Articles/10240/Detecting-Page-Refresh
    Thanks
    Patrick Liang
    TechNet Community Support

  • Capturing navigation button click event

    Hi,
    Is it possible to capture the navigation button click events on a system form?For example when the goods receipt form is open and i click on navigation button on the tool bar.
    Can help with some sample codes?
    Thanks.
    Satish.

    Hi,
    Here you´ve got an example from the UI API help file.
    Private Sub SBO_Application_MenuEvent(pVal As SAPbouiCOM.IMenuEvent, BubbleEvent As Boolean)
        If pVal.MenuUID = "1288" Or _
            pVal.MenuUID = "1289" Or _
            pVal.MenuUID = "1290" Or _
            pVal.MenuUID = "1291" Then
          If pVal.BeforeAction = False Then
              Select Case pVal.MenuUID
                '// Under the If clause, check each item if it was clicked
                Case "1288"
                    oRecordSet.MoveNext
                    '// If reached EOF show last
                    If oRecordSet.EOF = True Then
                        oRecordSet.MoveLast
                    End If
                Case ...
                End Select
            End If
        End If
    End Sub
    To know the current form, you can use the ActiveForm property.
    Regards,
    Ibai Peñ

  • FileDialog.SAVE: trap the "Save" button click event

    Hello All
    Can anyone help me with FileDialog.SAVE, as to how we could trap the Save button click event? Is it possible to actually trap that particular event, rather than just checking for FileDialog.getFile() == null -> which indicates that "Cancel" button was selected.
    Any help would be highly appreciated
    Regards
    Naushin

    You can not do this, because FileDialog uses native dialog and all
    buttons on it are native (there are no java-components for them).
    Thus checking FileDialof.getFile() for null is only way to figure out
    whether user choose some file or not.

  • How do you reposition photos within an event

    How do you reposition photos within an event? I've tried dragging them over to the spot I want them in, but they do not stay where I put them. Yet, when I want to reposition photos within albums I have made, they drag over without a problem.

    cynthiafromfreehold wrote:
    How do you reposition photos within an event? I've tried dragging them over to the spot I want them in, but they do not stay where I put them. Yet, when I want to reposition photos within albums I have made, they drag over without a problem.
    That is correct - events are basic and time based and photos can not be manually moved within them - albums are logical grouping and photos can be moved manually - that is exactly how it works
    LN

  • How do you set a button to unselectable?

    How do you set a button so it us unselectable?

    ... or even remove ot form the panel (less confusing for the client)
        if(e.getSource()==button1){
            // do things and
            myPanel.remove(button1);
            myPanel.add(newInterestingButton);
    }OR: use a boolean
         if(e.getSource()==button1){
            if(allowUseButton1){
               // do things and set the condition false
               allowUseButton1 = false;
            }  // and tell them
            if(!allowUseButton1){
               myTextArea.setText("Please use the newInterestingButton");

  • How do you highlight iHelp Buttons and List Applet fields

    How do you highlight iHelp Buttons and List Applet fields? I've followed all the steps in the Bookshelf but it seems like buttons and list applet fields do not highlight. The highlight feature only seems to work in form applets. Is this a known issue? Are there workarounds for this?
    Thanks
    Bernhard
    Edited by: Bernhard on Dec 12, 2011 2:06 PM

    Bernhard
    I remember that colors of single list applet fields cannot be changed, since the whole list is regarded as one "control" itself. It works for single fields in form applets (as you said) but not in list applets. There is a document in MyOracleSupport pointing this out, but at the moment I can't find it.
    Regarding iHelp Buttons I have no idea.

  • How do you drag and drop samples in the ex24 on pro x now that the edit button next to the option tab is no longer there?

    how do you drag and drop samples in the ex24 on pro x now that the edit button next to the option tab is no longer there?

    Well, it's aggravating seeing foolish limitations to the program. Having some experience in education, offering a professional program in a limited version is condescending to the user and has never been proven to help students move forward. Plus, some of the choices made to keep Logic simple are confounding... "removing the edit button on the EXS24"?  That's silly!  

Maybe you are looking for

  • Trouble converting Word 2003 document

    I must be doing something wrong.  It seemed simple enough to convert a simple Word 2003 document to PDF.  When I go to open the PDF file in Word, up pops a window "select the encoding that makes your document readable: (choices are) windows (default)

  • Oracle JSP engine on Apache

    Hi, We have Apache Web server 1.3.9 and Jserv 1.1b3. On top of this, we have installed Oracle JSP engine. We have put the names of all the required jar files and directories in jserv.properties file. But, when we try to access any jsp files from a br

  • Transfer of photo from phone / camera to iPad

    When i connect the HTC phone or my Samsung camera to the iPad by the camera connection kit, I get the message: Accessories are not available. Accessories connected use too much power. What is wrong?

  • Document attachment functionality

    Hi all I am trying to explore document attachment functionality in SAP EHS. I am successful with Work Areas and Incident/Accident Management. I wish, if some body can help with document attachment functionality with risk assessment module in EHS. Reg

  • Help wih masking

    I need help with a masking problem. When i try and mask a new line, as shown in the flash video bellow, the previous masking layer will over mask the new line. How can i stop this from happening and is their an easier way to do this. I have never use