Check radio button to execute when_validate_item trigger

hi,
I need when I check radio button1 to execute when validateitem trigger1
when I check radio button2 to execute when validateitem trigger2 and so on
on which level can I out my code, block or item
I really appreciate your help

Hello,
First of all radio buttons can not bet checked. Radio buttons can be selected only.
I need if the first radiobutton is checked to execute this trigger, and if not execute another triggerSo, as andreas said its fine enough to accomplish your requirement.
Suppose you created two radio buttons in radio group. And you set the value 1 and 2 accordingly. Now create one trigger called WHEN-RADIO-BUTTON-CHANGED on item level radio group and use the code like this...
IF :radio_button=1 THEN
  -- Here paste your when validate item trigger's code...
ELSE
  -- Here paste your another trigger's code...
END IF;
And remove that triggers which you created.
-Ammad

Similar Messages

  • Radio buttons with validate item trigger

    hi,
    how can execute this trigger
    I am completely new in oracle
    would it be like this?
    using trigger when_radio_changed
    >
    declare
    quantityA number;
    begin
    IF :radio_button1=1 THEN
    SELECT quantity_on_hand
    into quantityA
    FROM INVENTORIES
    WHERE Product_ID = :Product_ID;
    IF :quantity > QuantityA THEN
    MESSAGE ('the inventory is not enough');
    raise form_trigger_failure;
    else
    null;
    END IF;
    Exception when no_data_found then
    message('Invalid product ID');
    raise form_trigger_failure;
    end ;
    end if;>
    thank you very much

    Hi,
    if five radio buttons are in a single group , you need to write only one trigger
    when-radio_changed
    syntax
    Declare
    v_local_varaible <datatype>;
    Begin
    If :radio_group:=1 then
    elsif radio_group=2 then
    elsif  radio_group=3 then
    elsif radio_group=4 then
    elsif radio_group =5 then
    end if;
    end;

  • How to check radio button as default on the basis of database value?

    Hi Friends,
    I have one jsp, in which I am having a field of radio button, which have two boolean values of 0 & 1. I want to check the radio button as default on the basis of database value, kindly help me out.
    Thanks a lot in advance. Please help me out.

    probably, when using struts you should do all your calculations in action class it self
    Eg. in jsp
    <html:radio name="myForm" property="myProperty" value="0">0</html:radio>
    <html:radio name="myForm" property="myProperty" value="1">1</html:radio>
    in Action class
    if (databaseValue == 0)myForm.setMyProperty(0);
    else if (databaseValue == 1)myForm.setMyProperty(1);
    rest will follow
    whatever be the value it will come selected

  • Cannot save checked radio buttons in pdf forms

    I am using form 1023 from the IRS which has a series of "yes" and "no" radio buttons that need to be checked. The problem is that each time I check my responses and save the pdf, it opens with my filled info still intact (i.e. my name, etc...), but none of the boxes are checked.
    Help, please?

    Sylvie617 wrote:
    I am using form 1023 from the IRS which has a series of "yes" and "no" radio buttons that need to be checked. The problem is that each time I check my responses and save the pdf, it opens with my filled info still intact (i.e. my name, etc...), but none of the boxes are checked.
    Welcome to Apple's discussion groups.
    If you're using Apple's Preview application, for this particular PDF file you might try the Adobe Reader application instead:
    http://get.adobe.com/reader/

  • How to check Radio buttons with Differfent button values

    Good Day,
    I am currently trying to write a script that would hide 5 of 6 radio buttons
    I have a radio button called "3. Transfer"
    with values of :
         Yes;
         Supp;
         Reg; and
         do_not_transfer
    as well I have a drop down called "REL.ITEM"
    with values of
              3(A);
              3(B);
              4(A);
              4(B); and
              4(C)
    I know how to get the value of the box and manipulate other fields
    like
    //START
    var transfer = getField("3. Transfer").value
    var relitem = getField("REL.ITEM").value
    if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
         getField("a. recommend").checkThisBox(0,true);
         getField("a. recommend").display = display.visible
        getField("a. I do not recommend").checkThisBox(0,false);
        getField("a. I do not recommend").display = display.hidden
    else if (transfer = "do_not_transfer")
         getField("a. recommend").checkThisBox(0,false);
         getField("a. recommend").display = display.hidden
         getField("a. I do not recommend").checkThisBox(0,ftrue);
         getField("a. I do not recommend").display = display.visible
    //END
    I would like to make it so that if REL.ITEM != 4(A); 4(B); 4(C) that the radio box's with values of "Yes", "Supp" and "Reg" are hidden while "do_not_transfer" is still displayed and checked.
    I've been going through forums, google and acrobat documentation and I can't seem to find what I'm looking for.
    Thanks for your help in advance.

    if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
    This should be:
    if ((transfer == "Yes" || transfer == "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
    Similarly,
    else if (transfer = "do_not_transfer")
    should be:
    else if (transfer == "do_not_transfer")
    In order to work with an individual widgets of a form field, obtain an object that represents the widget using the getField method as specifically demonstrated in example #2 in the documentation: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.476.html

  • 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

  • SetSelectedValue() on Radio Button only executes one time in Design Studio 1.2

    Using Design Studio 1.2 - I've placed an image on our dashboard that acts as refresh button.  When the image is clicked, two radio buttons on the screen should get reset to their default values.  The code only executes properly the first time, and any subsequent try does nothing.  Does anyone know why this might be happening?
    Step 1. Place the image on the screen
    Step 2. Add code to On Click event to change values of two Radio Buttons: RB_ORG_LEVEL and RB_YEAR.
    Step 3. Change values in both Radio Buttons to any value but their default value. 
    Step 4. Click the refresh image the first time, and both values get set back to their default values ("Entire Org" and "Current Year").
    Step 5. Click the refresh image the second time, and even though the code programmatically sets them to their default values ("Entire Org" and "Current Year"), the change doesn't occur. 

    Could you try this again with the latest Design Studio 1.2 SP2 ?  See http://service.sap.com/sap/support/notes/1962767

  • Looping thru instance manager and checking radio button selected

    I need to loop thru my instances and toggle visible/hidden if a particular radio button in each instance is selected.
    My code right now does not work but I feel I am on the right track (minus the else statement it will need to toggle on/off).
    Can anyone help? thanks in advance!
    var rowCount = BugGroup_f.instanceManager.count;
    for (i=0; i<rowCount; i++) {
    var str = xfa.resolveNode("BugGroup_f.detail3.bugInfo.BugItem.status.RadioButtonList[" + i + "]").rawValue;
        if (str.indexOf("Fixed") > -1) {
        xfa.resolveNode("BugGroup_f["+rowCount+"]").presence = "hidden"

    So we've got a set of Rows, each with a subitem called RadioToggle, and you want to go through and set them all, then click a separate button and hide the ones with "on" radio buttons?
    function ToggleRows(reset){
         var Rows = Form.subform....BugGroup_f.all;
         var curRow;
         for (var i=0; i<Rows.length; i++){
              curRow = Rows.item(i);
              if ((curRow.RadioButton.rawValue == "WhatevermeansHidden") && !reset){
                   curRow.presense = "hidden";}
              else{
                   curRow.presense = "visible";}
    ^ in a script object, and put
    scriptObjectName.ToggleRows(reset);
    in the click event of your button, and you should be golden.
    If you do want them to hide the moment you click the toggle, you could put this, right?
    if (xfa.event.newText == "whatevermeansoff"){
         parent....presense = "hidden";}
    The .all method seems like a much easier way to handle collections of objects, and specificaly collections of instances. It also means you can do relative referencing, i.e. to create a function that will operate on all the rows of a table, without knowing which table it is operating on, so a button in each table can pass it's parent table to the function.
    var GroupVariable = Object.all
    for(var i=0; i < GroupVariable.length; i++)
    EDIT:
    add a reset value, and pass it in to your function like above (added).
    make a separate button, or control, that will call the function with reset = 1.

  • How to check radio button on view  layout?

    Hi All,
            How to check on view layout whether a radiobutton is checked or not?
    Thanks & Regards,
    Rahul Rathi

    Use the below in layout, it should work..
    <%
                    DATA: rbg       TYPE REF TO CL_HTMLB_RADIOBUTTONGROUP.
                  rbg ?= CL_HTMLB_MANAGER=>GET_DATA( request = request id = 'radio_id' name = 'radioButtonGroup' ).
    %>
    Here rbg->selection will have the selected radiobutton.
    <i>*Reward each useful answer</i>
    Raja T

  • How to handle Radio buttons on screen.(urgant)

    Dear all,
    my req is : i had a screen , on that there are 3 radio buttons,Based on the radion button selection on that screen i've to trigger the 3 select statements.
    if  Radio button 1
        execute select stmt 1.
    if  Radio button 2
        execute select stmt 2.
    if  Radio button 3
        execute select stmt 3.
    how to write this and where.
    Pls frnds this is urgant for me.
    please help me,
    Thanks in advance,
    With regards,
    Ajay Kumar K,
    9908979994.

    hiii....
    you have to remember that you have to define the radio buttons in 1 group.because if changes are made in the group from the elements list then it would affect on all the radio buttons for a particular tasks.
    again radio buttons are always been declared with the parameter statements.
    for eg..
    Parameters:
    p_rad1 radiobutton group rad1 default 'X' user-command rad1,
    p_rad2 radiobutton group rad1,
    p_rad3 radiobutton group rad1.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
    IF p_rad1 = 'X'.
    select statement 1.
    elseif p_rad2 = 'X'.
    select statement 2.
    elseif p_rad3 = 'X'.
    select statement 3.
    endif.
    The group group over here is RAD1.
    the default radio button over here is in radio button 1. you can also also check any of the radio buttons as default.
    thanks..
    any more help pzz revert back...

  • Radio button getting unchecked when form in query mode

    There are 4 radio buttons on my form.Initially when the form is opened one radio button is checked.But when the form is in query mode that radio button got unchecked.Is there any way that the initial checked radio button remains checked even the form is in query mode ?
    Message was edited by:
    user496853

    Hi,
    Solutions given by Kevin and Zaibiman is not applicable for my form as the radio button will be in data base block only.This is the requirement of the form.
    The other solution given by Zaibiman was to set the radio button item when entered in query mode , i have tried that but that is also not working.
    Pranati,the solution given by you i have also tried that ,but that has not solved the issue,Radio button get unchecked when eneterd in query mode.
    Please elaborate and suggest.
    Thanks,
    Kirti

  • Trying to reset a radio button

    Hi Experts,
      I am trying to modify the Bank application in ESS. In there, I have a drop down and a group of radio buttons by Index. When users select "Check" from the drop down, I would like "Paper Check" button to be selected. When users select "Direct Deposit" from drop down, I would like "Checking" radio button to be selected. I have tried a lot of different ways, but it does not work. Any help will be greatly appreciated.
    Thanks a lot
    Preet

    Thanks for taking time to answer my question. I am using NWDS to modify the code. I was looking for an actual code sample which will reset the radio buttons.
    Thanks
    Preet

  • Radio Button  javascript onclick  show hide textbox

    Currently, if the radio button is clicked then text box is
    shown else if radio button 2 is clicked then textbox is invisible.
    (only one textbox being shown or being hidden)
    I wish to have 2 text boxes
    If radio button 1 is clicked then textbox1 is visible
    If radio button 2 is clicked then textbox2 is visible.
    What changes do I have to do in my code for this to work?
    feel free to test this.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <script type="text/javascript">
    function hide() {
    var div_ref = document.all("id_div");
    div_ref.style.visibility = "hidden";
    function show() {
    var div_ref = document.all("id_div");
    div_ref.style.visibility = "visible";
    </script>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    </head>
    <body>
    <tr>
    <td>
    Select Device Type <BR>
    </td>
    <td style="width:200">
    <input type="Radio" name="DeviceGroup"
    value="Radiobutton1" onclick="show();" checked="checked">Radio
    button 1
    <input type="Radio" name="DeviceGroup"
    value="Radiobutton2" onclick="hide();" unchecked>Radio button 1
    </td>
    <td>
    <div id=id_div style="visibility:hidden;">
    Show Textbox1
    <input type="Text" name="Textbox1">
    </div>
    </td>
    </tr>
    </body>
    </html>
    Thanks

    thanks
    YES
    i will be submitting data to a field in the database.
    First the vlaue of the radio Button
    For example if the first radio button
    then the value of the first radio button value =1
    goes to the field in the database
    also
    the text box that will show. will have data entered in the
    tesx box and the value will be submitted
    to a field.
    thanks
    shall i still use your code????
    thanks
    also, instead of having 2 javascripts controlling the show
    hide, just join them and assume that at each click the div is
    visible.
    the first part of the if statement in the js just makes sure
    the div's display is none. then it displays the one you are
    calling.
    the else allows you to close the divs without having any
    open.
    i'm doing this from home, so i cant really test it, but, it
    looks like it should work.
    Attach Code

  • Radio Button or Check Box Group

    Hi,
    I built a form based on a query. There is a flag column, only one of queried records is allowed to be "Y" in this column. The rests must be null.
    Most ideal thing is to have a radio button group, only one of them can be selected.
    Another way is to have a group of check boxes also allow only one checked. Once another check box is selected, the previously selected box must be unchecked.
    Does anybody have idea of how to do it?
    Thanks,
    null

    You have the save the number of the current ("checked") record in your data block.
    After that you can launch a trigger which will scan every record in your data block (there are enough built-ins like FIRST_RECORD, LAST_RECORD, NEXT_RECORD, Current_record property, etc.)to allow you to do this. The trigger will set the check item property to "unchecked" if it is not the saved "checked" record.
    Joseph
    null

  • If radio button is checked then check box will be selected withoutexecuting

    hi,
    i have one doubt,
    is it possible if i select a radio button i want to check the check box at the same time and vice versa with out executing (f8) .
                       plz provide the solution,
                           thanks, in advance.

    REPORT  ZTEST_CHECK                             .
    parameters: r1 radiobutton group g1 default 'X' user-command ABC,
                r2 radiobutton group g1,
                p_check as checkbox.
    at selection-screen output.
    if r1 = 'X'.
    p_check = 'X'.
    endif.
    if r2 = 'X'.
    p_check = ' '.
    endif.
    Check this code,,
    Regards
    vijay

Maybe you are looking for

  • How do you fix the home button on a iphone 4

    iphone will not cut on. power button and home button are not working, and the phone is not dead

  • Install iTunes 7.1.1

    I tried installing iTunes 7.1.1 (from iTunes 6.something) and everytime it gets stuck in the "registering components" phase. i tried uninstalling and reinstalling, didn't work. if i shut down the installation at this point, i can launch itunes, but i

  • What is program_error in pl/sql

    sir/madam plz answer this program_error when it comes ,why it comes

  • Choice of  keyboard layout buying a refurbished Macbook Air or Pro?

    Do I have a choice of a certain keyboard layout when I buy a refurbished Macbook Air or Pro? I like to buy a Macbook Air or Pro in the Swiss Apple Online Store. There seems to be no information at all which kind of keyboard layout (e.g. US QWERTY or

  • 32 bit integer to byte

    Hi All, i convert 32 bit integers to bytes , and this works fine with a small problem. when i print the bytes i get 0 for 00 and A for 0A and so on, i use the method below to put the "0" , but it isn't the best way to handle with bytes String  tChar;