Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Call method not getting executed!!!!!

Former Member
0 Likes
687

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

4 REPLIES 4
Read only

athavanraja
Active Contributor
0 Likes
584

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

Read only

Former Member
0 Likes
584

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

Read only

former_member183804
Active Contributor
0 Likes
584

Hello Basu,

a not called method sound too odd to be true. Have you enabled system debugging /hs?

Regards,

Klaus

Read only

0 Likes
584

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