on 09-03-2009 10:21 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.