Catch standard eventing

Hi experts:
As you can see in this document:
/people/thomas.jung3/blog/2005/12/15/portal-eventing-a-solution-for-global-peace-and-harmony
We can trigger and catch portal events if we send the event from one ABAP WD to another one.
I want to create a WD Page in the portal composed by standard WD and non Standard ones. So, my question is the next one: Is it posible to catch from a non standard ABAP WD an even triggered by clicking, for example, in a standard one?.
Thank you all ¡¡!!

Hi Thomas:
Thank you for your answer ¡¡!!.
Now the next question is "How can I Know the standard JAVA WD event iD, and the parameter that this triggered event "published" and that I need to import to my ABAP WD?".
So, in my WD ABAP, I Just have to use the tipical code:
DATA LO_API_COMPONENT  TYPE REF TO IF_WD_COMPONENT.
DATA LO_PORTAL_MANAGER TYPE REF TO IF_WD_PORTAL_INTEGRATION.
LO_API_COMPONENT = WD_COMP_CONTROLLER->WD_GET_API( ).
LO_PORTAL_MANAGER = LO_API_COMPONENT->GET_PORTAL_MANAGER( ).
DATA LO_API_CONTROLLER  TYPE REF TO IF_WD_VIEW_CONTROLLER.
LO_API_CONTROLLER ?= WD_THIS->WD_GET_API( ).
CALL METHOD lo_portal_manager->SUBSCRIBE_EVENT
  EXPORTING
    PORTAL_EVENT_NAMESPACE = STANDARD_JAVA_WD_NAMESPACE
    PORTAL_EVENT_NAME      = STANDARD_JAVA_WD_EVENT_ID
    VIEW                   = LO_API_CONTROLLER
    ACTION                 = 'RECEIVE_PORTAL_EVENT'
Thank you in advance

