Is it possible to assign a value to a radio button or checkbox?
I would like to assign radio buttons or checkboxes a value and then have the results of the buttons selected tabulated at the end of a form, if desired. Is that possible? Thanks
Thanks for your reply and help. I appreciate it. I was able to get an export value added to the check box, but did not see and option for a radio button. But the check box works fine for now. Thanks again.
Similar Messages
-
Assign values dynamically to radio button
I am creating an online test. I will need to display answer choices from the table. I created radio buttons for these answer choices and I could put the labels dynamically by using
Set_Radio_Button_Property('block_name.radio_group_name', 'radio_button1',LABEL,cursor_name.field_name);
Now I have problem to set radio button values dynamically. Should I use when_radio_changed event?
Any help would be appreciated.I really appreciate your help.
My intention is to display the test on the screen.
That means I need to display all questions and answer
choices for each one dynamically. Based on the answer
choice type (radio button or checkbox or drop down
etc) I will need to assign the values to them and
display on the screen. So far I could display
questions and answer choices on the screen and set
the label property for each radio button.
Do you know what is the syntax to assign value to
each radio button? First I will need to store user's
answers in a table. For that I need to know what
answer they selected. I wasn't sure how to do that.
ThanksAs I said, the values cannot be assigned dynamically. Thus you will store the answers in code (perhaps in an array?) and your radio buttons will be 1,2,3,4 etc.
In WHEN-RADIO-CHANGED you can retrieve the value from the array using the radio button value. Then store that value.
e.g. Your screen shows
What is the sound of one hand clapping?
o Blue
o Yes
o 12
These labels will be set dynamically, but the values for the radio buttons will be 1,2,3. If they pick "Yes", your radio button will be 2. You then get the value you really want from answer_array(2), where you put it when you retrieved the question details. Then you insert that into your users_answers table. -
How to set the value of an radio button using set_radio_button_property
I'd like to set the value of an radio button dynamically, depending of the situation.
(=> the value which the object returns to the radio group)
Means: the 'radio button value' of my object 'rb_1' shall be 1, in other circumstances 99 and so on.
Is it possible to set this value at runtime ?the problem is as Gerd wrote:
there are two or more radio buttons in an option group.
Their value depends on the text objext t_field.
If t_field is "car" the value of radio button 1 shall be 75, button 2: 90 and button 3 115.
if t_field is "bus" the value of radio button 1 shall be 250, button 2: 275 and button 3 300 and so on.
My problem is to set the value of the radio buttons at runtime after choosing/typing the value of the text field t_field.
Message was edited by:
PatrickM -
Set a default value for a radio button populated with a List of value
Hi,
I am using jdeveloper 11.1.1.3.0. I need to set a default value for a radio button populated with a List of value(Yes/No). Here's the selectonechoice code.
<af:selectOneRadio value="#{bindings.Code.inputValue}"
label="#{bindings.Code.label}"
required="#{bindings.Code.hints.mandatory}"
shortDesc="#{bindings.Code.hints.tooltip}"
id="sor1" autoSubmit="true"
valuePassThru="true" layout="horizontal">
<f:selectItems value="#{bindings.Code.items}" id="si1"/>
</af:selectOneRadio>
I want to have the selectonechoice set to No by default. In the previous versions, I set the default value in the base attribute VO. But it is not working in the new version.
ThanksHi,
this should work in JDeveloper 11.1.1.3 the same as in 11.1.1.2. If it doesn't then it is better to file a bug than to work around it
Frank -
Hello forum,
I am using Captivate version 6.1.0.319 on a Windows 7 desktop PC and would like to know if it is possible to flip the multiple choice quiz "radio" button from left to right of the answers. I am working on a project that uses the "Require Right to Left composer" within the Global Preferences: General settings. The captions has been switched from left to right but the quiz answer radio buttons did not. Any help would be appreciated.
Thanks, in advance.Hello and welcome to the forum,
I'm not aware of such a possibility. A workaround could be to create your own MCQ slides, using standard objects and widgets like the radiobuttons widget (there is an enhanced version created by Jim Leichliter) and advanced actions. These articles were written for previous versions, but can give you an idea about the work involved:
http://blog.lilybiri.com/widgets-and-custom-questions-part-1
http://blog.lilybiri.com/extended-widgets-for-custom-mcq-and-tf-questi
Lilybiri -
Using an array to assign values to 36 radio buttons
Okay, here's another doozy for y'all.
As some of you know, I'm trying to create a character creation program for D&D. When we roll ability scores, we roll 3 sets of 6 rolls, rolling 4 six-sided dice, rerolling 1s and dropping the lowest number, then add the highest 3 rolled numbers together.
Great! Got that part done!
The next thing I'm having some issues with is transferring those numbers to radio button text property. What I have done is created a form that has the rolled values in listboxes so the user can see what was rolled. They can only choose one "set"
of rolls, so each set of 6 rolls is in a separate listbox. I can get the values from the listbox to an array, but I can't figure out how to get the values from an array to the radio buttons on the next form in the program.
The next form in the program has 6 group boxes, each labeled with a different ability score name (ie: Strength, Dexterity, etc.). Also in each group box are 6 radio buttons. Each radio button in each group box needs to have the same values. For example,
the first listed radio button in each group box needs to have the first value listed in the list box on the previous page. The second listed radio button in each group box needs to have the second value listed in the list box, and so on. I want it
to automatically load, but I'll settle for ANY load at the moment!
The other thing is that I don't want to write 36 lines of code for each group box's radio buttons! I would like to be able to populate the values with a loop. So, the biggest question is how to create an array containing all 36 radio buttons, then assign
my list box values to them according to their position in the multidimensional array.
Here is a tidbit so you'll have an idea what I'm looking at.
list box 1 has values 17, 18, 8, 12, 15, and 13. I want the radio buttons in each group box on the second form to be 17 for the 1st radio button, 18 for the 2nd radio button, 8 for the 3rd radio button, 12 for the 4th radio button, 15 for the 5th radio
button, and 13 for the 6th radio button.
Any ideas?The array of radio buttons:
radGr1_1
radGr1_2
radGr1_3
radGr1_4
radGr1_5
radGr1_6
radGr2_1
radGr2_2
radGr2_3
radGr2_4
radGr2_5
radGr2_6
radGr3_1
radGr3_2
radGr3_3
radGr3_4
radGr3_5
radGr3_6
radGr4_1
radGr4_2
radGr4_3
radGr4_4
radGr4_5
radGr4_6
radGr5_1
radGr5_2
radGr5_3
radGr5_4
radGr5_5
radGr5_6
radGr6_1
radGr6_2
radGr6_3
radGr6_4
radGr6_5
radGr6_6
Those listed with “radGr1” are in the first group box labeled grpST, “radGr2” are in the second group box labeled grpDX, and so on (grpCN, grpIQ, grpWS, grpCH). What I want the code to do is change the labels of the radio buttons so that the text displayed
in everything with a suffix of “_1” is filled with the first number in the selected listbox. For example, if I select the first list box, the other 2 are cleared and only the 6 numbers in the first one are used for the rest of the program. If those numbers
are 12, 13, 14, 15, 17, and 11, then everything with _1 at the end should have “12”, everything with _2 should have “13”, and so on. What I don’t want to have to do is initialize 36 elements, then have 6 different selections for each group box. I tried to
attach an image, but it wouldn’t let me…something about verifying my account or something…
Can I suggest a different layout? It seems like the status selection process is over-complicating the code... please consider this form layout:
Once the user has selected the set of rolls they want you use, you can then just work with that single listbox. The radio buttons let them select a particular stat and the listbox lets them select a value. The "<-" button then assigns
the selected value to the selected stat, and removes it from the listbox. The "->" button clears the selected stat and returns the value to the listbox. The code is something like:
Public Class Form1
Private Sub SetButton_Click(sender As Object, e As EventArgs) Handles SetButton.Click
If ChosenRollsListBox.SelectedIndex > -1 Then
Select Case True
Case StrRadioButton.Checked
If Not StrLabel.Text = "_" Then
ChosenRollsListBox.Items.Add(StrLabel.Text)
End If
StrLabel.Text = ChosenRollsListBox.SelectedItem.ToString
ChosenRollsListBox.Items.RemoveAt(ChosenRollsListBox.SelectedIndex)
Case DexRadioButton.Checked
If Not DexLabel.Text = "_" Then
ChosenRollsListBox.Items.Add(DexLabel.Text)
End If
DexLabel.Text = ChosenRollsListBox.SelectedItem.ToString
ChosenRollsListBox.Items.RemoveAt(ChosenRollsListBox.SelectedIndex)
Case ConRadioButton.Checked
If Not ConLabel.Text = "_" Then
ChosenRollsListBox.Items.Add(ConLabel.Text)
End If
ConLabel.Text = ChosenRollsListBox.SelectedItem.ToString
ChosenRollsListBox.Items.RemoveAt(ChosenRollsListBox.SelectedIndex)
Case IntRadioButton.Checked
If Not IntLabel.Text = "_" Then
ChosenRollsListBox.Items.Add(IntLabel.Text)
End If
IntLabel.Text = ChosenRollsListBox.SelectedItem.ToString
ChosenRollsListBox.Items.RemoveAt(ChosenRollsListBox.SelectedIndex)
Case WisRadioButton.Checked
If Not WisLabel.Text = "_" Then
ChosenRollsListBox.Items.Add(WisLabel.Text)
End If
WisLabel.Text = ChosenRollsListBox.SelectedItem.ToString
ChosenRollsListBox.Items.RemoveAt(ChosenRollsListBox.SelectedIndex)
Case ChaRadioButton.Checked
If Not ChaLabel.Text = "_" Then
ChosenRollsListBox.Items.Add(ChaLabel.Text)
End If
ChaLabel.Text = ChosenRollsListBox.SelectedItem.ToString
ChosenRollsListBox.Items.RemoveAt(ChosenRollsListBox.SelectedIndex)
End Select
End If
End Sub
Private Sub ClearButton_Click(sender As Object, e As EventArgs) Handles ClearButton.Click
Select Case True
Case StrRadioButton.Checked
If Not StrLabel.Text = "_" Then
ChosenRollsListBox.Items.Add(StrLabel.Text)
StrLabel.Text = "_"
End If
Case DexRadioButton.Checked
If Not DexLabel.Text = "_" Then
ChosenRollsListBox.Items.Add(DexLabel.Text)
DexLabel.Text = "_"
End If
Case ConRadioButton.Checked
If Not ConLabel.Text = "_" Then
ChosenRollsListBox.Items.Add(ConLabel.Text)
ConLabel.Text = "_"
End If
Case IntRadioButton.Checked
If Not IntLabel.Text = "_" Then
ChosenRollsListBox.Items.Add(IntLabel.Text)
IntLabel.Text = "_"
End If
Case WisRadioButton.Checked
If Not WisLabel.Text = "_" Then
ChosenRollsListBox.Items.Add(WisLabel.Text)
WisLabel.Text = "_"
End If
Case ChaRadioButton.Checked
If Not ChaLabel.Text = "_" Then
ChosenRollsListBox.Items.Add(ChaLabel.Text)
ChaLabel.Text = "_"
End If
End Select
End Sub
End Class
This may not suit your requirements but I thought it was at least worth considering an alternate design that would be much easier to implement.
Reed Kimble - "When you do things right, people won't be sure you've done anything at all" -
Is it possible to have Dynamically changing list of Radio buttons ?
Hi,
There is a list box which a list of values like 'State', 'City', etc.
When the user chooses a value in the list box, based on the value chosen say 'City', I should display a list of Cities. The user should then be allowed to choose 1 and only city from the list.
Is it possible to have list of radio buttons such that there is 1 radio button for each city and the user can then choose any one of the radio buttons ?
In this case the number of cities and what those cities are is unknown. So I need to have a dynamically changing list of radio buttons. Is this possible ?
Version of forms : Forms 6.0.5.
Thanks in advance
ArunaHi Aruna
You can create a lot of radio buttons and hide|display them in runtime. It is more suitable i think to use the t-list instead of radio. -
Using a dropdown box to change the specified value of a radio button?
I have a form that generates the body text for an email.
First there is a dropdown box in which the choices are either "red" or "blue"
Further down the page, there is a radiobutton list with 2 items "available" and "unavailable".
The specified values for these items (as defined on the binding tab) are "have blue hats" or "do not have blue hats".
This value is concatenated in the email body textfield which is to be copied by the user to an email body:
Concat("Dear", NameField, "," We ", RadioButtonList, " today. ") // Dear Persons Name, We have blue hats today.
Is there any way to change the value of the selected radio button based on the selected dropdown choice?
So if the user selected "red" in the dropdown field, the radio button values could become "have red hats" or "do not have red hats"?
Or perhaps there is a better way from the start?
Thanks!Ok, so now I've done that...
But is there a way to change that value with another field (ie when a user chooses "red" or "blue" in a dropdown box) so that the concatenated message reflects both the users choice of color and the availibility?
I'm guessing I should probably use an intermediary text box and put
InterText.rawValue = Concat ("We have ', dropdown1, " hats today") in the change event of the available radio button and:
InterText.rawValue = Concat ("We do not have ', dropdown1, " hats today") in the change event of the unavailable radio button.
then concatenate that box in the final textbox. -
Assigning a function code to radio button in 4.5B
Ive a requirement wherein I need to trigger the PAI event in a module pool program when I select a particular radiobutton in a group and do some processing subsequently.
For this I need to assign a function code to the radiobutton group.
But the function code field is disabled for input in the properties screen of the layout. Our client system is SAP 4.5B.
I am able to assign function codes to radio button groups in esuides(4.6C) and other systems.
I want to know whether we can assign a function code at all to a radio button group in version 4.5B.
If so, please tell me how to do this.
With regards,
ramu.Hi,
we can't assign function codes to radio buttons.
for assigning some code to radio button.check the radio button status.
in PAI.
if RAD1 = 'X'.
xxxxxxxxxxx.
xxxxxxxxx.
elseif RAD2 = 'X'.
xxxxxxxxx.
xxxxxxxxxxxx.
endif.
regards,
bharat. -
Is it possible to assign a value to args in main method?
I am trying to understand a class and it has a try { } after the main method and it seems to be checking the length of agrs. I keep getting the exception it throws.
I don't understand how you can put something into args or when there would ever be a length to it? It's right at the start of the class! Can anyone explain this to me?
public static void main(String[] args) {
try {
// Check the arguments
if ((args.length != 1) && (args.length != 2))
throw new IllegalArgumentException("Wrong number of arguments");I keep getting the exception it throws.Yes, you will.
I don't understand how you can put something into args.RTFM... seriously http://java.sun.com/docs/books/tutorial/essential/environment/cmdLineArgs.html
or when there would ever be a length to it?Allways.
It's right at the start of the class!It's not is it. Oh golly gosh. Run for the hills everyone... they've put argument processing at the start of the program again. ;-)
Can anyone explain this to me?Yes millions of people can. But you forgot the magic word.
public static void main(String[] args) {
try {
// Check the arguments
if ((args.length != 1) && (args.length != 2)) {
throw new IllegalArgumentException("Wrong number of arguments");
....Edited by: corlettk on Oct 1, 2007 11:57 AM -
Assigning a value to a substitute variable
Hi, I would like to know if it is possible to assign a value to a substitute variable.
This is what I'm doing:
- Prompting user for input
ACCEPT uom CHAR PROMPT 'Enter number of UOM system you would like: ' DEF '0'
(displayed list of options are numbers 0-5)
- Based on input, open corresponding file
(start i:\utc\all\oracle\uom\uom_column_heading_&&uom..sql)
Problem:
- Default selection is 0, meaning use the CURRENT UOM system (a number, 1-5)
- That being said, &&uom must be assigned a 1-5 value in order to open the file that corresponds to the CURRENT UOM system
Let me know if any additional information is needed.
Thanks!I apologize for the format. I tried to make it more legible, but was not able to. FYI: It appears to be easier to read in "Edit" view.
Thanks, I tried the &&uom := your_function(); suggestion, but I am getting an error. It looks like the "value" of &&uom is being read in the assignment statement, not the variable name.
I have copied the piece of the code, for your reference.
ACCEPT uom CHAR PROMPT 'Enter number of UOM system you would like: ' DEF '0'
DECLARE
v_uom_sys_selection NUMBER;
v_curr_uom_sys VARCHAR2 (50);
v_uom_num NUMBER;
BEGIN
v_uom_sys_selection := to_number(&uom);
v_curr_uom_sys := EG.GET_CURRENT_UOM();
v_uom_num := eg.get_user_selected_uomnum(v_curr_uom_sys);
&&uom := to_char(v_uom_num);
dbms_output.put_line('v_uom_num = ' || v_uom_num);
dbms_output.put_line('&&uom = ' || &&uom);
END;
--prompt "&&uom"
start i:\utc\all\oracle\uom\uom_column_heading_&&uom..sql
Below are the results I get when commenting out the &&uom := to_char(v_uom_num); line. NOTE: the "value" of &&uom = 0.
v_uom_num = 1
0 = 0
If I leave that line in, I get the following error:
PLS-00103: Encountered the symbol "0" when expecting one of the following:
begin case declare end exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge pipe
The symbol "<an identifier> was inserted before "0" to continue.
Message was edited by:
user449676 -
Human task jsp customization assign calculated value problem...
We customize human task jsp and add some field.
We want assign a calculation result to a task variable...
autogenerated HTML inbup box name is slns0_cl_task_sl_ns0_cl_payload_sl_ns1_cl_bim_Myprocessname_myparametername..
is it possible to assign a value using this name ? is it correct way?
is there any other way yo do it..
Thanks...Thansk..
I tried to use javascript. but I need ro add a combobox to the payload body jsp page.
Because buid-in Oracle SOA procedures try to forward all parameters "object doesn't support this property error occurs..."
So question is ...
How can I add a combobox on payload body jsp pages ?
Thaks.. -
How to assign a value to ODI Variable using ODI Procedure
Hi ,
Is it possible to assign a value to a ODI Variable using ODI Procedure ?
If it is possible how we can do that.
BEGIN
IF #Counter=1
Then
#Next_Increment:=#Counter+1;
End if;
END;
In my example I have 2 ODI Variables #counter and #Next_increment.
I am trying to assign VALUE TO A ODI VARIABLE #next_increment from another ODI Variable #counter.
thanks
prasannaPrasanna,
I have a similar requirement where I need to assign values to ODI variables within a procedure. How do we make use of an ODI package to accomplish this ?
Actually, I have a sequence of ODI steps, and there is a call to a procedure 'LOG ERROR' from every step which gets called in case error occurs in any step. I just need to identify from which step the error came.
Please help. -
How to get the value assigned in dropdowmlistbox as well as radio button
Hi Everybody,
Please help me to find the solution for the following:
1. How to get the value assigned in dropdowmlistbox?
2. How to get the value assigned in radio button?
I am waiting for the answer and reply...
Thanks & Regards,
ShanthaKumar.KA.The radio button has a name attribute. That name attribute should be the same as the bean property. Then you just need a
<jsp:setProperty name="mybean" property="*"/>
and the bean's set method will be called for the value of that radio button.
so...
<input type="radio" name="doit"/>
class MyBean
public void setDoit( boolean yes )
//do whatever here
} -
PAGE RADIO BUTTONS and APPLICATION ITEM VALUE
I have several pages that use same radio button group that permits filtering the report query (of course on each page, it is a page level radio button item).
I created an application item value to hold the last used value of a radio button item.
On login, I would like the application item value set to a default value.
For a given page using the recurring radio button group item,
I would like the radio button item value set to the application item value on entry into a page.
I would like the report to use the application item value on entry to a page.
I would like the application item value be updated anytime the page level radio button item value is changed, so that when you move to another page,
the next radio button group and report can use the last selected radio group button value.
I am trying to use a variety of solutions in COMPUTATION and CONDITIONAL COMPUTATION... to include use of set_session_state procedure, and I am not getting desired result, partial success, but not complete.
Can you have a computation item that is only for initialization of the report and radio button group on page entry?
And a separate computation item that senses user selection of another radio button, updating the report, and updating the application level item?
Help requested. Thank you.
Would be nice to have application level objects, like radio button groups.Created Page 0
Created an HTML region in COLUMN 2 and SEQUENCE 10.
Selected under region CONDITION:
Current Page is contained within Expression 1 as comma delimited list of pages
in the EXPRESSION 1 provided the requested comma delimited list of pages that I wished the HTML region to appear.
Created the radio button group item P0_RADIO and assigned to Page0 HTML region.
Selected under item CONDITION:
Current Page is contained within Expression 1 as comma delimited list of pages
in the EXPRESSION 1 provided the requested comma delimited list of pages that I wished theradio button group to appear.
In SHARED COMPONENTS I created an APPLICATION COMPUTATION
In the computation I created a PL/SQL function to initialize the radio group
BEGIN
IF :P0_RADIO IS NULL THEN
RETURN 'A_ALL';
ELSE
RETURN :P0_RADIO;
END IF;
END;
'A_ALL' being the default value for :P0_RADIO
Radio group appears on the desired pages, is initialized to the desired default value, and works properly on each page.
Maybe you are looking for
-
A deposit screen opens when I try to update a Purchase Order
Good Afternoon everyone, In OEC computers database I was testing a scenerio which required me to add an item to an existing PO. When I updated the PO a window opened requiring a "Deposit". I checked the payment terms, but I didn't see anything in the
-
How to pass array into xslt from java
i have a xslt in which i am passing some parameter from java there is one parameter which is a array in java which i need to pass becouse array length is not defined so that xslt will work dynakically according to the parameter. right now i am passin
-
Confirmation issues, Error in Process
We are getting the following error in SRM system when doing confirmations, any ideas guys Error whilst creating an entry sheet in the backend system 0000026433 117 General error during acceptance posting This then dispays as an error in process??? Re
-
CS5 Web Prem license agreement keeps popping up
Need some help, I just purchased a copy of CS5 Web Prem and installed it on my Dell running Windows 7. Install went smooth no problems at all. I entered my serial number and it loaded all the programs and finished. Now when ever I try and run a progr
-
Hi Gurus!! I have a question about the transaction LBWQ I ran the process for inventory managemnt (2LIS_03_BX and 2LIS_03_BF) and the process was perfect. Then I want to run the delta process, so I view the transaction LBWQ and I have more than 2 mil