on 09-01-2012 8:34 AM
Dear Experts,
Can anyone let me know how to provide F4 help for a input field dynamically based on launch type = Change & Display.
Senario:
1) On launch type = Create ( It should be just input field)
2) On launch type = Change ( The same input field should contain F4 help)
3) On launch type = Display ( The same input field should contain F4 help)
Thanks
Katrice
Hi Katrice,
You can use if_wd_context_node_info->set_attribute_value_help( ) to set, change or deactivate the value help associated with a context attribute. Here is some documentation for the interface and its methods.
Cheers,
Amy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Katrice,
Here's an example...
DATA: lo_nd_mynode TYPE REF TO if_wd_context_node,
lo_nd_mynode_info TYPE REF TO if_wd_context_node_info.
* Get the node info object
lo_nd_mynode = wd_context->get_child_node(
name = wd_this->wdctx_mynode ).
lo_nd_mynode_info = lo_nd_mynode->get_node_info( ).
* Assign a DDIC search help to the context attribute
lo_nd_mynode_info->set_attribute_value_help(
name = 'CONTEXT_ATTRIBUTE_NAME'
value_help_mode = 121 " DDIC Search Help
value_help = search_help_name ).
* Or deactivate the search help on the context attribute
lo_nd_mynode_info->set_attribute_value_help(
name = 'CONTEXT_ATTRIBUTE_NAME'
value_help_mode = 101. " Deactivated
See IF_WD_CONTEXT_NODE_INFO attribute C_VALUE_HELP_MODE for the list of possible values for parameter value_help_mode.
Also check out example web dynpro component, WDR_TEST_CHANGE_VHELP.
Cheers,
Amy
Katrice,
For your custom Search help (Created in SE11) , method set_attribute_value_help is enough.
DATA: lo_nd_mynode TYPE REF TO if_wd_context_node,
lo_nd_mynode_info TYPE REF TO if_wd_context_node_info.
* Get the node info object
lo_nd_mynode = wd_context->get_child_node(
name = wd_this->wdctx_mynode ).
lo_nd_mynode_info = lo_nd_mynode->get_node_info( ).
* Assign a DDIC search help to the context attribute
*......... Depending on your condition you can assisgn different search help to same input field( Attribute the input field is binded with )
IF lv_opt is initial.
lo_nd_mynode_info->set_attribute_value_help(
name = 'CONTEXT_ATTRIBUTE_NAME'
value_help_mode = 121 " DDIC Search Help
value_help = SE11_search_help_name1 ).
ELSEIF lv_opt is not initial.
lo_nd_mynode_info->set_attribute_value_help(
name = 'CONTEXT_ATTRIBUTE_NAME'
value_help_mode = 121 " DDIC Search Help
value_help = SE11_search_help_name2 ).
ENDIF.
Thanks
abhishek
User | Count |
---|---|
88 | |
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.