Help:  Need to calculate a radio button when selected or not selected

I am hoping its possible to use a script to calculate a radio button when it is selected.  For example:
My form has 4 grouped radio buttons (Radio Button 1-4) of 5 buttons.
So its something like this:
     Level 1     Level 2     Level 3     Level 4     Level 5
1.   RB1          RB1            RB1           RB1         RB1
2.   RB2          RB2            RB2           RB2         RB2
3.   RB3          RB3            RB3           RB3         RB3
4.   RB4          RB4            RB4           RB4         RB4
Items areas total:               Total Points:               Average Score:
The buttons already have different values set for each button to calculate a score in the "Total Points" text field. (Level 1 scores 1, Level 2 scores 2, etc.)
I would like to have the "Items areas total" text field to calculate either a value of 1 if selected or a 0 if not selected.  So if 3 of the 4 rows are selected a return of "3" is calculated, if all 4 rows are selected then it returns "4", etc.
Seems it would be a simple script.
Thanks

Hi Franklin,
I understand that we can show the selected row in different color.
But still there is a requiremnet given saying that there should be an radio button or Select button or check box (Checked only one at a time of several rows) apart from showing the selected row in a different color.
Current display of the page:
We have three regions, 1> Main region, 2> Master region, 3> Detail region.
Main region has some text parameters, Master region has a adf:table and when ever you select a row on the master region the detail region values are getting refreshed based on the row selected.
Is there any simple way apart from adding a boolean transient attribute to VO and displaying it as one of the column in adf:table?
Thanks,
Sandeep

