How to handle server event in component through BOL Concept

Hi All,
            Please let me know how o handle Server event in Component through BOL Concept.
Thanks,
Prameela.

Hi Prameela,
If you want the server event to be triggered in the search view, you have to add the code in the GET_DQUERY_DEFINITIONS method.
  DATA: lv_getter TYPE string.
CONCATENATE 'GET_P_' <rt_result>-field INTO lv_getter.
    TRANSLATE lp_getter TO UPPER CASE.                    "#EC SYNTCHAR
    TRY.
        CALL METHOD me->(lp_getter)
          CHANGING
            cs_result = <rt_result>.
      CATCH cx_sy_dyn_call_illegal_method.
*     no P-Getter found
    ENDTRY.
Regards,
Leon

Similar Messages

  • How to handle selection event in alv component

    Hi all,
        i am new to webdynpro abap. and i want to know how to handle selection event(such as select all / unselect ) in my simple alv application.
    Thanks very much

    Hi,
    By default when you use the selection mode for the ALV as Multi/Mutli No Lead then this option is enabled.
    Try to implement the event ONLEADSELECT and check wether this event is triggered or not.
    DATA: lo_value type ref to cl_salv_wd_config_table.
        CALL METHOD  lo_value->if_salv_wd_table_settings~set_selection_mode
          EXPORTING
            value = cl_wd_table=>e_selection_mode-multi_no_lead.
    Try to implement these event for ALV and put a break-point and test which event is getting triggered.
    ON_CLICK           
    ON_DATA_CHECK      
    ON_FUNCTION        
    ON_LEAD_SELECT     
    ON_STD_FUNCTION_AFTE
    ON_STD_FUNCTION_BEFO
    Please provide more inputs.
    Regards,
    Lekha.

  • How to handle key events in popup component

    Is there any possibility to handle keyboard events after a popup is opened
    requirement : I want to close popup when I press escape key (by default this functionality is present but in some scenarios this is not working ) so explicitly i want to handle key events for popup.
    Thanks,
    Raghavendra.

    in my application header part of the page is common of all page. header.jsff contains comandmenuItem named "proceduralhelp". if I click proceduralhelp a pop up opens .
    in my login page when first time I open popup and press escape popup is not closing.
    rest of the cases after login escpe will cose the popup.
    only on the loginpage that to for the first time it is not closing when pressing up on escape key. (then we click on close button. and once again open the popup in loginpage now if we press escape it works).
    Thanks,
    Raghavendra.

  • How to handle click event on listBox

    I have two listboxs. And I want to load The items into the second accordingly to the selected items in the first.And I want that the content of the second change each time the selected items of the first listbox are modified.
    I don't know which event to handle for the first listBox indicating the items are selected in the first listbox. I want to execute the method loading items into the second listbox each time this event is fired.
    Thanks in advance.

    Thanks for your reply.
    I used <webuijsf:listbox > component to display the list and .
    And I want to allow user to select multiple items.
    Then I want that the 2nd will be populated each time an item is selected.So the method doing it must be called in an action listener .
    Please I don't really know how to use the <h:selectOneMenu> component.And I want that after the submit the 2nd list will be populated.
    How can I do it please.
    Thanks.

  • How to handle Valuechange events, when page bean is in request scope

    Hello balusc and forum mates,
    I want to know is there any good way to handle ValueChangeEvents events, when the page's bean in request scope.
    My problem is, I have a page having more than 1 value change event so How can I maintain page values at backing bean. My bean is request scope, I can't change to session scope.
    Please I really need it.

    Hi Frank...
    In my code i used almost same logic as Andrejus Baranovskis has explained in his Editable Table example...
    You can refer that example to see what problem I'm facing...
    http://andrejusb.blogspot.com/2007/04/create-edit-and-delete-operations-in.html
    The Bean Scope in this Example is Session scope...Save button is working fine...
    But as i Change the bean scope to Request scope then Save button is not working for Edit but it is working for Delete Action very well..
    I want that save button should work also for Edit action in Request Scope..
    Please Make me understand that why it is happened like that..
    and help me to find the solution..
    and Also if you have a better document to Explain the life cycle of Application in Different Bean Scope...So please provide me that Doc to me...
    It would be a great help for me to understand the concept of session...
    Thanks Frank
    Fizzz...

  • Question re how iPlanet Directory Server applies the Look Through Limit.

    I have a question on how iPlanet Directory Server applies the lookthrough limit...
    I am running an LDAP search on a 4.13 directory. The search filter is:
         "(&(rtrdaMaturityDate>=20020128)(rtrdaMaturityDate<=20020130))"
    rtrdaMaturityDate is an int, and indexed with pres,eq,sub
    There are 244680 entries where rtrdamaturityDate>=20020128
    383005 entries where rtrdaMaturityDate<=20020130
    484 entries which satisfy both conditions
    When the query is run as Directory Manager it just hangs (presumably it would complete eventually).
    When run as another user it gives a size limit error. The size limit and lookthrough limit on the directory are both 5000 . As the matching number of entries doesn't exceed the size limit, I think perhaps it is the lookthrough limit causing the problem...
    It looks as if it treats each part of the filter separately, building an candidate list for each, giving an error if both reach the look through limit. i.e. it does not realise that both parts of the filter could be treated together.
    Is this correct ?
    This theory is born out by the fact that if I change the value so the filter would logically return only the highest few values, the search works (i.e. as if the <= filter condition hit LTL, but the >= did not).
    Also, if I add another condition to give "(&(rtrdaIssuerBgNid=4403)(rtrdamaturityDate>=20020128)(rtrdaMaturityDate<=20020130))" then the search eventually correctly returns a single entry. (IssuerBgNid=4403 on its own gives 1004 entries).
    Can I therefore assume that a seach will only work if at least one condition in the filter gives a candidate list with less entries than the look through limit?
    Any advice on how to implement a range search like this would also be much appreciated.
    Thanks,
    Dave.

    The lookthrough limit is reached when the resulting candidate list contains more entries than the limit...
    Lookthrough limit has been implemented specifically to for Range filters (and OR filters) to avoid consuming too many resources.
    For your particular problem, you can increase the lookthrough limit... but it will affect all users and searches.
    Note that iPlanet Directory Server 5.x does provide a per User LookThrough Limit (and other limits as well), therefore you could just increase the lookthrough limit for the specific users performing these searches.
    Regards,
    Ludovic.

  • How to handle the events of business object (BAPI)

    Hi,
    How to register to BAPI event and handle?
    For example, for a business object 'inv', there is an event as 'created'.
    I want to insert entry in a z table when an inv is created.
    I assume that the 'created' event is triggered when an inv is created.
    How i can register to that event and handle that event so that i can
    insert an entry in z table.
    Thanks,
    Prasad

    ComponentListener?
    : jay

  • How to handle key events in iphone

    I want to be able to detect physical keyboard (e.g. bluetooth) events in an iOS app.
    In Mac, there is a class NSEvent which handles both keyboard and mouse events, and in ios (iphone/ipad) the counterpart of NSEvent is UIEvent which handles only touch events. I know ios API does not provide this functionality, but how can i handle key events in iphone???

    in my application header part of the page is common of all page. header.jsff contains comandmenuItem named "proceduralhelp". if I click proceduralhelp a pop up opens .
    in my login page when first time I open popup and press escape popup is not closing.
    rest of the cases after login escpe will cose the popup.
    only on the loginpage that to for the first time it is not closing when pressing up on escape key. (then we click on close button. and once again open the popup in loginpage now if we press escape it works).
    Thanks,
    Raghavendra.

  • How to handle mousemove event in Acrobat?

    Hi, i am working on Acrobat plugin. how to handle mouse move event in acrobat using Acrobat SDK?. i have created menuitem. when i selected menuitem is activated now i want to handle mouse move event acrobat.
    Thanks in advance

    Thank You Leonard... For reply..
    AVPageViewCursorProc callback used for cursor coordinate..
    now i am displayed in the annotation.. but it is not show continuously... how can do it?
    whenever cursor changes, cursor coordinate should be displayed properly in the annotation. may i get some suggestion or sample.
    Thanks in advance..

  • How to handle an Exception in GP through webdunpro

    Hi,
    How to handle exception in WebDynpro GP callable objects.
    I created exception parameter in getdescription() method like
    IGPExceptionInfo processExc1 = technicalDescription.addProcessException("USER_NOT_FOUND");
      processExc1.setNameKey("USER_KEY");
      processExc1.setDescriptionKey("USER_DESCRIPTION_KEY");
      processExc1.setFatal(true);
    In my Process I have 2 levels, In block level i am able to see the above created exception using exception tab.
    I have created an action with same callable object mapped, this action is mapped to exception handler & selected an repeat option from dropdown.
    If any exception occurs in execute method(like UMException) how to call an  handler from coding. I tried this code to call a handler
    String localizedMessage =textAccessor.getText("USER_NOT_FOUND");
      wdThis.wdFireEventTechnicalException(new GPTechnicalCallableObjectException(logger,localizedMessage,e));
    this is not working...
    Can any one please bring me an Solution.
    Thanks in advance.
    Regards
    ThenMalar

    Hi Shikhil
    Thanks for your reply
    Please have a look below for exceptions which i am getting in GP and let me know how to handle these exceptions.
    1) "Activity could not be read"
    2) "Action has been stopped"
    3) error while processing the item can not be displayed
    if you give any idea/clue how to handle these exceptions then it would be great help to me
    Thanks
    Sunil

  • How to determine the event generating component in RESTORE-VIEW phase

    Hi,
    I have performance issues with my application.
    I am using PPR for components within the CoreTable. The table-model for this ADF-CoreTable is coded in java instead of binding it to PageDef table.
    The PageDef for the JSF page is heavily loaded with other objects & therefore there a delay in response. I have also found out that maximum time is lost after the RESTORE_VIEW process to before APPLY_REQUEST_ VALUE phase.
    Not sure if I am doing it right, but this is what I plan to do.
    On determining the event from CoreTable components, I want to bypass the ADF phase by passing null to all ADF Phases
    initContext(null)
    prepareModel(null)
    & before Invoke application
    prepareRender(null)
    Is there a way to determine the event generating component in the PhaseListener class?
    This is a ADF 10g project developed on JDeveloper 10.1.3
    Thank you,
    Prakash

    Just for other readers,
    I attempted to create a button to toggle a session scope Flag for test & proceed. However I was still unable to skip the ADF phase.
    In a self defined PhaseListener I also tried to remove ADFPhaseListeners before RESTORE_VIEW & reinstate it back in before RENDER_RESPONSE. Except the ADF InitContext() & processValidation() which run immidately after RESTORE_VIEW all other calls to ADF Phases were skipped.
    The reasults were not helpful to proceed as I need to entirely skip/bypass the ADF lifecycle to achieve the quick responce.
    Thank you

  • How to call server event in DO INIT method of view

    Folks,
    I have declared a server event in the view and when I am trying to call that event in DO INIT method of view , it is not firing the event .
    <i><b>
      public void wdDoInit()
        //@@begin wdDoInit()
        // set icon file names
        wdContext.currentContextElement().setIconLeftArrow("topLvlScrollerLeft.gif");
         wdContext.currentContextElement().setIconRightArrow("topLvlScrollerRight.gif");
        // hide display when errors during startup
         if(wdContext.currentContextElement().getErrorDuringInit())
              wdThis.wdFirePlugOutEmpty();
         wdThis.wdGetDaylyChangeModeAction();</b></i>

    I have created a action event
    <i><b>  public void onActionDaylyChangeMode(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionDaylyChangeMode(ServerEvent)
         wdThis.wdGetVcCatRecordEntryInterfaceController().blcEvent(VcCatRecordEntry.ACTION_CHANGE_MODE);
         wdContext.currentContextElement().setSelectedTab("TabCatRecordEntryDay");
         wdContext.currentContextElement().setTemp("Changed Tab");
        //@@end
      }</b></i>

  • How to handle softkey events

    hi all,
    The softkeys varies form device to device.so kidly say some genric way to handle softkey events.
    Thanks in advance
    Badri

    The only "generic" way to handle softkeys is to use Commands.
    shmoove

  • How to handle keypressed event for form

    i have to handle keypressed event of a textfield control.
    I have tried by implementing itemstatechangelistner ........
    but as api specifies its behavior varies from device to device....it is guaranteed that the control is notified when losing its focus. But my requirement is to get notified for every keypressed time.....
    any idea.....pls help me

    Can't be done for TextField. Many devices (example:SE k700i) launch a separate editing screen to change the text in a TextField.
    db

  • How to handle LostFocus event for TextField in J2ME?

    Hi:
    I want to handle LostFocus event for TextField in J2ME.
    So can anybody help me.....
    Thank You

    MIDP API does not have LostFocus event.
    You can try setting ItemStateListener for the TextField ([if needed, click here for details|http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/lcdui/ItemStateListener.html]). API requires that +"...For implementations that have the concept of an input focus, the listener should be called no later than when the focus moves away from an item whose state has been changed. The listener should be called only if the item's value has actually been changed...."+

