on 04-18-2011 6:49 AM
Hi all,
Currently I am using the freely programmed search help field method. I can only show the key value on the search help field. How can I include the description text beside the key value as well? thanks.
HI ,
Try creating a new field in the Provider component for description.
Please explain a bit more if the above solution doesnt make sense..:)
Thanks,
Aditya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
On the particular field, when I click on the search help, choose value and click on "close" button which will input the key value onto the field, the following code to input the value:
DATA lo_listener type ref to if_wd_value_help_listener.
DATA lv_attrib_name type string.
DATA lo_nd_slart type ref to if_wd_context_node.
DATA lo_el_slart type ref to if_wd_context_element.
DATA ls_slart type wd_this->element_slart.
DATA lv_slart type wd_this->element_slart-slart.
lo_nd_slart = wd_context->get_child_node( name = wd_this->wdctx_slart ).
lo_el_slart->get_attribute(
EXPORTING
name = 'SLART'
IMPORTING
value = lv_slart ).
lo_listener = wd_comp_controller->value_help_listener.
lv_attrib_name = lo_listener->f4_attribute_info-name.
lo_listener->f4_context_element->set_attribute( value = lv_slart
name = lv_attrib_name ).
wd_comp_controller->fire_vh_data_selected_evt( ).
wd_comp_controller->value_help_listener->close_window( ).
Based on the code listed in the provider component, how can I add a text view ui and link the stext from this provider to the user component?
Hi,
What you can do is, you can search for the key selected by a user in the internal table (which contains the Key as well as description).
Once you get the key, copy its description in the attribute. Later this attribute can be display to the user by data binding to a textview UI element.
Hope this helps you
Regards
Abhinav
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
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.