on 07-22-2009 9:18 AM
Hi,
The RadioButton UI elements where I have inserted have the state (on) . How can make them off ?
Regards
Marco M.
do you have an example with ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Follow these steps;
1.Create a node 'CN_RADIO', cardinality 0:n. Under this node create an attribute 'KEY' type string.
2. Place a RadioButtonBroupByIndex uielement on your view
3. Bind the texts property of the radiobutton with the newly created attribute
4. Place the following code in WDDOINIT method, to create radio button list
Regards,
Radhika.* Fill Radiobutton list
DATA: itemlist TYPE if_viewname=>elements_cn_radio,
w_list LIKE LINE OF itemlist.
w_list-ca_key = 'Black'.
APPEND w_list TO itemlist.
w_list-ca_key = 'White'.
APPEND w_list TO itemlist.
w_list-ca_key = 'Orange'.
APPEND w_list TO itemlist.
w_list-ca_key = 'Pink'.
APPEND w_list TO itemlist.
DATA: items_node TYPE REF TO if_wd_context_node.
items_node = wd_context->get_child_node( name = `CN_RADIO` ).
items_node->bind_table( itemlist ).
items_node->set_lead_selection_index( 1 ).
Hello ,
Radio Button UI element has a property ' Key to Select ' . Now if this value is set to 1 and you bind an context attribute
to the property 'Selected Key ' and change the value of context attribute to 2 . Radio button will be off .
If I am not able to answer your question , Can you please explain your problem in more detail .
Regards
Vivek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
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.