on 05-14-2007 4:29 PM
Hello BSP gurus,
Ok, so far I have this piece of code. The idea is to click on a radiobutton and then click on the search button in order to go to the next screen (the result screen).
Does anyone have an idea how to handle this?
Thanks in advance.
<htmlb:radioButton id = "rad1"
key = "r1"
disabled = "false"
text = "Report 1"
checked = "false"
/>
<htmlb:button id = "search"
text = "Search"
onClick = "onInputProcessing(select)" />
In Layout:
<htmlb:radioButton id = "rad1"
key = "r1"
text = "Report 1"
checked = "false"
/>
<htmlb:button id = "search"
text = "Search"
onClick = "selec" />
<b>OnInputprocessing Event:</b>
DATA EVENT TYPE REF TO CL_HTMLB_EVENT.
IF NOT EVENT_ID IS INITIAL.
EVENT ?= CL_HTMLB_MANAGER=>GET_EVENT_EX( REQUEST ).
IF NOT EVENT IS INITIAL.
CASE EVENT->SERVER_EVENT.
WHEN 'select'.
navigation->goto_page( 'result_page.htm').
ENDCASE.
ENDIF.
ENDIF.
<i>* Reward each useful answer</i>
Raja T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here you go..
<b>To display more than 1 Radiobutton:</b>
<htmlb:radioButtonGroup id = "grp1"
columnCount = "4"
disabled = "false"
mode = "LAYOUT_GROUPING"
selection = "<%= selected %>"
tooltip = "This is my RadioButton Group"
width = "500" >
<htmlb:radioButton id = "rad1"
key = "r1"
tooltip = "This is a radio button1"
text = "search1"
/>
<htmlb:radioButton id = "rad2"
key = "r2"
tooltip = "This is a radio button2"
text = "search2"
checked = "true"
onClick = "click2" />
</htmlb:radioButtonGroup>
<b>To capture selected Radiobutton:</b>
DATA: rbg TYPE REF TO CL_HTMLB_RADIOBUTTONGROUP.
rbg ?= CL_HTMLB_MANAGER=>GET_DATA( request = request id = 'grp1' name = 'grp1' ).
if rbg is not initial.
selected = rbg->selection.
if selected = 'r1'.
navigation->goto_page( 'result_page1.htm');
elseif selected = 'r2'.
navigation->goto_page( 'result_page2.htm');
endif.
endif.
Raja T
<b>* Reward each useful answer</b>
Hi,
In Raja's code
DATA: rbg TYPE REF TO CL_HTMLB_RADIOBUTTONGROUP.
rbg ?= CL_HTMLB_MANAGER=>GET_DATA( request = request id = 'grp1' name = 'grp1' ).
Change value of attribute name to <b>radiobuttongroup</b> instead of <b>grp1</b>.
Also remove <b>;</b> after
<b> navigation->goto_page( 'result_page1.htm');</b>
and change it to a simple period.
Hope this helps.
<b><i>Do reward each useful answer..!</i></b>
Thanks,
Tatvagna.
Message was edited by:
Tatvagna Shah
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.