on 10-24-2006 11:40 AM
does anyone know how to get the ticked button in the radio buttons? i tried using this code but it doesn't work:
data_rb ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'radioButton'
id = 'RB1' ).
Hi,
<u>You should always embed your radioButton in a radioButton group.</u>
You should always check the sample applications provided by SAP for this.
<b>SBSPEXT_HTMLB/RadioButtonGroup.bsp</b> show you how to do it
Besides, it is also available in the component help (F1 on the element)
DATA: radioButtonGroup TYPE REF TO CL_HTMLB_RADIOBUTTONGROUP.
radioButtonGroup ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'radioButtonGroup'
id = 'myRadioButtonGroup1' ).
IF radioButtonGroup IS NOT INITIAL.
selection = radioButtonGroup->selection.
ENDIF.
Hope it helps!
Best regards,
Guillaume
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.