on 12-14-2012 2:51 PM
Hi
I want to enhance the standard search help PREMN which is assigned to the field in webdynpro . I want to replace this search help with another search help PREMP. Kindly help me how to proceed in this issue.
Hi Srikanth,
We can change the search help value try with below process it may change ..
Create enhacement for the View & call the below methods in POSTEXIT method of WDINIT method.
1.Read the node which has required attribute to be changed.
2.Get the reference of node into a ref. variable of type IF_WD_CONTEXT_NODE_INFO.
3.Call SET_ATTRIBUTE_VALUE_HELP method from the node metadata reference.To this method
pass ATTRIBUTE name & SEARCH HELP name.
Sample code:
DATA lo_nd_n_node TYPE REF TO if_wd_context_node.
DATA lo_nd_nref TYPE REF TO if_wd_context_node_info.
DATA lo_el_n_node TYPE REF TO if_wd_context_element.
DATA ls_n_node TYPE wd_this->element_n_node.
* navigate from <CONTEXT> to <N_NODE> via lead selection
lo_nd_n_node = wd_context->get_child_node( name = wd_this->wdctx_n_node ).
* get element via lead selection
lo_el_n_node = lo_nd_n_node->get_element( ).
*---get node info
CALL METHOD lo_nd_n_node->get_node_info
RECEIVING
node_info = lo_nd_nref.
*---
CALL METHOD lo_nd_nref->set_attribute_value_help
EXPORTING
name = 'ATT1' "Attribute name
* value_help_mode = C_VALUE_HELP_MODE-AUTOMATIC
value_help = 'search help name ' "
.
Thanks,
Nandi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can enhance the view by adding a new field that has the new search help. Then, place this field on the view and hide the standard field. You should take care of moving the data between the custom and standard field in the WDDoBeforeAction, WDDoInit, and/or, WDDoModifyView.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
field which have this search help is standard?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.