How to trigger Entity's callback method?

In my project(JPA2.0,EclipseLink,mysql),I have a entity listener. For example,When entity updated, the method with annotation '@postupdate' will be triggered. This works well.
But sometimes,user updated the entity(getEntityManager().merge), JPA provider will check whether entity's property changed. If there is no change in entity, JPA provider will not update this entity.(This is cache mechanism,I think). So the the method marked '@postupdate' will not be triggered. But I need the '@postupdate' method triggered at this situation. How to do it?

Just thought of something else you can try (if it's that important):public class A {
    public String toString () {
        return "A";
public class B extends A {
    public String toString () {
        return "B (A: " + super.toString () + ")";
}Kind regards,
  Levi

Similar Messages

  • How to call Apps Module Custom Method from Entity Object / View Object ?

    Hi All,
    I create a custom method in AppsModuleImpl.java. How can I call that custom method from a setter method on Entity Object / View Object ?
    (I have tried to use Configuration.createRootApplicationModule(amDef,config); but it is not the correct way, is it? )
    Below is my code :
    The setter on MyEntityImpl.java :
    public void setKodeprd(String value) {
    setAttributeInternal(KODEPRD, value);
    if (getProduct() != null) {
    // CALL the getSalesPrice custom method from here, HOW ??
    The Application Module custom method :
    public Number getSalesPrice(String priceCode, String kodePrd) {
    Number price = new Number(0);
    String [] theKey = {priceCode, kodePrd};
    Key priceKey = new Key(theKey) ;
    ViewObject SalesPrice = getSalespricedView1();
    Row[] salesPriceRow = SalesPrice.findByKey(priceKey, 1);
    price = ((SalespricedViewRowImpl)salesPriceRow[0]).getPrice();
    SalesPrice.remove();
    return price;
    Thank you for your help,
    xtanto

    inside the EntityObjectImpl :
    YourAppModuleImpl am = (YourAppModuleImpl)getDBTransaction().getRootApplicationModule().findApplicationModule("YourAppModuleorServiceName");

  • Entities callback methods

    Hi ,
    are the JPA / Toplink provider Entities callback methods (e.g. @PrePersist) synchronized ??
    Thanks
    Regards ,

    hi ,
    i know that , but what i want exactly is to keep my data conistent , i want to make sure that the PrePersist event would not be executed from 2 threads at the same time , the code within PrePersisit would be resposible of generating an ID , and this ID depeneds on values on DB that might change after the Entity is insearted , how does JPA helps me in this ???
    Thanks
    Message was edited by:
    mr_jaber

  • CL_SALV_TABLE - how to trigger Double_Click question

    I am trying to find how to trigger an event on double click similar to  using Event Double_Click in Class CL_GUI_ALV_GRID   I am fresh out of the ABAP OO class and everything is a blur.  This is what I did.  I created a program that  with
    Data: r_grid TYPE REF TO cl_salv_table.
    CALL  METHOD CL_SALV_TABLE=>FACTORY
      Importing R_SALV_TABLE   = r_grid 
      Changing ITAB.
    I then tried to create an Include program to define a Local Class
    *&  Include           ZSD_DISPLAY_CUSTOMER
    class lcl_event_handler definition.
    PUBLIC SECTION.
      METHODS: on_double_click for event double_click of cl_gui_alv_grid
    METHODS: on_double_click for event double_click of cl_salv_table
                 IMPORTING es_row_no e_column.
    ENDCLASS.
    class lcl_event_handler IMPLEMENTATION.
    METHOD on_double_click.
    Data: IT_CUSTHIER type ZSD11_CUST_HIER_TABLE_TYPE.
    Data: WK_CUSTHIER LIKE LINE OF IT_CUSTHIER.
    types: BEGIN OF custhier_x,
            custhier like WK_CUSTHIER,
            number TYPE int4,
            quantity type MENGE_D,
            dollars_n_cents type DMBTR,
           END OF   custhier_x.
    data: it_custhier_x type STANDARD TABLE OF custhier_x.
    data: wk_custhier_x like LINE OF it_custhier_x.
        read table it_custhier_x into wk_custhier_x
         index es_row_no-row_id.
    data: wk_vkorg type vkorg.
    data: wk_vtweg type vtweg.
    data: wk_spart type spart.
    wk_vkorg = '3290'.
    wk_vtweg = '00'.
    wk_spart = '00'.
    SET PARAMETER ID: 'KUN' field wk_custhier_x-custhier-kunnr.
    SET PARAMETER ID: 'VKO' field wk_vkorg.
    SET PARAMETER ID: 'VTW' field wk_vtweg.
    SET PARAMETER ID: 'SPA' field wk_spart.
    call TRANSACTION 'VD03' AND SKIP FIRST SCREEN.
    ENDMETHOD.
    ENDCLASS.
    When I try to do a syntax check I get this error 
    The Handler Method ON_DOUBLE_CLICK is only defined for trigger objects of CL_GUI_ALV_GRID, but the system tried to register a trigger object of CL_SALV_TABLE
    Any suggestions on what I need to do in order to trigger a event for double click ?
    Thanks
    Edited by: Bob Ackerman on Sep 22, 2010 11:25 AM

    I am not getting anything to happen on double click.   In debug mode, I see that it calls program SAPLSLVC_FULLSCREEN and gets to FORM  SELFIELD_GET  which gets the row, column, and value of the field that was double clicked.  But, nothing seems to be returned to my program.  I am fresh out of the ABAP OO class and everything is a blur.  My test program is listed below, if you would be so kind as to take a look and maybe see what I am missing.
    Include program   ZSD_DISPLAY_CUSTOMER
    class lcl_event_handler definition.
    PUBLIC SECTION.
    **  METHODS: on_double_click for event double_click of cl_gui_alv_grid
    **             IMPORTING es_row_no e_column.
    METHODS:
          on_DOUBLE_CLICK
            FOR EVENT DOUBLE_CLICK OF cl_salv_events_table
              IMPORTING
                row
                column  .
    ENDCLASS.
    class lcl_event_handler IMPLEMENTATION.
    METHOD on_double_click.
    **    data: it_sflight type TABLE OF sflight,
    **          wa_spfli  type spfli.
    Data: IT_CUSTHIER type ZSD11_CUST_HIER_TABLE_TYPE.
    Data: WK_CUSTHIER LIKE LINE OF IT_CUSTHIER.
    types: BEGIN OF custhier_x,
            custhier like WK_CUSTHIER,
            number TYPE int4,
            quantity type MENGE_D,
            dollars_n_cents type DMBTR,
           END OF   custhier_x.
    data: it_custhier_x type STANDARD TABLE OF custhier_x.
    data: wk_custhier_x like LINE OF it_custhier_x.
      data: ls_row_id type lvc_s_row.
      data: ls_col_id type lvc_s_col.
      data: l_value type lvc_s_data-value.
      data: ls_selfield type lvc_s_self.
      data: ls_fieldcat type slis_fieldcat_alv.
      data: ls_fieldcat_lvc type lvc_s_fcat.
    data: wk_vkorg type vkorg.
    data: wk_vtweg type vtweg.
    data: wk_spart type spart.
    wk_vkorg = '3290'.
    wk_vtweg = '00'.
    wk_spart = '00'.
    SET PARAMETER ID: 'KUN' field wk_custhier_x-custhier-kunnr.
    SET PARAMETER ID: 'VKO' field wk_vkorg.
    SET PARAMETER ID: 'VTW' field wk_vtweg.
    SET PARAMETER ID: 'SPA' field wk_spart.
    call TRANSACTION 'VD03' AND SKIP FIRST SCREEN.
    ENDMETHOD.
    ENDCLASS.
    In the main program :
    CREATE OBJECT CUST_HIER
      EXPORTING
        IM_HIERARCHY_TYPE = 'A'
    *    IM_CUSTOMER_NUMBER =
        IM_SALES_ORG = '3290'
        IM_DIST_CHANNEL = '00'
        IM_DIVISION = '00'
        IM_VALIDITY_DATE = '99991215'.
       CALL METHOD CUST_HIER->GET_CUSTHIER_NODES
         IMPORTING EX_CUSTHIER = IT_CUSTHIER.
       it_custhier_x = IT_CUSTHIER.
    TRY.
      CALL METHOD CL_SALV_TABLE=>FACTORY
    *    EXPORTING
    *      LIST_DISPLAY   = IF_SALV_C_BOOL_SAP=>FALSE
    *      R_CONTAINER    =
    *      CONTAINER_NAME =
        IMPORTING
          R_SALV_TABLE   = r_grid
        CHANGING
          T_TABLE        = IT_CUSTHIER_X.
       CATCH CX_SALV_MSG .
      ENDTRY.
    *... §3 Functions
    *... §3.1 activate ALV generic Functions
      data: lr_functions type ref to cl_salv_functions_list.
      lr_functions = r_grid->get_functions( ).
      lr_functions->set_default( abap_true ).
    *... set the columns technical
      data: lr_columns type ref to cl_salv_columns.
      lr_columns = r_grid->get_columns( ).
      lr_columns->set_optimize( abap_true ).
      perform set_columns_technical using lr_columns.
      r_grid->display( ).
    lr_events = r_grid->get_event( ).
      create object gr_events.
      set handler gr_events->on_double_click for lr_events.
    Edited by: Bob Ackerman on Sep 22, 2010 5:30 PM
    Edited by: Bob Ackerman on Sep 22, 2010 5:35 PM
    Edited by: Bob Ackerman on Sep 22, 2010 5:37 PM

  • How to trigger change documents based on inbound-idoc?

    Hi experts,
    Currently I'm working in on a project where I have to create an interface based on IDOCS. This is an interface for two SAP-HR systems.
    If there are made changes in the dialog (gui) by a user, there will be created a change document, which can be displayed by report RPUAUD00. For the inbound-interface based on idocs it's important that there will also be created a change document in the system based on this idoc. We have tested this, but no change document is created.
    Can anybody help me to solve this problem: "How to create a change document based on the inbound-idoc?"
    Thanks in advance.
    With kind regards,
    Roy

    Thanks for responding. First, I like the idea of defining an event, but I'm still stuck with how to trigger it. I looked at dynamically registering events, and maybe doing something where a click on the graph control registers an event for key presses on the vi. I'd still have to figure out out to terminate the key press event. Unfortunately, (actually it's a feature I like..) there are a number of different ways to complete typing in a scale change. I routinely use ctr-enter (habit from working on a laptop), though enter works fine, and clicking somewhere else is probably the most common method. I am not that familar with User Defined Events, so I may be overlooking something obvious here.
    The graphs are a Bode Plot, with a seperate graph for RPM vs Phase Lag, and RPM vs Magnitude. I want them to always be plotted on the same x-axis. The plot is generated when the user doubleclicks on a dataset. After that, it's just the user looking at it. They can change the axis without any new data being generated.
    Thanks,
    Chris

  • How to trigger left_click_run event on ALV GRID

    Hiiiiiiii........
    Can any of u please tell me how to trigger left_click_run event on ALV GRID.
         There is an event LEFT_CLICK_RUN and  its a public accessed event. But the problem is , the corresponding  attribute of this event  "EVENT_LEFT_CLICK_RUN" which is needed to registered that event (We need to register our events through a method set_register_events  using table of type cntl_simple_events...) is protect accessed. So I am unable to use that attribute...Could u please tell  me is there any alternative way to register that event.......ANY POSSIBLE WAY?
    Thanks in advance,
    Rams

    I think you should use event selection_changed. Note that you shouldn't allow multiple selection for the tree at the same time, i.e. use: create object g_tree exporting \[...\] node_selection_mode = cl_gui_column_tree=>node_sel_mode_single.
    For more information, see this thread: Urgently required :  cl_gui_alv_tree single_click event...

  • Java.rmi.ConnectException on calling callback method

    I have an interface exposed as a remote service with a simple method to register the callback object on wich the server calls a method to notify an event.
    public void registerForNotification (ExitCodeCallback callback) throws RemoteException;
    public interface ExitCodeCallback extends Remote
       * @param event
       * @throws RemoteException
      public void notifyExitCode (ExitCodeEvent event) throws RemoteException;
    public class ExitCodeEvent implements Serializable
       * Comment for <code>serialVersionUID</code>
      private static final long serialVersionUID = -8542839971016423057L;
      private Integer code;
      private String sourceName;
       * @param source
       * @param exitCode
      public ExitCodeEvent (String source, Integer exitCode)
        exitCode = code;
        sourceName = source;
       * @return Object
      public Object asString ()
        return sourceName + " exited with code " + code;
    }When the server try to call this method causes an exception to be thrown
    java.rmi.ConnectException: Connection refused to host: 26.2.242.76; nested exception is:
         java.net.ConnectException: Connection refused: connect
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
         at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:179)
         at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
         at $Proxy2.notifyExitCode(Unknown Source)
         at it.sogei.jscheduler.rmi.server.SchedulerServicesServerSide$InnerServerExitCodeCallback.notifyExitCode(SchedulerServicesServerSide.java:156)
         at it.sogei.jscheduler.rmi.server.ApplicationTask.notifyExitCode(ApplicationTask.java:129)
         at it.sogei.jscheduler.rmi.server.WaiterThread.run(WaiterThread.java:47)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:516)
         at java.net.Socket.connect(Socket.java:466)
         at java.net.Socket.<init>(Socket.java:366)
         at java.net.Socket.<init>(Socket.java:179)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
         ... 10 morebut, surprisingly, the client receives the event even if the ExitCodeEvent.asString() called on that object print the following line
    null exited with code null.
    I wonder how this could be happened?

    - It happens every single time the callback method is invoked, I see the event been deserialized client-side with the fields initialized with null values and server-side there is the java.rmi.ConnectException.
    - The client can't unexport the callback object, that's because I didn't think to do it.
    this is the method where I start to notify to all the registered client the event
    for (ExitCodeCallback callbackElement : callback)
            try
              callbackElement.notifyExitCode(event);
            catch (RemoteException ex)
              logger.debug("Unable to notify.", ex);
          }where
    List<ExitCodeCallback> callback;and implementation of the callback interface is
    public class ClientExitCodeCallback implements ExitCodeCallback
      transient Logger logger = Logger.getLogger(ClientExitCodeCallback.class);
       * @see it.sogei.jscheduler.ExitCodeCallback#notifyExitCode()
      public void notifyExitCode (ExitCodeEvent event) throws RemoteException
        logger.warn(event.asString());
    }

  • How to trigger an event in the program

    Hi,
    I have a program. The purpose of the program is to retrieve the data matching the selection criteria and downlod the same to a file.
    In the selection screen, I have a parameter called 'EVENT'. Here, user enters some event name. Generally, they enter the 'Background job processing events'.
    So, my requirement is... once the files are successfully downloaded, the program should trigger the 'EVENT' specified in the selection screen at run time.
    Can someone help me in this regard. How to trigger an EVENT in the program. Is there any Function Module or Method available in SAP which triggers the EVENT at runtime.
    And is there any table available in SAP which stores all the events available in SAP. Because, whenever the user enters an EVENT in the selection screen, we should check whether the event is valid or not. So, if there is any table available which has all the events then, it will be easy I guess. or is there any other way to validate the EVENT name.
    Please help me. Thanks in advance,
    Best Regards,
    Paddu.

    Hello Paddu,
    have a look at tables
    - btcsev, btcsed (system events)
    - btcuev, btcued (user events)
    and use function BP_EVENT_RAISE.
    kind regards
    Walter Habich

  • How to trigger the automated row fetch process and open modal window by javascript api?

    Hi,
    I would like to click the one row of column of IR report, to open the modal window of current page.  <----------------it is ok. I can use "javascript:openModal('windowID')"  to do it.
    There is one form in this modal window, Meanwhile, I would like to pass column data to this form.    <--------------------- it is ok also. I can use " $s('P7_ID','column_value');" to do it.
    But I don't know how to trigger the "automated row fetch" process of this form to retrieve other field's value in this form.   
    I tried to use following 2 ways. But failed.
    First method:
    add one ajax process of "automated row fetch" in "page processing" block, named "get_fetch_data"
    when click IR column , call "openModal", and call  "apex.server.process ( "get_fetch_data", {}, { success: function( pData ) { }  } );"  , I tried to call above ajax process to refresh form. It is failed.
    Second method:
    add one process of  "automated row fetch" in "page rendering" block, named "get_fetch_data"
    when click IR column, call javascript api "apex.submit" to submit current page , then call "openModal".
    such as :  javascript:apex.submit({request:'MODIFY',set:{'P7_ID': #ID#}}); openModal('trade');
    But it is failed also. the modal page is showed firstly. then page refresh. but modal window will not open again.
    I am not sure if my thinking is right. Could you please provide any suggestion?
    Thanks in advance,
    Ping

    Hi Ping,
    You can try to set the session state of your modal page's primary key before opening the modal page. Use one dynamic action (on click of IR row) with two true actions. First one to set session state of modal page pk, second on to open modal page.
    Or you can add the modal page url as link in your report by extending your query:
    select ...
    ,         apex_util.prepare_url( 'f?p='||:APP_ID||':7:'||:APP_SESSION||'::'||:DEBUG||':7:P7_ID'||COLUMN_VALUE ) as link
    from ...
    This will give you the url of the modal page, with set primary key.
    Regards,
    Vincent Deelen
    http://vincentdeelen.blogspot.com

  • Service MBean with callback Method?

    Hi,
    I have an application written for JBoss AppServer. There is a ManagedBean that extends a JBoss specific class org.jboss.system.ServiceMBean. This class provides a callback Method "startService()" wich is called by JMX.
    I now want to migrate to WebLogic 10. My question is (as I am not deep into MBeans) is there something similar in WebLogic? Is there an interface provided to achieve a service-like behavior like I mentioned? How can this be done?!
    Thanks in advance.
    Cheers

    Callback functions are more performant. Event listeners allow for a higher degree of decoupling in some cases, because you often don't need to know where the thing is you're listening to and the thing dispatching the event doesn't need to know or care who, if anyone, is listening. And as soon as you need for more than one thing to listen, callbacks get more complex (see AS3 Signals).
    With either callbacks or event listeners, keep in mind you are handing a reference to the listening object to the dispatching object. Make sure to clean everything up when the listening object is no longer in use, or you can wind up with memory leaks.

  • How to trigger workflow from abap program

    Hi Experts,
    i have a user developed screen in which there is an option to approve (not a std tcode)
    for which there is no event created.
    i am very new to workflow ,
    now how to create an event and also how to trigger the workflow

    Hi,
    You can run a ABAP report or call a transaction from the BOR's Method directly.
    Check this link for more info.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/9a3cb3971c11d194c60000e82dec10/frameset.htm.
    In order to trigger an event programmatically, we would use the function module SWE_EVENT_CREATE.
    BUS1001006 ( Standard Material )
    here is the sample code.
    DATA: key LIKE sweinstcou-objkey.
    key = '68." Material Number (hard-coded)
    CALL FUNCTION 'SWE_EVENT_CREATE'
    EXPORTING
    objtype = 'BUS1001006'
    objkey = key
    event = 'CREATED'
    CREATOR = ' '
    TAKE_WORKITEM_REQUESTER = ' '
    START_WITH_DELAY = ' '
    START_RECFB_SYNCHRON = ' '
    NO_COMMIT_FOR_QUEUE = ' '
    DEBUG_FLAG = ' '
    NO_LOGGING = ' '
    IDENT =
    IMPORTING
    EVENT_ID =
    TABLES
    EVENT_CONTAINER =
    EXCEPTIONS
    OBJTYPE_NOT_FOUND = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ELSE.
    WRITE 'Event Triggered'.
    ENDIF.
    COMMIT WORK.
    In order to test whether the event is getting triggered or not, we can make use of Event Trace. Switch on the event trace using the transaction SWELS.
    Press ‘Switch On”.
    Now execute the program developed earlier. Now switch-off the event trace using the same transaction SWELS.
    Now go to transaction SWEL. Here you can list out the events triggered in the particular period of time. Here is the event-trace list:
    Regards

  • How to trigger temperature acquisition (6024E) at the start of signal generation from NI5411?

    I'd like to begin/end acquiring temperature data with the 6024E after the start/stop of the signal output from the 5411. What is the best way to accomplish this? is software or hardware triggering better?

    Rudy,
    Using a hardware trigger is definitely the more precise method. I would suggest that you consider using markers from the NI 5411 to trigger the NI 6024E. Information concerning this topic is available in the NI Signal Generators Help. Specifically, it is available in the following location:
    Contents >> NI Signal Generators Help >> Devices >> NI 5411 >> Waveform Generation >> Marker Events
    If you do not have the NI Signal Generators Help, it can be downloaded from the following location:
    NI Signal Generators Help (NI 5401/5404/5411/5421/5431)
    Once you have exported the appropriate makers, numerous examp
    le programs exist that demonstrate how to trigger the NI 6024E. If you are using LabVIEW, I would suggest that you examine the Acquire N Scans Digital Trig.vi example.
    Good luck with your application.
    Spencer S.

  • How to define custom event and how to trigger the defined event

    hi,guys
    hurry issue....................hope get help.
    I am using oracle weblogic 10gr3 portal.and we choiced java portlet.as of now,we got some question about custom Event.hope you can give some idea....
    thank you so much.
    question detail:
    1.for java portlet ,how to define custom event.
    2.how to trigger this event.
    3 about the data,may be sometime need to transit Biz data.
    auctully,I just want to implements between two portlets communicate.
    for example:
    existing portletA,portletB.
    portletA is a list,like:
    A AA <button>
    after I click this buttom,then portletB will be effect,it means they are interact with each other.
    does anybody hit this issue before,if you solved pls share me .
    thank you for you help....

    Hello,
    Please note that everything below applies to JSR168 portlets ONLY- JSR286 portlets and other portlet types handle events a little differently.
    From inside your JSR168 portlet you can send an event during processAction or when receiving another event by using the PortletBackingContext object, such as:
    import javax.portlet.ActionResponse;
    import javax.portlet.ActionRequest;
    import javax.servlet.http.HttpServletRequest;
    import com.bea.netuix.servlets.controls.portlet.backing.PortletBackingContext;
    public void processAction(ActionRequest actionRequest, ActionResponse actionResponse)
    HttpServletRequest httpRequest = (HttpServletRequest) actionRequest.getAttribute("javax.servlet.request");
    PortletBackingContext portletBackingContext = PortletBackingContext.getPortletBackingContext(httpRequest);
    portletBackingContext.fireCustomEvent("customEvent", "This is a custom event");
    To receive an event, in your .portlet file you just need to put in a "handleCustomEvent" tag specifying which method to call when the event is received, such as:
    <?xml version="1.0" encoding="UTF-8"?>
    <portal:root xmlns:netuix="http://www.bea.com/servers/netuix/xsd/controls/netuix/1.0.0"
    xmlns:portal="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/servers/netuix/xsd/portal/support/1.0.0 portal-support-1_0_0.xsd">
    <netuix:javaPortlet title="Listening Portlet" definitionLabel="yourPortletName">
    <netuix:handleCustomEvent event="customEvent" eventLabel="customEvent" filterable="true" description="custom event handler">
    <netuix:invokeJavaPortletMethod method="processCustomEvent"/>
    </netuix:handleCustomEvent>
    </netuix:javaPortlet>
    </portal:root>
    Then, in your receiving portlet the method "processCustomEvent" would receive the event, such as:
    public void processCustomEvent(ActionRequest actionRequest, ActionResponse actionResponse, Event event)
    The event payload can be any Serializable object you want, but for forward-compatibility with JSR286 it would be ideal if it had a valid JAXB binding.
    Kevin

  • Reg - how to find the purpose of methods in a class

    hi everyone,
               can u plz help me with how to find the purpose of methods in a class???????
    a description abt the methods in a class??????
                        thx in advance,
    regards,
    balaji.s

    Hi Balaji
    Pls find some stuff.
    reward pts if help.
    The following statements define the structure of a class:
    ·        A class contains components
    ·        Each component is assigned to a visibility section
    ·        Classes implement methods
    The following sections describe the structure of classes in more detail.
    Class Components
    The components of a class make up its contents. All components are declared in the declaration part of the class. The components define the attributes of the objects in a class. When you define the class, each component is assigned to one of the three visibility sections, which define the external interface of the class. All of the components of a class are visible within the class. All components are in the same namespace. This means that all components of the class must have names that are unique within the class.
    There are two kinds of components in a class - those that exist separately for each object in the class, and those that exist only once for the whole class, regardless of the number of instances. Instance-specific components are known as instance components. Components that are not instance-specific are called static components.
    In ABAP Objects, classes can define the following components. Since all components that you can declare in classes can also be declared in interfaces, the following descriptions apply equally to interfaces.
    Attributes
    Attributes are internal data fields within a class that can have any ABAP data type. The state of an object is determined by the contents of its attributes. One kind of attribute is the reference variable. Reference variables allow you to create and address objects. Reference variables can be defined in classes, allowing you to access objects from within a class.
    Instance Attributes
    The contents of instance attributes define the instance-specific state of an object. You declare them using the DATAstatement.
    Static Attributes
    The contents of static attributes define the state of the class that is valid for all instances of the class. Static attributes exist once for each class. You declare them using the CLASS-DATA statement. They are accessible for the entire runtime of the class.
    All of the objects in a class can access its static attributes. If you change a static attribute in an object, the change is visible in all other objects in the class.
    The technical properties of instance attributes belong to the static properties of a class. It is therefore possible to refer in a LIKE addition to the visible attributes of a class – through the class component selector or through reference variables, without prior creation of an object.
    Methods
    Methods are internal procedures in a class that define the behavior of an object. They can access all of the attributes of a class. This allows them to change the data content of an object. They also have a parameter interface, with which users can supply them with values when calling them, and receive values back from them The private attributes of a class can only be changed by methods in the same class.
    The definition and parameter interface of a method is similar to that of function modules. You define a method meth in the definition part of a class and implement it in the implementation part using the following processing block:
    METHOD meth.
    ENDMETHOD.
    You can declare local data types and objects in methods in the same way as in other ABAP procedures (subroutines and function modules). You call methods using the CALL METHOD statement.
    Instance Methods
    You declare instance methods using the METHODSstatement. They can access all of the attributes of a class, and can trigger all of the events of the class.
    Static Methods
    You declare static methods using the CLASS-METHODSstatement. They can only access static attributes and trigger static events.
    Special Methods
    As well as normal methods, which you call using CALL METHOD, there are two special methods called constructor and class_constructor that are automatically called when you create an object or when you first access the components of a class.
    reward pts if help.
    deepanker

  • How to trigger an Action

    Hello,
    I need help to find out how to trigger an Action (Action Definition) from an ABAP program. The program should trigger the Action used to create a follow-up transaction from an existing Contract.
    Thanks in advance,
    Jonas

    Hi! Every one
    I am using codes mentioned in this tread but getting one exception at the time when SAP is trying to save the changes for the change process action data. I am able to run the change process action programmatically ( successfully ) and when i enter some data for the change process action and press the execute button, I am getting one exception. I have attached the exception in this text. Can any one please give any clue why this exception is coming and what else I need to do?
    Thanks
    Yogesh
    Runtime Errors         UNCAUGHT_EXCEPTION
    Except.                CX_OS_OBJECT_NOT_FOUND
    Date and Time          13.03.2007 16:14:30
    Short dump has not been completely stored (too big)
         Short text
              An exception occurred that was not caught.
         What happened?
              The exception 'CX_OS_OBJECT_NOT_FOUND' was raised, but it was not caught
               anywhere along
              the call hierarchy.
              Since exceptions represent error situations and this error was not
              adequately responded to, the running ABAP program
               'CL_METHODCALL_PPF=============CP' has to be
              terminated.
         Error analysis
              An exception occurred that is explained in detail below.
              The exception, which is assigned to class 'CX_OS_OBJECT_NOT_FOUND', was not
               caught in
              procedure "IF_MEDIUM_PPF~EXECUTE" "(METHOD)", nor was it propagated by a
               RAISING clause.
              Since the caller of the procedure could not have anticipated that the
              exception would occur, the current program is terminated.
              The reason for the exception is:
              Could not find the referenced object with the OID
              "00000000000000000000000000000000" (instance GUID) and
              "BECA3BF12720D411AB61009027C3C00A" (class GUID)
         Missing RAISING Clause in Interface
             Program     CL_METHODCALL_PPF=============CP
             Include     CL_METHODCALL_PPF=============CM009
             Row     1
             Module type     (METHOD)
             Module Name     IF_MEDIUM_PPF~EXECUTE
         Trigger Location of Exception
             Program     CL_METHODCALL_PPF=============CP
             Include     CL_METHODCALL_PPF=============CM001
             Row     32
             Module type     (METHOD)
             Module Name     IF_OS_STATE~HANDLE_EXCEPTION
         Source Code Extract
         Line     SourceCde
             2     ***BUILD 020501
             3          " importing I_EXCEPTION type ref to IF_OS_EXCEPTION_INFO optional
             4          " importing I_EX_OS type ref to CX_OS_OBJECT_NOT_FOUND optional
             5     ************************************************************************
             6     * Purpose        : Handles exceptions during attribute access.
             7     *
             8     * Version        : 2.0
             9     *
            10     * Precondition   : -
            11     *
            12     * Postcondition  : -
            13     *
            14     * OO Exceptions  : CX_OS_OBJECT_NOT_FOUND
            15     *
            16     * Implementation : If an exception is raised during attribut access,
            17     *                  this method is called and the exception is passed
            18     *                  as a paramater. The default is to raise the exception
            19     *                  again, so that the caller can handle the exception.
            20     *                  But it is also possible to handle the exception
            21     *                  here in the callee.
            22     *
            23     ************************************************************************
            24     * Changelog:
            25     * - 2000-03-07   : (BGR) Initial Version 2.0
            26     * - 2000-08-02   : (SB)  OO Exceptions
            27     ************************************************************************
            28     * Modify if you like
            29     ************************************************************************
            30     
            31       if i_ex_os is not initial.
         >>>>>         raise exception i_ex_os.
            33       endif.
            34     
            35     endmethod.

Maybe you are looking for

  • Font Smoothing + Relative Positioning = Problem

    Hello, I ran across a strange inconsistency while designing a relative position based layout. My page has two divs, both relative positioned for height. They do not overlap. The page renders excellent in Firefox 3.5, and not bad in Chrome (though a l

  • Enabling aaa authorization on pix/asa

    I managed to get authentication on easy enough but now am having difficulty getting authorization to work properly. I have auth/author turned on for my IOS stuff so any techs logged in will have rights based on what I give them on secure ACS. However

  • Activating dynamic date calculation in variant

    Per the link below, I used to be able to activate "dynamic date calculation" in variant. <link to blocked site removed by moderator> Our system has been upgraded to 6.0 and now we do not the same variant attribues screen where I can activate the "D"

  • As3 Scorm Lms problem

    I have a scorma package all ziped up and loaded into the LMS (blackboard). It opens and runs fine. Its not conecting to the lms though and sending completed when finished. Heres a link to my full source code. http://www.dev.wisc-online.com/prototypes

  • How to get ppm or products associated to a resource?

    My question is this, How can I get the ppm´s or products associated to a resource in a abap program? Any help will be much appreciated. Thank you all for reading. Wilson.