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.

Similar Messages

  • 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 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 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 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 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

  • Call business event from oracle workflow

    Hi,
    how to call business event from oracle workflow ?
    if possible, could you give any sample code.
    Thanks.

    In short terms: assign values to the attributes that compose the payload of the event. Then raise it. Here a simple example of raising the Flex Field compilation event:
    declare
    l_application_id fnd_application.application_id%TYPE := &1;
    l_descriptive_flexfield_name varchar2(200) := '&2';
    l_application_short_name fnd_application.application_short_name%TYPE;
    l_parameters wf_parameter_list_t := wf_parameter_list_t();
    begin
    SELECT application_short_name
    INTO l_application_short_name
    FROM fnd_application
    WHERE application_id = l_application_id;
    wf_event.addparametertolist(p_name => 'APPLICATION_SHORT_NAME',
    p_value => l_application_short_name,
    p_parameterlist => l_parameters);
    wf_event.addparametertolist(p_name => 'APPLICATION_ID',
    p_value => l_application_id,
    p_parameterlist => l_parameters);
    wf_event.addparametertolist(p_name => 'DESCRIPTIVE_FLEXFIELD_NAME',
    p_value => l_descriptive_flexfield_name,
    p_parameterlist => l_parameters);
    wf_event.raise(p_event_name => 'oracle.apps.fnd.flex.dff.compiled',
    p_event_key => (l_application_short_name || '.' ||l_descriptive_flexfield_name),
    p_event_data => NULL,
    p_parameters => l_parameters,
    p_send_date => Sysdate);
    end;
    Regards.

  • How to call a bean method from javascript event

    Hi,
    I could not find material on how to call a bean method from javascript, any help would be appreciated.
    Ralph

    Hi,
    Basically, I would like to call a method that I have written in the page java bean, or in the session bean, or application bean, or an external bean, from the javascript events (mouseover, on click, etc...) of a ui jsf component. I.e., I would like to take an action when a user clicks in a column in a datatable.
    Cheers,
    Ralph

  • How to call a Javascript function from backing bean without any event

    Hi,
    Someone knows how to call a Javascript function from backing bean without any event ?
    thanks

    Please review the following thread:
    ADF Faces call javascript
    Luis.

  • How to Call Event Handler Method in Another view

    Hi Experts,
                       Can anybody tell me how to call Event handler Method which is declared in View A ,it Should be Called in
      view B,Thanks in Advance.
    Thanks & Regards
    Santhosh

    hi,
    1)    You can make the method EH_ONSELECT as public and static and call this method in viewGS_CM/ADDDOC  using syntax
        impl class name of view GS_CM/DOCTREE=>EH_ONSELECT "method name.
                 or
    2)The view GS_CM/ADDDOC which contains EH_ONSELECT method has been already enhanced, so I can't execute such kind of operation one more time.
                         or
    3)If both views or viewarea containing that view are under same window , then you can get the instance ofGS_CM/DOCTREE from view GS_CM/ADDDOC  through the main window controller.
    lr_window = me->view_manager->get_window_controller( ).
        lv_viewname = 'GS_CM/DOCTREE '.
      lr_viewctrl ?=  lr_window ->get_subcontroller_by_viewname( lv_viewname ).
    Now you can access the method of view GS_CM/DOCTREE .
    Let me know in case you face any issues.
    Message was edited by: Laure Cetin
    Please do not ask for points, this is against the Rules of Engagement: http://scn.sap.com/docs/DOC-18590

  • Please very urgent How can i call focus event for dynamic created txtbox

    Hi,
    I create a one texbox using javascript .now i want to call onFocus event that textbox.How is it

    Hi,
    I create a one texbox using javascript .now i want to
    call onFocus event that textbox.How is itJust for you, slowly, so you can understand:
    Javascript was invented by Netscape and is a scri�ting language for browsers.
    Java is a programming language invented by Sun.
    Compare:
    Netscape. Sun.
    Notice a difference?

  • ***How to call BSP App when custom button event fired from toolbar group***

    Dear PCUI Experts,
       I have created one custom button for the transaction CRMD_BUS2000116.
    And my urgnet requirement is , I need to call BSP application which is used to   take data from custom fields and stores into BP table.
    How to call the BSP App. when i clicks on the button.
    Please help me..
    I will reward with great points.
    Regards,
    Stella.

    Hi Purushothaman,
                                 I have created a button in CRRM_ACCOUNT application.
    Now i want to call  a custom bsp application by clicking on that button.I have followed step given in this blog
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1646. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    But the event is not triggered.Do I have to create an iview for my bsp application?
    How to do that?Plz help.
    Regards,
    Ruby.

  • How to call external application (transaction launcher) from event method

    Hi all
    Can somebody tell me which program lines to put into an event handler method in a view controller to get an external application called. I intend to define the link to the external application in the Transaction Launcher. But I cannot find any instructions on how to call the Transaction Launcher from my event handler method. I do not want to launch the application from the navigation bar, ONLY via a link in a list of invoices in a table view, and I want to press the invoice number to get an external application called to display the invoice. My event handler method gets called fine enough, but I have no clue which program lines to put into the method to pass on the call to the Transaction Launcher
    Best regards
    Arne Thage / MarchIT / Denmark

    hi,
    check class CL_CRM_UI_LTX_NAVBAR_PARAM.
    call method : CREATE_PARAMETER_OBJECT with parameters
    IV_LINK_ID     Importing     Type     CRMT_UI_LOGICAL_LINK_ID                                                                                Logical Link ID
    IV_PARAMETER     Importing     Type     CRMT_UI_LINK_PARAMETER                                                                                Link Parameter
    RV_RESULT     Returning     Type Ref To     IF_BOL_BO_PROPERTY_ACCESS                                                                                BO Attribute
    I think it should work but have never done myself.
    Best Regards
    Pankaj Kumar

Maybe you are looking for

  • Why can't i cut and paste

    Downloaded the new Mountain Lion and now I can't cut and paste. Tried the keyboard shortcuts and the drop down menu with no luck. Also can't accomplish this from right clicking. Any ideas?

  • HT204053 How do you change the apple ID that is set for iCloud?

    My iCloud is set up to my families email instead of mine. It's asking for their password. Can I change the account to be my apple id?

  • SUBSTITUTE ISSUE

    HI  Experts, Requirement:  Post to  Business Area  "AAA" Replace Business Place field with  "AAC" The table field  BSEG-BUPLA  is not appear  while creating Substitution. (Creating substitution at Line Item Level). How fulfill these requirement ? whi

  • T500 - Conexant HD Audio not showing up in Device Manager

    I was recently given a new T500 that had been set up with XP for work. Upon trying to set up some audio software, it displayed an error stating no device was found. I then went and got the latest drivers, but these failed and state "no MEDIA availabl

  • Need help finding an affordable LOUD portable radio

    I'm looking for a LOUD radio I can use at work.  Seeing as how I work in a metal fabrication shop I really do need it to be loud.  I have tried a few wallmart/radio shack cheap radios and have had no luck.  I would like something that puts out a lot