Using AppBuilder, how to get addressability to  Radio buttons???

Trying top test is any of the Radio Buttons have been selected? When I press the "Test Connection" button and go into the Event method, I am tryiing to get addressability to the  see if any of the Radio Buttons where pressed?
I have added this Code below (getting an addressability issue) after reading UI5 doc, which states that I could check the Index of the selected/checked RadioButton for a group???
if (sapmRadioButton.sapMRbDefaultGroup.selectedIndex === 0)
   Radiobuttoncontrol =0;
I have pasted a screen print of the Screen and the AppBuilder button properties  plus the output of one of the button element  from Chrome.
Any help would be great
Thank you
Totally New to Appbuilder and UI5,
<div id="appView--homePageView--ApacheButton1" data-sap-ui="appView--homePageView--ApacheButton1" role="radio" aria-checked="true" aria-disabled="false" class="sapMPointer sapMRb sapMRbSel" tabindex="0" style="overflow: hidden; position: absolute; left: 0px; top: 120px; z-index: 10;"><div class="sapMRbB"><div class="sapMRbBOut"><div class="sapMRbBInn"><input type="radio" tabindex="-1" id="appView--homePageView--ApacheButton1-RB" name="sapMRbDefaultGroup" checked="checked"></div></div></div><label id="appView--homePageView--ApacheButton1-label" data-sap-ui="appView--homePageView--ApacheButton1-label" dir="Inherit" style="text-align:left;" class="sapMLabel sapMRbBLabel">Apache Relay Server</label></div>
<label id="appView--homePageView--ApacheButton1-label" data-sap-ui="appView--homePageView--ApacheButton1-label" dir="Inherit" style="text-align:left;" class="sapMLabel sapMRbBLabel">Apache Relay Server</label>

HI Bob
You can do this.
var buttonGrp = sap.ui.getCore().byId('<name of the button group>');
var idx = buttonGrp.getSelectedIndex();
Hope this helps
-D

