Sub radio buttons

I have an interactive form where the user applies for a leave of absence and selects one of 6 reasons.
Maternity
Medical
Worker's Comp
Family
Military
Personal
If the user selects Family, there are two sub-reasons:
Serious Illness
Child-related
I've made these two a radio button group and the top-level reasons a separate radio button group. Is there any way to nest one group inside another? I found this .xdp code at http://eslifeline.wordpress.com/2008/05/24/creating-nested-radio-buttons/
form1.#subform[0].Continents.Africa::change - (JavaScript, client)
var asia = xfa.resolveNode("form1.#subform[0].Continents.Asia");
var africa = xfa.resolveNode("form1.#subform[0].Continents.Africa");
var europe = xfa.resolveNode("form1.#subform[0].Continents.Europe");
var kenya = xfa.resolveNode("form1.#subform[0].Continents.Kenya");
var egypt = xfa.resolveNode("form1.#subform[0].Continents.Egypt");
var india = xfa.resolveNode("form1.#subform[0].Continents.India");
var china = xfa.resolveNode("form1.#subform[0].Continents.China");
var other = xfa.resolveNode("form1.#subform[0].Continents.Other");
var explain = xfa.resolveNode("form1.#subform[0].Explain");
asia.y = 89+"points";
europe.y = 119+"points";
other.y = 149+"points";
//asia.x = "1.25in";
//africa.x = "1.25in";
//europe.x = xPosition.value;
kenya.x = childXPosition.value;
egypt.x = childXPosition.value;
kenya.presence = "visible";
egypt.presence = "visible";
kenya.y = 45+"points"
egypt.y = 60+"points";
india.presence = "hidden";
china.presence = "hidden";
explain.presence = "hidden";
I modifed it for my form, like this
**************************hide Child and Illness until Family is clicked
**********doesn't work
var Family= xfa.resolveNode("LOA.Form1.Reason.Family");
var Child = xfa.resolveNode("LOA.Form1.Reason.Child");
var Illness = xfa.resolveNode("LOA.Form1.Reason.Illness");
Child.presence = "hidden";
Illness.presence = "hidden";
Family.y = 0.25+"inches";
Child.y = 0.625+"inches";
Illness.y = 0.625+"inches";
Child.x = childXPosition.value;
Illness.x = childXPosition.value;
Child.y = 5.25+"inches"
Illness.y = 5.0+"inches";
LOA.Form1.Reason.Family::ready:form - (JavaScript, client)
Utilities.resetPositions();
I would greatly appreciate any help or suggestions in making this code function.

