on 04-28-2006 11:21 AM
Hi forum!
I have a little problem with a checkbox and a button..
I want to do queries when i click on a button, a query A when the checkbox is not checked and a query B when the checkbox is checked.
Well, on the layout:
<htmlb:checkboxGroup id="myCheck" columnCount="1" >
<htmlb:checkbox id = "cb1"
text = "Checkbox without nested elements"
tooltip = "Click the checkbox, clicking thetext does not work"
checked = "<%=checked%>" >
</htmlb:checkbox>
</htmlb:checkboxGroup>
<htmlb:button id = "boton"
text = "Realizar consulta"
tooltip = "Pulse para comenzar la busqueda"
onClick = "oninputprocessing()"
design = "emphasized"></htmlb:button>
But OnInputProcessing, i have to know if the checkbox is checked..
DATA: event TYPE REF TO cl_htmlb_event,
button_event TYPE REF TO cl_htmlb_event_button,
chkbox1 type ref to cl_htmlb_checkbox.
event ?= cl_htmlb_manager=>get_event( runtime->server->request ).
chkbox1 ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'checkbox'
id = 'cb1' ).
IF event->name = 'button' AND event->event_type = 'click'.
button_event ?= event.
CASE button_event->id.
WHEN 'boton'.
*
* I now how to know if the checkbox is really checked¿?¿?
*
.
.
.
.
.
endIF.
Thanks and regards!!
Mon
Try this:
IF event->name = 'button' AND event->event_type = 'click'.
button_event ?= event.
CASE button_event->id.
WHEN 'boton'.
IF chkbox1->checked = 'TRUE'.
* bla
ELSE
* blabla
ENDIF.
endIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.