Maybe you are looking for

  • Has ANYONE got a 'faulty' superdrive to work without replacing it?

    There are many tales of people here with dodgy sauperdrives. Now I have one in a 2 year old eMac. So before I spend money replacing the superdrive, has anyone got their's going by way of software or cleaning or dancing around their Mac chanting to th

  • Block attacker only if target is specific host only

    I want to do the following: Only if the target of the attack is MailSrv and the RR > 85 --->block attacker If target is any other host --> don't block =========== My problem is that I cannot specify the dst IP in the event action override. So my only

  • Installing 9.2.0.1 database filled up hard drive

    Hi Everyone, I just installed Oracle 9i Rel 2: 9.2.0.1 and now it is taking up all of the space on my hard drive. I installed it on Windows XP Professional. My CPU is 2.8 GHz; Ram is: 1.00 GB. Here's what I have after the installation: Before Install

  • Changing pProduction Order which is link with DMS

    Hi, All, i have one query, I linked doc's to Production order and saved. That production is now completed. So production order is closed. But i want remove one Doc from the attachment. I tried but the shows error messge' ''this tracnsaction is not al

  • Why does my mouse scroll wheel work upside down?

    I have a Logitech portable mouse attached to my Macbook Pro and the scroll wheel works backward so when I pull down on the wheel the page does up and vice versa.  Is it me or is there a setting in my Mac I need to reverse?