on 03-23-2007 6:54 AM
When I add some single values in value range, the RadioButtonGroupKey will display the choice on the web.But the length of single value is too short for my using.So I creat a value table in the value range,and according test,the F4 search help will display the choice of value table.But the RadioButtonGroupKey just do not display on the web.Why? Thanks.
Hi Voldmort ,
Can you give more clear idea of your requirement .
Do u want to bind such node to radio button whose element will have f4 search help .
I can tell you how to use method onActionOnSelect or ByIndex .
This is sample code for method onActionOnSelect of radion button on key .
*********************************************************************************************
implicit available data objects
wd_Context type ref to if_wd_context_node.
wd_This type ref to if_RadiobtnGrpByKey.
data:
text type string,
element type ref to if_wd_context_element,
key type string.
element = wd_context->get_lead_selection( ).
display the value of the key event parameter
key = wdevent->get_string( 'KEY' ).
element->set_attribute( name = 'EVENT_PARAM_KEY' value = key ).
endmethod.
In this 'EVENT_PARAM_KEY' is node is made in Context .
Please refer to following example for Details .
<b>WDR_TEST_EVENTS</b>.
In this you will find how to use all UI elements .Please see radiobutton you want.
Hope I have anwered what you want.
If yes please reward point.
Parag ......
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Voldemort Xu,
I have tried using radiobutton group by key but it did not work for me.
So I used radiobutton group by index and now it working for me.
So what i can suggest you is that use radiobutton group by index.
I have the sample code where index is used.
This code is used for radiobutton group by index.
You can use same logic in your requirement.
data:
text type string,
element type ref to if_wd_context_element,
index type string.
DATA:
node_check TYPE REF TO if_wd_context_node,
elem_check TYPE REF TO if_wd_context_element,
stru_check TYPE if_start_ior=>element_check ,
item_check_attribute LIKE stru_check-check_attribute.
element = wd_context->get_lead_selection( ).
index = wdevent->get_string( 'INDEX' ).
Case when Overhead option is selected
navigate from <CONTEXT> to <CHECK> via lead selection
node_check = wd_context->get_child_node( name = if_start_ior=>wdctx_check ).
get element via lead selection
elem_check = node_check->get_element( ).
get single attribute
elem_check->get_attribute(
EXPORTING
name = `CHECK_ATTRIBUTE`
IMPORTING
value = item_check_attribute ).
if index EQ 2.
elem_check->set_attribute( name = 'CHECK_ATTRIBUTE' value = Abap_true ).
endif.
if index EQ 1.
elem_check->set_attribute( name = 'CHECK_ATTRIBUTE' value = Abap_false ).
endif.
Hope this answer will help you.
Cheers,
Darshna.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.