Spry Radio Group, sum of values

I have done this in actionScript, but am wondering if it is
possible using Spry radio groups.
I have an html page with 3 radio groups. Each unique radio
group has 3 available selections, each with respective numeric
values. I would like to be able to make a selection of any of the
radio group options, and cause a calculable field to display the
sum of the 3 radio group values.
To see the exact example of this, and how it looks in Flash,
go here:
Sample
of what I want, but in Flash
For my current purposes, I could just as easily use the
existing calculator that I've already created in Flash. But I want
to learn more about the Spry features in CS3, and this seems like a
good launching point.
If you can recommend a tutorial, that would be best.
Thank you!
r

Sbisa wrote:
> I have done this in actionScript, but am wondering if it
is possible using Spry
> radio groups.
>
> I have an html page with 3 radio groups. Each unique
radio group has 3
> available selections, each with respective numeric
values. I would like to be
> able to make a selection of any of the radio group
options, and cause a
> calculable field to display the sum of the 3 radio group
values.
>
> To see the exact example of this, and how it looks in
Flash, go here:
>
http://www.viewablebenefits.com/radnet/flash/calc.html
>
> For my current purposes, I could just as easily use the
existing calculator
> that I've already created in Flash. But I want to learn
more about the Spry
> features in CS3, and this seems like a good launching
point.
>
> If you can recommend a tutorial, that would be best.
>
> Thank you!
>
This can be done easily enough with client side js, no need
for Spry.
Mick