Similar Messages

  • How to catch the event for change dropdown value in alv

    it has a column output by dropdown in alv. the dropdown type cl_salv_wd_uie_dropdown_by_idx.
    now the problem is if change the dropdown value, i want to catch the event to change another column value.
    how can i do it?

    This part contains other ALV initialization code
    *... init ColumnSettings
      DATA:
            lr_column_settings TYPE REF TO if_salv_wd_column_settings.
      lr_column_settings ?= wd_this->r_table.
      DATA:
            lt_columns TYPE salv_wd_t_column_ref.
      lt_columns = lr_column_settings->get_columns( ).
      DATA:
            ls_column     TYPE salv_wd_s_column_ref,
            lr_col_header TYPE REF TO cl_salv_wd_column_header,
            l_tooltip     TYPE string.
      LOOP AT lt_columns INTO ls_column.
        CASE ls_column-id.
          WHEN 'PLANETYPE'.
            DATA:
                  lr_drdn_by_key TYPE REF TO cl_salv_wd_uie_dropdown_by_key.
            CREATE OBJECT lr_drdn_by_key
              EXPORTING
                selected_key_fieldname = ls_column-id.
            lr_drdn_by_key->set_key_visible( abap_true ).
            ls_column-r_column->set_cell_editor( lr_drdn_by_key ).
          WHEN OTHERS.
        ENDCASE.
    ENDLOOP.
      DATA:
            node_info TYPE REF TO if_wd_context_node_info,
            lt_valueset   TYPE STANDARD TABLE OF wdr_context_attr_value,
            l_value       TYPE wdr_context_attr_value.
      node_info = wd_context->get_node_info( ).
      node_info = node_info->get_child_node( 'FLIGHT_INFO' ).
    data : lt_sflight type STANDARD TABLE OF sflight,
           ls_sflight like LINE OF lt_sflight.
    SELECT * from sflight into TABLE lt_sflight.
    LOOP at lt_sflight into ls_sflight.
      l_value-value = ls_sflight-planetype.
      l_value-text  = ls_sflight-planetype.
      INSERT l_value into TABLE lt_valueset.
      ENDLOOP.
      node_info->set_attribute_value_set(
      name = 'PLANETYPE'
      value_set = lt_valueset ).

  • Standard event at end of report

    Hi guys,
    This is a really complex question and my manager expects me to know the answer to this just 'cause I'm certified, but I think this is very expert knowledge. The question is: Is there a standard event triggered at the end of EVERY ABAP report run in the system? The system debugging didn't help me much on this and I didn't discover anything with it. The functionality he's looking for is similar to the one in job scheduling, which allows you to schedule a job after the end of a previous job. So, in some way, we would like to catch the report's end an immediatly execute another on and so on.
    Let me know your thoughts,
    George

    >
    George Ardeleanu wrote:
    > OK, so now I heard about it. We want a standard event or what have you that gets triggered when EVERY report in the system ends. We don't wanna change our custom report for that. I was asking about a general event (standard) that will also give us the report name. Is there such a possibility?
    Hello,
    Never heard of one. I dont think that SAP will provide something of this sort, else it would not have kept space for user-defined events.
    Cheers,
    Suhas

  • List of Standard events raised by KM Repository?

    Hi ,
    I am looking for list of Standard Events raised by a KM Repository Framework.
    I could able to get Event ids for moving, deleting , renaming and opening.
    Actually I need to catch the event of new post in KM Repository.
    If some body can direct me to a document which gives me the list of all events  
    and Event ids I would be thankful.
    Thanks & Regards
    Mrutyunjay

    The javadoc for ResourceEvent is located at: <a href="https://media.sdn.sap.com/javadocs/NW04s/SPS7/km/com/sapportals/wcm/repository/manager/ResourceEvent.html">https://media.sdn.sap.com/javadocs/NW04s/SPS7/km/com/sapportals/wcm/repository/manager/ResourceEvent.html</a>.

  • PCUI Standard Event + Custom Event in a button

    Hi All.
    I'm facing the following scenario: I need a button X which should Save a service contract (CRMD_BUS2000112) and also execute my own logic. I figured out that the Save Event is controlled in the class CL_CRM_BSP_FRAME_SRES where there is a standard logic that checks if the event is SAVE and if it is not then call method PROCESS_EVENT in the MAC. It looks like is not possible to execute the standard SAVE and catch the event in the PROCESS_EVENT for the corresponding MAC. Does somebody have an idea ?
    Thanks and best regards.
    Armando.
    Message was edited by: Armando Rodriguez
    Message was edited by: Armando Rodriguez

    Hello Armando,
    Which kind of logic do you want to add?
    Do you use a Z MAC? Inheriting from the standard MAC?
    If yes, did you redefine the PROCESS_EVENT method to catch your new event?
    Regards,
    Frederic

  • Sales order creation, standard event trigger is taking long time .

    We have a requirement where we are sending data to CRM system using RFC function module. This data is sent while sales order creation or change. We have used standard event BUS2032.CREATED to trigger CRM FM in sales order creation mode. In sales order change mode, we are using custom event. In production system, our custom change event is getting triggered fine and data is sent to CRM system with small time lag of around 1 minute. But, while sales order creation, standard event trigger is taking long time ( sometimes about 20 minutes) in production system.
    We tried triggering same custom event at the time of sales order creation using FM u2018SWE_EVENT_CREATE_IN_UPD_TASKu2019 as well but, still we are not able to improve performance of the event trigger at sales order creation.
    Regards,
    Sushee Joshi

    HI,
    we have written SWE_EVENT_CREATE in update task
    I think instead of calling in update task simply call to function module CALL FUNCTION "SWE_EVENT_CREATE" might trigger the event immediately.. Did you try to check in this way..
    OR
    And I also suggest you to check the entry in SWE2 txn with respect to your workflow tempalte, may be you have enable the option ENABLE EVENT QUEUE, this could be one of the reasons.. If it is enabled please disable it (uncheck)
    Please check..
    Regards
    Pavan

  • How to catch click event on BAR or a BAR GRAPH???

    Hello
    I want to implemnt following things,
    1. there is Bar Graph containing 10 Bars.
    2. So i want to navigate to 10 diff. pages on click of each bar.
    So how to catch click event on BAR or a BAR GRAPH.????

    Hi,
    You can set Destination URI on a graph. The URL can be specifically associated to a particular data point plotted in the graph.
    Detail for the same is provided in OAF developer guide under 'Charts and Graphs' topic.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Catching key events in application

    I have a JFrame with a JDesktop containing lots of JInternalFrame with various of components such as JTextFields etc.
    Now, i want to have a "main" listener that will catch key events no matter which component that has focus. For example pressing CTRL+A should produce something in the application no matter which component that has focus.
    How do I implement this in an easy way?

    It doesnt seem to work to add a KeyListener to the JFrame...
    this.addKeyListener(new KeyAdapter(){
                   public void keyTyped(KeyEvent e){
                        System.out.println("KeyTyped()");
                   public void keyPressed(KeyEvent e){
                        System.out.println("KeyTyped()");
              });Adding that to the JFrame gives nothing to System.out when a JTextArea inside an JInternalFrame has focus.

  • Where can we catch the event which leads to downloading a report to a local

    Hi frnds,
    can u help me out . actaully ,i  have a classical interactive report. it has many headings.Because of the initial headings ,if i try to download that report to a local file ,the column allignments are disturbed.
    So,one way i feel to get the download correctly ,is that ,some how i can catch the event whcih leads to the download of the report ,and based on the occurence of that event ,i can restrict the page headings to appear in the downloaded spreadsheet ,so that the there are no, unwanted columns getting inserted in between .
    Regards
    Rajesh.

    hi,
    you can have selection screen field : "parameters : p_disvar like disvariant-variant."  and at event selection scree you can call the below function and select the variant create for the report.
    "at selection-screen on value-request for p_disvar.
      call function 'REUSE_ALV_VARIANT_F4'
           exporting
                is_variant          = g_variant
              I_TABNAME_HEADER    =
              I_TABNAME_ITEM      =
              IT_DEFAULT_FIELDCAT =
                i_save              = g_variant_save
           importing
                e_exit              = h_exit
                es_variant          = gx_variant
            exceptions
                not_found           = 1
                program_error       = 2
                others              = 3.
      if sy-subrc is initial and h_exit is initial.
        g_variant-variant = gx_variant-variant.
        p_disvar          = gx_variant-variant.
      else.
        message id sy-msgid type 'S'
                     number sy-msgno
                     with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    Atul

  • Catching Custom Events in Actionscript

    I have a custom component that opens a new window with a video player in it. I need to pass a bunch of stuff into it, so there's a lot of binding expressions. I need to be able to catch it's complete event (when the video is finished playing). But the event I dispatch isn't working. Here's my custom component class:
    [CODE]
    <?xml version="1.0" encoding="utf-8"?>
    <!-- This is a window component which creates a transparent window with no system chrome (no bars, close, min, max buttons, resize stuff) that contains a single video object to be able to play videos from a folder called "videos" in the root of this application. This screen is spawned from the main MXML WindowedApplication using AS 3. -->
    <s:Window xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
                        xmlns:customComponents="customComponents.*"
                        systemChrome="none" visible="true" transparent="true" showStatusBar="false" width="400" height="300"
                        >
        <fx:Metadata>
            [Event(name="MOVIE_LOAD", type="flash.events.Event")]
            [Event(name="MOVIE_FINISH", type="flash.events.Event")]
        </fx:Metadata>
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:layout>
            <s:BasicLayout />
        </s:layout>
        <fx:Script>
            <![CDATA[
                import org.osmf.events.TimeEvent;
                [Bindable]
                public var displayScreenWidth:int = 1024;
                [Bindable]
                public var displayScreenHeight:int = 768;
                [Bindable]
                public var videoName:String;
                // Note that the following two variables are set to true by default because the screen saver goes in first.
                [Bindable]
                public var muteVideo:Boolean=true;
                [Bindable]
                public var loopVideo:Boolean=true;
                // In order to allow it to play, I had to extend the play method for the VideoDisplay to a public function.
                public function play():void
                    videoDisplay.play();
                protected function dispatchMovieLoad(event:Event):void
                    var eventObj:Event = new Event("MOVIE_LOAD");
                    dispatchEvent(eventObj);
                protected function dispatchMovieFinish(event:TimeEvent):void
                    var eventObj:Event = new Event("MOVIE_FINISH");
                    dispatchEvent(eventObj);
            ]]>
        </fx:Script>
        <s:VideoDisplay id="videoDisplay" x="0" y="0" width="{displayScreenWidth}" height="{displayScreenHeight}" source="videos/{videoName}"
                                        autoPlay="true" muted="{muteVideo}" loop="{loopVideo}" complete="dispatchMovieFinish(event)" />
    </s:Window>
    [/CODE]
    When I try to catch the event, I use this code:
    [CODE]
    /* Plays a video, and enables sound and disables looping. It also defines what do to when the video reaches completion. */
    protected function playVideo(vidName:String):void
        videoScreen.addEventListener(Event.MOVIE_FINISH, loadScreenSaver);
        videoScreen.muteVideo = false;
        videoScreen.loopVideo = false;
        videoScreen.videoName = vidName;
        videoScreen.play();
    [/CODE]
    The problem is, i get the error by the addEventListener line that reads:
    Multiple markers at this line:
    -1119: Access of possibly undefined property MOVIE_FINISH through a reference with static type Class.
    -addEventListener
    I don't know how to get around this. When I type "addEventListener(" and hit control+space bar, I see "Event.MOVIE_FINISH" on the list, citing my custom component as the source. Even when I had it called movieFinish in the component, I still saw "MOVIE_FINISH" for my event in the code help. So, I changed the name, but I cannot get rid of the error, and therefore my program won't compile fully. Any ideas?

    The first argument to addEventListener() is just a string.  You can do:
        videoScreen.addEventListener("MOVIE_FINISH", loadScreenSaver);

  • Catch Global Events

    Hi,
    i have a idea for a program. I want to catch all actions from the users. If the user performed this action with the mouse, i wanna show him a notification with the shortcut of this actions. For example: The user open with the mouse a new tab in Safari the program recognize this and show him a message "Hey you can do this with: Apple + T".
    I played around with the
    Code: 
    addGlobalMonitorForEventsMatchingMask:NSLeftMouseDownMask
    but i can't find a connection to the Event that has been performed. Is there anybody with a idea how i can do this with build in classes from Cocoa/Objective-c?  Thank in advance for your help Greetings from Germany  Tobi

    Investigate Display.addFilter().
    "John Daly" <[email protected]> wrote in message
    news:c2800n$fdg$[email protected]..
    > How can I catch Global events in SWT. I want to carry out certain
    > functionality when the user pressed a certain button on the keyboard.
    >

  • Activation of the Standard Event

    Hi All,
    Can anyone help me, I am not able to activate the standard event, after giving the Object Category (BOR Object Type), Object Type (BUS2007)  and Event (Created ) in Triggering Events and after selecting the row and when I am trying to activate it is not activating.Please help me .
    Thanks in Advance,
    Ram.

    Hi Michal,
    Thanks for your Response, Michal i had completed the activation, Now how can i test the workflow, Actually the thing is in transaction iw21 when ever i created a notification with m1 or m2 then i will be moving to the next screen and screen is Create Maintenance Notification : Maintenance Request in that screen i will be giving Notification and Functional location and the Reported by field after filling all these fields when i save the system autogenerates the notification Number with that when i go to iw22 and when i give name to  the reported by field and when i click on the order button as the order created and system has to trigger a workflow to notify the person (Reported By) field that order has created.This is done through send mail option. Now can you help me in this .I had created the workflow with sendmail option and now i had activated also can you help me that how can i test my workflow.
    Regards,
    Ram.

  • For  a given tcode how can we find out the available standard events

    Hi Experts
    For  a given tcode how can we find out the available standard events?
    Thanks in advance

    Arghadip Kar wrote:>
    >
    > Or you can debug the Service for Generic Object button in the standard screens and there you will find which BO the Tcode is referencing to.
    >
    Wonder where you got that answer from, Arghadip!
    You have neither acknowledged nor closed the 16 threads that you opened.

  • AWTEventListener: Catch all events after events are invoked

    Hi,
    i read here about catching all event of my application: http://developer.java.sun.com/developer/qow/archive/19/index.html
    But: Is there a way to invoke my eventDispatched method after the
    current event was calling?
    For example: I need on selecting a Combobox the selected value, not the last
    selection.
    Thanks.
    Regards.

    Thanks for reply!
    I use an ItemListener on my ComboBox, but my problem was that the eventDispatched method was not
    called. I did it like this:
            getToolkit().addAWTEventListener(
             new AWTEventListener() {
                 public void eventDispatched(AWTEvent e) {
                  System.out.println(e);
             AWTEvent.ITEM_EVENT_MASK
            );Is that a problem of JDK1.4.1 ???
    So tried it with a AWTEvent.MOUSE_EVENT_MASK to check a combobox in my application
    is clicked. It works, but i get always the last selection von the combobox.
    74philip: Thanks for your solution, but my "code for the selected event here..."
    should be in the eventDispatched method. I cant change my app for any comboboxes.

  • How to catch click event on a link from an applet

    how to catch click event on a link from an applet

    The applet has to call a mouse listener:
    public class Applet extends Applet
                   implements MouseListener, MouseMotionListener
    The mouse methods must be included, here is the one to catch a click
    public void mouseClicked(MouseEvent e)

Maybe you are looking for