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.

Similar Messages

  • 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

  • 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

  • Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down).

    # Question
    Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down). I tried to understand but different javascript file gets different Expires date value when it is being cached. Please help me as I tried lot and could not get proper answer for this. Thanks in Advance.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • I have updated to OS X 10.9 and now can't open Aperture, message reads You can't use this version of the application "Aperture" with this version of OS X. You have "Aperture" 3.2.3... all i need to know is how to get Aperture to work again..help !

    I have just updated to OS X 10.9 and now find that I can't open Aperture to access photos etc, message reads : You can't use this version of the application "Aperture" with this version of OS X. You have "Aperture" 3.2.3... whichj is not a lot of help, i have limited technical ability and all i need to know is how to get Aperture to work again...help !

    Software Update?

  • Can anyone help me understand how font sizes work in Mail?

    Hi
    I am used to writing and sending emails in Arial 10 (on my PC using Outlook) - it seems like a professional sort of size to send to people.
    So I have set the Mail Preferences Fonts to Arial 10 for the message font
    But when I receive emails, the font is so small I can barely read it. I have a new 24" iMac and just cannot get to grips with keeping font sizes at a reasonable level between applications. And I though Mac was supposed to be joined up....
    As I write the text of this posting, the font is a good size to read (although still looks blurred - see my other postings) - it is in Arial which I want.... But I cannot get Mail to wrk in the same way.
    I do not want to change the font size to the email messages to a bigger font size, as I want my outgoing messages to be received in font size 10.
    Please help me understand how this is all supposed to work in MAC? It was all so easy on a PC!

    No, it is one of several unfathomable shortcomings in Mail that you are unable to set a minimum text viewing size. I too have 24in iMac and I have to enlarge each incoming message manually using Cmd+ and this is frankly Stone Age stuff, especially when dealing with hundreds of emails every day. Another very poor alternative is to use Ctrl and the scroll wheel to zoom in but your head will soon be spinning as the screen moves around.
    FWIW, I am also dismayed that Apple has disabled the Contextual Menu in 3 of the 4 mail address fields. There must be some obscure justification for limiting CM copy and paste to just the Subject field but I just think it's risible.
    And why can't I save a message I have just written to a place of my choosing? Instead I must save it to the Drafts folder or send it first and then Save As from the Sent mailbox. Is this someone's idea of fun?
    I could go on about Mail's shortcomings but that's enough ranting for now...
    Simon

  • I dont understand how to get my purchased music to download or sync to my HP computer. Can someone help me?

    Help please? I dont understand how to get my purchased music to download or sync to my HP computer.

    Hey CrystalKean,
    Thanks for the question. If you have purchased content on your iPhone that has not yet been transferred to your computer, see the following article:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer
    http://support.apple.com/kb/HT1848
    Alternatively, you can download previous purchases from the iTunes Store with the steps outlined in this article:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    http://support.apple.com/kb/HT2519
    Thanks,
    Matt M.

  • Help in understanding how the policy "SI-PerDiskAvgServiceTime-AT" work

    Hello Sir, I am trying to deploy  policy "SI-PerDiskAvgServiceTime-AT" on servers in my environment. And after deployment this policy is triggering so many alerts. I read some online forums and learnt that this is an auto-thresholding policy relying on historical data. Can you please help me understand how this policy works. Thank You

    I have decided to ditch Visual Communicator as an option.
    Apart from the poor support, I have tested the Trial version and it would not make sense to use the application in its cirrent form.
    In a ten minute period using 2 cameras as a test, the application froze and crashed four times. Not acceptable as reliability is crucial.
    The test was done on a Windows 7 64 bit machine with 4 physical Xeon Quad core 3GHZ processors and 32 GB RAM with a 2GB Graphics card, so performance was not the issue.
    the application is just not stable.
    I am getting better support and results from both Wirecast 4 and Cutfour.

  • Need help with getting images to look smooth (without the bitmap squares) around the edges. When I transfer the image from pictures, it sets itself into the InDesign layout, but with square edges. I need to find out how to get it to look smooth?

    Need to find out how to get my images transferred into an InDesign layout without the rough edges, as with a bit map image, but to appear with smooth edges in the layout. I can notice it more when I enlarge the file (pic). How can I get it to appear smooth in the finished layout. Another thing too that I noticed; it seems to have effected the other photos in the layout. They seem to be
    pixelated too after I import the illustration (hand drawn artwork...)? Any assistance with this issue will be greatly appreciated. Thanks in advance.

    No Clipboard, no copy & paste, as you would not get the full information of the image.
    When you paste you can't get the image info from the Links panel, but you can get resolution and color info either via the Preflight panel or by exporting to PDF and checking the image in Acrobat.
    Here I've pasted a 300ppi image, scaled it, and made a Preflight rule that catches any image under 1200ppi. The panel gives me the effective resolution of the pasted image as 556ppi. There are other workflow reasons not to paste—you loose the ability to easily edit the original and large file sizes—but pasting wouldn't cause a loss in effective resolution or change in color mode.

  • Hi im having trouble with downloading an album off my computer. i have forgotten the security questions, but have already sent them to my email. could someone help me in how to get the answers?

    Hi im having trouble with downloading an album off my computer. i have forgotten the security questions, but have already sent them to my email. could someone help me in how to get the answers?

    Hello Carpets,
    Thanks for the question. You can reset your security questions with your rescue email address, as outlined with this article:
    Apple ID: All about Apple ID security questions
    http://support.apple.com/kb/HT5665
    If you do not see the option for resetting your questions with a rescue email address, see this excerpt:
    Note: The option to send an email to reset your security questions and answers will not be available if a rescue email address is not provided. You will need to contact iTunes Store support in order to do so.
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Additional Information:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Thanks,
    Matt M.

  • I have had Adobe XI for about two years and My harddrive just crashed. My backups were part of the failure so I can't get it back. I purchased it from a third part supplier and it was a download. I need to find out how to get it restored. I can send scree

    I have had Adobe XI for about two years and My harddrive just crashed. My backups were part of the failure so I can't get it back. I purchased it from a third part supplier and it was a download. I need to find out how to get it restored. I can send screen shots of all of the drive location where the drive is still good and I can see my Adobe Acrobat pro information, but the download itself is missing. NEXT STEP?

    If you are talking about Reader (you did post in the Reader forum), then just download http://get.adobe.com/reader/enterprise. However Reader is free not purchasable. You can download a trial then install using your serial number, which if you didn’t register or write down somewhere you will be out of luck to track down.
    Download a free trial or buy Adobe products | Adobe downloads

  • 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 to use Checkbox  and radio buttons in BI Reporting

    Hi BW Experts,
       My Client has given a report in ABAP format and the report has to be develop in BI.It contains Check boxes and the radio buttons. I don’t know how to use Checkboxes and radio buttons in Bex.For using this option, do we need to write a code in ABAP.Please help on this issue.
    Thanks,
    Ram

    Hi..
    Catalog item characteristic
    - Data element
    - Characteristic type
    Entry type
    List of catalog characteristics
    Designer
    Format (character)
    Standard characteristic
    Alternative: Master characteristic
    (used for automatic product
    assignment)
    Simple entry field
    Alternatives:
    Dropdown listbox or radio button
    list

  • How to get values/data stored in the database into a list-item.

    how to get values/data stored in the database into a list-item.
    i tried to make a list item without any values assigned to it...but i got the below error.
    FRM-30191: No list items defined for required poplist.
    or
    FRM-32082: Invalid value for given item type.
    List EMPNO
    Item: EMPNO
    Block: EMP
    Form: MODULE5
    FRM-30085: Unable to adjust form for output.
    then according to some docs, i tried the the following for the trigger
    when-new-form-instance
    declare
         rg_name varchar2(40) := 'emp_rec';
         status number;
         groupid recordgroup;
         it_id item;
    begin
         it_id := Find_Item('empno');
         groupid := create_group_from_query(rg_name, 'select empno from emp');
         status := populate_group(groupid);
         populate_list(it_id, groupid);
    end;
    but yet didnt work... :(
    so how the heck do i get values fetched from the database table into the list item?

    for list items you need to values in the record group, one is the shown value and one is the returned value.
    Check out the online help for the populate_list built-in.
    You'll need something like select ename,ename from emp as the record group query.

  • How to get value in function insert table test ?

    Hi
    I use function insert table test in order to get value in table for use in code page but i don't know how to get value in table.If somebody have any idea.Please give me some advice.
    Thank you,
    Waruja

    You will need to grab the contents with VBA
    Table test is user interface only.
    This thread may help
    http://qazone.empirix.com/thread.jspa?threadID=748&tstart=0

Maybe you are looking for