Similar Messages

  • I can't get formMail.php to recognize my simple Spry Radio Group button

    I don't know php at all, but I have a dreamweaver form that sends its information to a document called "formmail.php" and that sends the email to me.
    I was able to add text fields by duplicating the text field code in the formmail.php file and it does work, BUT i don't know what code should be on the file to process the radio button information. The radio button group is made up of 2 buttons "Yes" and "No"
    This is a abbreviated version of "formmail.php"
    <body>
    <?php
      $name=addslashes($_POST['name']);
      $address=addslashes($_POST['address']);
      $email=addslashes($_POST['email']);
      $radioGroup1=addslashes($_POST['arrangements']);
      $comments=addslashes($_POST['message']);
    // you can specify which email you want your contact form to be emailed to here
      $toemail = "[email protected]";
      $subject = "From the VFS website";
      $headers = "MIME-Version: 1.0\n"
                ."From: \"".$name."\" <".$email.">\n"
                ."Content-type: text/html; charset=iso-8859-1\n";
      $body = "Name: ".$name."<br>\n"
                ."Address: ".$address."<br>\n"
    ."Email: ".$email."<br>\n"
    ."Have you made pre-arrangements?: ".$radioGroup1."<br>\n"
                ."Comments:<br>\n"
                .$comments;
      if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))
        echo "That is not a valid email address.  Please return to the"
               ." previous page and try again.";
        exit;
        mail($toemail, $subject, $body, $headers);
        echo "Thanks for submitting your comments";
    ?>
    </body>
    </html>
    And this is what the code for my Spry Radio Group button is looking like.
    <p id="arrangements"><span id="spryradio1">
                                          <label>
                                            <input type="radio" name="RadioGroup1" value="Yes" id="RadioGroup1_0">
                                            Yes  </label>
                                          <label>
                                            <input type="radio" name="RadioGroup1" value="No" id="RadioGroup1_1">
                                            No</label>
                                            <br>
                                          <br>
    </span></p>
    Please help - I'm lost!

    The post form method gets a variable, by name and sends that value to your processor.  You have called $_POST['attachments'] which is the name of the container <p> tag and not of the radio group.  So change:
    $radioGroup1=addslashes($_POST['arrangements']);
    to
    $radioGroup1=addslashes($_POST['RadioGroup1']);
    That changes the <p> arrangements to the RadioGroup1 which is the name you gave the radio group.

  • Can a Spry Radio Group be laid out horizontally? (CS6)

    I have been searching all over and I cannot figure out how to get a spry radio group to lay out horizontally on my page.
    I am trying to create a survey with 9 radio buttons and the page will go on forever and just not look right with 9 inline options for each question.
    I want it to look like below.
    Can anybody assist?
    Thank you,
    Kimberly

    If you look at your code starting on line 123, you have references to several files inside a SpryAssets folder. Manually upload your SpryAssets folder from your Files Panel (F8).
    <link href="/www/SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <link href="/www/SpryAssets/SpryValidationRadio.css" rel="stylesheet" type="text/css" />
    <script src="/www/SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="/www/SpryAssets/SpryValidationRadio.js" type="text/javascript"></script>
    Nancy O.

  • Read-only radio group losing value on validation error

    It took quite a while to track this down, but I think I've got it narrowed down properly. I have an APEX form for updating a record in a databse table with a radio group which is conditionally read-only. If that radio group has a value AND is read-only, when the form is submitted and hits a validation error, the value of the radio group is lost.
    For example, the radio group SUBMITTED_FOR_APPROVAL is set to Y and is read-only for a given user. That user then changes something else on the form and submits it. However, the form now hits a validation error for some field. When the form reloads with the validation error displayed, all the fields are restored except the read-only radio group which is now blank. If a select list is used with the identical read-only condition, it works fine. Likewise, if a radio group is used, but the read-only condition is removed, it works fine. It is only when it is a radio group and it is read-only, that the value does not appear to be submitted to the session with all the form values whent he form is submitted.
    Is this a bug or am I simply missing something?
    Apex 3.1.2
    Rgds/Mark M.

    It's using a shared component LOV cleverly called LOV_YN which consists of a static LOV with
    1 Display=Yes, Return=Y
    2 Display=No, Return=N
    The settings in the LOV section on the item iteself:
    Named LOV: LOV_YN
    Display Extra values: No Dynamic translation: Not translated
    Number of columns: 2 Display null: No
    Null display value is blank as is null return value
    Item was setup as a radio group and was only converted over to a select list to work around this issue. Let me know what else you need and thanks again.
    Rgds/Mark M.

  • Setting value of items based on a radio group selection

    Hi,
    I have a radio group with 3 values (let's say A, B, C)... at the moment I have dynamic actions set to hide and unhide items based on the selection from the radio group...
    e.g when value A is selected then only item_1 and item_2 are displayed, when value B is selected then only item_3 and item_4 are displayed... and so on...
    idea was to let users to only enter information related to specific selection... but with what I currently have, users can select option A from the radio group and can enter information in item_1 and item_2 and then they can change there minds and select option B and start entering information in item_3 and item_4 and when they save the form they potentially could have information in all items (item_1 to item_4 and so on)...
    Is there a way I can set the value of certain items to null based on the selection from the radio group... e.g when user select option A, then values of item_3 and item_4 be set to null and if they select option B, then values of item_1 and item2 be set to null...
    Please advice how to approach it the best... I would appreciate a step by step solution as I am a new bee...
    Thanks in advance

    Hi,
    You can hide and disable other items.
    Disabled items values are not submitted.
    And you can create after submit computation that set NULL to item session state according your radio group state
    Regards,
    Jari

  • Getting value of radio group in a report

    i have multiple radio gropus(one group for each row) in my report. Each row can be identified either by my rownm or id. I am looping through my report rows once the page is submitted to get the values of each radio group but I am not able to make it work...here is my code. Any suggestions?
    DECLARE
    v_res number;
    BEGIN
    FOR i IN (SELECT q_id FROM svy_q)
    LOOP
    EXECUTE IMMEDIATE
    'begin select APEX_APPLICATION.G_F ' ||i.q_id|| ' (1) into '||v_res||' from dual; end;';
    INSERT INTO SVY_R (R_ID,
    Q_ID,
    RESPONSE)
    VALUES (1,
    i.q_id,
    v_res);
    END LOOP;
    COMMIT;
    END;

    Sorry, got my solution. There were unintended spaces in my SQL.

  • How to set the intial Value for a single radiobutton in a Radio Group

    Hi All,
    I have a radiogroup with 3 buttons. The Names of the RadioGroup are driven from a XXVO.
    3 Radion Buttons:
    * X
    * XX
    * XXX
    When the Page loads i want to make one Radio button XXX to be the default , please suggest how do i do it.
    Note : The radiobutton values are coming from VO
    Thanks

    Hi ,
    As AJ said create 3 radio buttons in ur page and assign to one radio group,,
    OAMessageRadioButtonBean appleButton3 =
    (OAMessageRadioButtonBean)webBean.findChildRecursive("GroupButtonOne21");
    appleButton3.setName("serviceAgreementGroup");
    appleButton3.setValue("RW");
    OAMessageRadioButtonBean orangeButton3 =
    (OAMessageRadioButtonBean)webBean.findChildRecursive("GroupButtonTwo21");
    orangeButton3.setName("serviceAgreementGroup");
    orangeButton3.setValue("NW");
    ---For radio button u can check in page it self.
    Regards
    Meher Irk
    Edited by: Meher Irk on Nov 23, 2010 2:47 PM

  • Set Radio Group Default Value Based on a Select List Change Event

    Apex 4.2
    I have a radio group that is source is below. It returns 3 radio group item All,Miv,Courier
    SELECT type d, code r FROM vw_lov_depot
      WHERE svc_name = :P320_DEPOT
      ORDER BY 1
    The radio group is only populated when :P320_DEPOT gets a value, this is a select list.
    I am trying to set the radio group to  default to this value Miv it would use the statement
    SELECT type d, code r FROM vw_lov_depot
      WHERE svc_name = :P320_DEPOT
      and type ='Miv'
      ORDER BY 1
    I have tried creating a dynamic action on Select list change to populate the default value of the radio group...no joy I also tried a computation. how can I set this default value on when list changed.
    Thanks
    I have got the default Radio Group Selection working by doing a computation before region on the radio group and calling its select statement and setting the value. But the problem is now I cannot change the radtio group as I do it fire the before region trigger and sets it back to the default value....any help?

    Hi,
    Could you please create example to apex.oracle.com?
    Regards,
    Jari

  • How to pass HTML radio group value to an SQL query

    I need to display a radio group in Printer Friendly Mode so that when the value in the radio group changes the page is submitted and the report is updated to the new value.
    I can't use a standard APEX radio group item as it renders in disabled mode when the page is in printer friendly mode.
    I have therefore used a standard HTML radio group in a HTML region as follows:
    <div id="radio_bank" align="left" class="NonPrintable">
    <input type="radio" name="bank" value="Trial Bank"> Trial Bank
    <input type="radio" name="bank" value="Tissue Bank" checked> Tissue Bank
    <input type="radio" name="bank" value="Temporary Bank"> Temporary Bank
    <input type="radio" name="bank" value="All"> All
    </div>
    I have set up a dynamic action to submit the page on change event. This works but it navigates me to a "Page cannot be found " error page. I have an unconditional branch defined on the current page but this is ignored.
    Questions
    1) can a standard APEX radio group appear in Printer friendly mode? - This would solve my problem.
    2) how to submit the page using the above scenario to render the current page (dynamic action)
    3) how to capture the selected value of the radio group and pass it to SQL where clause
    thanks in advance
    PaulP

     

  • Dynamic action on "Change" of Radio group value

    Hi,
    I'm using Apex 4.1 on XE 11G.
    If I create a simple dynamic action which shows/hides a field on the change of an item of type select list this works great.
    So for example if the value of the select list is 1 then show another field and otherwise hide this other field.
    If I change the type of the first field ( the select list ) to a radio group the dynamic action stops working. It looks like the value of the radio group does not get changed when I click another value in the radio group.
    I'm somehow able to bypass this by using a dynamic action which fires when the radio group is clicked and then evaluatie it's value via JS, but that's not really the ideal solution.
    Is there some basic difference in radio groups and select lists when it comes to storing values and/or dynamic actions which are based on the change event on that item ?
    Regards
    Bas
    Edited by: Bas de Klerk on 31-mei-2012 6:42

    Take a look at the Radio group item in HTML DOM using FF/Firebug or IE/DevTools, and you will see the difference.
    If you have neither of the 2 debug tools , time you get one.
    Regards,

  • How to set radio group default value

    Hi,
    I have a radio group in a portal form. How do I set one of them as checked when the form comes up?
    Thanks;
    Kelly.

    It might be possible with javascript. since a radio group is an array, you should loop
    through the index to set the correct
    checked value.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by [email protected]:
    Kelly,
    I tried that already, and it still didn't work. Any idea? I am using portal version 3.0.6.
    Thanks;
    Kelly.
    <HR></BLOCKQUOTE>
    null

  • Pick up  a value from LOV radio group in form

    Hi friends,
    I created a lLOV (list of value ) and map as radio group for a categroy column in product form.
    When I used below code to pick user selected value from radio group in form, I get an error. Error: (WWV-00000)
    p_radioreturn := p_session.get_value_as_VARCHAR2(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'category', --- this is a produce category
    p_index => 1);
    But other code works well for texttbox in form.
    If After remove this code. and assign value p_radioreturn :='assignvalue';
    works
    Some wrong for this code?
    Thanks
    Newweber

    try with:
    p_attribute_name => 'A_CATEGORY'
    -shar

  • Set default radio group value

    Hi,
    I want to clarify the following:
    Is it true that if I assign a radio group to a base table field then I can assign a default value to it?
    If it is not a non-base table field, I can still assign a radio group to it, but I cannot set a default value for the radio group?
    The portal version that I am using is 3.0.9
    on Solaris.
    Thanks;
    Kelly.

    Hi,
    In order to ensure that the "ALL" option is selected, you have to do a few things:
    1 - On your radiogroup's definition, set the following:
    Display Null: No
    Null display value: (leave blank)
    Null return value: (leave blank)
    2 - then, update the List of values definition setting to include a NULL value. Something like:
    SELECT ' ALL ' d, -1 r FROM DUAL
    UNION ALL
    SELECT DNAME d, DEPTNO r FROM DEPT ORDER BY 1(this way, ALL becomes part of the data). Note that, in this example, I have used -1 as the "null return value" - this is because I am using a number field here (DEPTNO). Change this to a string if you are using a VARCHAR2 field.
    3 - Create a new Page Computation. This should run Before Header on the radiogroup item. The computation would be a Static Assignment of the "null return value" you set above - in my example, this is -1 The computation should be conditional on the value of the radiogroup item being null. This, I have found, is the best way to ensure that you get a default value before the page is loaded.
    I have done all this on: [http://apex.oracle.com/pls/otn/f?p=33642:216]. My report's SQL query is then:
    SELECT EMPNO, ENAME, DEPTNO
    FROM EMP
    WHERE :P216_DEPTNO = -1 OR DEPTNO = :P216_DEPTNOAndy

  • Issues with the Radio Group and interactive report

    Hi,
    I have an interactive report that shows customer names and associated revenues... I want my users to be able to filter customer list by Province and by City in a way that when the user select a province then only associated cities show up (driven by a table)... for the filtration I am using 2 Radio Group items (one for Provinces and the other one for Cities)
    Everything is working fine, except for the fact that when I select a province (let's say Prov A) and then select a city (let's say City A1) and again when I select another Province (let's say Prov B) I get the list of all cities associated to Prov B + city A1... Not sure why my previous selection of City is showing up with the list of new cities when I change the province... I SHOULD BE ABLE TO REST ALL CITIES WHEN A NEW PROVINCE IS SELECTED
    here is the code
    For interactive report
    select     CUSTOMER_NAME,
         SUM(YTD) AS YTD
    from     T_TABLEA
    where
    (PROVINCE=
    CASE
    when :P2_PROV = 'All' THEN PROVINCE
    ELSE :P2_PROV
    END
    and
    (CITY=
    CASE
    when :P2_CITY = 'All' THEN CITY
    ELSE :P2_CITY
    END
    GROUP BY CUSTOMER_NAME
    For Province Radio Group I am using a static list:
    STATIC2:All;All,Alberta;AB,Ontario;ON,Quebec;PQ,British Columbia;BC
    For City, I am using a dynamic list using following code:
    select 'All', 'All' return from dual
    union
    select distinct INITCAP(CITY) display_value, CITY return_value
    from T_TABLEA
    where
    Province = :P2_PROV
    order by 1
    Thanks

    Check the session state of items P2_PROV and *:P2_CITY* when the issue occurs and run the LOV query separately with the session state values.
    If that too fetches it wrongly, then you would need to change your query.

  • Read Only Display of Radio group and Text area with counter not working

    Hello,
    I am using Apex 3.2, with 10g for the database
    I have this form, with fields that will set to read only when status = 'closed'
    All of the fields display as read only except for 2. I cannot figure out why this is not working correctly.
    1st field is Issues that is a text area with character counter, with a sql query behind it, that is set to null unless the query is pulling in the data.
    2nd field is Status which is a radio group that will not display as read only when status = 'closed'
    I have other fields on the form with the same format and they change to read only when the status = 'closed', I have even copied the pl/sql expression from one field to these fields and it still doesn't work correctly. I have also tried javascript for an on load event, which works, but once I click on the save button, it disables all of the page items, which works correctly, but I purposely forget to enter information, to make sure the validations are firing correctly, which it does, but the script disables everything, not allowing me to correct the errors. The javascript is firing on the on page load event.
    Any help on this is greatly appreciated.
    Mary

    Dung,
    That API seems to have a bug, it returns true/false/null, so you could use 'return not nvl(htmldb_util.current_user_in_group(p_group_name => 'APP Admin'),false)' to get a false value.
    Unfortunately there's another problem: using the read-only attributes for checkbox or radiogroup item makes them hidden. My suggestion would be to create another item that has disabled="disabled" in the HTML Form Element attribute in the item definition and display that item or the non-disabled item alternately, using conditions based on the current_user_in_group logic.
    Scott

Maybe you are looking for

  • Help needed in Workflow Email Notification

    Hi, I am new to workflow. I am creating a notification process in Oracle Apps 11i to send an email notification to users who registered for some training. Now how can I send an email notification to each user as the list of users can be huge i.e. > 2

  • Migration Assistant with External Hard Drive

    Can the Migration Assistant be used with an external hard drive which has a complete install of OS X on it? I am finally upgrading my old iMac for a new iMac. I plan on harvesting the old iMac's 60 GB drive and put it in an external enclosure for add

  • Running form 6i in IE 5.5

    I am attempting to call a Form written in Forms 6.0.8.8.0 (with supplied Forms Server and webDB) from Internet explorer 5.5 using the html file supplied in appendix A: of the document "Oracle Forms Server, Client Platform Support, Microsoft Internet

  • How to display PDF BLOB file within Forms

    Hi All: I just want to know if is it possible to display PDF blob file within the forms. Currently I use webutil to open pdf in browser. This time I need to display it in forms, so that upon scrolling, the user can view the pdf images of that particu

  • Condition Types in Price Determination Process

    Hi Can any one explain me about in Detail about the VARIOUS TABS that  work in the CONDITION TYPE  of PRICE DETERMINATION PROCESS Thanks & Regards, Senmani.