That helps. I changed the Values on the Binding tab to words, instead of numbers, and used your script like this:
LOA.Form1.ReasonDropDownList::change - (JavaScript, client)
if (xfa.event.newText == "Family"){
    FamilySubform.presence = "visible"
} else {
    FamilySubform.presence = "hidden"
Your script is this:
form1.#subform[0].DropDownList1::change - (JavaScript, client)
if (xfa.event.newText == "Family"){
     FamilySubform.presence = "visible"
} else {
     FamilySubform.presence = "hidden"
The only difference I can see is the first line.
Is there a way in this line if (xfa.event.newText == "Family"){
to say "LIKE" or "CONTAINS"? So that if the Text is actually longer, like "Family Leave: (complete section #4)," the script will work?

Similar Messages

  • Sub screen: Handling the Radio button selection?

    Hi,
    Scenario:
    I have a Main screen and a sub screen. From the main screen I am calling the sub screen. On the Sub screen, I have 2 radio button. On the selection of the Radio buttons, I am activating/deactivating few of the screen elements on the sub screen.
    I have grouped the radio button and also tried assigning Function code to it, but in vain..:(
    Issue
    I am not able to handle the event triggered by the selection of the radio buttons?
    Kindly suggest.
    Regards
    s@k

    Hi,
    Are you still have any Issue, Let us know
    In the Main Screen Element List there is a field OK_CODE pass an entry into it
    in the TOP Include
    DATA : OK_CODE type SY-UCOMM. " This captures the OK_CODE from the Screen.
    Since SUb Screen cant have their Own OK_CODE this can be handled in the Main Screen only
    Try in PAI of Sub Screen using OK_CODE if it is not working then Implement the same in PAI of Main Screen
    The system will generate UCOMM for Radio Button since they are in One Group only. Each Radio button cannt have a separate UCOMM assigned. In Screen Painter (if It is Module Pool) assign a FCode for the Radio Button.
    Even if try changing the FCODe Value they still will have the New Changed Value but cannot be changed.
    This automatically triggers PAI . only way to capture it is check
    case ok_code. " Optionally you can omit this
    when  ok_code = 'RAD'.  " This is common for all the Radio BUttons but cant be different
    if r1 = 'X'.
    elseif r2 'X' " Etc.
    endif.
    endcase.
    Ram
    Edited by: Ramchander Krishnamraju on Feb 26, 2010 10:37 AM

  • How can I select a radio button in a table regarding the data in the cells?

    Hi everyone
    This is the issue: I need to select the RadioButton which is in a table with data related to transfers in the cells next to it, so I need to select the correct radio regarding the data next to it.
    This is the whole process: First I go to the Add Recurring Transfer section and select the parameters of the transfer (Accounts, date, amount, months etc), then with VB code I capture those parameters from the page and store them into Global variables for further usage on my E-tester script.
    Right after that I need to select the radiobutton regarding the data of the transfer that I already created in order to delete it or modify it (Please see Attachment selectradio1.jpg)
    So How can I move along the table and compare each cell with the variables that I created with the transfer information, so when I finish comparing a row cell by cell and if all the comparison match well in that row, I could select the radiobutton of the row.
    Note: Second Attachment selectradio2.jpg shows the source code of the table...If you need more info please let me know
    Could you please help me with this problem?? I'm Kind of frustrated with this issue jejeje

    Here is an example. I uploaded mock html so that you can actually try this code. I think this does exactly what you are asking.
    Private Sub RSWVBAPage_afterPlay()
    Dim tbl As HTMLTable
    Dim tblRow As HTMLTableRow
    Dim tblCell As HTMLTableCell
    Dim strValue As String
    Dim rButton As HTMLInputElement
    ' ******** This would be your global variable. I put this so that values are seperated by a semicolin you can use what ever format works for you.
    strValue = "03/22/2008;03/22/2008;*************1977;*************1977;$25.25;Jan, Jun, Jul, Dec"
    ' Strip out the ; for inner text comparison
    strValue = Replace(strValue, ";", "")
    ' This will get the table but can be modifoed to be more specific
    Set tbl = RSWApp.om.FindElement(, "TABLE")
    ' This loops through all the rows in the table until a match to the strValue is found
    ' then clicks the radio button. Findelements allows you to specify a root element
    ' once the correct root row is found, FindElemets can get the correct radio button
    For Each tblRow In tbl.rows
      If tblRow.innerText = strValue Then
        Set rButton = RSWApp.om.FindElement("account", "INPUT", "NAME", , , tblRow)
         rButton.click
       End If
    Next
    End Sub
    I also uploaded the script I created. You should be able to run it and see how it works.
    This should get you going.

  • Enable/Disable a radio button

    Hi All,
    We have a requirement as below:
    Freezing the radio buttons:Ex: Q.No.6 has 2 radio buttons as "Yes" and "No" and has a sub question say Q.NO# 6A.
    Q.NO# 6A also has 2 radio button as "Yes" and "No" and these should be freezed when ans---"NO" is selected for Q.No.6 and should get unfreezed when ans--> "YES" is selected for Q.No.6.
    For this I am created a VO with a transient variable of type Boolean.
    and using SPEL approach to disable radio buttons of Q.NO# 6A.
    Setting FirePartialAction on radio buttons of Q.NO# 6.
    I am facing some problem in coding:
    My CO is as below:
    In PR:
    DisableradBtnVOImpl vo_radio =(DisableradBtnVOImpl)am.findViewObject("DisableradBtnVO1");
    //vo_radio.executeQuery(); getting NUll pointer exception here as there is no query
    // Row requestRow_radio = vo.createRow();
    // vo.insertRow(requestRow_radio);
    requestRow_radio.setNewRowState(Row.STATUS_INITIALIZED);
    requestRow_radio.setAttribute("disableRadioButton5",Boolean.TRUE);
    OAMessageRadioButtonBean radio6= (OAMessageRadioButtonBean)pageContext.getPageLayoutBean ().findChildRecursive("rad61");
    oracle.cabo.ui.action.FirePartialAction FireAction_radio = new oracle.cabo.ui.action.FirePartialAction ();
    FireAction_radio.setEvent("enable6");
    FireAction_radio.setUnvalidated(true);
    radio6.setPrimaryClientAction(FireAction_radio);
    how will I use setAttribute().
    please guide me.
    Akshata

    Hi Prince,
    My PR code is below:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    System.out.println("****Wel come Page 2******");
    boolean isLoggingEnabled = pageContext.isLoggingEnabled(OAFwkConstants.STATEMENT);
    String custName = pageContext.getParameter("customerName");
    String custNumber = pageContext.getParameter("customerNumber");
    String custId = pageContext.getParameter("customerId");
    Number numValue=null;
    try
    numValue = new Number(custId);
    catch(SQLException e)
    e.printStackTrace();
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    checkListVOImpl vo =(checkListVOImpl)am.findViewObject("checkListVO1");
    if(!vo.isPreparedForExecution())
    vo.executeQuery();
    // DisableradBtnVOImpl vo_radio =(DisableradBtnVOImpl)am.findViewObject("DisableradBtnVO1");
    OAMessageRadioButtonBean radio6= (OAMessageRadioButtonBean)pageContext.getPageLayoutBean().findChildRecursive("rad61");
    oracle.cabo.ui.action.FirePartialAction FireAction_radio = new oracle.cabo.ui.action.FirePartialAction ();
    FireAction_radio.setEvent("enable6");
    FireAction_radio.setUnvalidated(true);
    radio6.setPrimaryClientAction(FireAction_radio);
    String pageSave=pageContext.getParameter("OnClickSave");
    if((pageSave== null)|| "".equals(pageSave))
    Row requestRow = vo.createRow();
    vo.insertRow(requestRow);
    requestRow.setNewRowState(Row.STATUS_INITIALIZED);
    requestRow.setAttribute("CustomerName", custName);
    requestRow.setAttribute("CustomerNumber", custNumber);
    requestRow.setAttribute("CustomerId", numValue);
    requestRow.setAttribute("EnableRadio6",Boolean.TRUE);
    System.out.println("**************r1**********************");
    OAMessageRadioButtonBean yesRadio1 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad11");
    yesRadio1.setName("Resp1");
    yesRadio1.setValue("Y");
    OAMessageRadioButtonBean noRadio1 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad12");
    noRadio1.setName("Resp1");
    noRadio1.setValue("N");
    noRadio1.setSelected(true);
    System.out.println("**************r2**********************");
    OAMessageRadioButtonBean yesRadio2 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad21");
    yesRadio2.setName("Resp2");
    yesRadio2.setValue("Y");
    OAMessageRadioButtonBean noRadio2 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad22");
    noRadio2.setName("Resp2");
    noRadio2.setValue("N");
    noRadio2.setSelected(true);
    System.out.println("**************r3**********************");
    OAMessageRadioButtonBean yesRadio3 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad31");
    yesRadio3.setName("Resp3");
    yesRadio3.setValue("Y");
    OAMessageRadioButtonBean noRadio3 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad32");
    noRadio3.setName("Resp3");
    noRadio3.setValue("N");
    noRadio3.setSelected(true);
    System.out.println("**************r4**********************");
    OAMessageRadioButtonBean yesRadio4 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad41");
    yesRadio4.setName("Resp4");
    yesRadio4.setValue("Y");
    OAMessageRadioButtonBean noRadio4 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad42");
    noRadio4.setName("Resp4");
    noRadio4.setValue("N");
    noRadio4.setSelected(true);
    System.out.println("**************r5**********************");
    OAMessageRadioButtonBean yesRadio5 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad51");
    yesRadio5.setName("Resp5");
    yesRadio5.setValue("Y");
    OAMessageRadioButtonBean noRadio5 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad52");
    noRadio5.setName("Resp5");
    noRadio5.setValue("N");
    noRadio5.setSelected(true);
    OAMessageRadioButtonBean yesRadio5A = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5A1");
    yesRadio5A.setName("Resp5A");
    yesRadio5A.setValue("Y");
    OAMessageRadioButtonBean noRadio5A = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5A2");
    noRadio5A.setName("Resp5A");
    noRadio5A.setValue("N");
    noRadio5A.setSelected(true);
    OAMessageRadioButtonBean yesRadio5B = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5B1");
    yesRadio5B.setName("Resp5B");
    yesRadio5B.setValue("Y");
    OAMessageRadioButtonBean noRadio5B = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5B2");
    noRadio5B.setName("Resp5B");
    noRadio5B.setValue("N");
    noRadio5B.setSelected(true);
    OAMessageRadioButtonBean yesRadio5C = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5C1");
    yesRadio5C.setName("Resp5C");
    yesRadio5C.setValue("Y");
    OAMessageRadioButtonBean noRadio5C = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5C2");
    noRadio5C.setName("Resp5C");
    noRadio5C.setValue("N");
    noRadio5C.setSelected(true);
    OAMessageRadioButtonBean yesRadio5D = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5D1");
    yesRadio5D.setName("Resp5D");
    yesRadio5D.setValue("Y");
    OAMessageRadioButtonBean noRadio5D = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad5D2");
    noRadio5D.setName("Resp5D");
    noRadio5D.setValue("N");
    noRadio5D.setSelected(true);
    // requestRow_radio.setAttribute("disableRadioButton5",Boolean.TRUE);
    System.out.println("**************r6**********************");
    OAMessageRadioButtonBean yesRadio6 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad61");
    yesRadio6.setName("Resp6");
    yesRadio6.setValue("Y");
    OAMessageRadioButtonBean noRadio6 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad62");
    noRadio6.setName("Resp6");
    noRadio6.setValue("N");
    noRadio6.setSelected(true);
    OAMessageRadioButtonBean yesRadio6A = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad6A1");
    yesRadio6A.setName("Resp6A");
    yesRadio6A.setValue("Y");
    OAMessageRadioButtonBean noRadio6A = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad6A2");
    noRadio6A.setName("Resp6A");
    noRadio6A.setValue("N");
    noRadio6A.setSelected(true);
    System.out.println("**************r7**********************");
    OAMessageRadioButtonBean yesRadio7 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad71");
    yesRadio7.setName("Resp7");
    yesRadio7.setValue("Y");
    OAMessageRadioButtonBean noRadio7 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad72");
    noRadio7.setName("Resp7");
    noRadio7.setValue("N");
    noRadio7.setSelected(true);
    System.out.println("**************r8**********************");
    OAMessageRadioButtonBean yesRadio8 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad81");
    yesRadio8.setName("Resp8");
    yesRadio8.setValue("Y");
    OAMessageRadioButtonBean noRadio8 = (OAMessageRadioButtonBean)webBean.findChildRecursive("rad82");
    noRadio8.setName("Resp8");
    noRadio8.setValue("N");
    noRadio8.setSelected(true);
    if (isLoggingEnabled)
    pageContext.writeDiagnostics(numValue, "customerId", OAFwkConstants.STATEMENT);
    if (isLoggingEnabled)
    pageContext.writeDiagnostics(custName, "customerName", OAFwkConstants.STATEMENT);
    if (isLoggingEnabled)
    pageContext.writeDiagnostics(custNumber, "customerNumber", OAFwkConstants.STATEMENT);
    }

  • Help me with Radio Buttons and Subform fields, please!

    I've built a dynamic order form with three product options listed as radio buttons. The three options are "Contoured" "Standard" and "Custom". "Contoured" requires five subfields to be filled in if it is selected. "Standard" requires two subfields to be filled in if it is selected. "Custom" has no associated subfields.
    My problem is that I can't figure out a script that isolates the subfields to the appropriate radio buttons. Can anyone suggest a script to use?
    Thanks in advance.
    Brian

    Brian, to understand what I did, I will first explain my hierarchy.
    RBList has 3 radio buttons: A, B, C. Specify the Item Value for each Radio button, e.g. A=1, B=2, C=3. For radio button A, create 2 dropdown lists & 3 numeric fields and wrap in a subform called SubA - ensure you leave it as Visible presence. For radio button B, create 1 dropdown & 1 numeric, wrap in a subform called SubB, and make sure this is visible. I put my code on the subforms (SubA and SubB) rather than the radio buttons. Also, in order for the layout to be saved in Reader, if you want to save and reopen, you must use the script on the Calculate event. The Click event will not save the layout for you (learnt this from past experience in Designer 7.2 Designer 8 saves layout different again). The event Calculates the function as soon as you open up the file.
    Using JavaScript on the Calculate event, on the SubA subform would look like this:
    if (RBList.A.rawValue !=1) {
    this.presence = "hidden";
    else {
    this.presence = "visible";
    Using JavaScript on the Calculate event, on the SubB subform would look like this:
    if (RBList.B.rawValue !=2) {
    this.presence = "hidden";
    else {
    this.presence = "visible";
    The radio button C would not require script if there is not subform needed.
    Let me know if this works for you.

  • Hide/unhide radio buttons works in lab view, not in executable

    Hello,
    I simplified a program I am using. When I run in lab view the radio buttons are visible or not (as programmed). But when I create an executable, this function is not working any more?
    Do I need to make changes in the build settings?
    best regards,
    Rens van Geffen
    I attached the maintest.vi (lab view program) and the executable as well in a zipped folder.
    Attachments:
    My Application2.zip ‏742 KB

    I think it is a bug and reported it in the monthly bug thread.
    RvG wrote:
    Yes i know it is a dirty vi. But I only made it because I had a problem in a complicated vi, with lots of sub vi's etc. in that vi I have all wait functions etc.
    I did not care about any wait function. I was just objecting about the overuse of value property nodes and that exceedingly complicated inner while loop construct that really does not do that much.
    For example, your upper case structure contains writing to two value properties that exist in all cases, while the actual terminal just sits there outside the loop. The cases only need to contain what's different. Shared code elements belong outside the case! Instead of writing to value properties (which is synchronous and resource intensive), you can just write to the indicator terminal instead. Right?
    In parallel to writing to the "group", you also read from another value property instance of the same. Since this happens in parallel to the case structure, you will read a stale value, and not what has been generated by the case structure during the same interation.
    My code modification shows some of the simplications that can be done. Also note that data dependencies enforce the proper execution order.
    Writing to the visible properties only needs to be done when the situation changes and not with every iteration of the loop. Once written, these proerties stay until changed to something else.
    In summarry, these are just some recommendations. They will not fix the LabVIEW bug you exposed.
    LabVIEW Champion . Do more with less code and in less time .

  • Funky radio buttons... help?

    Hey - I'm having some trouble with my radio button
    components. The problem is that the text lables for the buttons are
    displaying wrong (clipped at bottom and/or right side) until you
    mouse over them. After that, they correct themselves and they are
    fine... any idea why they're doing this or how I can fix it...?
    To see the bit that's messing up, you can go to....
    www.masseymoderndesign.com and click the "Team" tab, and then
    the "contact" sub tab.
    thanks!!

    GrayMan helped me out on this one already
    thanks

  • Problem with radio Button(urgent)

    hai friends
    (sub:- deselecting radio buttons(2 radio buttons) at a time. ie. no one is selected at any point of time. whenever he/she cliks it is going to select.)
    In my form, i have 2 radio buttons. if i click one radio button it opens one canvas and enter some data and when i press OK button there, it will come back to original canvas.at this movement selected radio button should be deselected.
    If i click 2nd radio button it also opens another canvas and enter some data and when i press OK button there, it will come back to its original canvas.at this movement selected radio button should be deselected.
    when come back to its original canvas, is there any chance of deselecting both radio buttons at a time. ie. at any point of time customer may select any one. no one is default . i need that methodology. it is possible? if so, give me code for it.
    regards
    madhava

    Hi,
    you can use a third radio button and set it to be invisible. Whenever you want your two visible buttons to be deselected simply set the value to your third button value.
    Achim

  • 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"

  • Passing radio button values to the backing bean

    Hi all,
    I need help with passing group of radio button values to a backing bean. I have page which has a dataTable to display a list of alerts. For each alert there are two radio buttons (YES & No) to indicate whether the email option for each alert is set or not. Now when i change the radio buttons and click on a submit button i should be able to pass these radio button values into action method in which i need to update the alerts. This is my code
    <h:form>
    <t:dataTable id="sub"
                       var = "alert"
                       value =#{subscriberBean.alertsList}">
    <t:column>
    <h:outputText value="#{alert.name}" />
    </t:column>
    <t:column>
    <h:selectOneRadio id="subscriptions" value="#{alert.sendEmail}">
      <f:selectItem id="item1" itemLabel="Yes" itemValue="0" />
      <f:selectItem id="item2" itemLabel="No" itemValue="1" />
    </h:selectOneRadio>
    </t:column>
    <t:dataTable>
    <h:commandButton id="button1" value="Save changes" actionListener="#{subscriberBean.updateAlert}" />
    </h:form>
    {code}
    I tried to to do something like below and get the updated list in the action event in the backing bean but it didn't work.
    {code}
    <h:commandButton id="button1" value="Save changes" actionListener="#{subscriberBean.updateAlert}" >
    <f:attribute name="alerts" value="#{subscriberBean.alertsList}"/>
    </h:commandButton>
    // Backing Bean
    public void updateAlert(ActionEvent e){
    List<Alert updateList = (List<Alert>)event.getComponent().
                    getAttributes().get("alerts");
    {code}
    Can someone advise how to get these update radio button values in my actionListener method.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    The value the user selected will be written to the sendEmail property of the managed bean named alert. We know this because you set the value attribute to #{alert.sendEmail}. So simply access the managed bean in your action method.

  • Why do 200 radio buttons in a form cause 8 second rendering delay

    We have an online questionnaire containing 36 questions, each with 6 radio buttons (216 in total) in a single form. Although the page appears to render quickly, there is then a delay in Firefox of up to 8 seconds before it will register a radio button click. This problem does not occur in Chrome or Safari, and there is slight (sub-second) delay in IE. The delay is reduced pro-rata by reducing the number of radio buttons. The delay can also be reduced to about 4 or 5 seconds by removing all elements from the page apart from the radio buttons and form.

    Thanks again for your reply.
    The delay doesn't occur in safe mode. After disabling all add-ons and extensions individually, it appears the culprit is Norton Toolbar. I haven't tested this on the other computers where the problem occurred, but they may well have had Norton Toolbar installed as well.
    Norton Toolbar is installed on IE but the problem there is sub-second, not 8 seconds. Is this a Firefox-Norton compatibility issue? Is there anything we can do about it, in our page design, without radically altering its usability?

  • SetParameter for Radio Button

    Using e-Tester and this VBA code I am trying to set the parameters of two radio buttons but I am getting an error "Object variable or With block variable not set" Can anyone tell my why this happening and how to correct this?
    Private Sub RSWVBAPage_beforePlay()
    Dim setParamName As String
    Dim newParamValues As Collection
    Dim resultStr As Boolean
    setParamName = "deliveryPref"
    newParamValues.Add "unchecked"
    newParamValues.Add "checked"
    resultStr = RSWApp.SetParameterValues(setParamName, newParamValues)
    End Sub

    From the example in eTester help, the newParamValues is declared as a New Collection. So try changing the declaration for that variable.
    Also make sure you have the Parameter name "deliveryPref" is the correct one and that the values it takes are checked and unchecked.

  • Addressing Individual Radio Buttons Using Conditional Statements

    Hello Everyone
    I don't know a lot about writing code, just basic things.  The last thing I touched was C++ while in college and that was over 10 years ago.  However,
    I have four radio buttons. let's say A, B, C, and D.  Using Acrobat 8 and FORMCALC, is there a way to address each individual radio button in an IF/THEN statement?  For example, if A is selected, then display the number 1, if B is selected, display the number 2 and so on.  Apparently, these buttons are sub-components of a main object, I get errors when I try to refer to each sub-component.  Any help would most certainly be welcomed.
    Thanks
    Daryl

    Unfortunatley, my inexperience with this language and working with objects will become apparent b/c I am having problems with the syntax as you'll see below.
    >The RadioButtonList name is "RObject1"
    >The three individual radio buttons are named R1, R2 and R3 with values of 30, 60, 90 respectively
    >A numeric field named NField1 is supposed to display which radio button is selected
    >Using FormCalc, the following script was used:
              if (RObject1=30) then NField1=30 else Field1=0 endif
    >I used "calculate" as the event and committed the changes.
    The below error is generated:
    Script failed (language is formcalc; context is xfa[0].form[o].form1[0]#subform[0].NField1[0])
    script=if (Object1=30) then NField1=30 else Field1=0 endif
    Error: syntax error near token'=' on line 1, column 12
    Obviously, my supposing that RObject1 would take on the value of whatever button was selected does not seem to be the case or I am incorrectly addressing the object.
    Thanks

  • Problem in activating Radio buttons and need to hit save button

    Hi Gurus,
    I added custom fields in CJ06,CJ07,CJ08 T-CODES. As per user requirement ,  I created radio button fields in sub screen  and user selects radio buttons FROM A1 TO A3  fields and also user wants to click "SAVE button"  in that subscreen, that fields data should store in database table.  Is there  any Note to implement for this and suggest me how to proceed further. 
    Thanks,
    Chiru.
    Edited by: chiranjeevi Rao on Apr 1, 2010 2:24 PM

    Hi Chandrasekhar,
    Can you explain, in detail.
    Inside the EXIT, EXIT_SAPLIMR0_001, I am writing logic to insert or modify the Z-Table for custom screen.
    Here, I need to make that SAP Updates ie Triggers the "SAVE" Button, so that the logic gets executed for updating the Z-Table.
    Motto: is to have single LUW or SAVE Button.
    Thanks.
    Vijayanand.
    Message was edited by:
            Vijayanand Annamalai

  • Forms- Radio buttons

    Hi,
    I've got a form that has radio buttons included which work fine. But what I want is, when a particular radio button is clicked then a new sub-menu will appear, and there will be a different sub-menu for each radio button. Apologies if I haven't explained it that well but I will post any clarifications should you need them.
    Thanks.

    You want to do a search for javascript and dependant radio buttons.  You should be able to get a script pretty quick.
    Gary

Maybe you are looking for

  • Error 7 occurred at ABAPI Dist Report Read Link Info Error.vi - [.....] - RTBUIP_Build_Invoke.vi.ProxyCaller

    Hi all, I am on a field campaign with my Labview-controlled instrument. I wanted to make a small change to the code and build it again for uploading to a cFP-2020 Fieldpoint but the application builder stopped with the following error message: Error

  • HT4864 Are my SMTP settings correct?

    On Windows Live Mail, I have successfully sent messages using my MobileMe (*******@me.com) account before, but for some reason, it is not working now.  I can receive incoming messages, but not send a message.  I get server response 334.  The port is

  • Menus.xml issue when trying to launch Dreamweaver CS4

    I have used Dreamweaver CS4 for many years on my Mac. I had a drive failure and have had to reload all of my applications from scratch as there seemed to be an issue with the Time Machine back up. Everything is working well apart from Dreamweaver CS4

  • Import queue(stms)

    Hi Friends, In production system, went to STMS for importing request. First used option queue->adjust. Next used import request, then request symbol turns to truck(import is running), after some time i refreshed screen, it turns to yellow.Yellow mean

  • Can't deploy - error ora-12514

    Hi, I've got problem. During deploying some errors occured: ORA-12514, TNS:listener does not currently know of service requested in connect descriptor </NAMESPACE> RUNTIME_SERVICES_DEBUG [WhValidationGenerationTransaction] DeploymentSpecificati onImp