on 03-10-2009 8:47 AM
Hi,
I have two input box where I need to use a search help for the first input box where I will get the user id but the second input box which is read only should also be populated with the user name from the same database table of the search help simultaneously. I tried using onenter method of the first input box but the problem here is I am gettin the name only after clicking enter button.. I don't need that.. I need it to get populated that instant when the user id is populated.
I hope my writing is not more confusing that I am right now.
Any help will be really appreciated.
Thanks and Regards
Tenzin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tenzin,
To achieve this functionality you can go for the OVS Search help.
Please check the WDA Component - WDR_TEST_OVS in your system.
When you run this application then check the link - Include-Struktur. Here they will show an example that you want.
Hopes this will helps you.
Regard
Manoj Kumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have created one blog on OVS Help in WDA which populate multiple UI elements based on Search help result. I think you can refer that.This will definitely going to help you out.
[OVS Help in WDA|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/9502] [original link is broken] [original link is broken] [original link is broken];
Hope it helps.
Regards
Shruti
Hi Tenzin,
As per told by you that your are not able find the link which I have mentioned.. though I got the component .
With that component check the VIEW - V9, otherwise check the logic given below.
Logic for OVS Search help.
1. Take a Component Usage of WDR_OVS in you component controller.
2. Then take that used component of OVS in your view Controller.
3. Then for which attribute you need the OVS search help, make that input help mode properties to OVS and in the OVS Component usage pass the OVS component usage name.
4. After this bind the attributes to the UI element .
5. Then create a method of type event and assign the OVS event of the component usage of ovs you have created to that event.
After this write this logic within that method.
method on_ovs .
data: l_spfli_node type ref to if_wd_context_node,
l_struc_spfli type ig_componentcontroller=>element_sflight,
l_element type ref to if_wd_context_element,
l_tab_output type table of wdrtest_ovs.
field-symbols: co_phase_1.
nothing to do here
when if_wd_ovs=>co_phase_2.
query
cl_wdr_flights=>get_data(
exporting
tab_name = 'SFLIGHT'
changing
data = l_tab_output ).
ovs_callback_object->set_output_table( output = l_tab_output ).
when if_wd_ovs=>co_phase_3.
apply result
if ovs_callback_object->selection is not bound.
*******TODO exception
endif.
assign ovs_callback_object->selection->* to ).
endif.
endcase.
endmethod.
Regard
Manoj Kumar
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.