Capture comp controller event n enhancement view - handler not triggered

Hi,
Enhanced a std WDA component through the enhancement framework.  Added a view in the enhancement.  This view will be a popup requesting user supplies more details.
Ive enhanced a std component controller method to fire off a component controller event.  Ive also created an event handler method in the new view and associated with the component controller event.
Unfortunately the new view method doesnt trigger.  If I add an event handler method to one of the std views through the enhancement framework it does trigger.
Grateful for any solution/info, cheers!

Hey,
Std view A is the active view when the firing of the event occurs within the component controller.  Enhancement view Z is where the event handler method is defined.Defining an event handler method in active view A will be triggered upon component controller event firing, but not event handler method in view Z.  Handling within event view Z (not active/displayed) beyond the realms of WDA eventing?

Similar Messages

  • Call methods from view controller to another (enhanced) view controller!

    Dear All,
    Is it possible to use/call methods from view controller to another (enhanced) view controller? Iu2019ve created a view using enhancement in standard WD component. I would like to call one method from standard view controller in the enhanced view controller.
    Is it possible to include text symbols as enhancement in standard class?
    u2026Naddy

    Hi,
    If you have just enhanced an existing view then you can call the standard methods in one of the new methods which you will create as part of enhancement.
    If you have created a totally new view using enhancement framework option ( Create as Enhancement ) then in this new view you won't be able to use existing methods in other view as a view controller is private in nature. So all the view attributes, context nodes and methods are Private to that view only.
    Regarding text elements, I guess adding a new text element is just a table entry in text table and is therefore not recorded as enhancement.( Not very sure about this, need to double check )
    Regards
    Manas Dua

  • Enhanced view class not calling

    Hi,
    I've enhanced a search view and redefined the search event handler method. But when i execute the application, it is not calling my enhanced view controller implementation class. the system always call standard view controller class. could anybody explain the reason for it?
    Best Regards,
    Kumar

    Hi,
    Check the enhancement set to client mapping in sm30 (BSPWDV_EHSET_ASG)..Enhacement set should be mapped to client in which you are running the application..
    Also you can check in component_loading default implement, there it should read z-controller instead of standard class.
    Cheers,
    Sumit Mittal

  • Event Handler not Triggered when user is assigned by Membership Rule

    I have defined a post-processed event handler for RoleUser Entity.
    The handler is triggered normally when a user is manually assigned a role.
    However, it is not trigger, if users are assigned through membership rule.
    I have tried both the single execute method and the bulk execute method.
    OIM version: 11gR2

    Hi,
    Check the list of orchestration handlers triggered for this operation in the Diagnostic Dashboard. Check whether, if your custom event handler is present in the list. If its isn't, then there must be something wrong with your Plugin.
    Thanks,
    RK.

  • OIM 11gR2 - RoleUser PostProcess Event Handler not triggered

    Hi,
    I'm trying to create a postprocess event-handler for RoleUser entity so that when a role is assigned (or removed) to a user an UDF is populated with the list of its roles.
    I developed my event-handler and registered it following instructions on http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/oper.htm#OMDEV4749 but the event-handler is not triggered.
    I've read and tried a lot of things but nothing seems to work.
    I use System.out.println() and a Logger in the event-handler methods as well as breakpoints debugging via Eclipse, all this indicates the event-handler is not triggered.
    I checked the event-handler is registered by using getEventHandlers(RoleUser,CREATE) method on IAMAppDesignMBean through Enterprise Manager. Result is :
    Postprocess,-2147483648,PostProcessingInitiation,/metadata/iam-features-request/event-definition/EventHandlers.xml,true
    Postprocess,FIRST,MyHandler,Plugin:MyHandler,false
    Postprocess,FIRST,MyHandler,Plugin:MyHandler,false
    Postprocess,FIRST,MyHandler,Plugin:MyHandler,false
    Postprocess,FIRST,MyHandler,Plugin:MyHandler,false
    Postprocess,1020,RoleGrantPostProcessActionHandler,/metadata/iam-features-identity/event-definition/EventHandlers.xml,false
    Postprocess,9988,AsyncHandler,/metadata/iam-features-asyncwsclient/EventHandlers.xml,true
    Postprocess,3000000,CallBackOAACGWithApprove,/metadata/iam-features-rolesod/EventHandlers.xml,true
    Postprocess,2147483647,RequestCompleted,/metadata/iam-features-request/event-definition/EventHandlers.xml,true
    Note that I dont understand why the handler appears four times..
    Also, when I unregister it, it still appears one time.
    Here is my event handler XML file (in META-INF folder of the plugin zip) :
    <?xml version='1.0' encoding='utf-8'?>
    <eventhandlers
      xmlns="http://www.oracle.com/schema/oim/platform/kernel/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.oracle.com/schema/oim/platform/kernel orchestration-handlers.xsd">
      <action-handler
      class="package.MyHandler"
      entity-type="RoleUser"
      operation="ANY"
      name="MyHandler"
      stage="postprocess"
      order="FIRST"
      sync="TRUE" />
    </eventhandlers>
    plugin.xml file (root of plugin zip) :
    <?xml version="1.0" encoding="UTF-8"?>
    <oimplugins xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <plugins pluginpoint="oracle.iam.platform.kernel.spi.EventHandler">
      <plugin
      pluginclass="package.MyHandler"
      version="1.0"
      name="Myhandler" />
      </plugins>
    </oimplugins>
    Java code (in a JAR in lib folder of plugin zip) :
    public class MyHandler implements PostProcessHandler {
    @Override
    public EventResult execute(long processId, long eventId, Orchestration orchestration) {
      System.out.println("Inside EventResult execute ");
      LOGGER.log(Level.SEVERE, "Inside eventResult execute");
      // Some code
      return new EventResult();
    @Override
    public BulkEventResult execute(long processId, long eventId, BulkOrchestration orchestration) {
      String operation = orchestration.getOperation().trim().toString();
      System.out.println("<---------- Calling " + getClass().getName() + ": Operation[" + operation + "] Execute ---------->");
      LOGGER.log(Level.SEVERE, "Inside BulkEventResult execute");
      // Some code
      return new BulkEventResult();
    Maybe I'm missing something ? Any help would be really appreciated
    Thanks,
    Gael
    EDIT :
    Also note that I see these messages in the logs but I'm not sure it concern my event handler from what I read on some pages :
    XML schema validation failed for XML eventhandlers and it will not be loaded by kernel.
    [CALLBACKMSG] Found 0 possible matches for applicable policies for step POST_PROCESS, entity RoleUser, operation CREATE.
    Related link : Post process event handler when a role is created or modified in OIM

    I eventually got it working but I'm not sure of how.. !
    I changed the name of the handler (it was not "MyHandler" but something very long, I shortened it). I copy and paste exactly what was described here : Post process event handler when a role is created or modified in OIM. I did purge cache. I tried to apply it on another entity (Role), it was triggered, then I applied it back to RoleUser and it still works.
    If it can help someone, my plugin zip contains :
    plugin.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <oimplugins xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <plugins pluginpoint="oracle.iam.platform.kernel.spi.EventHandler">
      <plugin pluginclass="fr.xxx.RoleUserProcessor"
      version="1.0" name="RoleUserProcessor" />
      </plugins>
    </oimplugins>
    META-INF/EventHandlers.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <eventhandlers xmlns="http://www.oracle.com/schema/oim/platform/kernel"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.oracle.com/schema/oim/platform/kernel orchestration-handlers.xsd">
      <action-handler class="fr.xxx.RoleUserProcessor"
      entity-type="RoleUser" operation="ANY" name="RoleUserProcessor" order="9999"
      stage="postprocess" sync="TRUE" />
    </eventhandlers>
    lib/xxx.jar/RoleUserProcessor.java :
    @Override
      public EventResult execute(long processId, long eventId, Orchestration orchestration) {
      LOGGER.log(Level.INFO, "Execution RoleUserProcessor EventHandler (mode non bulk)");
      String operation = orchestration.getOperation().trim().toString();
      LOGGER.log(Level.INFO, "Operation : " + operation);
      return new EventResult();
      @Override
      public BulkEventResult execute(long processId, long eventId, BulkOrchestration orchestration) {
      LOGGER.log(Level.INFO, "Execution RoleUserProcessor EventHandler (mode bulk)");
      String operation = orchestration.getOperation().trim().toString();
      LOGGER.log(Level.INFO, "Operation : " + operation);
      return new BulkEventResult();
    Thank you
    Also, a thing that may help some people, I found out that the ORCHEVENTS table in OIM schema contains the history of handlers triggered.

  • Enhancement spot is not triggered in Custom Program.

    Dear Experts,
    After saving the sales order i would like to view the print preview.
    For this I found one implicit enhancement spot and i called the print Program for sales order. Then i am able to view the Sales order print preview in VA01 Transaction code. I wrote my logic in the Below mentioned Enhancement implementation.
    Main Program : SAPMV45A
    Include : MV45AF0B_BELEG_SICHERN
    Form : beleg_sichern
    At the endform I am calling the Print program of Sales order so that after saving the sales order i am able to view the print preview of the Sales order.
    The requirement is i have created the Custom program in that i am using the "CALL TRANSACTION 'VA01'". In the custom program i am not able to view the Sales order print preview. The Enhancement spot is not getting triggered.
    Could you please help me to solve this issue.
    Thanks & Regards,
    Ashok.

    Like I said, you must use the parameter RA_COMMIT from BDC_OPTIONS. Like this:
    DATA: bdc_options TYPE ctu_params.
    bdc_options-ra_commit = ' X' .
    bdc_options-dismode = ' N'.
    CALL TRANSACTION 'VA01' OPTIONS FROM bdc_options.
    Everytime you use a CALL TRANSACTION, the called transaction will stop when a COMMIT WORK is found, and you have to pass the parameter RA_COMMIT with 'X' to make the transaction execute any code after COMMIT WORK. This only happens when you call a transaction via CALL TRANSACTION, it will not happen if the user access a transaction directly.
    For further explanation you can use the link from documentation that I posted on my first reply.
    Regards,
    Mauricio

  • Calling comp controller attribute from iinside view

    HI all,
    I want to know how to call a component controller attribute from inside a View's method?
    any sampe coding..?
    Regards,
    Shanthi

    Well, you can use the wizard. Just call any method from the component controller. The wizard will create you the code including the line how you will get a reference to the component controller, which is the point here.
    After you have the reference to the component controller, let's say lo_component_controller, you can access its attributes like this:
    lo_component_controller->your_attribute
    Then of course delete the unnecessary lines of code.
    Regards,
    Karri

  • Enhancement view does not appear in my list of views

    Hi ,
    I have created an enhancement and now I used the wizard to add a new view to this application.The view created does not appear in my list of views but it appears in my Z BSP application.
    Please help!
    Regards
    Shilpi

    Check whether you are in Enhanced Version of UI Component !  (Original UI CMP name and Enhanceset : Z*)
    Thanks
    Allot points if this helps !

  • [Solved] Acpi handler not triggering power button action

    I'm editing the acpi handler.sh script to react to my power button, here is a relevant snippet from the code:
    #!/bin/sh
    set $*
    logger "$1 $2"
    case "$1" in
    button/power)
    logger "$1 $2"
    case "$2" in
    PWRF)
    logger "$1 $2"
    logger "ACPI action undefined: $2"
    esac
    button/lid)
    When i then press power, the log shows a single entry:
    Aug 28 11:53:35 localhost logger: button/power PWRF
    Which is from the first logger action above case "$1".
    Does anyone have a clue why the following actions under button/power don't produce any output? The code below button/lid does work properly, so it seems to be just the power button action misbehaving.

    I must've made a typo somewhere because it seems to work now. I'm not really sure where i went wrong though.. 

  • Capturing print event from PDF viewer

    Hi all,
    I am using class CL_GUI_PDFVIEWER to display and print a document using a SAP dynpro screen & a custom container.  I am successfully able to do this, but would like to capture the print event from the viewer in some way.  I did not see any print events for this class; is there any way to capture the printing of a PDF document from this viewer?  Thanks much,
    Rebecca Levings

    Hi Rebecca,
    I am using class CL_GUI_PDFVIEWER to display PDF, but also want to print the document.
    If I use PRINT Method of this class I am getting a runtime error. Can you please share your print code .. My requirement is to print a PDF File stored in file Client System without manual intervention.
    Thanks in advance!

  • Event not triggering in ALV

    Hi All,
    I am using ALV GRID in object oriented with editing option.If user made any changes in the Grid ,then i will captured the changes by the event DATA_CHANGED and i will display the error message inside the DATA_CHANGED event method using Method ADD_PROTOCOL_ENTRY and DISPLAY_PROTOCOL(which displayed a message in popup window with the field name ,row etc.).
    The Method CHECK_CHANGED_DATA in PAI will trigger DATA_CHANGE event.It is some time triggering DATA_CHANGED and some time it is not triggering DATA_CHANGED event..Why it is not triggering DATA_CHANGED event?
    Can any one give me solution for this.....
    Thanks in Advance..

    Hi,
    i have to register an ENTER  event:
    that is
    CALL METHOD alv->register_edit_event
    EXPORTING
    i_event_id = cl_gui_alv_grid=>mc_evt_enter.
    For this also it is not triggering...

  • Portal Eventing or FPM - navigate to diff comp controller view and ....

    Hi,
       The query is simple, i guess -
    From a particular component controller ( not from its view ) how can i navigate to a view of different component controller.
    Also how can i navigate to diff view ( within the same controller ) by the same controller.
    I tried Portal Eventing and FPM -
    WDPortalEventing.fire( "urn:com.sap.xss.hr.per.tw.bank.overview.Vc...Overview.Eventing","send","N");
    and at receiver
    WDPortalEventing.subscribe("urn:com.sap.xss.hr.per.tw.bank.overview.VcPerBankTWOverview",
         "send", wdThis.wdGetPortalEventAction() );
    it didn't worked.
    Also tried FPM after creating an FPM view , but need inputs from you to link it in event links as target.
    ECC6.0 - mysaperp2005.
    EP7
    THanks,
    Regards,
    Ankit

    Vishwas.. / Chaitanya -
    Thanks for the reply -
    -   I want to navigate to CompB's view from Component Controller A ( not frm the view ).
    - Another query was - how can i get to View2 of comp controller A via Comp Controller A itself. 
    Your answers were helpfull but i need some more info..
    The forums link u mentioined had some body mentioned this -
    " 2 ways to do this...
    The first way:
    1) Create a separate window in Comp B for each view that you need to navigate directly to (an interface view is created for each window)
    2) Embed the multiple interface views of Comp B into Comp A
    3) Use a separate outbound plug in Comp A for each Comp B interface view
    AFTER STEP 2 ON STEP 3 HOW CAN I HAVE AN OUTBOUND PLUG FROM COMP CONTROLLER A ( not from the view ). i.e., outbound plug from Comp A to the Comp B inteface view
    Lokesh -
    Trying same namespace didn't worked , - i guess Portal eventing might work between views , but here i have a component controller and a view.

  • MVC sub controller event handling for tabStrip

    Hi all,
    This is my first time on SDN so please forgive any procedural errors. I am developing an application for several dealer functions and use tabstrip and MVC. My main controller / view contains the tabstrip items and I call a seperate sub controller from the main view for each of the tabstrip items.
    (<bsp:call comp_id="track"/> where comp_id is a sub controller created in method do_init of the controller.) The sub controller classes were created using the MVC design pattern, each with a view and a model.
    Problem: When I am in any of the called sub controller views / tab items and I enter some data for the specific tab item, the do_handle_event method for that specific view / tab item sub controller is not activated. Processing goes directly to the do_handle_event of the main controller.
    My understanding of the process is that the do_handle_event for a sub controller will be activated first before processing return to the parent controller. This will allow me to use the tab items as independent views with the processing logic being handled by the relevant model. Am I correct in this assumption? I have read the forums on the handling of tabstrips and have looked at the sample applications but somehow I am missing a bit of the logic. Can someone please help?
    Regards,
    Jan van der Spuy

    Hello Bernhard/Shiva,
    I have changed the comp-id and debugged the DO_REQUEST event for main controller in more detail.
    The field values are
    htmlbevt_t<htmlb:button:click:null
    hmlbevt_f<htmlb_form_1
    htmlbevt_o<htmlb_button_1
    htmlbevt_i<onTracking
    htmlbevt_c<0
    onInputPro<htmlb
    tracking_t<9346100P&A
    tracking_t<1010
                     |
    m_subcontrollers[1]-INSTANCE
    METHOD DISPATCH INPUT
    Call registered controllers with form fields                           
    Call all registered controllers, even if no form_fields for them are r 
      LOOP AT m_subcontrollers ASSIGNING <controller> where hide = ''.       
       CHECK <controller>-fields[] IS NOT INITIAL.                         
        <controller>-instance->fill_values(                                  
                     form_fields = <controller>-fields                       
                     global_messages = component_messages ).     
    IF_BSP_CONTROLLER_FILL_VALUES(IF_BSP_CONTROLLER)
    performance shortcut if no subcontroller is present    
        if m_subcontrollers is intial.                        
          do_handle_data(                                      
            form_fields = form_fields                          
            global_messages = global_messages ).               
          return.                                              
        endif.    
    From here it goes to the DO_HANDLE_DATA method of  the subcontroller  and returns.
    A bit further in the logic of DISPATCH_INPUT() is where things go wrong.
    <b>* Dispatch event to controller</b>
      if event_value is not initial.
        if event_comp_index = 0.
         component_event = do_handle_event(                     
               event = event_value                   
         htmlb_event = request_event           
      htmlb_event_ex = event_data           
    global_messages = component_messages ).
                                                             And the values are as follows:
    component_event <b>(NO VALUE) IS THIS THE PROBLEM?</b>
    request_event      
    event_data         
    component_messages

  • View raises Component Controller Event

    Hello,
    I defined an even onUpdate in the component controller. A custom controller subscribed to this event. For that I have a method handleOnUpdate in the custom controller. Now I want to raise this event in a view after pressing a submit button of this view.
    How can I raise the event?
    So data flow would be:
    1. Button pressed in view
    2. Raise event in component controller
    3. Handle raised event in custom controller
    Regards
    Rene

    Hi Rene,
    Your scenario is like:
    <b>View: OnSubmit -> Component Controller: OnUpdate -> Custom Controller:</b> <b>handleOnUpdate.</b>
    For this, in the code for <u>OnSubmit</u> in your view, you need to add code as
    wdThis.wdGet<ComponentControllerName>().onUpdate();
    and in the <u>OnUpdate</u> method in Component Controller:
    wdThis.wdGet<CustomContControllerName>().handleOnUpdate();
    Also, you need to <b>add the Component Controller to your View</b>, using Properties Tab
    <b>and Custom Controller in Component Controller</b>, using its properties tab.
    Hope it helps.
    Regards,
    Alka.

  • Can we get  reference of WD component in custom class of enhanced View cont

    Dear Member,
    We are enhancing WD component. We need to get a reference of WD component in custom class of enhanced View controller (post exit) so that popups can be triggered or URLs can be called?. How should we get reference of WD component? I need to know cons of our approach.
    ...Naddy

    Hi,
    Create one static attribute in your custom class with type ref to of your component and populate this attribute in webdynpro enhancement and then use this reference in your custom class.
    Regards,
    Pon Murugesh