Similar Messages

  • Need to render the edit button when table is not Empty

    Hi,
    I want to render the edit button , only when we have some records in the table to select.so is there a way to check the view is empty or has some records in the backing bean of my page.Please suggest me,if u have some deas which would work..
    thanks in advance

    Hey guys,I just did that and it is so simple.I just wanted to share it with u guys.It is all the power of EL language.
    For the rendered property of the Edit button ,Bind it to the iterator like (bindings.SatAppliViewObj1Iterator.currentRow!=null).thats it, now the button will only be rendered if the table has some records.Have a lot of facilities ,but no proper giude to enunciate them...So guys please keep sharing ur experiences with us ..
    Message was edited by:
    user526927

  • Add radio button when a radio button is selected (pop up)

    How do you Add a 2 radio buttons when (pop up when d1 is
    selected)
    For example d1a and d1b
    When d1 is selected.
    <cfoutput>
    <cfif isdefined("url.msg")>
    #urldecode(url.msg)# <BR />
    </cfif>
    </cfoutput>
    <table border="0" cellpadding="5">
    <form id="form1" name="form1" method="post"
    action="index.cfm?action=actSearch">
    <tr>
    <td>please enter id no: </td>
    <td><input type="text" name="nbr" /></td>
    </tr>
    <tr>
    <td>B1: </td>
    <td><input type="Radio" name="bd" value="b1"
    checked="checked"></td>
    </tr>
    <tr>
    <td>D1: </td>
    <td><input type="Radio" name="bd"
    value="d1r"></td>
    </tr>
    <tr>
    <td></td>
    <td><input type="submit" name="Submit"
    value="Submit" /></td>
    </tr>
    </form>
    </table>

    As you may already know, ColdFusion code runs on the server.
    It's not sent out to the web browser. It sends out HTML to the
    browser. And what you want to do here is regonize a change that
    occurs in the web browser without submitting the form. The way you
    can do this is AJAX. If you haven't already done so, check out the
    ColdFusion / AJAX library here :
    http://ajaxcfc.riaforge.org/.
    This will give you a good framework of code to use to do this so
    you won't have to reinvent the wheel.

  • Please solve  Radio buttons (when selected) will then display on the report

    Each of these new Radio buttons (when selected) will then display on the report in the same locations, which is after the existing columns.
    Check boxes are by default checked.
    When the 1st radio button is selected then a new column will be displayed in the ALV output
    Next to A.
    Like wise when 2nd radio button selected then a new column will be displayed in the ALV output next to B.
    Like wise the ALV output is displayed.
    A   is a checkbox
    B  is a checkbox
    C   is a checkbox
    D   is a checkbox
    1   is a radio button                         
    2   is a radio button      
    3  is a radio button
    4   is a radio button

    while populating fieldcatalog itself u include these condition....
    if Pradiobutton = 'X'.
    *--populate field catalog for field u want in specified position....
    endif.
    similarly u proceed for other fields and other condition

  • Default Radio button when form opens

    Is there a way to make a radio button when form opens?
    for e.g. when we open key flexfield value sets form, key flexfield radio button is default. i want to do when i open the form value set button is defaultly checked.
    thanking you in advance.

    User personalization.
    Find the name of the field for that radio button.
    Write a when-new-form-instance personalization.
    Make the action type =property
    And make the action as default value/initial value = the value corresponding to the default you want.
    Also check http://it.toolbox.com/blogs/apps-traction-blog/oracle-form-personalization-basic-example-11936
    Hope this answers your question,
    Sandeep Gandhi
    Edited by: Sandeep Gandhi, Independent Consultant on Feb 4, 2011 11:43 AM

  • Radio button field issue in the selection screen

    Hi Folks,
    I am using an LDB(Logical Data Base) of 'PNP' in my custom report and the LDB has a selection screen with different parameters .
    My concern is, the selection screen has 6 Radio buttons from which if I select one from the first 5 Radio buttons the Dates highlighted should clear off, and when I click on Radio Button 'Other Period' the dates should display as shown .
    Note: I am using the ECC 4.6C
    Please suggest any solution to achieve this functionality .
    Thanks,
    Sujay.V

    Hi,
    Consider your radio buttons looks like below:
    PARAMETERS: RADIO1 RADIOBUTTON GROUP R1 MODIF ID RA1, "Today
                               RADIO2 RADIOBUTTON GROUP R1 MODIF ID RA2, "Current Month
                               RADIO3 RADIOBUTTON GROUP R1 MODIF ID RA3, "Current Year
                               RADIO4 RADIOBUTTON GROUP R1 MODIF ID RA4, " Up to today
                               RADIO5 RADIOBUTTON GROUP R1 MODIF ID RA5, "From today
                               RADIO6 RADIOBUTTON GROUP R1 MODIF ID RA6. "Other period
    AT SELECTION-SCREEN.
    IF RADIO1 EQ 'X' OR RADIO2 EQ 'X' OR RADIO3 EQ 'X'
        OR RADIO4 EQ 'X' OR RADIO5 EQ 'X'.
         CLEAR: "Add your date variables here
    ELSEIF RADIO6 EQ 'X'
         ADD Logic for your date variable here
    ENDIF.
    Hope this will help you .
    regards,
    Rajesh Sadula.

  • Option ( Radio button  or check box)  on selection - screen , to go to CNR2

    <b>Subject - Option ( Radio button  or check box)  on selection - screen  , to go to Tcode CNR2</b>
    Hi all,
          I have developed  a report   , which  has  a  selection screen  with  one select-option ,  where i enter employee number     and  two radio buttons   ,  one is for all workcentres  and  other one   for active workcentre.   so when i enter  employee number  and  choose  either of the radio button  i wil get the  output  properly.  the output   displays ,  employee no,  employee name ,  work centre  and project  of that employee .   an employee may have  many workcentres   and   a corresponding project  for that work centre.
    Now the  Problem is  ,  from the same   report  i need to add  a option  on the selection -screen ,  ( plz  tell me whether to use  radio button  or check box   and if it is radio button    should  i  use it seperately  or  group it  in the above two buttons.) .
    so that when user selects  the  option   , the control should  go to  transaction code CNR2,  from where  i  can enter workcentre  and   in the next screen i have  HR assigntment tab , after choosing that it will dsplay persons   linked to the workcentre  and there is a delete icon  , from where i can delete the person.
    The only thing is  now to move / Navigate to the screen   or  go to transaction code CNR2   from  the report  or  from the selection screen.
    Your valuable Inputs are awaited, PLz  do lemme know 
    Thanks  in advance ,
    regards,
    Shuja

    Shuja,
    A radio button nor a checkbox should be used for navigation.  I would suggest a COMMAND BUTTON. 
    Something like this:
    Report ZZZZZZ.
    TABLES: sscrfields.
    SELECTION-SCREEN BEGIN OF BLOCK ONE WITH FRAME TITLE TEXT-001.
    selection-screen: PUSHBUTTON /10(20) but1 USER-COMMAND cli1.
    SELECTION-SCREEN END OF BLOCK ONE.
    initialization.
      but1 = 'Button Text Goes Here'.
    AT SELECTION-SCREEN.
      CASE sscrfields.
        WHEN 'CLI1'.
          call transaction 'CNR2'.
    start-of-selection.
    Your code here

  • Why does apple tv play my photos randomly in screen saver mode when random is not selected

    why does apple tv2 play my photos randomly in screen saver mode when random is not selected?

    Thanks for that.
    Random is not selected in transition or anywhere else. Unless I am missing something in the settings.
    So why is it playing my photos ramdomly in screen saver mode ?

  • Help with SUBMIT BY EMAIL, radio buttons

    Hi guys:
    I have a two parter. I sincerely appreciate any advice!
    1. Using Adobe Acrobat/Adobe LiveCycle Designer (mostly LiveCycle) I want to somehow pull a user-entered value from the PDF into the subject line of the email, created when the user clicks on "SUBMIT BY EMAIL".
    Specifically, when the end-user fills in the "Employee ID" line in the PDF form, and submits the form, I'd like the subject line of the Submit by Email -email to read "Employee #___" with the ___ obviously being the employee ID.
    Any help would be great; thanks!
    2. I am aware of how to prevent a PDF being submitted via email if the enduser hasn't filled out a certain part of it -- a message pops up saying that the user hasn't filled in a required line, and the line is highlighted with a red box, etc.
    What I can't figure out is as follows: I have two radio buttons, one (and only one) of which MUST be slected by the user. How do I set it up so that either one or the other must be selected in order to submit? Currently the form will only submit if you have both selected.
    Thanks!

    David,
    I can help with the first part I think. I just tried this out using Designer and Acrobat 8, and it worked. (I saved my form as a dynamic acrobat 8 pdf)
    I got this script from searching the forum and then tweaked it a tiny bit so that it works for the subject line. (http://www.adobeforums.com/cgi-bin/webx?addBookmark@@.3bc34abf/44)
    Using a regular button for submitting, I added this javascript as a click event:
    var Comment = EmployeeID.rawValue;
    if (EmployeeID.rawValue == null){ Comment = " "} else {Comment = EmployeeID.rawValue};
    event.target.submitForm({cURL:"mailto:[email protected]?subject=Employee#"+Comment+"&bo dy=Write whatever you want to go here.",cSubmitAs:"XML",cCharset:"utf-8"});
    So, my variable "Comment" will return the number typed into the EmployeeID field and put it in the subject line after "Employee #". If you copy/paste the code, make sure you change the email address and body message to be what you want.
    Kristi
    (oh, and if you want it to come back as pdf, change the cSubmitAs:"XML" to "PDF" and then enable user rights in Acrobat 8.)

  • Radio buttons on form are not always Re-enabling when i Tell them to re-ena

    I have a game setup where there is 1 server and 2 clients. The 2 clients each have a gui where they have 3 radio buttons to select from. Once they make their choice then their buttons are re-enabled when the server sends the message "#newround" to the 2 clients.
    this.sendToAllClients("#NewRound");
    when the clients receive this message:
    else if(copyMessage.startsWith("#NewRound")){
    //Re-enable the radio button choices and the play button.
    jButtonPlay.setEnabled(true);
    jRadioRock.setEnabled(true);
    jRadioPaper.setEnabled(true);
    jRadioScissors.setEnabled(true);
    newRound();
    It works 90% of the time but sometimes it doesn't re-enable any of the radio buttons on 1 of the 2 forms and sometimes it only re-enables 2 of the 3 radio buttons on the forms.
    Anyone know why this would be?

    Are you executing this code in a separate thread? If so, Try enabling them from the event dispatch thread. Refer to SwingUtilities.invokeLater() and SwingUtilities.invokeAndWait() for more info.

  • Captivate 8, knowledge check radio buttons and check boxes not diplaying correctly in HTML5

    Hello. I am working in Cp 8 on a pc (Win 7, 64-bit) and publishing in HTML5, SCORM 2004, 3rd ed. My issue is with knowledge checks. In preview they look fine, but when published, the radio buttons and check boxes are oversized and do not appear as they should. Additionally, the rollover highlight that covers the distracters is skewed and does not cover all the text in cases of long answer choices. When published as a SWF, there are no issues but project requirements are for HTML5 output only. Help?

    Create an XML Schema (XSD) and define that as the default form schema. The form data will conforms to the order of fields defined in the XML schema.
    Hope that helps.
    Nith

  • 3.1.3 double clicking home button when music is not playing

    Is the bug that double clicking home button while music is not playing didn't bring up the iPod control fixed? For me, it seems definitely a bug since it doesn't give anything good. Clicking home button once already terminates the application, why would anyone use double clicking to exit the application too?
    This is why I'm still using 3.0. Is this fixed in 3.1.3?

    Jeong-hun Sin, 3.1.3 has the same issue, and I do not think Apple is ever going to fix this issue. They still haven't even fixed the live updating playlist sort order issue...
    roaminggnome he's referring to a pop-up controls issue that has been talked about on this forum ever since the release of the 3.1 firmware.
    http://discussions.apple.com/thread.jspa?threadID=2151438
    In 3.0 and older versions, if you're in an app/game you can double-click the home-button to access the iPod pop-up controls to resume the playback of a song/podcast that had been previously paused/stopped.
    In 3.1, if a song had been previously paused you cannot launch the pop-up conrols to resume the playback of the song. You're forced to exit the app that you might be in (lets say safari, or a game), and then resume playback using the music app.
    Jeong-hun Sin, I upgraded to 3.1.3 a few days ago, and have found a few improvements:
    - Many 3D games are MUCH smoother/faster under 3.1.3, than 3.0. I downgraded back to 3.0 just to see if I was just imagining things, but games like Coconut-racer, and Asphalt 5 were not as smooth as they were under 3.1.3.
    - If you happen run apps that have live video streaming where the video playback controls do not appear (e.g the BBC world, Al Jazeera news, sure there's more), the iPod Touch no longer randomly reboots when using those apps.

  • 3.1.2 double clicking home button when music is not playing

    Is the bug that double clicking home button while music is not playing didn't bring up the iPod control fixed? I don't know it's a design change or a bug, but for me it seems definitely a bug since it doesn't give anything good. Clicking home button once already terminates the application, why would anyone use double clicking to exit the application too?
    This is why I'm still using 3.0. Is this fixed in 3.1.2?

    It's a design change, not a bug. Although I do have to agree with you on that I preferred what double-clicking the home button originally did. There is even settings (in general settings if I can remember right) on what double-clicking the home button performs, but that isn't even an option on it.
    And nope this is not fixed or redesigned in 3.1.2.
    Hope that answers your question,
    Enjoy!

  • Why is the check bock defaulting to checked when it is not selected as default?

    I have tried radio buttons and check bockes both are defaulting to one box being checked, even though the "button is checked by default" is NOT marked.
    Once I preview and test the buttons, one remains checked. Please help! (I have also tried various grouping techniques)
    Using Adobe Acrobot X Standard (on a PC)

    The Preview Mode is good for testing the location of the form fields, not much else. Certainly not the functionality.
    To exit Form Mode click the "Close Form Editing" button above the Tasks panel on the right.

  • How to stop joint stereo during mp3 import when it's not selected.

    I use iTunes to manage my mp3 purchased from other music stores (tracsource, etc).  For some reason, iTunes changes my file from stereo to joint stereo even though joint stereo is not selected.  I have searched the web for days prior to this post with no success.  I understand all of the reported benefits of joint stereo but prefer to not have my files altered in any way.  Is there any way to disable completely?  Any information is appreciated.
    Thanks.

    This is very helpful and assists with narrowing down my issue.  I am converting vinyl to mp3 using a digital recording device (M-Audio Microtrak II).  From there, I am moving the files to iTunes.  It is possible that this device is encoding as joint stereo but all of the specification read stereo.
    I will continue to narrow down the source.
    Thanks again!

Maybe you are looking for

  • Hard drive on the way out? Weird behavior

    Really weird problem. I recently installed Tiger - got it for the holidays. My computer had been kind've slow beforehand, but now it's acting really weird. It's not "snappy" - that is if you define snappy as "starts up within a hour". (I doubt the OS

  • 1/8 of a beat off??? when recording audio and click??? HELP

    Okay so I upgraded to Logic Studio and I'm having this problem that basically has crushed my work flow... Here is the problem: When I record new audio from my FirePod in to Logic Studio the recorded audio is approx. and 1/8 of a beat off??? It is rea

  • Average Weekly Consumption of material for the last "N' weeks

    HI All, I am looking for a report which will give me the average weekly consumption of a material considering the last 'N' weeks. I have been using MC.9 for average monthly consumption for the months specified but this is not servic Please give me ur

  • IDisk Backup How-to

    I am trying to perform a backup of my hard drive in praparation for sending my Macbook to Apple for repair. I launch iDisk, choose my primary hard drive, and choose 'New Image'. Once I create a name and select a location for the backup file, the back

  • Why have I lost PDF printing capability through the File Print menu?  When will it be fixed?

    Why have I lost PDF printing capability through the File>Print menu?  When will it be fixed?