2006 Dec 06 10:46 AM
Dear All Forum Members,
I have got a problem. I was trying to handle an event in CONTROLLER's DO_HANDLE_EVENT method.The code I have written is as shown, <b> IF htmlb_event IS NOT INITIAL AND htmlb_event->name = 'radioButton' .
Capture Field Id in a local Variable
lv_fieldid = htmlb_event->id.
Get Radiobutton
lv_htmlb_radiobutton ?= cl_htmlb_manager=>get_data( request = runtime->server->request
name = 'radioButton'
id = lv_fieldid ).
Capture Event
global_event = htmlb_event->server_event.
</b>
I did the same kind for handling Checkboxes,DropDowns and Buttons and those are working fine. But when it's radioButton, it's not working. The method call <b> lv_htmlb_radiobutton ?= cl_htmlb_manager=>get_data</b> is not executed.That I have seen by setting break-points. So I am not able to proceed further. Please help me to solve this.
Sugata Basu
this is BSP question and should have been posted in BSP forum.
anyhow to answer your question.
its radiobuttongroup and not just radiobutton.
data: radiobuttongroup type ref to cl_htmlb_radiobuttongroup ,
r1sel type string .
radiobuttongroup ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'radioButtonGroup'
id = 'RBG1' ).
if radiobuttongroup is not initial.
r1sel = radiobuttongroup1->selection.
endif.
r1sel will hold which radiobutton in that group is selected.
Regards
Raja
2006 Dec 06 1:09 PM
this is BSP question and should have been posted in BSP forum.
anyhow to answer your question.
its radiobuttongroup and not just radiobutton.
data: radiobuttongroup type ref to cl_htmlb_radiobuttongroup ,
r1sel type string .
radiobuttongroup ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'radioButtonGroup'
id = 'RBG1' ).
if radiobuttongroup is not initial.
r1sel = radiobuttongroup1->selection.
endif.
r1sel will hold which radiobutton in that group is selected.
Regards
Raja
2006 Dec 07 6:25 PM
Hi Basu,
As of what I feel , generally the logic of working a radio button is different to check box and stuff like that.
So, what i can tell you is to make a group name for radio group, identify each radio button with diff. names.
Hope this helps.
Regards,
Bharat
2006 Dec 11 12:37 PM
Hello Basu,
a not called method sound too odd to be true. Have you enabled system debugging /hs?
Regards,
Klaus
2006 Dec 11 12:43 PM
i guess this stt
<i>"The method call lv_htmlb_radiobutton ?= cl_htmlb_manager=>get_data is not executed."</i>
is misleading. the call may have been executed but he doesnt get the results back thats because he used 'radioButton' instead of 'radioButtonGroup' as i mentioned in my previous thread.
Regards
Raj
Hi Basu - if your question is answered close the thread
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |