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.

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 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

  • 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

  • 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.

  • JTable have no resize cursor under a JLayeredPane

    Hi,
    i have over my JScrollPane a JLayeredPane to show infotext.
    When the JLayeredPane is over the JScrollpane you can resize the column but the JTable show no resize Cursor.
    Does anybody know why?
    import java.awt.Component;
    import java.awt.Dimension;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JLayeredPane;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.WindowConstants;
    import javax.swing.table.DefaultTableModel;
    public class NoResizeCursorDemo extends JFrame
      public NoResizeCursorDemo()
        JTable table = new JTable( new DefaultTableModel( new String[]{ "aaa", "bbb" }, 10 ) );
        JScrollPane scrollPane = new JScrollPane( table );
        InfoLayer layer = new InfoLayer( scrollPane );
        add( layer );
      public static void main( String[] args )
        NoResizeCursorDemo frame = new NoResizeCursorDemo();
        frame.setDefaultCloseOperation( WindowConstants.EXIT_ON_CLOSE );
        frame.pack();
        frame.setVisible( true );
      class InfoLayer extends JLayeredPane
        private final JComponent wrappedComponent;
        public InfoLayer( JComponent wrappedComponent )
          this.wrappedComponent = wrappedComponent;
          setLayout( null );
          add( wrappedComponent, JLayeredPane.DEFAULT_LAYER );
          setInfoText();
        private void setInfoText()
          add( new JLabel( "Info......" ), JLayeredPane.POPUP_LAYER );
          revalidate();
        @Override
        public Dimension getPreferredSize()
          return wrappedComponent.getPreferredSize();
        @Override
        public void doLayout()
          Dimension size = getSize();
          Component layers[] = getComponents();
          for ( Component layer : layers )
            layer.setBounds( 0, 0, size.width, size.height );
    }Thanks

    Hi,
    I had almost the same problem with JTable and JSplitPane, the components worked fine, but cursor did not change when require.
    I already had in place mouse events dispatching in my top layer. It passed all events to the components underneath (see example in [Glass Pane Demo Project|http://java.sun.com/docs/books/tutorial/uiswing/examples/components/GlassPaneDemoProject/src/components/GlassPaneDemo.java]; in my case the listener was the content panel of the top layer).
    And now here is the trick around the cursor. Within the custom dispatch method I've called the following:
    this.setCursor(comp.getCursor());
    where "this" is the content panel of the layer and comp is the component where mouse event passed to.
    Hope that helps!
    Regards,
    Sergey

  • 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

  • How to Enter Event Parameters in FM SAP_WAPI_CREATE_EVENT_EXTENDED

    Hi,
    I am trying to trigger theEvent 'START_RM_WEBREQ' for an ABAP Class 'CL_HREIC_RM_WORKFLOW' using the above mentioned FM.
    Usually this can be done using SWUE, however I am asked to do it create a custom program that would do the functionality for SWUE.
    Problem is I cannot figure out how do I enter the Parameters of the Event via this FM SAP_WAPI_CREATE_EVENT_EXTENDED.
    The event parameters for the event 'START_RM_WEBREQ' is Object Type and Key. Usually when doing it via SWUE we are prompted with a dynamic screen which asks us to populate the values.
    Please help.
    Thanks,
    Pablo

    Hi,
    Thank you for your response. But I am facing the same problem there. I am not able to populate the value of the Parameter for the event START_RM_WEBREQ.
    The code I had written initially is similar to the one in the link that you have sent:
    TABLES: swotobjid.
    SELECT-OPTIONS: s_notif FOR swotobjid-objkey NO INTERVALS .
    DATA: lv_objtype TYPE sibftypeid,
          lv_event   TYPE sibfevent,
          lv_objkey  TYPE sibfinstid,
          lr_event_parameters TYPE REF TO if_swf_ifs_parameter_container,
          lv_param_name TYPE swfdname,
          lv_value   TYPE char80.
    lv_objtype = 'CL_HREIC_RM_WORKFLOW'.
    lv_event   = 'START_RM_WEBREQ'.
    LOOP AT s_notif.
      lv_objkey  = s_notif-low.
    *Instantiate an empty event container
      CALL METHOD cl_swf_evt_event=>get_event_container
        EXPORTING
          im_objcateg  = cl_swf_evt_event=>mc_objcateg_cl
          im_objtype   = lv_objtype
          im_event     = lv_event
        RECEIVING
          re_reference = lr_event_parameters.
    *Set up the name/value pair to be added to the container
      lv_param_name = 'NOTIFICATION'.
      CONCATENATE 'BUS7051' lv_objkey INTO lv_value SEPARATED BY space.
    *Add the name/value pair to the event conainer
      TRY.
          CALL METHOD lr_event_parameters->set
            EXPORTING
              name  = lv_param_name
              value = lv_value.
        CATCH cx_swf_cnt_cont_access_denied .
        CATCH cx_swf_cnt_elem_access_denied .
        CATCH cx_swf_cnt_elem_not_found .
        CATCH cx_swf_cnt_elem_type_conflict .
        CATCH cx_swf_cnt_unit_type_conflict .
        CATCH cx_swf_cnt_elem_def_invalid .
        CATCH cx_swf_cnt_container .
      ENDTRY.
    Raise the event passing the prepared event container
      TRY.
          CALL METHOD cl_swf_evt_event=>raise
            EXPORTING
              im_objcateg        = cl_swf_evt_event=>mc_objcateg_cl
              im_objtype         = lv_objtype
              im_event           = lv_event
              im_objkey          = lv_objkey
              im_event_container = lr_event_parameters.
        CATCH cx_swf_evt_invalid_objtype .
        CATCH cx_swf_evt_invalid_event .
      ENDTRY.
      COMMIT WORK.
      MESSAGE s736(wz).
    ENDLOOP.

Maybe you are looking for

  • I can't create audio CD in itunes 10.3

    I "upgraded" to iTunes 10.0.0.68 a while back. When I did this the various options for creating an audio CD vanished. I've scoured many apple forums & found lots of people have this issue. The feedback they get is generally insinuating that they are

  • Getting error in httpd

    Hey guys, I'm getting following error in apache Mar  4 17:06:08  kernel: [16641583.665521] httpd[15747]: segfault at 0 ip   (null) sp b144ac58 error 14 in httpd[8048000+12a000] Mar  4 17:06:09  kernel: [16641584.584892] httpd[15890]: segfault at 0 ip

  • Difficulty printing borderless photos for custom sizes

    I am finding it difficult to print a borderless photo. When I try to print using the photo paper I have it always prints a border (or does not print in the border - so i guess this is called cropped). The photo paper is not in the "Paper Size" list o

  • Uninstalled and reinstalled the firefox, i can't get the bookmarks back

    I always use the sync to back up all my bookmarks and the others, but i noticed Firefox was playing up, so i uninstalled and then reinstalled it. the sync didn't work and i have lost all my bookmarks and the others. how can i get them back? Please i

  • Production Cost Analysis

    Hi All, My client following MTS scenario's for 2 plants... Remaining 3 Plants they are following MTO and ETO. In MTS we have one production  Order i.e. 439. Total Quantities = 10 We have  issued the materials against this Order with movement type 261