Event pass to subpanel

Hello
I know there is a lot written in the forum about this topic. My problem is that I would create a subpanel in a event. In the subpanel vi there should run a serial link continuously. For a application writer this is looking as I would create new thread. Main vi is still running. If I would do this without subpanel the event handler will be blocked. Of course it would be possible to let it run outside the event handler. But then the whole vi will start to be very confusing. Once I had six loops parallel. So a nice solution would be that I can pass event happened in main.vi to the subpanel to steered. In my case I just need the stoop command. Is there a nice way that I can detect events depending of different controls and pass them to subpanel. With a reference?? With global variable it could work and also with a user event but I don't like to write some code for every control in main vi that I'm able to pass it over.
Kind regards Reto

Hi Reto,
Since you already have the reference to the subpanel vi, why won't you use vi server for passing the datas?
Just use the subpanel vi reference and connect it to a propertynode,choose Fronpanel,  which gives you the reference to the FP back, then access the FP Property "Controls[]" and use these references to pass datas(with the value property).
For me this would be the easiest way.
I hope it helps!
Evrem

Similar Messages

  • New events in iCal are entered on my iMac.  These events pass through correctly to my other computers and iPhone.  However, each new event shows up twice on my iPads.  The clutter is distracting.  Anyone have suggestion as to correcting this annoyance?

    New events in iCal are entered on my iMac.  These events pass through correctly to my other computers and iPhone.  However, each new event shows up twice on my iPads.  The clutter is distracting.  Anyone have suggestion as to correcting this annoyance?

    New events in iCal are entered on my iMac.  These events pass through correctly to my other computers and iPhone.  However, each new event shows up twice on my iPads.  The clutter is distracting.  Anyone have suggestion as to correcting this annoyance?

  • OnError event passed to Observer in Spry.Effect in IE

    Hi ,
    I have this issue that I have already spent 2 days on it and desperately need help from experts here.
    I have two data sources ds3 and ds4 (div id="news"). (master detail regions). On click on ds3 row I fire a javascript function "fadeOutContent(rowID,rowNum)". Code is given below:
    <script>
    var gEffectInProgress = null;
    var gPendingSetRowIDRequest = -1;
    function fadeInContent(notificationType, notifier, data)
       alert(" notificationType " + notificationType);
        if (notificationType != "onPostUpdate")
            return;
        var effect = new Spry.Effect.Fade('news', { to: 100, from: 0, duration: 2000, finish: function() {
            // The region is now showing. Process any pending row change request.
            gEffectInProgress = null;
            if (gPendingSetRowIDRequest >= 0)
                alert(" see if this causes the error");
                var id = gPendingSetRowIDRequest;
                gPendingSetRowIDRequest = -1;
                fadeOutContent(id);
        alert("starting the effect ");
        effect.start();
    Spry.Data.Region.addObserver('news', fadeInContent);
    function fadeOutContent(rowID,rowNum)
        // If we have an effect already in progress, don't do anything
        // We'll set the rowID when we're done.
        alert(" gEffectInProgress " + gEffectInProgress);
        if (gEffectInProgress)
            gPendingSetRowIDRequest = rowID;
            return;
        // If the correct row is already showing, don't do anything!
        if (rowNum == ds3.getCurrentRowNumber())
            return;
        gEffectInProgress = new Spry.Effect.Fade('news', { to: 0, from: 100, duration: 2000,finish: function() {
            ds3.setCurrentRow(rowID);
            alert("Currne tRow updated in ds3" + rowID);
        gEffectInProgress.start();
    </script>
    Div  for spry regions are as below:
                        <div class="rows" spry:region="ds3">
                            <div class="rowOdd" spry:repeat="ds3" spry:odd="rowOdd" spry:even="rowEven" spry:hover="mouseOver" spry:select="selected">
                            <div  onclick="fadeOutContent('{ds_RowID}','{ds_RowNumber}');">{NewsLine}</div>
                            </div>
                        </div>
                        <div id="news" spry:region="ds4" style="margin-top:20px">
                                    <p>{NewsPage}</p>
                        </div>
    PROBLEM:
    On first row everything works fine. On clicking on second row function fadeOutContent line  ds3.setCurrentRow(rowID); causes on onError event passed to Observer, as a result fadeInContent function returns without doing any Fading.
    Please help with any information that can provide possible solution to this.
    ALL WORKS WELL IN FF. P.S. My site is on localhost. So can not share a link.
    Thanks

    Sorry, I am working on localhost so far.

  • Sub-apps event passing in multi-versioned application - type coersion fails

    I have the following structure on an application I'm working on:
    AirWrapper, basically just an AIR wrapper for the core. Includes AIR specific definitions of various classes needed by the core.
        |---- loads core.swf using SWFLoader, contains functionality for handling data saving/loading, subapp loading, etc.
                 |-----loads subapp.swf using SWFLoader, with loadForCompatibility = true;
    From subapp.swf I'm dispatching a ServiceReferenceEvent (custom event), which is supposed to be caught by the core.swf. If I set loadForCompatibility = false, then it works as it should. However if I set loadForCompatibility = true, then I get a
    TypeError: Error #1034: Type Coercion failed: cannot convert fi.activeark.platform.events::ServiceReferenceEvent@1e0afeb1 to fi.activeark.platform.events.ServiceReferenceEvent.
    Now if I've understood the documentations correctly, the reason this error pops up is because the subapp is loaded into a sibling application domain of the core.swf and is therefore using it's own definition of the ServiceReferenceEvent (even though both the core and the subapp in fact reference the same .as file). My research on the issues suggests that I should be able to fix this by boot strapping the ServiceReferenceEvent class into AirWrapper. This should make both the core and the subapp use the same definition.
    The problem is that this doesn't work. Does anyone have any thoughts on why? Alternatively I would be happy if someone would suggest an alternate method for communicating between a main and subapp swf with loadForCompatibility = true (preferrably one that would allow me to pass custom events)? I need the loadForCompatilbility = true because we're expecting subapps to be created with different versions of the Flex framework over the life cycle of the application.

    Thanks Alex! I got it to work as you described. I realized that I of course also need to marshal every object that the event I send through references, which means even more extra code. Another issue is that the event that I'm marshalling is referencing an object that must implement a particular interface. What I've tried is creating a basic object, add references to the implemented functions, and then type cast it to the interface in question. I've also tried type casting directly but all fails. Is it possible to marshal an interface?
    Basically what I want to have happen is that the subapp I'm loading dispatches an event to the core. The event contains a reference to an object which implements an interface that the core.swf also knows about. The methods of this interface are then used as callbacks from the core.swf. If marshalling an interface is not possible, do you have any suggestions on how I could achieve a similar thing in some other way?

  • Process Task Child Table Delete Event passes empty values

    Hi All,
    I'm trying to implement a delete event in a process task for a child table. I am assuming the value to be deleted
    should be getting passing into the adapter but it's passing empty strings instead. The insert event is working fine however.
    Any one else using the delete event that works?
    Thanx
    Fred

    Hi Kevin.
    Any idea how to programmatically access the "old value" variant of a form field?
    It's the sort of thing one needs occasionally when a value changes and some associated capability needs to be updated. The old value specifies what needs to be removed while the new value tells the system what is to be added in its place.
    (It so happens in our environment that we have dozens of these values per user profile, so it would be very painful to store "old" values in a parallel set of fields.)
    Thanks,
    Dan

  • Event passing in JLayeredPane

    Hello, I have the following problem:
    Using Swing I put JButtons on a JLayeredPane. Every time I click on a button a proper event is raised. However I want to get mouse coordinates all the time the mouse is inside the JLayeredPane. Some wrong solutions:
    1. Catch the mousemove event for the JLayeredPane. When the mouse enters a JButton I don't get the mousemove event (as the JButton catches the mouse events now).
    2. Draw a transparent JPanel on top of the JButtons and catch the mousemoved event for it. I get the coordinates but JButtons don't catch mouse clicks.
    Of course a solution would be to set JButtons (and every other object inside the JLayeredPane) catch the mousemoved event. However this means you have to change these objects. Is there any "transparent" solution? Perhaps something like the solution 2 above with the addition that the mouse click event is further passed to underlay objects (JButtons)?

    I'm not aware of any 'transparent panel' solution, but you might want to check out Toolkit#addAWTEventListener(AWTEventListener listener, long eventMask). It will catch all mouseMoved events, but checking whether the event took place inside your JLayeredPane should be simple enough.

  • PLEASE HELP!!!!! - - Event Passing

    Hi,
    Summary: How to pass events to lower level containers
    in a multi layered container system.
    This is the scenario which I have
    2 Small panels (non overlapping)are added to the content pane using
    getContentPane.add(component). Both of them have tool tips associated with them.
    Now I am adding semi transparent pane partially overlapping the above two panes and on the top of it. I achieve it by doing
    getContentPane.add(component, 0 )
    There is no tooltip associated with it.
    When I move the mouse over the non-overlapping areas, i get the tool tip associated with the panel. When I move the mouse over the overlapping area. No tool tip comes for the underlying panel. Now I would like to display the tool tip based on the component based below the semi transparent , ofcourse depending on whether the mouse is over the overlapping area.
    Ex:......pppppppppppp.............................
    ..........p................p.............................
    ..........p.M1...........p.............................
    ..........p........dddddpddddddd.............................
    ..........p........d.M2............d.............................
    ..........ppppppd.................d.............................
    ...................d..................d.............................
    ...................d.......M3.......d.............................
    ...................ddddddddddddd.............................
    Let P be lower level panel with tool tip., and d be another panel placed on a higher level, with no tool tip.
    When Mouse is at M1, it gives tool tip for p, when mouse is at m3, no tool tip. When at M2, i want tool tip for p. Also right click at m2 should be heard by p, and left click should be heard at d.
    Regards,
    Revon

    http://portalstudio.oracle.com/servlet/page?_pageid=2106&_dad=ops&_schema=OPSTUDIO&_type=site&_fsiteid=233&_fid=236729&_fnavbarid=180376&_fnavbarsiteid=233&_fedit=0&_fmode=2&_fdisplaymode=1&_fcalledfrom=1&_fdisplayurl=
    I want to display a report that will show the events from which the user has click. I have a event_id in the database. Once the user clicks on the event, it will show all the information of the report. Then, I want to create a button to call a form for the registration passing the event id. Can you please help me?

  • Having picked up a mouse event, pass it to parent component.

    This is further to my table cell hover, which is otherwise working.
    I track the mouse accross the table using an invisible child component, and when the mouse leaves it, move the child onto the new cell position.
    The problem is that, while the mouse is over the invisible component, that component is grabbing all the mouse events. My table also wants to detect mouse events (though it's interested in clicks).
    The obvious thing is, after they've been dealt with and the child component level, to transfer the events to the table (having mapped the mouse coordinates). However all the processEvents methods in components like JTable are protected.
    I suppose I could extend JTable and add a method to get arround protected, but that's nasty, especially since a lot of my JTables are already subclassed.

    I had to do just this. I have JLabel's in a JPanel. The JPanel is in a LayeredPane. When I mouse over the JLabels, they grab the mouse events... which I don't want. I want the LayeredPane to get it.
    So in the JLabel, I do:
          * Don't send to parent what you don't have to. Things like tooltips will
          * be broken if this is not handled carefully...
         public void mouseClicked(MouseEvent e) { }
         public void mouseMoved(MouseEvent e) { }
         public void mouseEntered(MouseEvent e) { }
         public void mouseExited(MouseEvent e) { }
         public void mouseReleased(MouseEvent e) { machine.dispatchToParent(e);}
         public void mouseDragged(MouseEvent e) { machine.dispatchToParent(e);}
         public void mousePressed(MouseEvent e) { machine.dispatchToParent(e);}(the "machine" above is a JPanel). Now in the JPanel, aka "machine", I do:
    Point point; int comp_x, comp_y; // for component with respect to this machine
    public void dispatchToParent(MouseEvent e) {
         point=((JComponent)e.getSource()).getLocation();
         //System.out.println("Dispatching: " + e.getX() + " " + e.getY());
         //System.out.println("Component position: " + ((JComponent)(e.getSource())).getLocation());
         if (e.getButton() > 0) MsgIFrame.println("ME at: " + comp_x + "," + comp_y + " button: " + e.getButton() );
         if (e.getButton() > 1) {
              popup(e);
              return;
         comp_x=(int)point.getX(); comp_y=(int)point.getY();
         comp_x+=this.getX(); comp_y+=this.getY();
         e.translatePoint(comp_x, comp_y);
         room.getLayeredPane().dispatchEvent(e);
    }Above, the "room" is a JInternalFrame with a LayeredPane inside it, as you can see. I do a little translating so the LayeredPane gets the event in its coordinate space, not those of its Components.

  • Cursor move events passing data to dialog

    I have a graph where the user moves the cursor and then I pop up an easy to read dialog with the test number and test description in it.  I tried it with a regular dialog with reentrancy but it locks things up.  Is there a better way to do this?   

    Hi Id,
    I have made a quick example of how to have another window display data to a user using queues. Please let me know if this helps.
    -N
    National Instruments
    Applications Engineer
    Attachments:
    Main2.vi ‏17 KB
    Sub2.vi ‏17 KB

  • Easiest way to pass data to/from subpanel?

    I am new to subpanels and am kind of overwhelmed by the various responses I've read on the forums about this issue.  Some people use named references, others user events, others queues...and right now I guess I've yet to see an example that was really clear for me to understand.
    In my case I have lots of different controls and indicators within my subpanel.  Two main things I need to do:
    1. I need to pass the VI that gets loaded into the subpanel a single string and a single numeric
    2. When there is an event on the subpanel (either a value change event for any control, or a mouse up event), I need to pass out a reference to the control that caused the event.  The top-level VI will then process the top level event.
    So that's it....2 inputs (1 string, 1 numeric), 1 output (a ctrl ref).  Both inputs will be changing regularly as data from a telnet connection is read, and the output is driven entirely by user interaction with the subpanel (i.e. it's independent of the inputs).
    What's the easiest way to do this?
    thanks

    bmishoe wrote:
    I was thinking about it some more...the ctrl reference that I said I wanted to pass out - it could just as easily be a string.  The label of the control has indices as part of it's name that I use to index an array to extract a string.  There's no reason I couldn't do that within the subpanel and simply pass out the string itself.
    So to modify my question slightly - the VI loaded into the subpanel takes in a string and a numeric and outputs a string, and I want the top level VI to execute an event structure each time the output string changes.
    thanks...
    If that's how you want to handle it, you should have 3 inputs, String, Value and User event, and inside the VI you check if the string has changed, in which case you generate an event. The Main VI will subscribe to the event and execute it.
    The event has ofcourse string data so you'll send the data up to Main vi.
    Easier would ofcourse to simply have the string output from the subvi and update the main vi's indicator each time.
    Whether you show it in a subpanel or as a popup vi is just a visual thing, the VI should work the same.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Trouble Passing Values Using onClick Event

    I have a page with a div, <div id= PF_Text_Panel></>,  containing text describing an image, the image is in a separate div.  Using CSS the text panel is on top of the image and covers about 1/3 of the image’s left side.  A slide effect, handled by the function Slide, targets the PF_Text_Panel div. The function Slide is triggered by an onClick event allowing the user to slide the description to the left and reveal the entire image.
    The function Slide contains an if statement. The if statement is used to determine if PF_Text_Panel is open or closed using the variable SldPnlState  as a flag like this; if the variable SldPnlState ==1, then run Slide.  The other part of this function, which actually slides the div is an instance of the Slide Effect, inserted using Dreamweaver CS4.
    The variable SldPnlState  is set using the function setSldPnlState
    The function setSldPnlState, initiated by an onClick, passes a value to the variable SldPnlState, in this case it can be set to either 0 or 1 by separate onClick events
    To test if the variable SldPnlState is being passed from the onClick event to the variable I included the function printVar which writes the value of the variable SldPnlState to the screen.
    I believe that the Spry effect Slide portion of the function works because if I go into the code and manually set the variable SldPnlState to 1 the function Slide works and if I set it to 0 the function Slide does not work.
    This the bug:
    printVar indicates that the value is being passed the variable SldPnlState, it displays either a 1 or 0 as expected. 
    The function Slide does not work however, when the variable SldPnlState should be set by the onClick event passing the value using the function setSldPnlState.  It does not seem like the value is being passed from the onClick event triggering the function or that somehow the script stops running.
    You can demo the page at: http://dg-ad.com/Slide_Effect_Logic_Parameter.html
      Attached is the code, if anyone has some suggestions I would really appreciate hearing from you
    <!--begin setup Spry Effects-->
    <script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
    <!--Begin pass variable from flagToggle parameter to SldPnlState variable includes printVar function to sent results to screen-->
    <script language="javascript" type="text/javascript">
    <!--begin set flag using onclick event-->
    var SldPnlState = (1);
    function setSldPnlState(flagToggle)
    SldPnlState = flagToggle;
    </script>
    <!--end set flag using onclick event-->
    <!--begin slider onclick event-->
    <script type="text/javascript">
    if(SldPnlState==1)
    function MM_effectSlide(targetElement, duration, from, to, toggle, transition, fps, horizontal)
    Spry.Effect.DoSlide(targetElement, {duration: 500, from: 0, to: 200, toggle: true, transition: 2, fps: 750, horizontal: true});
    //-->
    </script>
    <!--end slider onclick event-->
    <!--begin write variable onclick event-->
    <script type="text/javascript">
    function printVar()
    document.getElementById('test_display').innerHTML = SldPnlState
    </script>
    <!--end write variable onclick event-->
    </head>
    <body id="wrapper">
            <div style="padding-top:50px;">
            <a href="#" onclick="setSldPnlState(1);">Set var SldPnlState to Flag Status Set Open (1)</a><br><br><br>
            <a href="#" onclick="setSldPnlState(0);">Set var SldPnlState to Flag Status Set Closed (0)</a><br><br><br>
            <a href="#" onclick="printVar();">Print Flag Status to Screen</a><br><br><br>
            <div id="test_display" style="border:#9CC thick groove; width:50px; height:50px; margin:15px; text-align:center; font-size:36px;"></div>
            <a href="#" onclick="MM_effectSlide('PF_Text_Panel');">Slide Panel</a><br><br>
            </div>
    <div id="PF_Text_Panel" style="border:#9C9 thick solid; height:250px; margin-top:25px;">
      <div id="PF_Text" class="PF_Text">
      </div>
      <script type="text/javascript">
        var panelWidget_1=new Spry.Widget.HTMLPanel('PF_Text');
        </script>
    </div>

    Thanks so much for taking a look at this.  The whole reason I am doing this is that I couldn't find a state indicator flag in the Spry.Effect.DoSlide effect.
    I see that the htmlPanel does not have a bearing on the problem as you mentioned but not having the javascript doesn't matter either.  I am using the Spry.Effect.DoSlide effect, it is in the head,  in the function with the if statement, and it is making the div"PF_Text_Panel slide which works fine including the if statement.  If I set the var SldPnlState = (1) it works set it to 0 and the slide effect is disabled.  I need to be able to change the variable using an onclick event.
    The problem as you mention is with the function SldPnlState = flagToggle;  This is what I need to do.  I need to pass a value to  the variable SldPnlState from an onclick event.  As the function Slide is set up, with an if statement, the div will slide if SldPnlState=1 and the slide function will turn off if SldPnlState=0.  However when I do the onclick="setSldPnlState(1);"event there is no effect on the Slide function.  The value seems to pass to the variable tSldPnlState since I can get the value of this same variable to display using the function printVar() which will display 1 or 0 depending on which onclick event I run.  It seems like the I can pass the variable from the onclick event it's just that if statement in the function MM_effectSlide never sees it.  I don't know enough to trouble shoot this.  But I will take a closer look at the SldPnlState = flagToggle; part as you suggest.

  • Handling User Events in sub panel vis and main vis with same Event reference Number.

    Hi All, Iam trying to work to handle events in both subpanel vi and main vi.
    I have a main program, and 2 sub vi. I will load the sub VI in 2 sub panels in main vi. Each sub pael vi has controls on it.
    I have created 2 User events for 2 sub panels vi. One user event consits of a Cluster with 2 Booleans (x & Y) and Other User Event consists of cluster of 2 unsigned 8 Numbers (a & b). These are created and registered in the main Vi and event register refnum is passed to the subpanel vi from the main panel vi.
    I have Event structure in main panel and sub panel vis.
    In one sub panel vi, When the value of one boolean(i.e. X) in the clusters changes, the Events structure in sub panel vi should perform some operation in sub panel vi only. When the value of other boolean (i.e. Y) changes it should perform some operation in main vi. I will try to Generate user event with the x value and Y value changed based on the control clicks in the sub panel vi.
    The OTher panel vi should behave in the smae way when the a & b value changes.
    The "Generate User Event" is working fine some times and sometimes there in no event triggered in the sub panel vi or main vi.
    Please let me know what is the problem Ramesh.

    There is a lot of talking, but not much understanding.  It'd be better if you posted some example VI's of what you are trying to do so that the words will make sense.
    One thing I can tell you is that you don't want to have two event structures handle the same event reference number.  You want to have two event registrations with each one going to its own event structure.

  • Portal Events---WDA view is empty on initialization

    Hello everyone,
    I created a WDA application which will be integrated with Employee Search Iview (provided by SAP).  Everything is working fine...only issue is that when we display the page first time...my WDA view is empty...untill we click on an employee....I want to get the first employee from the list and display his/her info in my WDA view as soon as we open up the page.
    I cannot seem to find any info on which event this Employee search iview triggers in the initialization and what parameters this event passes on.  Is there any documentation on this? I mean list of event trigger by this employee search iview and event names? 
    Once again...when we click on an employee from the list....we are populating the data in WDA view...no problem there....we just want to show data when we first come to the page....same as SAP does for its Employee search iview and general data iview....these iviews are from SAP...and when we put them together...general data iview fetchs the data for the first employee in the list....on initialization....but our WDA view stays empty....
    Thanks...
    J.

    Hi J,
    when we click on an employee from the list....we are populating the data in WDA view...no problem there....we just want to show data when we first come to the page.
    conceptually you need to place method in WDDOINIT of default view in your  WD4A application and try to read the first element of the employee list. This would be little different than reading the employee data from event, may be you can have some method in the ASSISTANCE class that attached to your WD Application that can read employee, data as soon as there is one available .
    Greetings
    Prashant

  • Read workitem Container Value in Terminating event Check Function Module

    Hi
    I have some problems reading work item data / values of a work item container element in a check function module on a terminating event – Do any of you know if this is possible, and if so, how it’s done ?
    In My scenario I have created a multiline approval step for my business document, one task pr Line Owner.  The Event Approved is defined as a terminating event for this task, and the line owner is passed to the task container.
    Now, when I raise the event, with the line owner as an event parameter, I would like to check if the line owner on the raised event, matches the line owner in the task container in question in a check fm. But here I faced the problem, that only event data, and not work item data, are passed to the Check Function module.
    Regards,
    Morten Nielsen

    Hello Morten, hello Arghadip,
    in the instance linkage's check function module (entered via transaction SWEINST) you'll have the workitem-id in the system event parameter EVTRECEIVER_ID
    With this number you can use the frame work in order to read the work item container.
    This is a sample coding, how you access the correct work item container using SAP Enterprise and it's new OO frame work, which checks on the terminating event of BUS2105.Released the correct release code for a work item.
    INCLUDE <cntn01>.
    INCLUDE <SWFCNTN01>.
    INCLUDE RSWEINCL.
    *** Read workitem instance and container from event
           DATA: wi_id            TYPE swwwihead-wi_id.
           swc_get_element EVENT_CONTAINER evt_receiver_id wi_id.
           IF sy-subrc <> 0.
              MESSAGE E015(ZPREL) WITH evt_receiver_id
                                           RAISING wrong_call.
           ENDIF.
           DATA: lv_wi_handle    TYPE REF TO if_swf_run_wim_internal.
           DATA: ls_context      TYPE sww_wimctx.
           DATA: lv_wi_container TYPE REF TO if_swf_cnt_container.
    *    - set context
           ls_context-do_commit  = ' '.
           ls_context-called_btc = 'X'.
           ls_context-exec_user  = sy-uname.
           ls_context-fbname     = 'Z_CHECK_RELEASE_CODE'.
           CLEAR lv_wi_handle.
           CALL METHOD cl_swf_run_wim_factory=>initialize( ).
           CALL METHOD cl_swf_run_wim_factory=>find_by_wiid
                   EXPORTING
                      im_wiid             = wi_id
                      im_read_for_update  = ' '
    *                 im_enqueue_owner    = fb_name
    *                 im_wait_for_enqueue = 'X'
                      im_context          = ls_context
                   RECEIVING
                      re_instance         = lv_wi_handle.
    *** This check is only done for workitem linkage TS90100081
           IF lv_wi_handle->m_sww_wihead-wi_rh_task <> 'TS90100081'. "#EC_SYNTEXT
              EXIT. "Let event pass, as this is an instance linkage to another workitem
           ENDIF.
           DATA: releaseCode_wi        TYPE t16fc-frgco.
    *    - read releaseCode from workitem container
           lv_wi_container = lv_wi_handle->get_wi_container( ).
    *    - perform binding event container -> workitem container
           swf_get_element lv_wi_container 'RELEASECODE' releaseCode_wi.
          DATA: e             TYPE REF TO cx_swf_run_wim.
          CATCH cx_swf_run_wim INTO e.
             RAISE WORKFLOW_RUNTIME_ERROR.
       ENDTRY.
    *** From here on, the variable releaseCode_WI hold the
    *** container element RelaseCode of the work item, that
    *** is going to be terminated...
    *** Further coding from here as appropriate...
    Best regards,
    Florin

  • How to queue custom events with out using af:calientListener.- onKeyUp.

    Hi,
    I have a custom component ( extending richinput text).
    defined a new attribute called "onkeyup" and added necessary logic in Renderer. Some thing like
    write.writeAttribute("onkeyup" , "handleEvent()");
    I rendered the java script code too ..... in my custom renderer. ( I neigther want to write java script in metaContainer of document tag nor wants to use resource tag..)
    and the handleEvent code is something like this.
    function handleEvent()
    In this method i want to write the code which pushes my custom event to the queue.
    some thing like this..
    component = event.getSource();
    AdfCustomEvent.queue(component, "customEvent",{payload:component.getSubmittedValue()}, true);
    event.cancel();
    Usually if use a clientListener then it will call the method {  handleEvent(event)  } passing event parameter so that we can get the source of that event.
    But as i dont want to use the clientEventListener.... as of now... i can't get the component because i don have the event object with my method.
    So could any one please letme know , how can i queue my custom event in to my customcomponent... with out using ClientListeners.
    Edited by: mchepuri on Nov 9, 2009 10:04 AM

    Hi,
    AFAIK, you cannot queue an event to the serverListener without a clientListener.
    -Arun

Maybe you are looking for