on 09-26-2016 7:08 AM
Hello Experts,
We are having a requirement to add input help to new custom field in standard application.
Where the component is reading configuration and creating control using class: CL_WD_INPUT_FIELD=>NEW_INPUT_FIELD.
In standard component there is no context where I can go and add DDIC/OVS help. Standard application pass data to dynamic control in parameter:
bind_value.
in this class method I can see some parameter like "BIND_INPUT_HELP" ,"BIND_INPUT_PROMPT" but I am not sure. How do I use OVS help or DDIC help.
Please suggest.
Thanks & Regards,
NJ
Hi,
Assign the search help to the attribute not to the input field. In the parameter PATH of method bind_value you should have the name of the attribute you need to use.
Try with this:
DATA lo_nd_your_node TYPE REF TO if_wd_context_node.
lo_nd_your_node = wd_context->get_child_node( name = wd_this->wdctx_your_node ).
DATA lo_nd_info TYPE REF TO if_wd_context_node_info.
lo_nd_info = lo_nd_your_node->get_node_info( ).
CALL METHOD lo_nd_info->set_attribute_value_help
EXPORTING
name = 'YOUR_ATTRIBUTE'
value_help_mode = '121' "help mode
value_help = 'YOUR_DDIC_OR_OVS_NAME'.
Where value_help_mode:
deactivated = 101
automatic = 111
ddic = 121
ovs = 131
application_defined = 141
Regards,
Ricardo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nikhil,
Don't use the L_NAME in method SET_ATTRIBUTE_VALUE_HELP.
As I can see in your code L_NAME stores the ID of the new input field.
You need to pass to this method the name of the context attribute bound to the input field.
You can see this name as part of the path, in your code in var L_VALUE. I guess you need to take the last part of this string and use it. Put a break-point and check what do you have in this var.
Regards,
Ricardo.
Thanks Ricardo,
I got the issue node was not retuning attributes as the attributes are at child level so I used below code and it is working fine.
lo_nd_info = lo_nd_your_node->get_node_info( ).
lo_nd_info1 = lo_nd_info->get_child_node( name = 'HRI9991' ).
CALL METHOD lo_nd_info1->set_attribute_value_help
EXPORTING
name = l_name
value_help_mode = '121' "help mode
value_help = 'ZCA9_INT_CO_SH'.
Thanks,
NJ
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.