Skip to Content
author's profile photo Former Member
Former Member

Dropdown Event in Search Screen (BT111S_OPPT)

Hi Gurus,

I have a requirement in which I have to code 3 dropdowns in Oppt Search Screen. When the user selects some value in first dropdown, the related entries are filled in the next dropdown. I am able to code dropdown (not in.htm page) in V_get method and I able to see that dropdown on my view. But I am not able to generate event (server request) when the user selects some value in the dropdown. Kindly let me know how I can generate a server request when a user selects some value in the dropdown.

Also let me know how to catch that event in do_handle_event.

Thanks & Regards,

Suresh Narra

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 04, 2009 at 05:00 AM

    hi,

    in get_P method of your field write following code.

    
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.
        WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
          rv_value = 'YOUR_EVENT_NAME'.
    
      ENDCASE.
    

    when user will select any field in any dropdown, debugger will go to method eh_onYOUR_EVENT_NAME.

    Best Regards

    Pankaj Kumar

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 04, 2009 at 08:56 AM

    Hi Suresh,

    As suggested by Pankaj, you need to trigger a server event in the GET_V method of the first dropdown.

    In the event you need to check the value of dropdown 1 and using this value populate the value of the 2nd dropdown.

    You can also opt to write this logic in the IMPL class method GET_DQUERY_DEFINITIONS.

    Hope this helps!

    Regards,

    Saumya

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.