Similar Messages

  • HELP! I need help to understand how to get value on radio buttons!

    hello,
    I realy need the help from anyone that knows how to get value from radio buttons in a JSP.
    I have this :
    <%
    java.util.Vector vLinha = (java.util.Vector) datos.get("ConsNefect");
              java.util.Hashtable ordens;
              java.util.Enumeration eLinha = vLinha.elements();
              String t = "radio";
              String x = "escolha";
              String l = "";
    int i = 0;
              //int esc = 0;
    String fila = "";                         
              boolean bol = true;
    while (eLinha.hasMoreElements())
    ordens = (com.ibm.dse.base.Hashtable) eLinha.nextElement();     
              if (++i%2 == 0)
    fila = "formgriscla";
    else
    fila = "formgrisosc";
    out.println("<tr>");
    out.println("<td class=\"" + fila + "\">");
    out.print("<p class=\"dato2\">");          
              out.print("<a href=" + urls.get("action"));
         out.print("&sequencia=" + (String) ordens.get("sequencia"));                    
         out.print(">");
              out.print((String) ordens.get("descricao"));
         out.print("</a></p></td>");
              out.println("<td class=\"" + fila + "\">");
    out.print("<p class=\"datop\">");          
              out.print((String) ordens.get("datap"));
    out.print("</p>");
    out.println("<td class=\"" + fila + "\">");
    out.print("<p class=\"datop\">");
    out.print((String) ordens.get("erro"));
              out.print("</p>");
              out.println("<td class=\"" + fila + "\">");
              out.print("<p class=\"datop\">");     
              l = (String) ordens.get("sequencia");     
              out.println("<input type=\"" + t + "\" name=\"" + x + "\" value=\"" + l + "\">");          
              out.print("</p></td>");      
              out.println("</tr>");
              //esc++;
    %>
    <!--input type="Hidden" name="escolha" value=<!--%l%>-->
    <!--input type="Hidden" name="escolha" value="<!--%=escolha%>"-->
    </td>
    </tr>
    I don�t know how to take the value... PLEASE HELP ME OUT!
    THANKS TO ALL!,
    Best wishes,
    Alex (portugal)

    You must wrap your contents into a FORM element and, then, using getParameter("escolha"), retrieve your value.

  • How do I include the radio-button items on a second column as possible answers to the question?

    Using Adobe Acrobat Pro X, we created a fillable PDF from an existing PDF.
    One question can be answered by choosing one of four choices (radio buttons). The answers are laid out in a 2-by-2 arrangement.
    When Acrobat Pro converted the PDF into fillable format, it thought that the radio-button answers on the second column are not part of the question.
    How can I manually override Acrobat and make choices 3 and 4 part of the question.
    Please click attached screenshot for better zoom.

    George,
    i am the OP. I mistyped my email address and cannot log in to my original account.
    Thanks for your reply.
    How do I give each radio button the same name but unique button values?
    I right-clicked the first radio button, chose Properties (Ctrl+I).
    I copied the name: "What is your personal net worth in Canadian dollars including spousecommon law partner if applicable".
    I clicked Close.
    I then went into the Properties dialog window of the third radio button, which is one of the ungrouped choices. I pasted the name [What is your personal net worth in Canadian dollars including spousecommon law partner if applicable]. I then clicked Close.
    I get an error message pop up:
    A field of a different type already uses this name. Please choose a new name for the field, or change the field type to match the existing field with this name.
    What must I do now?
    Thanks.

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

  • How do I give the radio buttons a buttongroup and id dynamically as the datagrid is populated?

    I am using the following component as an item renderer for a
    <mx:DataGridColumn>
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    >
    <mx:HBox horizontalAlign="left" left="10">
    <mx:RadioButton />
    <mx:RadioButton />
    <mx:RadioButton />
    <mx:RadioButton />
    <mx:RadioButton />
    </mx:HBox>
    </mx:Canvas>
    How do I give the radio buttons a buttongroup and id
    dynamically as the datagrid is populated?

    "nikos101" <[email protected]> wrote in
    message
    news:g83gfl$m8o$[email protected]..
    >I am using the following component as an item renderer
    for a
    ><mx:DataGridColumn>
    >
    >
    > <?xml version="1.0" encoding="utf-8"?>
    > <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    >
    > <mx:HBox horizontalAlign="left" left="10">
    > <mx:RadioButton />
    > <mx:RadioButton />
    > <mx:RadioButton />
    > <mx:RadioButton />
    > <mx:RadioButton />
    > </mx:HBox>
    > </mx:Canvas>
    >
    > How do I give the radio buttons a buttongroup and id
    dynamically as the
    > datagrid is populated?
    What is your actual goal?

  • How to define  parameters with radio button

    HI
      How to define  parameters with radio button, but that radio button should display in front of the variable name not after variable name. and under that radio button variable I hve to define parameters, select-options and some other radiobutton varibles.
            I don't know how to paste figures here, otherwise i will provied u the figure for more details.
    Regards.

    PARAMETERS : r1 RADIOBUTTON GROUP radi.
    Go to --> text elements --> selection text
    R1    <your text>
    You can change the program selection screen lay out in screen painter (se51) .
    screen number for your selection screen is 1000.
    Regards,
    Santosh reddy
    Edited by: Santosh Reddy on Dec 9, 2008 11:21 AM

  • How to create dropdown box, radio button,check box in wad

    Hi,
    How to create dropdown box, radio button,check box in wad.
    Thanks,
    cheta.

    Cheta,
    This are all standard Web Items in the WAD. Drag them onto your template and then make the changes you need to them in their Properties.
    Regards
    Gill

  • How to get handle of a button that i created through Customisation?

    How to get handle of a button that i created through Customisation?
    I tried this in processformrequest ..failed :(
    String str2 = paramOAPageContext.getParameter("AutoDialler");
    if (str2 != null) {
    System.out.println("Inside AutoDialler Hurray");
    }

    this works well
    but can you give documentation support of whatever you are saying?
    public void processRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    OASubmitButtonBean oasb= (OASubmitButtonBean)paramOAPageContext.getWebBeanFactory().createWebBean(paramOAPageContext,"BUTTON_SUBMIT");
    oasb.setID("xxSubmitAutoDialler");
    oasb.setUINodeName("xxSubmitAutoDialler");
    oasb.setEvent("xxSubmitAutoDialler");
    oasb.setText("xxSubmitAutoDialler");
    paramOAWebBean.addIndexedChild(oasb);
    public void processFormRequest(OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    if ( strEvent.equals("xxSubmitAutoDialler"))
    //IMPORTANT Get this by calling the Function that loops for records.
    System.out.println("Inside processFormRequest Hurray");
    }

  • Anyone.know.how.to.get.spacebar.and.delete.button.to.work??

    anyone.know.how.to.get.spacebar.and.delete.button.to.work??

    I think you are asking this in the wrong forum.  This is for TBD issues.

  • How to set value for radio button in sap crm survey suite

    Hi ,
    I created a survey in CRM Service, in which I added a question with answer as '10 Selection Button Group ('radio button'). And answer has 11 answer options (which means 11 radio buttions). Now when we test the survey, the value for the radio buttons is appearing like 'id_0050569b03091ee480a29d8ee61e953c'. But i want to set a specific value for each radion button (from 1 to 11). So, how to set value for radio button in sap crm survey suite???.
    Thanks & Regards,
    Seshu

    Hi,
    I found solution myself. Click on Goto -> Editing Mode -> Expert Mode. Now you can set value for radio button.
    Regards,
    Seshu

  • 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

  • How get information from radio button into a textfile,

    ok, Here's my code. The point of the system is to write information from the booking form, onto the textfile named "something.txt"
    write code;
    public void write() {
    String fullfile = "something.txt";
    try {
    BufferedWriter out = new BufferedWriter(new FileWriter(fullfile));
    out.write("");
    out.write("HOLIDAY BOOKING SYSTE,");
    out.write("");
    out.write("SECTION 4.0 DESITNATION");
    out.write("");
    out.write("Holiday Destination: " + list.getSelectedValue());
    out.write("Duration of holiday: ");
    out.write("");
    out.write("SECTION 5.0 TRAVEL RESERVATION DETAILS");
    out.write("Airport for depature and return");
    out.write("Depature Date: " + txtDateD.getText());
    out.write("Depature Time: " + txtTimeD.getText());
    out.write("Arrival Date: " + txtDateA.getText());
    out.write("Arrival Time: " + txtDateA.getText());
    out.write("Holiday Destination: " + txtbookingno.getText());
    out.write("Customer Booking Information");
    out.close();
    } catch (IOException f) {
    //end of file writer
    The code below is for the radio buttons, The choice is to either pay for an "Economic" ticket, or a "First Class" ticket. If a customer selects the economic ticket radio button, what line of coding do i add to the write method above, to show "Economic ticket"
    JRadioButton EconomyButton = new JRadioButton(EconomyString);
    EconomyButton.setMnemonic(KeyEvent.VK_C);
    EconomyButton.setActionCommand(EconomyString);
    constraints.gridx=0;
    constraints.gridy=27;
    constraints.insets = new Insets (0,0,0,0);
    EconomyButton.setFont(new Font("palatino linotype", Font.PLAIN,13));
    gridbag.setConstraints(EconomyButton,constraints);
    c.add(EconomyButton);
    JRadioButton FirstClassButton = new JRadioButton(FirstClassString);
    FirstClassButton.setMnemonic(KeyEvent.VK_C);
    FirstClassButton.setActionCommand(FirstClassString);
    constraints.gridx=1;
    constraints.gridy=27;
    constraints.insets = new Insets (0,0,0,0);
    FirstClassButton.setFont(new Font("palatino linotype", Font.PLAIN,13));
    gridbag.setConstraints(FirstClassButton,constraints);
    c.add(FirstClassButton);
    Also i ran into another slight problem, theres a textbox called "Fine" in another form called "page1", how do i call it's value i.e. what line of code do i place for it in the method above? Help,

    Try to use the "[ code][ code]" tags, it makes your code much easier to read! :)
    If you want a method, such as write() to be able to get text from a radio button, such as EconomyButton, make sure to declare it higher in your code and public, so you can use the method:EcononomyButton.getText()Also note, you may find it easier if you rename your variables to lower case, such as "economyButton", and your classes upper case.
    For more information on ways to get information out of a button you've created, check out the javadocs:
    http://www.google.com/search?&q=java+5+jradiobutton
    Note, if you scroll down, you'll see a bunch of "Methods Inherited By" stuff. You can use them too!
    -FBL
    (This is your code, using the code tags)
              /* Write code */
         public void write() {
              String fullfile = "something.txt";
              try {
                   BufferedWriter out = new BufferedWriter(new FileWriter(fullfile));
                   out.write("");
                   out.write("HOLIDAY BOOKING SYSTE,");
                   out.write("");
                   out.write("SECTION 4.0 DESITNATION");
                   out.write("");
                   out.write("Holiday Destination: " + list.getSelectedValue());
                   out.write("Duration of holiday: ");
                   out.write("");
                   out.write("SECTION 5.0 TRAVEL RESERVATION DETAILS");
                   out.write("Airport for depature and return");
                   out.write("Depature Date: " + txtDateD.getText());
                   out.write("Depature Time: " + txtTimeD.getText());
                   out.write("Arrival Date: " + txtDateA.getText());
                   out.write("Arrival Time: " + txtDateA.getText());
                   out.write("Holiday Destination: " + txtbookingno.getText());
                   out.write("Customer Booking Information");
                   out.close();
              catch (IOException f) {
              //end of file writer
                        /* Radio buttons */
         JRadioButton EconomyButton = new JRadioButton(EconomyString);
         EconomyButton.setMnemonic(KeyEvent.VK_C);
         EconomyButton.setActionCommand(EconomyString);
         constraints.gridx=0;
         constraints.gridy=27;
         constraints.insets = new Insets (0,0,0,0);
         EconomyButton.setFont(new Font("palatino linotype", Font.PLAIN,13));
         gridbag.setConstraints(EconomyButton,constraints);
         c.add(EconomyButton);
         JRadioButton FirstClassButton = new JRadioButton(FirstClassString);
         FirstClassButton.setMnemonic(KeyEvent.VK_C);
         FirstClassButton.setActionCommand(FirstClassString);
         constraints.gridx=1;
         constraints.gridy=27;
         constraints.insets = new Insets (0,0,0,0);
         FirstClassButton.setFont(new Font("palatino linotype", Font.PLAIN,13));
         gridbag.setConstraints(FirstClassButton,constraints);
         c.add(FirstClassButton);
         

  • In SD, how to get address etc. for a commercial Partner via ADDNR

    Hello all,
    I am new to SD (and new to ABAP for that matter) so have a lot to learn. I am to write a report program to produce a list of documents containing information about commercial partners and their full address. That is to say, town, country, postal code etc... Now here is a question in three parts:
    1) Where and in what table do I find address information about a commercial partner (SD module)?
    2) Is there a standard function module where I can supply it with the address number and get all the address and perhaps some other info in return?
    3) I tried to understand the standard SAP program (i.e. FFP2) as to how it gets the partner address and other info. But very quickly I got lost in transfers between includes, programs, screens, sub screens, function calls, etc... The program seems to read the data from some mysterious table INTO a structure and then display it on the screen. Now, for future references, how do you figure out the source of information for a screen field when the field it is mapped onto a structure and not a real table?
    Your help is greatly appreciated

    Hello,
    With the help of ADRNR, you can go to ADRC table and get all the address information you need.
    If you are trying to get address for a particular partner, then 1st get the ADRNR for that partner from VBPA and then go & check in ADRC table.
    Let me know if this helps or try to be more clear about your question.
    Thanks,
    Suresh Ganti

  • Need help using split, how to get the number of inputs?

    I am trying to write a program in which a user inputs several numbers, then the output is how many numbers were input. I am thinking that the best way to do this is to use split, however I am pretty new and can't get it quite down. Thanks

    Sorry, I guess I didnt explain it correctly. The input would be something like this-
    90 87 76 23 99
    Here is what I have-
    import java.util.*;
    public class Scores {
      public static void main(String args[]) {
              int score;
              System.out.println("Input UNC Basketball scores, each separated by a space.");
              Scanner keyboard = new Scanner(System.in);
       int count = args[0].trim().split(?\\s?).length;
    }The int count line was given to me by someone, however I dont know how to get there. Thanks

  • How to get addresses into iphoto

    My iphoto is ready to email my picture but I am unable to bring up all my email addresses.
    Can someone advise me on how I can achieve that pls?

    What email client are you using: iPhoto or Mail?  If it's iPhoto you will have to open your Address Book separately and copy and paste the addresses into the iPhoto email template.
    If you're using Mail then the email addresses are available from the Photo Browser button in the upper right hand corner of the email window:
    OT

Maybe you are looking for

  • I'm getting really frustrated and could use some help

    Hello there! I'm  not sure what happened because when I plugged in my ipod today (I have an 8g ipod touch) everything was reset to the basics in itunes. My entire library was delted. Honestly I'm not really that upset by that as I was going to change

  • CPU Related Report From Statspack

    Hello, I am looking for a statspack query that will produce a report regarding CPU (usage, parses etc.). It has to calculate the average of each day, in order to use the values in excel and build a trend analysis report. An example a similar report I

  • Need help with basic program - I am new to this

    I need to write a very basic code to display my name on the screen as follows RR OOO R R O O R R O O RR O O R R O O R R OOO etc etc etc to spell out robert i have no idea where to begin

  • Problem with HS-950 headset

    Hy, for starts I will say I run Windows 7 and my problem with headset is that when i use application that uses microphone (Skype, Ventrilo) I have some background sound distortion. I can't explain it best, for example: when my hard is processing data

  • Startup disk full ...help please

    Ive been deleting everything still have a bunch of other the yellow bar.cant figure out what else to deleted or where to find it....