on 04-19-2013 6:41 PM
Hi experts,
Please let me know the code & process of doing dynamic search help.
Here I am describing the scenario--------
In the above screen 'Adjust System'(marked in red) has 2 dropdown values 'MA'
& 'MI'.
When 'MA' is selected 'Counterparty' (marked in blue) search help is set as dictionary search help(set in node property).It is already there.
Now the new change is----------
i. When 'MI' is selected from the dropdown value of 'Adjust System' then 'Counterparty'
search help will be set as dynamic search help.
ii. If user selects 'MA' from the dropdown then again dictionary search help will be set
in 'Counterparty' search help & vice versa.
I will be really grateful if you can help me out to resolve the above said 2 points.
Thanks in advance.
Regards,
Anindita Banerjee
Hi Anindita,
Try the below.
1. create ovs usage and an event handler method for ovs for the values to display when 'Adjust System' value is 'MI'.
2. When 'Adjust System' is 'MA' ,you have automatic search help.
then.
data lo_nd_info type if_wd_context_node_info.
lo_nd_info = lo_nd->get_node_info( ).
Read 'Adjust System' selected value into a variable let it be 'lv_Adjust'.
if lv_Adjust = 'MA'.
CALL METHOD lo_nd_info->set_attribute_value_help
EXPORTING
name = ' Your attribute Name' "Counterparty'
value_help_mode = '111' " value help mode
value_help = 'Automatic Search help name'.
else.
CALL METHOD lo_nd_info->set_attribute_value_help
EXPORTING
name = ' Your attribute Name' "Counterparty'
value_help_mode = '131' " value help mode
value_help = 'OVS usage help name'.
endif.
Regards,
Paul.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anindita,
You can set your value help using this method :
try to implement this method.
IF_WD_CONTEXT_NODE_INFO -> SET_ATTRIBUTE_VALUE_HELP.
available options;
begin of C_VALUE_HELP_mode,
deactivated type i value 101,
automatic type i value 111,
ddic type i value 121,
ovs type i value 131,
application_defined type i value 141,
end of c_value_help_mode .
Thanks,
Sudheer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use Freely Programmed Input Help, using OVS and dictionary search help like this will disable the COPY button.
Web Dynpro provides two types of pre-implemented search helps :
1. ABAP Dictionary Search help
2. OVS
One more help is Freely programmed search help.
[Input Help|http://help.sap.com/saphelp_nw04s/helpdata/en/b3/4d3642eca5033be10000000a1550b0/frameset.htm]
I have created a blog on implementing OVS help in WDA. You can refer that for sample code.
[OVS Help in WDA|OVS Help in Web Dynpro ABAP]
In addition, you can also provide help through Drop Downs and Select options.
[Working with select-options in WDA|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdf...]
I hope this will helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anindita,
You can use OVS help for this purpose. Create a custom OVS help and you can include your conditions in the search help.
http://saptechnical.com/Tutorials/WebDynproABAP/OVS/page1.htm
-Manish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
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.