on 10-03-2011 9:30 AM
Dear all,
Can anyone please help me how to use radio button in a webdynpro table in a column?, In a column i want to use radio button and i want to select one button at a time in a column.
Hi Kavin,
Search here you get lot of examples..
Also go through this example...
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Kavin,
do the following
1. Create an context attribute (say SELECTED_VALUE) directly under the ROOT Context
2. Create a table column in your table UI element and add Radio Button cell editor
3. bind the keyToSelect propery of the radio button to the context attribute in the Table's Context node
4. bind the selectedKey property of the radio button to the SELECTED_VALUE context attribute.
whenever the the user is selecting the column radio button, the selected value will be populated in the SELECTED_VALUE context attribute.
Hope this helps.
BR, Saravanan
Hi kavin,
Try dynamic lead select option.if u select one Radio button means the particular row will get lead selected.i think that ll solve your problem.check the coding
DATA LO_ND_BBU_NODE TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LO_EL_BBU_NODE TYPE REF TO IF_WD_CONTEXT_ELEMENT.
LO_ND_BBU_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = 'VENDOR_DETAIL' ).
LO_EL_BBU_NODE = WDEVENT->GET_CONTEXT_ELEMENT( 'CONTEXT_ELEMENT' ).
LO_ND_BBU_NODE->SET_LEAD_SELECTION( ELEMENT = LO_EL_BBU_NODE ).
Edited by: Gowtham.A on Oct 3, 2011 1:30 PM
Hai,
Goto code wizard. select the table option and click on context then bind with node. After that change the table cell editor to radio button option then you get the radio button in table after applying the binding.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check the standard exmaple for the same WDR_TEST_TABLE for table cell editors.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
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.