Trigger an event in app2 from app1?

Hi all,
Is there a way for me to trigger an event in another application from my current application? Example: a button in my current view1 in zcomponent1 action is to fire up the action of a submit button in view2 of zcomponent2?

Hi Vishal,
According to you:
"You can add all the code on the press of the button in zcomponent2 in the method of the component controller of zcomponent2.
Then declare the usage of zcomponent2 in zcomponent1. Now call the same menthod in the button in Zcomponent1, which u are using in the button of Zcomponent2. make sure that the interface flag is checked for the component controller method to call it in another component."
Now how do I call the same method in the button in Zcomponent1? I already embedded zcomponent2 inside my zcomponent1. I used code wizard (method call in used controller) but unable to find the zcomponent2 in it.
*Note: In Zcomponent2 is a button which call the method abc in Zcomponent2 component controller (is ticked in interface checkbox)
What else have I missed?

Similar Messages

  • Trigger click event on RichLink from Managed Bean

    I want to fire a click event from a managed bean of a RichLink which has a clientListener of click type.
    For this, I have tried many options, but nothing works.
    My problem is that the RichLink doesn't have action and actionListener properties, then I couldn't launch ActionEvent, since doesn't exists.
    I have tried few options:
    //NOT WORKS
    public void option1() {
      RichLink linkF11 = (RichLink) JSFUtils.findComponentInRoot("cil2");
      String script = "var link = AdfPage.PAGE.findComponentByAbsoluteId('"+linkF11.getClientId()+"');" +
                        "link.click();";
      addJavaScript(script;)
    //NOT WORKS
    public void option2() {
      RichLink linkF11 = (RichLink) JSFUtils.findComponentInRoot("cil2");
      String script = "var link = AdfPage.PAGE.findComponentByAbsoluteId('"+linkF11.getClientId()+"');" +
                      "link.queueEvent('click');";
      addJavaScript(script;)
    //NOT WORKS
    public void option3() {
      RichLink linkF11 = (RichLink) JSFUtils.findComponentInRoot("cil2");
      String script = "var link = AdfPage.PAGE.findComponentByAbsoluteId('"+linkF11.getClientId()+"');" +
                      "AdfCustomEvent.queue(link, "tooglePanelSplitter",{}, false);";
      addJavaScript(script;)
    //WORKS -> DOM EVENTS, NOT ADF
    public void option4() {
      RichLink linkF11 = (RichLink) JSFUtils.findComponentInRoot("cil2");
      String script = "var link = document.getElementById('"+linkF11.getClientId()+"');" +
                      "link.click();";
      addJavaScript(script;)
    private void addJavaScript(String script) {
      FacesContext facesContext = FacesContext.getCurrentInstance();
      ExtendedRenderKitService service = (ExtendedRenderKitService) Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
      service.addScript(facesContext, script);
    Finally, I could find a solution, but I have read that, we should avoid call javascript standard code in ADF.
    jsf code
    <af:link text="Modo Comp." id="cil2"
      partialSubmit="true" styleClass="icon-list-alt"
      shortDesc="Modo Compatibilidad"
      clientComponent="true">
      <af:clientAttribute name="psId" value="#{myBean.psF11.clientId}"/>
      <af:clientListener method="tooglePanelSplitter" type="click"/>
    </af:link>
    javascript code
    function tooglePanelSplitter(event) {
        var psId = event.getSource().getProperty('psId');
        comp = AdfPage.PAGE.findComponent(psId);
        if (comp) {
            comp.setProperty("collapsed", !comp.getProperty("collapsed"));
        }  else {
            alert('not found');
    PS: jdeveloper 12c (12.1.2.0.0)

    I wanted to fire the ClientListener from a managed bean, but finally I have solved executing a new javascript code from managed bean.
    In my first javascript code, I toggle the position of a panelSplitter, and in this new code, I set the position to not collapsed.
    //SOLUTION
    public void option4() {
      String psId = ztBean.getPsF11().getClientId();
      String script = "var psl = document.getElementById('"+psId+"');" +
                      "psl.setCollapsed(false);";
      addJavaScript(script);
    private void addJavaScript(String script) {
      FacesContext facesContext = FacesContext.getCurrentInstance();
      ExtendedRenderKitService service = (ExtendedRenderKitService) Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
      service.addScript(facesContext, script);

  • Want to trigger an event in Javascript using Actionscript

    Hello forum,
    I am trying to trigger an event in Javascript from an SWF.  In HTML the triggering event is this:
    <a href="#" onclick="return GB_showFullScreenSet(page_setWEB1, 1)"><img src="images/Thumbnails/IMAGE-NAME.jpg" /><br />Link Label</a>
    This line trggers a pop-up style portfolio image slideshow.  I am trying to figure out how to trigger this event from actionscript.  I am not sure what this would even be called so any help would be great.
    Thanks,
    Brett

    The communication works both ways.  Here's the description from that page.
    "From ActionScript, you can call any JavaScript function on the HTML page. It passes any number of arguments of any data type, and receives a return value from the call.
    From JavaScript on the HTML page, you can call an ActionScript function in Flash Player. The ActionScript function can return a value. JavaScript receives it immediately as the return value of the call."
    It can be a bit confusing to implement, so you might want to search for other examples/tutorials if you can't get it working from the one linked already.

  • Automatically trigger the event to load data from Planning cube to Standard Cube

    Hello,
    We have a below set up in our system..
    1. A Planning BEx query using which user makes certain entries and writes back data to the planning cube.
    2. An actual reporting cube which gets data from the planning cube above.
    Now, what we want to do is to automate the data load from Planning cube to Reporting cube.
    This involves 2 things..
    1. Change the setting " Change real time load behaviour " of the planing cube to Planning.
    2. Trigger the DTP which loads data from Planning cube to reporting cube.
    We want to automate the above two steps...
    I have tried few things to achieve the same..
    1. Created an event in SM64,
    2. In the Planning cube "Manage" Screen,  clicked on "Subsequent Processing" and provided the event details. ( Not sure if its the correct place to provide the event detail ).
    3. Wrote a ABAP program which changes the setting of the planning cube (  " Change real time load behaviour " to Loading )
    4. Created a process chain, where we have used the event as a start variant, used the ABAP program as a next step, DTP run as the last step..
    This i hoped, would trigger the event as soon as a new request comes and sits in planning cube, which in turn would trigger the process chain which would load the data from Planning cube to reporting cube..
    This is not working. I dont think the event is triggering, and even if does i am not sure whether it will start the process chain automatically. Any ideas please ?

    hi,
    try to do the transformation directly in the input cube by using CR of type exit, more details :
    http://help.sap.com/saphelp_nw70ehp2/helpdata/en/43/1c3d0f31b70701e10000000a422035/content.htm
    hope it helps.

  • Writing a program using an output from a NAND gate to trigger an event.

    I'm using a PCI 6024E with a CB 68 board and Visual Basic 6.
    I would like to trigger an event when the output signal from a NAND gate is high. Do I have to use a DO loop to keep checking for this trigger?

    Hello;
    If you want to use the DAQ board you have there, you will need to keep polling the digital line to recognize the state change.
    If you need something more accurate, you can use one of the digital boards, such as the PCI-DIO-32HS, and do change detection on the digital lines.
    Hope this helps.
    Filipe A.
    Applications Engineer
    National Instruments

  • How to setup to trigger an event when choose the value from cookie

    Hi,
    I define an firepartialaction event for the messageTextinput, this event can be triggered when the user key in the via keyboard. but failed to be triggered when the user choose the value from the cookie. How to setup or program to trigger the event even the user choose the value from the cookie?
    Best Regards,
    Jiang

    Hi,
    so the next missing information is what the event is that you expect to fire. If the cookie value is displayed in a list then John is correct and you populate the input field behind the scenes in which case e.g. no ValueChange listener fires or autoSubmit action is issued as you don't update the data through the UI component
    Frank

  • How can I trigger an event from an ABAP Program

    Hi everyone,
    I have a requirement, where I have to create an ABAP program, that has to execute (trigger) an event which belongs to a Process Chain. when I run the program, the Process Chain has to run.
    So, how can I do it?
    Thanks for your help, Federico

    HI ,
    The program can call function module BP_EVENT_RAISE to raise the event. you can create vent in sm64 and sm62 .There you give the parameter of the event same as what you will define in the event of start variant of your process chian ..
    Regards,
    shikha

  • Trigger DATA_CHANGED event from triggered DATA_CHANGED event in second ALV

    Hello,
    I do have 2 ALVs (class CL_GUI_ALV_GRID) in a Splitter-Control.
    Both ALVs do have registered the event DATA_CHANGED in seperate handler methods.
    If there is a change in first ALV(line insertion with values), there will be inserted a new line with values in the second ALV.  After handling the event at first ALV, I call CHECK_CHANGED_DATA of the second ALV and REFRESH_TABLE_DISPLAY of the second ALV. I would expect that the call of CHECK_CHANGED_DATA would trigger the event DATA_CHANGED, but it does not trigger the event DATA_CHANGED of the second ALV.
    The problem is maybe that the input at the data is not made by the user(UI).
    What could I do to trigger this event and check the new data at second ALV?
    Yours Joerg

    Hello ,
    yeah thats correct , but in your case what you can do is
    g_grid1(first alv) >CHECK_CHANGED_DATA( Importing E_VALID =  l_Valid )>in the implementation method of this ..update global variable g_second = 'X' in order to refresh ALV2.
    g_grid1(first alv) -->Refresh_table_display( ).
    if g_second = 'X'.
    g_grid2-->SET_TABLE_FOR_FIRST_DISPLAY. so it will refresh the second alv contents.
    endif.
    regards
    Prabhu

  • BRF+ Trigger via Event, change on field value, etc

    Hi,
    I'm implenting BRF+ for SPM Claims & Returns Process.
    It took me a while to understand how I can set up an application, Function from type event, Rulesets, rules, etc but at the end it seems that it is a tremendous improvement compared to BRF!
    So far I have triggered the BRF+ via the CRMV_EVENT_CUST table calling a function module that triggers the BRF+ Function and receives an CRM Log message but this solution is not sufficient for all locations I want to call the BRF+.
    At first I want to call the BRF+ for the Entryvalidation: Entering a Claim with a item net value below a threashold should not be saveable.
    The second call should be to decide if the Claim will be automatically approved or set to manual investigation: This is a check that will lead to a item status change.
    The third and last check will be fullfilled by saving the Claim document: a whole set of business rules have to run and set maybe an incompleteness or process some error messages.
    I neither any information in SAP Documentation, nor on any ressource on the net any information about customing the BRF+ Solution.
    Is there any customizing in the system, as it is for BRF, that allows me to trigger the BRF+ for Business Transaction Category, Business Transaction or ItemCategories?
    Furthermore, is there an option to call BRF+ via customizing that "listens" to a field change as Reason Code ( CODEGRUPPE, KATALOGART,CODE in the Subjectprofile?)
    Can I define Events that trigger the BRF+ as in the BRF customizing?
    When I search the IMG for BRFPLUS, I find a couple of entries, but doubleclicking on this search results doesn't jump to the customizing step.
    It would be very helpfull to get some input in these topics.
    Kind regards,
    Sven

    Hi Tiwari,
    yes, the screenshot was from CRM-Financial, but available in CRM Transaction Processing:
    And I agree to your statement that there is no such customizing, because I neither found this Customizing, except:
    Using the search in the customizing IMG, you will find 3 customizing entries with BRF+ or BRFPLUS, but clicking on them you will land in Nirvana, and not in the proper customizing tree.
    But still the overall trigger for my message here is, that the BRF could be triggered via Customizing that doesn't seem to exist for BRF+ and that's strange!
    I hope someone knows how the replacement of BRF with BRF+ is intended from this customizing point of view. I have to trigger a lot of different functions and using the old BRF I could trigger this Events using this customizing setup.
    Thanks,
    Sven

  • Trigger an event in the parent view, when popping a child view (Mobile)

    So from one view I'm pushing another view with some data:
    <s:Button label="Edit System" click="navigator.pushView(EditSystem, systems.selectedItem)"/>
    The problem I have is that in this other view I'm updating a view things in my sqlite database, so when I pop the 'EditSystem' view and return to the original, I want to run a function to requery the the sql so I can update a view things in the original view. But from what I can fugure Eventlisteners dont work across views? How do I trigger an event in the original view when I return from a child view via pop? 

    You should find this post useful: http://flexponential.com/2010/12/05/saving-scroll-position-between-views-in-a-mobile-flex- application/
    It demonstrates one way of saving and restoring data when pushing and popping a view.

  • Is it able to refresh the table view automaticlly after trigger an event?

    Hi expert,
    I have one table view and a "Delete" button, each time when the user click the del button, it will delete the row which is selected via a RFC module in the backend, afterwards, I want this table view to be refreshed and read the real data from backend via another function module, is it possible? how could I do it?
    Thanks and best regards

    Let me do some summarize if my understanding is correct
    1. Use a timer as "start" point of a table view, set the "interval" to be 0.05 minute
    2. use the condition in the timer with a formula (BOOL(STORE@RETURN_CODE==0)).
    3. If I trigger one event in the "table view", for example, a "Delete" event and it will return the result RETURN_CODE = 0 to datastore
    4. Afterwards, if the time interval of the timer has been reached, 1st it will evaluate the value of the datastore and decide whether to refresh the table view.
    Am I right?
    Just as you mentioned before, it is not a perfect solution, as we may still wait for the timer to be triggered after a few seconds.
    Thanks for your answer.

  • Using the keydown option in order to trigger an event

    Hi all,
    This is my first question on this forum, and that is probably because i just started learning labview.
    I came across with an error, i could most likely solve in another programming language using C, but not in labview.
    I was wondering if someone could give me a hand with the following:
    I attached the program, which is probably a bit bad-written. Basicly, what im trying with the part on the left, is read all values from a controller on a GPIB bus.
    This part works like a charm, because i get all the values i want without any problem. After that, in the last step of this program, you have a while loop, with in there an event structure. The reason i took a while for that is because i dont want the program to start over at step 1. The event structure was first used with clicks of the mouse on the buttons, and a changed value with the numeric controls. Because a changed value did not work, cause the loop was constantly reading the values coming from the initial phases, i wanted to change the way the events were handled by a keydown of 'Enter'. I think, when you change a value in a numeric control and press enter, this could be perfectly used to trigger the events, instead of the value changes (because everytime the program reads the values in the sides, i think its considered like a value change). The fact is i dont really have an idea how to use the keydown as an event handler, any info on this would be greatly appreciated.
    I'm sorry if my english isn't the best, it's only my 3th language. Hope you understood and i can get some help for this issue
    Thanks in advance
    Thomas De Landtsheer
    Student
    Solved!
    Go to Solution.
    Attachments:
    Labview detection of keystroke.vi ‏197 KB

    The problem is a few
    blocks we havent really seen yet. All these numerics and stuff outside
    the while loop, what are they exactly, or are they just a different way
    of viewing them? The stuff with the digital at INI phase, The block
    in the lower right corner of the INI phase.
    The digital block in the
    dispatcher phase we didn't really understand. 
    I am not sure what you mean here can you circle it and send me a picture so that I can explain.
    Tim
    Johnson Controls
    Holland Michigan

  • How do i get a boolean indicator to trigger a event structure

    I have two parallel loops running, and i need to use a boolean value, one that comes out from an OR gate, to trigger an event in the parallel, event structure loop.  I've attached a simplified version of the loop.  Is there a way to get this done?  I've tried using local variables, value(signaling), etc. and they haven't worked
    Solved!
    Go to Solution.
    Attachments:
    Parallel Loop Trigger.vi ‏10 KB

    Here is a revised version of your VI. I modified the mechanical actino of the stop button so it kept it's value until it was read. In addition, I added a delay to your upper loop. Without a delay it was running too fast to actually see the button press. I modifed the event in the the event structure to trigger on a value change of Boolean.
    You don't really need the outer loop since it will only run a single time in all instances. On the first execution of that loop it will be sitting in the turn inner loops. Once you exit the two inner loops your outer loop will always exit. Therefore, it serves no purpose.
    Your OR in the upper loop is completely uses. It serves no purpose since the result will always be equal to the value of the Stop button.
    There are better ways of triggering events. a preferred method would be to use a user event and simply generate the event at the appropriate time. This has the advantage of not requiring additional controls/indicators simply to cause an event to occur.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot
    Attachments:
    Parallel Loop Trigger.vi ‏12 KB

  • Help - I don't want to trigger an event!!

    public void tableChanged( TableModelEvent event ){
      int row = event.getFirstRow();
      int area = c.area(input);
      if(table.getValueAt(row,QUANTITY) != null){
        table.setValueAt(""+area,row,SUBTOTAL); //This causes an infinite loop!  I don't want it to trigger an event!
    }How can I get it to ignore this event, or stop it from triggering an event?

    private boolean respond = true;
    public void tableChanged( TableModelEvent event ){if (!respond) return;
    int row = event.getFirstRow();
    int area = c.area(input);
    if(table.getValueAt(row,QUANTITY) != null){respond = false;
    table.setValueAt(""+area,row,SUBTOTAL); //Thisrespond = true;
    How can I get it to ignore this event, or stop it from
    triggering an event?

  • How do you trigger an event within a program?

    I have my event structure within a sequence and when it gets to the sequence where the events are, it waits there until there is an event and does not go to the next sequence. Is there a way to trigger an event structure within a program if no event occurs within a certain amount of time?

    That's what the timeout event can be used for. Wire a value other than -1 to the timeout terminal. Wire the appropriate Boolean value from inside the event to terminate the while loop that the event structure is inside of.

Maybe you are looking for

  • How do I get back my music that I lost when I updated my software on my 2nd generation Ipod Touch

    I updated the software on my Ipod touch and I lost all the music that I had downloaded from Itunes.  I can find the purchase history but can't get it back onto my Ipod.  Does anyone know how to do this?

  • My mac book pro won't let me upload a document to an online form

    I am trying to upload my resume to an online application form.  After it uploads and I click to preview, it does not look like my normal text.  It looks like random characters/wingdings.  Help please.  I don't know what to do.  Any advice is apprecia

  • Problems after reformatting

    Had problems so Disk Utility said reformat. Saved entire disk to external drive then erased and re installed Mavericks 10.9.5 Now there is no icon for the HD on the desk top so I can't drag any files back from the external drive. Please help

  • MacBook Pro Displayport driver

    Hi folks, I've been trying to connect two external monitors to my MacBook Pro from mid 2012 via Displayport's MST (Multi-Stream Transport) feature. Nvidia lists the integrated GeForce GT 650M chipset as supporting Displayport 1.2. So, let's give it a

  • Hyperion System 9.2.0.3 Installation files

    Hi, I am lookig for these installation file. 1.     Hyperion Shared Services 9.2.0.3 2.     Hyperion Essbase server 9.2.0.3 3.     Hyperion Essabse Client 9.2.0.3 4.     Hyperion Administration Console 9.2.0.3 5.     Hyperion Reporting and Analysis 9