Events , Phase Model, Freely Programmed SH

Hi,
Here is the situation. I have a freely programmed search help that I am using among several views in the same component. Each view is subscribing to the VH_WINDOW_OPENED event for this search help.
The problem is that everytime I pull the search help up,  EVERY view that is using this search help fires this event. I only want this even to fire for the view that the user is currently viewing.
Is it a bug that the events still fires on the views that are not visible? If not, how do I limit this to just the view that is visible?
Thanks!

You could change the lifetime of the view (set on the property tab of the View) to When Visible.  That way the Views will be garbable collected as soon as they aren't visible.

Similar Messages

  • Event Handler is not getting trigger for Freely Programmed search help

    Hi All,
       I am having a component comp1 defined for value help with one event. In component comp2 i want to call the comp1 but the event handler which i have created is not getting triggered. Any reasons for it.
    Thanks
    Raghavendra

    Hi Kumar,
    Please check these forum threads.
    Re: Help required on Freely Programmed Input help
    Re: Custom search help

  • How to add Freely programmed input help in FPM Search UIBB?

    Hi Experts!
    We have a requirement to create search UIBB in which the input field should have a freely programmed input help.
    I see that WD_VALUE_HELP parameter can be set to the component name and it displays the freely programmed help as well in the application.
    However, I am still digging to implement the search help open and close events of the component.
    I have used the Freely programed value help standard demo object  " FREE_VALUE_HELP "  which shows the value in the help popup however, the selected value is not returned in the input field.
    I am also unable to find any Interface as provided for implementing OVS in search UIBB as well...
    Please help.

    Hi Aliaksandr,
    Thanks for your response.
    I have checked this WDA application demo_value_help .... but it is a normal WDA application.
    However, I want use freely programmed search help in Search UIBB using FPM.
    I found that we can provide the component name used as freely programmed search help in the attribute WD_VALUE_HELP of Interface IF_FPM_GUIBB_SEARCH.
    https://help.sap.com/saphelp_nw74/helpdata/en/03/f2474b6d9a49f4b5a3ed6f04decf22/content.htm?frameset=/en/56/d151c3ba7b4b2e82068a084cb991f3/frameset.htm
    And it displays the search help as well when I do F4 on the field of Search UIBB. But, we need to provide event handler for events - VH_WINDOW_CLOSED and VH_WINDOW_OPENED of the search help component (Component which is provided in WD_VALUE_HELP) some where in the Feeder class, in order to get the selecteed data from the search help, which I am unable to do.
    Do you have any idea of such implementation?
    Appreciate your response!

  • Problem in Select Option Freely programmed F4 Help

    Hi All,
    I had a Component 'A'  where i used select option. I used Freely programmed search help for the select option field.
    If i click F4 in the select option field it will call one component in which i have one more select option in component B.
    In component B select option field if i manually entering value and search and click apply values button the values are comming in the select option field in component A.
    But if i pressing the F4 in Component B and search and click apply values the value are not comming in the Component 'A'.
    If i open again component B and closing it without any action the value is coming in component A.
    If i debugged and see the WDDOMODIFYVIEW of tHE WDR_SELECT_OPTION is not getting called for component A.In which it has Rendering delta method of CL_WDR_SELECT_OPTION.
    Any idea about this.
    Regards,
    Ganesh.

    hi Ganesh,
    i have read your post several time and i am still not able to get hold on your problem. Probably it is to do with your complex approach of nested select_option, i can not judge why you did this way. I would advice you to step back and see it for yourself
    1)if it is need to have nested select_option
    2)check component initialization and destroy
    2)check event subscriptions

  • Freely Programmed search help - Accessing Alternative node

    Hi Experts,
    I am trying to use Freely Programmed search help for calling a custom WD component on pressing of F4 of an input field.
    I have done everything required and the component is being called properly as well.
    The issue here is that i need to pass two values to the the custom WD component on F4. As suggested in one of the threads I used F4_CONTEXT_ELEMENT to get the reference of the source context node and attributes. But the problem is that this gives reference to only that node which has the input field with F4 help (which is being used to call the custom component). The values which i need to pass are present in some other node.
    Can you please suggest a way of accessing the other node to retrieve and use the values in the custom component called?
    Regards,
    Ritvik
    Edited by: Ritvik Prasad on Mar 31, 2010 5:16 AM

    Hi Manas,
    Thanks for the suggestion. I had thought about it too. But the problem that i faced was that no event is triggered/Method called on pressing of F4 on that input field (its internally handled in the framework). In that case what should be the method/event where i should copy the values from the other node to the new attributes created so that it reflects in the Custom component?.
    If you could just elaborate on that it would be really helpful.
    Hi Chris,
    Thanks a lot for this. That actually sounds like fun. I tried looking for options to do that. Although i can get to the node from the element using "GET_NODE" but there I could not find the method "GET_PARENT_ELEMENT" to get the parent element (context as you said). Is there any other method which could possibly return the parent element which i could eventually use to get to the other node.
    It would be great if you could help out with this.
    Thanks ,
    Ritvik

  • Freely programmed help in ALV

       HI:ALL
          How to achieve  Freely programmed help in ALV?

    Hi,
    On APPLY buttton action, write the below code
    *Fire the event to indicate that data selection is done
    wd_comp_controller->fire_vh_data_selected_evt( ).
    wd_comp_controller->value_help_listener->close_window( ).
    *Raise Event
       cl_fpm_factory=>get_instance( )->raise_event_by_id( EXPORTING   iv_event_id   = '<custom event name>').
    And in PROCESS_EVENT of your webdynpro component(where Freely Programmed search help is implemented) write the code as per your requirement to set the values back to the table.
    CASE IO_EVENT->MV_EVENT_ID.
              WHEN '<CUSTOM EVENT NAME>'.
                        write code as per your requirement.
    ENDCASE.
    Thanks
    KH

  • Search help freely programmed

    Hi all,
    is anyone able to explain me how to use Search Help freely programmed?
    thanks
    GN

    Hi Gabriele,
    Please go through the component DEMO_VALUE_HELP. This explains all the input help types. The freely programmed search help has been implemented for the CONNID input field of view V1. The Web Dynpro component FREE_VALUE_HELP in the same package is the component where the search help is coded.
    Also below are the steps to be followed for implementing the freely programmed search help.
    This kind of value help is implemented as a Web Dynpro component implementing the Web Dynpro
    component interface IWD_VALUE_HELP. To be able to use the value help for a certain input field, the following steps are necessary:
    1) A component usage of the value help component (HC) has to be declared
    by the consumer component (CC).
    2) A usage of the HC interface controller has to be declared in the CC view.
    3) The input help mode User-Defined Programming has to be chosen for the attribute that is bound to the input field under consideration. The HC usage must be related to this attribute. The component interface of the HC has only one method: set_value_help_listener( ). This method is called by the Web Dynpro runtime if the value help button of the input field under consideration is clicked. The HC has to be implemented as follows:
    1) The method set_value_help_listener( ) has an import parameter. This means that the reference to the listener, provided by the Web Dynpro runtime, is passed to the user-defined HC. This reference has to be saved as a user defined controller attribute.
    2)  To close the help value dialog box, the close_window( ) method of the listener has to be used.
    3)  All views have to be embedded into a window having the name WD_VALUE_HELP. This name is used by the Web Dynpro runtime.
    4) To exchange data between the CC and the HC, context mapping can be used.
    For implementing the component interface IWD_VALUE_HELP, you need to choose the Reimplement button in the HC. The implementation status changes to green and the events and the method of the component interface are visible in the HC controller.
    Regards,
    Uday

  • Can we use Initilization event in module pool program?

    Hi All,
    Can we use Initialization event in module pool program? If not why?
    Thanks In Advance!!!!!!!!!

    The runtime environment creates the INITIALIZATION event and calls the corresponding event block (if it has been defined in the ABAP program).
    http://help.sap.com/saphelp_nw70/helpdata/EN/fc/eb2d67358411d1829f0000e829fbfe/content.htm
    SEE THE ABOVE LINK...THINK IT WILL SOLVE ALL YOUR DOUBTS
    REGARDS
    RACHEL

  • Issue regarding [Work Flow] Business Object Event Raise in ABAP Program

    Hi All,
    I have one issue regarding [Work Flow] Business Object Event Raise in ABAP Program.
    Actual TDS is as below:
    If E message type written, raise Business object BUS2005 (Production order) Event PickShortage for production order passing warehouse, transfer request
    (BUS2065 Object key) in event container. Also include table of text version of error
    messages for this set of Transfer
    Request.
    Can anybody tell me how can i write it technically in ABAP Code.
    Can anybody solve this issue!
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    Can anybody solve above posted issue!
    Thanks,
    Deep.

  • How to created Freely Programmed F4 help in Select Options

    hi,all
       I have a probelm about how to created a Freely Programmed F4 help in Select Options,and put help value into select options field
      Thanks and Best Regards

    Hi Haung,
    You need to use FREE_HELP not the component name.
    Modify you code as below:
       LT_RANGE_TABLE_V = wd_this->m_handler_V->create_range_table( 'ZCYPHDATE' ).
      wd_this->M_HANDLER_V->add_selection_field(
          i_id                         = 'ZCYPHDATE'
          it_result                    = LT_RANGE_TABLE_V
          i_value_help_type            = if_wd_value_help_handler=>CO_PREFIX_APPLDEV
          i_value_help_id              = 'FREE_HELP'
          i_no_intervals               = abap_false ).
    Hope this helps you.
    Regards,
    Rama

  • I need to design and print enumerated event tickets.  What program on my Mac Book Pro should I use?

    I need to design and print sequential numbered event tickets.  What program on my Mac Book Pro should I use? i do not have  microsoft word nor do i want to download it , so just on the mac apps please ?

    This is for Pages '09, not possible in Pages 5 to my knowledge.
    See Numbered Tickets:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=182&mforum=iworktips ntrick
    Peter

  • Help required on Freely Programmed Input help

    Dear all,
    I have developed a component, say comp1, in which i have implemented the interface IWD_VALUE_HELP.
    In the respective view(MAIN) of Comp1 i have a dropdown which contains a list of company codes fetched from T001 table.
    Apart from these two, I have also embedded the Main view into the window WD_VALUE_HELP.
    Now, I have created another component, say Comp2, in which i Used the dynpro component Comp1, and also in the MAIN view of my Comp2. Now in the MAIN view of Comp2 I have created a input field from the node T001 in the context which contains the single attribute BUKRS type String. In the properties of the BUKRS attribute I have also changed the Input help to "Freely Programmed" and linked to the component for the Input help.
    After this, I have created the application for my component Comp2. When i run the application and when i press F4 on the input field i am able to get the window from Comp1 component, and a dropdown with values.
    Now the question is, How can i pass the value selected in that window of Comp1 into the input field of Comp2? we do the same in OVS, when ever a value is selected from the Hitlist, it will be cascaded into the input field, just like that i want to do here.
    Please suggest me how to do this, and also please tell when to go for Freely programmed Input help and its advantages.
    Thank you,
    Shashi.

    You can do as suggested already and use interface nodes and cross component mapping; but that is all really not necessary.  It creates a situation where you calling application is too dependent upon the freely programmed input help.  You want to try to avoid the situation where the calling application needs code or mappings to communicate with the input help.
    That is easy to do because the framework passes all the information you need into the freely programmed input help via the value_help_listener object. 
    Part of the Freeley Programmed Input Help Component should be the component interface IWD_VALUE_HELP.  This comes with a component controller method called SET_VALUE_HELP_LISTENER.  This allows your freely programmed value help to capture this object called listener of type IF_WD_VALUE_HELP_LISTENER. I generally just store it awa into a component controller attribute.
    With this listerner object you have direct access to the context attribute in the calling component. You can query information about the calling UI element and of course set values directly back into it.  The listener is a hugely helpful object and should be the way you interact with the calling component whenever possible.  Here is small example:
      set single attribute
      wd_this->value_help_listener->f4_context_element->set_attribute(
      exporting
        name = wd_this->value_help_listener->f4_attribute_info-name
        value = l_time

  • Freely Programmed Search Help

    Hi there,
    I have a WebDynpro application with two fields.  The first field has Dictionary search Help on it.
    The second field has a Freely Programmed input help.  The problem I am faced with is that the freely programmed search relies on the value of the first field to determine it's own values - i.e The first field is a contract, and the second field is an item on the contract.  So if the contract changes, so should the list of items provided in the Help.
    Now the way that this works is that the user selects a contract, then selects an item, then completes the fields in a PDF document.
    They press the button Save and Clear which saves the data, clears all the fields, and is then ready for the next lot of data.
    Although I can clear out all the fields, I don't know how to trigger the refresh of the Freely Programmed help.  The first time it is used it gets the right data, and after that it always shows the same data, - I just don't know how to trigger a refresh.  Basically I want it to refresh every time it is used!!
    Many thanks
    Jack

    Hello Jack,
    hmm... it should refresh itself, because you determine what goes in and out. Probably, you need to clean up some nodes in your freely programmed search help component as well i.e. upon leaving.
    Best regards,
    Thomas

  • Freely Programmed help in Pop Up Window

    Hi,
      Is it possible to display the data of freely programmed help in the pop up window.
    Thanks
    Raghavendra

    Hi Thomas,
       I agree that by using Freely Programmed help the data will be displayed in a seperate window. I want to display the data in a window( of type Pop Up) because i am displaying table control with 3 fields on clicking f4 and it has 2 buttons Ok and Cancel. But if there are 50 entries the user needs to scroll down to click on Ok. If the window is of type pop up Ok button will be embedded in the window instead of on view.
    Thanks
    Raghavendra

  • Freely Programmed Value Help

    Hi,
          I am just getting an error in Freely Programmed Value Help and i have created two Component and i am just getting an error in first component as  WD_COMP_CONTROLLER->VALUE_HELP_LISTENER->CLOSE_WINDOW( ). is Unknown. I hope you Understand my Question. Please find me a Solution.
    Regards,
    Sadiq.

    Hi Bhaskar,
                   Thanks for your reply as you told that i have Initialized in Attributes as VALUE_HELP_LISTENER, but i can't resolve it.
    Regards,
    Sadiq.

Maybe you are looking for

  • Camera Raw will not update to latest version

    Help, Can someone please help me.  Have been trying for about 4 hours to update my version of Photoshop CS6 and keep getting response that "The update server is not responding. The server might be offline temporarily, or the Internet or firewall sett

  • CS2 upgrade - CS3 or CS4?

    I have CS2 Premium and Studio 8 (they came together). It includes Photoshop, Illustrator, InDesign, Version Cue, Dreamweaver, Flash, Fireworks, Contribute and Flashpaper. Is it more cost effective to upgrade to CS4 (my MacBook Pro can handle it ... )

  • Why is my iPad storage space filling up when transferring purchases to iTunes?

    Hi there, Hopefully somebody can help. I recently bought an iPad & it's been great, but I noticed when I was Transferring my purchases from my Pad to my Mac, my iPads disk space starting filling up under the 'Other' catagory. Why is it doing it? Sure

  • Please advice how I can change the address in the map

    http://interior-design-preview.businesscatalyst.com/contact

  • ST03 Analysis

    Hi , Can anybody give me how to go about detailed workload analysis using ST03. Till now i only look for average response times.  Also, I am not aware about the meaning of the fields like  ' STEPS' and 'TRIPS' in the screen of ST03.  In general what