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>

Similar Messages

  • 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

  • How to call mouse event on particular treecell

    how to call a mouseevent on a particular Treecell of a Treeview
    I have tried with setcellfactory but the effect is applied to the whole TreeView. How can i apply it to a particular TreeCell

    How can it be? It seems not.
    Please allow me to clarify my problem-
    I have jcomponents on a layer of jlayeredpane.
    Now I can use MouseListener on the layeredpane.
    Like to get coordinates of the mouse and showing in a textfield -
    private void jLayeredPane1MouseDragged(java.awt.event.MouseEvent evt) {
             projectNameID.setText("Mouse dragged");      
        private void jLayeredPane1MouseEntered(java.awt.event.MouseEvent evt) {
            projectNameID.setText("Mouse entered");
        private void jLayeredPane1MouseExited(java.awt.event.MouseEvent evt) {
            projectNameID.setText("Mouse exited");       
        private void jLayeredPane1MouseMoved(java.awt.event.MouseEvent evt) {
            projectNameID.setText("Mouse moved");       
        private void jLayeredPane1MousePressed(java.awt.event.MouseEvent evt) {
            projectNameID.setText("Mouse pressed");
            currentPoint.setText("("+evt.getX()+" , "+evt.getY()+")");
        }                                          But when my mouse moves on the jcomponent created on a layer then the mouse events don't work.
    That means I need to add mouse event for that component.
    Now how can I do that?
    Edited by: fireball003 on Feb 28, 2008 1:12 PM

  • How to call the event handler of other application....?

    Hi,
    I am working  on two applications.
    Now  i need to call a Event handler from my first application to my second application.
    I need a same process in this aaplication also. So i need to call the event handler of that application.
    So, Kindly tell me about the process to call the even handler of another application.
    Thanks in Advance.
    Regards,
    Prithivi

    hi,Prithivi..
    Unfortunately, as far as i know, i should tell you that : you cann't call the event-hanlder in another Application if the 2 applicaions are run in different IE browser...
    If your 2 component are used in the same IE browser, maybe you can make one interface event, and trigger it in one component, then handle the event in the second component(by reimplemented the former)...
    However, from your description, i think, you want to trigger the event handler in another application in different IE Browser...
    So, very upset..We cann't communicate between the 2 applications, as far as i know...
    Best wishes.

  • How to call an event

    hi all.
    i have a jframe that implement window listener...
    what im trying to do is in windowopened i will check for a certain date and if that date is met i want it to call the windowclosing event...
    i dont wanna do it in other ways because in window closing event im deleting files and it wont work any other way...
    thanks in advance...

    Hi,
       While calling the event from wdDoInit(), you can just say
    wdThis.onAction<event name>(null);
    But make sure that within the event handler, wdEvent is nowhere used.
    Regards,
    Satyajit.

  • How can I adjust event window size while in day view on ical?

    How can I adjust the all-day event window size while in day view on ical?  I have thee all-day events, but they're just a little too big to simultaneously appear without having to scroll up/down the all-day event section.

    {Ctrl + Scroll wheel} does a Page Zoom and that setting is saved domain by domain.
    '''View > Zoom > Reset''' while you're viewing one of those zoomed-out pages in the SmartZone.
    https://support.mozilla.com/en-US/kb/Page+Zoom

  • How to assign the events in a specific method in class builder(se24)

    i have declared one event in event part.i want to asign the event to one method .can any one help me .i have to do it in se24.pls

    hi,
    create a class in se24.
    <b>click the <b>EVENTS</b> tab, define an event.</b>
    <b>click the <b>METHODS</b> tab, define a method to trigger/ raise the event</b>
    <b>define one more method as an event handler method for the event.</b>
    for a method to be an event handler, click on the detail view,
    select the check box <b>Event Handler for</b>  give the classname where the event is defined and the event name, click on Change button.
    <b>event can be in the same class or different from that of the event handler method.</b>
    don't forget to <b>register the event handler method in the program.</b>
    click the code button of ur trigger method(meth2 in my example) and write there,
    raise event evt1.
    now your class is ready.
    now in se38 program,
    declare a reference variable to ur class,
    create an object,set the handler for ur event,
    call the trigger method
    <b>data:oref type ref to zsowcl1.
    create object oref.
    set handler oref->meth1 for oref.  handler method
    call method oref->meth2.           raise evnt method</b>
    hope it gives  you clear idea,
    Regards,
    Message was edited by:
            sowjanya s

  • How to call server functions?

    Hello everyone,
    I am quite new to server programming and I was wondering how to write an independent java program that calls functions inside the server.eg.
    Server code:
    package server;
    public class LIS {
         public static int val = 1;
         public static void main(String[] args) {
              val = 2;
              System.out.println(returnNumConnected());
              while (true) {
                   //keep server running
         public static int returnNumConnected() {
              return (val);
    Java test program code
    package server;
    public class test {
         public static void main(String[] args) {
              System.out.println("Value: " + LIS.returnNumConnected());
    }When I do this, I get Value = 1 printed out and not 2 as I intended to. I thought that the value 2 would be printed if the server was always running hence I put the infinite loop in the server code. Could anyone point out what I am doing wrong? Thanks a lot.
    Ankit

    What I meant was in reference to how you start the programme for example if your using windows and you are running your starting your programme in dos shell. Do you use two dos windows one for the server and one for the test program? In other words do you issue two java commands one to start the server and one two start the test if so then the LIS class in the first shell doesn�t have anything to do with the second one. This means the static variables in the first shell do not know any thing about the static variables of the second shell; this is equivalent to running your programmes in tow different computers.
    Once again the best way to communicate between the two classes is to use the network layer.
    Good luck
    Wiraj R B

  • How to call click event to HorizontalList item after it's been initialized

    How do I to call the click event of a HorizontalList item
    after the dataprovider property of the HorizontalList object's been
    set and the first item's been created. I need to call it's click
    event.

    http://www-03.ibm.com/support/ezserv/home.jsp

  • How to call trigger event when the checkbox is checked using custom.pll

    Hi,
    In recipt form i have one checkbox.when i check the box the popup should be open.
    how to check the check box is checked or not.
    any one help.me.
    Regards,
    M.Soundrapandian.

    You can probably do this easier using forms personalization - pl see ML Doc 279034.1 for details
    HTH
    Srini

  • How to call an event from simple tree menu

    I have a simple tree menu that when I click on a menu item,
    id like a picture or other data to appear on the right side of the
    page.
    Thank you in advance,
    Jim

    The reason why it becomes zero when you press stop is that you selected the control to get the default value in the event structure if it's not connected. You can fix it by connecting it like I did in the first picture.
    To make it stop when you press the stop button you have to connect one stop button to the loop exit terminal. The reason for the sequence structure that I added is to make sure that the loop exits the first time you press the stop button, try removing it and you'll see what I mean.
    You have one additional problem. You rely on the x+1 output of the sub vi as an input for the next iteration. However, that is not reliable since if you can the subvi from somewhere else it might mess up the count. You're better of using a shift register and passing in the last value to the subvi in each iteration.
    Attachments:
    1.png ‏9 KB
    2.png ‏10 KB

  • How to call rest service with POST Http method in SMP2.3 HWC?

    Hi Experts,
       I am doing a sample for Rest Service in smp.
    http://192.168.1.119:8086/Test/services/Products
    I am calling the above service in the smp it is pulling the data from the service with GET Http Method.
    Now i want to call this service for login functionality.
    http://192.168.1.119:8086/Test/services/auth?uname=:uname&pass=:pass
    here :uname &:pass values are argument values for the uname & pass.
    the output of the service is
    http://192.168.1.119:8086/Test/services/auth?uname=sravanya.k&pass=sravanya
    <?xml version="1.0" encoding="UTF-8"?>
    <details>
    <responsecode>200</responsecode>
    <profile>
    <firstname>sravanya</firstname>
    <lastname>k</lastname>
    <email>[email protected]</email>
    <chart_type>North</chart_type>
    <location>MACHILIPATNAM</location>
    <language>English</language>
    </profile>
    </details>
    How can i do this?
    Thanks & Regards,
    Sravanya K

    Create a uriTemplate like this
    /auth?uname={uname}&pass={pass}
    use GET method only.
    generate the personalization keys.

  • How to call a Screens modules inside class methods in ALV of OOABAP.

    I have a urgent reruirement to call a screen's PBO and PAI module inside a class method. I really dont want to create a function module and call the the screen inside that. Please revert if anyone have a solution as it is really urgent!!
    Moderator message - "Urgency" is not catered to in the forums.
    Message was edited by: Suhas Saha

    Hi Shehzad,
    SAPHELP on Advantages of ABAP Objects - Using ABAP - SAP Library says -
    There are only two purposes for which procedural ABAP is essential:
    · Encapsulation of classic screens in function modules.
    · When you want to make functions available to other systems, but are not able to make class methods available externally using XI server proxies. In this case, you have to use function modules.
    Regards,
    DPM
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/56/14934259a5c66ae10000000a155106/content.htm

  • How to display timed events across multiple days in month view?

    Simple question I suppose, though I don't know if it has an answer. When I put an event spanning multiple days (say, a week long vacation) in iCal, and check the "All Day" box, it shows a nice, accurate, bar going across those days the event I'm entering covers. However, if I give it specific times for the event (e.g. the times of departure and return for said trip), even if those times are a week apart, the event still appears to only cover the starting date when viewed from the month perspective.
    Is there any way I can make the month calendar show all the days during which the event is "happening" so that at a glance I will realize that an entire week is busy?

    Hi,
    You can do it with keyboard shortcuts.
    Select the event. Press Cmd+X. Press Cmd and right or left arrow (depending if it is forward or back in months) until you are in the correct month. Press Cmd+V to pase on the same day in the new month.
    Best wishes
    John M

  • How to call Event ?

    How to call an event when any record is changed (Bussiness object  'Record') in Record management System ?

    Hi,
    Check the below links. It gives a fair idea on calling the BOR method and events through reports.
    how to call BOR object-> method in custom program
    http://help.sap.com/saphelp_40b/helpdata/en/c5/e4b198453d11d189430000e829fbbd/content.htm
    Rgds,
    stck

Maybe you are looking for

  • Managed Property in Refinement - why not use the automatically-created site column managed property

    Hi, I read that although SharePoint 2013 automatically creates managed property for site column (OWS_Q_TEXT_COLUMNNAME) - in the refinement i should use a managed property and map to the ows_columnname. why? what's the difefrence? what is best - to c

  • Recommendations on maximum connections for RFC receiver channel

    In the past I have bumped this up to 10 or 15 but never really understood the significance or impact this can have. How do we size this number? Any idea? We may need to supply bunch of information to Basis on this before we resize it. Right now I get

  • Signature in Pages

    How do I add a "signature" to my pages documents? Basically, I have a few lines credentials I often need to add to documents below my name. Is there any way for me to add this information without having to type everything out each time? Thanks, Randa

  • Oracle 8i is coming for Linux July 5!!!

    Okay so they now have a release date for Linux version of Oracle 8i. Its July 5!!!!!!!!!!! Yippeee. I request that we all go to the corners of our rooms and stand there in silence for 20 minutes, in observance of this historical event! Mubashir null

  • GRN prient problem

    When we do GRN for purchase order using MIGO, when GRN is posted system prints one copy of GR by default. is it possible to print two copies of GRN when GRN is posted Rg, kt