Maybe you are looking for

  • ITunes on Mac & Windows simultaneously

    I am a long-time PC user and I have iTunes and my music library on my PC. I sync my iPod to it. I just got a MacBook, and I would like to have my same music library accessible from iTunes on my Mac. (The Mac and the PC are on my wireless network). Id

  • Open portal window in another portal

    Hi all portal experts, I need connect from one portal to another one. Explanation: I need to create iview or something like that which will open another portal in my portal, but like another user. It have to connect automatically, and I can't see the

  • Share objects

    Hi All, I suppose my question is pure Java basics, but I post it here anyway, because it's easier to explain it in the context I am working in. Let's say, I have a Configuration bean, initialized on the startup of my Web application and stored in the

  • How to use BAPI_ACTIVITYCRM_GETDETAILMULT in VC 7.0?

    Dear all, We would like to use BAPI_ACTIVITYCRM_GETDETAILMULT in a Visual Composer model. Unfortunately this BAPI doesn't come with any input parameter possibilities, so we can not use an activty id as input parameter. If we test the BAPI in SE37 in

  • Designer - RON, rev. 9.0.4.6: Version History Viewer: Query Inclusions

    Good day, Recently I started using Designer's above mentioned version. Gradually one gets to discover things that have changed, which are possibly not documented. One very handy option that seems to fail to work is the possibility - in the Version Hi