Button(in parent) click from popup component

the popup window add some data.
after finish the job the popup window closes.
right after the popup window closes I want to call click event(like btnList.click() in javascript)
any ideas?
Thanks.

Hi ltambs,
Make use of the ExternalInterface API to call your javascript function once your popup is closed.
//In ActionScript
private function closePopUp():void
     PopupManager.removePopUp(this);
     ExternalInterface.call("yourJavaScriptFunction");
//In HTML wrapper your JavaScript
function yourJavaScriptFunction()
     alert(" JavaScript Function Called...");
Hope this is what you're looking for...If not please elaborate on this...
If this post answers your question or helps, please kindly mark it as such.
Thanks,
Bhasker Chari

Similar Messages

  • Call functions in parent(?) from popup window(?)

    I'm not sure the terms parent or window in flex 4.
    I want to call functions in parent from parent window.
    it seems to be hard.
    Help me please.
    Thanks in advance.
    ========================== index.mxml ==========================
    (root element : <mx:Application> - xmlns:mx="http://www.adobe.com/2006/mxml")
    has Main.mxml in it
    ========================== Main.mxml ==========================
    (root element : <s:NavigatorContent> - xmlns:s="library://ns.adobe.com/flex/spark" )
    public function functInMain():void
    //do something
    protected function dataGrid_itemDoubleClickHandler(event:ListEvent):void
    var arr:ArrayCollection = event.currentTarget.dataProvider;
    var titleWindowInstance:Popup =
      Popup(PopUpManager.createPopUp(this,
       Popup,
       true));    
    titleWindowInstance.rowData =  arr.getItemAt(event.rowIndex);
    PopUpManager.centerPopUp(titleWindowInstance); 
    ========================== Popup.mxml ==========================
    protected function buttonClickedInpopup():void
    Application.application.parentDocument.functInMain(null);//<<- here I want to correct

    Thanks.
    Your callback function works ok
    why calling public functin won't work?
    here are neet examples.
    index.mxml : front page
    SearchEvents.mxml : inside index.mxml
    UpdateEvent.mxml : poped up from SearchEvents.mxml
    ========index.mxml===========
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application pageTitle="CA Management"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:i="test.*"
        width="100%" height="100%" creationComplete="application1_creationCompleteHandler(event)" >
    <mx:Script>
      <![CDATA[
       import mx.events.FlexEvent;
       protected function application1_creationCompleteHandler(event:FlexEvent):void
        myViewstack.selectedIndex = 0;
      ]]>
    </mx:Script>
    <mx:ViewStack width="100%" height="100%" id="myViewstack">
        <s:NavigatorContent id="EventManagement" label="Event Management"><i:SearchEvents x="0" y="0"/></s:NavigatorContent>
    </mx:ViewStack>
    </mx:Application>
    ========SearchEvents.mxml=========
    <?xml version="1.0" encoding="utf-8"?>
    <s:NavigatorContent xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/mx" 
         x="113" y="163"  
         height="100%" width="750">
    <fx:Script>
      <![CDATA[
       import mx.collections.ArrayCollection;
       import mx.controls.Alert;
       import mx.events.FlexEvent;
       import mx.events.ListEvent;
       import mx.managers.PopUpManager;
       import mx.rpc.events.ResultEvent;
       public function parentFunction(param:String):void{
        Alert.show("parent function called with " + param);
       protected function btnSearch_clickHandler(event:MouseEvent):void
        var titleWindowInstance:UpdateEvent =
         UpdateEvent(PopUpManager.createPopUp(this,
          UpdateEvent,
          true));    
        PopUpManager.centerPopUp(titleWindowInstance);
      ]]>
    </fx:Script>
    <s:Button x="637" y="70" label="Popup" id="btnSearch" click="btnSearch_clickHandler(event)"/>
    </s:NavigatorContent>
    ========UpdateEvent.mxml=====
    <?xml version="1.0" encoding="utf-8"?>
    <mx:TitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        xmlns:incl="incl.*"
        showCloseButton="false"
        title="Update Event" width="432" height="500"
        xmlns:subscription="services.subscription.*"
        xmlns:core="services.core.*"
        horizontalAlign="left" xmlns:vo="vo.*"
        >
    <fx:Script>
      <![CDATA[
       import mx.core.Application;
       protected function parentFunctionCall(event:MouseEvent):void
        Application.application.parentFunction("param from popup");
      ]]>
    </fx:Script>
    <fx:Script>
      <![CDATA[
       import mx.collections.ArrayCollection;
       import mx.controls.Alert;
       import mx.controls.dataGridClasses.DataGridColumn;
       import mx.core.Application;
       import mx.events.FlexEvent;
       import mx.formatters.*;
       import mx.managers.PopUpManager;
       import popup.*;
       [Bindable] public var rowData:Object ;//to get the parent row
      ]]>
    </fx:Script>
    <s:Button label="parentFunctionCall" id="btnPar" click="parentFunctionCall(event)"/>
    </mx:TitleWindow>

  • Update cfdiv in Parent Window from popup window

    I need help trying to update a cfdiv in the parent window
    from a popup window.
    The parent window displays a color (red by default)
    The popup gives you a radio selection which would let you
    select a different color.
    I need to have this submit button update the cfdiv called
    "main" in the parent window by lby displaying the corresponding
    color AND I want this window to hide.

    <!--- POPUP.CFM --->
    <cfif NOT structkeyexists(form, 'color')>
    <cfform action="popUp.cfm" method="post" name="form1">
    <cfinput type="radio" name="color" value="red"
    required="yes">Red
    <cfinput type="radio" name="color" value="blue"
    required="yes">Blue
    <cfinput type="radio" name="color" value="green"
    required="yes">Green
    <br />
    <cfinput type="submit" name="submit" value="submit">
    </cfform>
    <cfelse>
    <script type="text/javascript">
    updateColor(<cfoutput>'#form.color#'</cfoutput>);
    </script>
    </cfif>
    <!--- MAIN PAGE --->
    <!--- Add this js function to the HEAD section of the
    page: --->
    <script type="text/javascript">
    updateColor = function(color){
    document.getElementById('main').innerHTML = color;
    ColdFusion.Window.hide('mywindow');
    </script>
    hth
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

  • Tab focus progressing to parent window from popup

    Hi,
    I am using JDeveloper 11.1.1.7.0 version.
    I have a bounded task flow with .jsff fragments and I am trying to call another bounded taskflow(with .jspx files) as "Run As Dialog" from this taskflow.
    Here I am able to set initial focus to the required input element using <af:document> tag's "initialFocusId" property. Up to this, it is working fine.
    When I tried to tab, cursor is moving to next fields as expected. But after completing all the fields and buttons in the popup, tab focus is progressing to the parent window links and buttons.
    Is there a way to block the cursor progression to parent window and make it to rotate within the popup window.
    Thanks,
    Gopal.

    This is a bug in ADF Framework. Filed a bug with ADF Framework and they have accepted this as a bug.
    I'll update this post once I get the resolution from ADF team.

  • Visual Composer : Sending a signal from popup to iview

    Hello,
    I would like to refresh a table in a parent iview from popup iview. I think about a timer. What Can I do that ? Do you have a good example or can you explain in details the process ?
    Best regards,
    Aurélien

    Hi Aurélien,
    you have to use a timer. Connect the timer with a dataservice which refreshes your value, e.g. in a table. Then return from your popup a value,e.g. into a field. Define a guard condition to the timer so that it will be fired, when you return the certain value. Your data service must change the value from your popup so that the timer fire the event once.
    Best Regards,
    Marcel

  • How to call parent view event or method from popup in java webdynpro

    Hi ,
    I have  view  in my webdynpro component. I created a  button, when i click i am opening  a popup window.
    In side  popup window i am doing some search criteria. I want call a parent view method from popup window and populate search results in parent view table control.I can able to pass the data through context mapping. But i want  a  custom method where i want  to write a code to populate the table control ( i don;t want  to use the wdDoModifyView() method).
    Please help me.
    Thanks
    Aravinda

    Hi,
         The methods in a view are only accessible inside same view. you cannot call it outside the view or
         in any other view although its in same component.
         If you want to have a method in both views, then create the method in component controller and
         from there you can access the method any where in whole component.

  • In the Firefox browser, when i click button in ADF page, then popup  the OAF page in iframe tag,and then when i  click the PPR bean in  OAF page, then Firefox  browser reload to ADF page. This is not the right response,browser should not reload the ADF pa

    In the Firefox browser, when i click button in ADF page, then popup  the OAF page in iframe tag,and then when i  click the PPR bean in  OAF page, then Firefox  browser reload to ADF page. This is not the right response,browser should not reload the ADF page.It should stays in OAF page or goto another OAF page. and in other browser such ad IE,We get the right response.

    hello, normally such issues are caused by a firewall/security software which doesn't recognize & therefore blocks new firefox versions. please remove all program rules for firefox from your firewall and let it detect the new version of the browser again.
    [[Fix problems connecting to websites after updating Firefox]]

  • How to get the Search Button from RichQuery Component

    Hello All,
    How can I get the Search Button from RichQuery Componennt, I could do not locate from getChildren, getFacets
    any ideas ?
    Thank you,

    Not even able to get it from getViewRoot findComponent("clientId");
    which is not good, RichQuery component can be inside popup and I do not want to add an extra button just to close the popup window
    Any ideas ?
    Thank you,

  • I have a 4s with ios7, the Flixter app appears when I double click the home button but has disappeared from the main screen page. How do I get it back?

    The app appears when I double click the homw button but has disappeared from the main screen. How do I get it back on the screen so that I don't have to double click every time?

    The app appears when I double click the homw button but has disappeared from the main screen. How do I get it back on the screen so that I don't have to double click every time?

  • Safari Upload file dialog box lets me click links and buttons on parent window.

    Safari Upload file dialog box lets me click links and buttons on parent window. I can even click Choose file button and open multiple Upload File dialog boxes. How can I show Upload file dialog box as modal?
    Operating system: Windows 7 and Windows XP.

    Safari Upload file dialog box lets me click links and buttons on parent window. I can even click Choose file button and open multiple Upload File dialog boxes. How can I show Upload file dialog box as modal?
    Operating system: Windows 7 and Windows XP.

  • Disable Or Remove Extensions in Safari Open Safari. Click the Safari button, and then click Preferences. Under Preferences, click Extensions, and then do one of the following: To disable ALL extensions, click the toggle switch from ON to OFF. To disable a

    I FINALLY FOUND A WAY TO UNINSTALL "COUPON-DROP-DOWN" ANNOYING POP-UPS.
    Disable Or Remove Extensions in Safari
    Open Safari.
    Click the Safari button, and then click Preferences.
    Under Preferences, click Extensions, and then do one of the following:
    To disable ALL extensions, click the toggle switch from ON to OFF.
    To disable a single extension, click it, and then uncheck the Enable box.
    To remove a single extension, click it, and then click the Uninstall button.
    Click the X in the top right.

    Hello Wontsey & Welcome
    On 6-4-06 I installed Norton Internet Security 3.0.1 for Mac. I thought maybe my problem was related to the firewall part so I unistalled it and turned the Apple firewall that came with the computer back on.
    This did not help. In fact, when I try to open “Help” from the desktop menu the program opens and then immediately closes so I can’t access it.
    I hate to have to tell you this Norton is the problem, looking into uninstalling it, the uninstallers that came with it are not effective so no matter you do not have the CD/DVD go to their site to get the Uninstaller
    UseCocktail or OnyXto find the invisable files. Just follow Macjacks directive.
    This is covered in this Topic thread,abandoning Norton Internet Security see the files Macjack speaks of in the topic thread. If you have questions post in the same forum a new topic this thread is archive, click on the link and then click"back to topic list". This is why i first came to Apple discussions, to get help with the mess Norton can make on Panther and found help as you will. It is not a Safari issue per say, rather a Norton problem.
    Best of luck.
    Regards; )
    Eme~

  • How to open a Filechooser on a button click from jsp page

    can anyone tell me how to open a Filechooser on a button click from a jsp page.
    Thanks

    <input type="file" name="myfile">

  • I have a powermac dual g5 2.0 that wont start up.When I plug it in I get the click from the power supply. When I hit the start button, the white led on the front panel lights up and stays lit. No whir sound from the hard drive or the fan. No lights on the

    I have a powermac dual g5 2.0 that wont start up.When I plug it in I get the click from the power supply. When I hit the start button, the white led on the front panel lights up and stays lit. No whir sound from the hard drive or the fan. No lights on the motherboard

    The click usually indicates a big problem, but...
    How to reset the SMU/PMU on a Power Mac G5 (Late 2004) or Power Mac G5 (Late 2005) ...
    http://support.apple.com/kb/HT1436
    Earlier G3, G4, G5 models...
    http://support.apple.com/kb/HT1939
    Might be time to replace the PRAM Battery, 4 years is close to their lifespan, far less if ever without AC power, & can cause strange startup problems...
    See which one your G5 has...
    http://eshop.macsales.com/item/Newer%20Technology/CR2032/ 
    http://eshop.macsales.com/item/Newer%20Technology/BAA36VPRAM/ 

  • Click to Popup Larger Image from report

    This has to be simple, and I am just missing it.
    I am displaying an image in an interactive report, using apex_util.get_blob_file_src.
    I need to add a link to "Click to popup larger image".
    This is an upgrade of a form that did this the old way, using custom image display.
    Is there a way to do this using apex_util.get_blob_file_src?
    Perhaps I am just getting the syntax wrong -
    The image is displayed as in the sample app - I just the the correct syntax to open the image in a popup window on click, presumable using popupURL or popUp2.
    Than you - Karen

    Thank you, VC.
    That is exactly what I have already done - seemed the cleanest, fastest way to get the job done and move on.
    With a bit more research, I suspect I could implement a jQeury solution that nicely displays an image in a popup - but as this was an upgrade, the task was to get it working.
    Using the APEX page, single region, image item is a nice clean way to make it work.
    With a little styling to control the size of the image (these were not controlled upon input, as they should have been in this case), all work smoothly.
    Thank you - Karen

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.
    Thanks&Regards
    kranthi

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
    Regards,
    Uday

Maybe you are looking for

  • Can not transfer the partner data from ROS to EBP

    Hi, All We are using SRM 5.0, and setup the ROS ans SUS in one client, EBP in another client. All the configuration was done, we maintained the table: BBP_MARKETP_INFO by SM30 with the following record: COMPANY_ROOT   VENDOR_ROOT    DUMMY_EKORG    US

  • Questions about  Designer

    Hello, I am new in this forum and in Oracle Designer also. I have started to work with Designer last month, I am learning to use it, and I have a question : - what is the difference between Template object and object library???? waht ares the uses of

  • Oracle UCM with Weblogic portals

    Does any one has idea working with oracle UCM with Weblogic portals. Can anyone suggest any tutorial in online.

  • Restrict upload size of documents through KM

    Hello One of the customers is implementing SAP EP KM Solutions. would like to know 2 things 1.how can we restrict the size  of the document to be uploaded to portal KM folders. 2.what 's the normal configuration for storing documents through KM.(size

  • T61 display problem

    When I use computer watching the movies, the screen became twinkling,then the color turn pink and the computer  frozen. I restart the computer, there are lots of vertical lines on the screen, even can't see the THINKPAD logo. Try several times, enter