on 2010 May 24 6:41 AM
Hi,
My requirement is as follows.
Sequence of events to happen.
Click of a radiobutton-> dropdown is made visible-> onclick of a value in dropdown-> simple text with selected value of dropdown is made to be visible.-> on click of above simple text-> table with some data is made visible.
At the final step i should be able to see all the selected events. it should not get reset.
that is i should be able to see the selected radio button,selected value of dropdown .
I need to achieve this functionality entirely in html.
How can i achieve this.
please help.
Thanks,
Sandeep.
Hi Sandeep,
are you working with html or htmlb? and one more thing are you using MVC concept or simply page with flow logic.
cheers ,
bhavana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
no i dont want any radio button to be selected by default.
there are different dropdown s for different radio button s selected.
can i send you the code i implemented. i actually used htmlb for handling the event.but the problem is am getting radio buttons in a table. and i should be replicating this page with other pages of some application. so i should maintain the look and feel by using some style sheets.
can i send u the code to ur mail id.
thanks,
sandeep.
bhanvana i tried with your example , there i can see radio button and dropdown together at once. but i want only radio buttons to be visible and then on click of radio button i want dropdopwn to be visible with some values.
and on click of some value in dropdown i want some text to be displayed.
on click of that text i want table with some data to be displayed.
its sequential..
Ok
you can add a flag there, on input processing after the radio button code set some flag = 'X' and in the view before you display the dropdown put a if condition as <% if flag = 'X' then display the dropdown else not .
in attributes take flag type char01
2) when you select the dropdown there also you can set another flag say dropdownflag ='X' and same way you can code as
if that flag is 'X' you give the text field and similarly the table view,
hope you got it
Hi sandeep,
i tried debugging it is working fine, i have done some changes as per ur requirement check this out.
DATA: radioButtongroup TYPE REF TO CL_HTMLB_RADIOBUTTONGROUP.
radioButtonGroup ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'radioButtonGroup'
id = 'myRadioButtonGroup1' ).
rdflag = 'X'.----------------------> add this for the visiblility
DATA: data1 TYPE REF TO CL_HTMLB_DROPDOWNLISTBOX.
data1 ?= CL_HTMLB_MANAGER=>GET_DATA( request = runtime->server->request
name = 'dropdownlistbox'
id = 'mydropdownListBox1').
selection1 = radioButtongroup->selection.
drdwnflag = 'X'.--------------------->this too
case selection1.
Edited by: Bhavana Amar on May 24, 2010 9:27 AM
after radio button display
<% if rdflag = 'X'.%> -------------------------------> added new
<htmlb:dropdownListBox id = "mydropdownListBox1" >
<htmlb:listBoxItem key = "key_vbak" value = "vbak" />
<htmlb:listBoxItem key = "key_vbap" value = "vbap" />
</htmlb:dropdownListBox>
<% if it_vbak is not initial.%>
<htmlb:tableView id="tv_vbak" table="<%= it_vbak%>">
</htmlb:tableView>
<%endif.%>
<% if it_vbap is not initial.%>
<htmlb:tableView id="tv_vbap"
table="<%= it_vbap%>">
</htmlb:tableView>
<%endif.%>
<%endif.%>
</htmlb:form>
On select of dropdown take the textview field, so add the code where you have written code for dropdown.
suppose in ur view code is like this
<htmlb:gridLayoutCell rowIndex = "1"
columnIndex = "1">
<htmlb:textView text = "Name"
design = "EMPHASIZED" />
</htmlb:gridLayoutCell>
<htmlb:gridLayoutCell rowIndex = "1"
columnIndex = "2" >
<htmlb:inputField id = "i_name"
type = "string"
size = "10"
value = "<%= i_name %>" />-----> in the dropdown code give the text what ever you want to .
</htmlb:gridLayoutCell>
User | Count |
---|---|
67 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.