on 06-18-2007 2:19 PM
Hello folks,
I got an issue about radio buttons:
I'm requested to add a date range in a radio button selection option.
<htmlb:radioButtonGroup id = "radiobuttongroup"
columnCount = "1"
disabled = "false"
mode = "LAYOUT_GROUPING"
selection = "<%= selected %>"
tooltip = "My RadioButton Group"
width = "500" >
<htmlb:radioButton id = "rad1"
key = "r1"
disabled = "false"
text = "Receipts (Date Range) "
checked = "true" />
<htmlb:radioButton id = "rad2"
key = "r2"
text = "Usages (Date Range)"
checked = "false" />
How do I handle this?
Thanks in advance.
Rewards to best answer will be given!
Ol Pom.
Here you go..
<b>In Layout:</b>
From:<htmlb:InputField id = "frm_date"
name = "From Date"
type = "date"
value = "<%= YourVariable1 %>"/>
To:<htmlb:InputField id = "to_date"
name = "To Date"
type = "date"
value = "<%= YourVariable2 %>"/>
To retain all the Form field value after the server enent, you need to call the below <b>method in onInput Processing</b>
* Page Attribure or Application class Attribute:
DATA: i_formfields TYPE TIHTTPNVP.
* Determine HTTP request parameters
CALL METHOD request->get_form_fields
CHANGING
fields = i_formfields.
You will get the values of all the form fields in the variable "i_formfields".
Then for each inputfield which you have in the Layout, you need to read the i_formfields with the each element id:
For example: lets name your input field Id as "frm_date".
READ TABLE i_formfields INTO wa_formfields WITH KEY name = 'frm_date'.
YouVariable1 = wa_formfields-value.
Hope this helps you...
Let me know if you need any more detail..
<b>*Reward each useful answer</b>
Raja T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
adding more on Eddys response:
As eddy mentioned, you can handle it Oninputprocess.
Just provide the one date Range (From & To). Disable the date field till user selectes the Radio button.
Once user selects the Radio button enable the Datefields...
Based on Radiobutton selection, consider the date as "Receipt date rnage" or "Ussage Date range".
Hope this is clear....If not explain to us about ur issue..
<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.
Hi,
Also check this tutorials
http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/frameset.htm
and
http://help.sap.com/saphelp_nw70/helpdata/en/e9/bb153aab4a0c0ee10000000a114084/frameset.htm
Eddy
-
PS. Reward useful answers and earn points yourself
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.