Radio Button with Submit Ready Only problem

Hello,
My radio button with submit ready only condition doesn't work correctly. When I click the a link on the first page
it brings me to an update page. I have a radio button with submit, that won't open as a read only.
It is being populated by SQL query, with the Null option selected. When I open the page I don't want the user to be able to edit the field unless they delete records associated with the field. Pretty much I want it to be disabled if the user has a record associated with it.
Here are the queries.
Source:
SELECT OPLAN_IMPACTED_I
FROM DFCY
WHERE DFCY_SEQNO = :P12_DFCY_SEQNO
Read only condition:
SQL Exists query
SELECT o.dfcy_seqno
FROM oplan_impactd o, dfcy d
WHERE o.dfcy_seqno = :p12_dfcy_seqno
and :P12_OPLAN_IMPACTED_I = d.OPLAN_IMPACTED_I
and :P12_OPLAN_IMPACTED_I = 'Yes'
So when the page renders it's like you can change oplan, how do I make it read only when the page renders?
Thanks,
Mary

Hi,
If that is the source of the radiogroup, then it should be:
SELECT OPLAN_IMPACTED_I d, OPLAN_IMPACTED_I r
FROM DFCY
WHERE DFCY_SEQNO = :P12_DFCY_SEQNOThis should return two values for each radio button - the displayed text and the returned value. If your radios do not have a returned value, then "Yes" will never be found. You can check this by loading the page and doing a View Source on it - search for RADIO and check what "value" attributes they have.
Andy

Similar Messages

  • How to differentiate between Radio Buttons with the same name?

    My form has two fields, to which I gave the same name ("Radio Button 1.0") in order to achieve mutual exclusivity.
    Now, I would like to use JavaScript to retrieve the value of one the two fields:
    var checkMark = this.getField("Radio Button1.0");
    if (checkMark.value == "Yes") {
    Questions:
    What is the proper way to inspect the value of a Radio Button? I have tried this:
    if (checkMark.value == "No") [...]
    but it doesn't seem to work.
    How can I tell apart 2 radio buttons with the same name?
    TIA,
    -RFH

    When Radio Buttons and Check Boxes are unchecked their value is "Off", so if you have "Yes", "No" buttons you will also encounter an 'Off" value. Now if you want to look at a given button, you will have to use the "isBoxChecked(nWidget)" method.
    nWidget:
    The 0-based index of an individual radiobutton or checkbox widget for this field. The index is determined by the order in which the individual widgets of this field were created (and is unaffected by tab-order).
    Every entry in the Fields panel has a suffix giving this index, for example MyField #0.
    Returns
    true if the specified widget is currently checked, false otherwise.
    Example
    var f = this.getField("ChkBox");
    if(f.isBoxChecked(0))
    app.alert("The Box is Checked");
    else
    app.alert("The Box is not Checked");

  • Radio buttons with dropdowns?

    I'm creating a form for my company's HR department, and I need some radio buttons with dependent dropdowns.
    In other words, I'd like (for example) three radio buttons. No dropdowns appear until one of the buttons is selected, and then the appropriate dropdown appears. Is this possible? Or is there a better way to do this? I don't want the unselected dropdowns to be available.
    I have Pro 9 for Windows and Pro X for Mac. I know virtually nothing about scripting, but I know that it can be done.
    Thanks in advance for any help!
    Theresa

    Do I add this code to the group's action, or to individual radio button actions?
    To each individual radio-button.
    Do I make the dropdowns visible or hidden?
    Their visibility will be determined by the state of the radio-buttons. As default you can set them to be hidden, when no radio button is selected.
    Do I put any code in the dropdown properties, or just in the radio button properties?
    Just in the radio buttons.
    And when you say "embed this code at the doc-level," what does that mean?
    Go to Advanced - Document Processing - Document JavaScripts...
    Create a new script, remove the default text that appears in the window and paste the code I provided instead.

  • Radio Buttons with images

    Hello everyone,
    JDeveloper 11.1.1.7.0
    Is it possible to have radio buttons with images instead of plain text?
    If not, are you interested in having this kind of feature? I am ;-)
    Thx.
    Filip Huysmans

    Hi Flip,
    The user when switching between modes will fire an event to the server. This even needs to be caught in a bean and set a variable's value to either true or false.
    Now you can treat "TRUE" to be in view and "FALSE" to be in edit mode.
    Depending on this images can be changed.
    Ex: your bean will be like
    class catchMode{
    private boolean mode;
    public void changeMode(ActionEvent ae)
    boolean modVal=this.getMode();
    if(modVal) //if mode is true; i.e. view mode
         this.setMode(false);
    else if(!modVal) //in EDIT mode
    this.setMode(true);
    //Generate accessors for mode
    in JSPX:
    <af:image source="#{catchMod.mode eq true ? 'view.png' : 'edit.png'}"
    Also the partialSubmit for the command component will be set to true
    Thanks,
    Pandu

  • Radio button in a Table -Only one row/radio button selection to be possible

    Hi experts,
    I have a requirement from customer to have a radio button inside a table of a WebDynpro ABAP application. For example, a table containing list of mobile numbers.
    The columns has
    Mobile Model, Cost, Company name, and a radio button named choice.
    Only one record and hence one radio button can be chosen at a given time.
    When the user clicks on the radio button choice corresponding to the row of the mobile of his choice, the row should get lead selected .
    When the user chooses a different choice radio button (corresponding to another mobile) the old radio button choice should get deselected, new row and its radio button should be lead selected.
    Can you give me the code how to deselect the remaining radio buttons when a user selects on one Radio button

    Hi Sandeep ,
    Have a look at the events of table UI element and its paramaters , Here's the link.
    [Link|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/2d/390e422dfcde2ce10000000a1550b0/content.htm]
    The event 'Onselect' or 'OnLeadSelect' provides 4 standard paramaters , out of which , OLD_LEAD_SELECTION/OLD_ROW_ELEMENT is one of them.
    So you could use this element and set the attribute value (Which is bound to the radio button) to abap_false.
    Although I am not sure as to which event ight trigger ( ON_LEAD_SELECT / ON_SELECT ).:)
    Thanks,
    Aditya.

  • Radio Group With Submit.

    Apex 3.2
    I have an updateable report based on a collection.
    One of the columns is a radio group and is the only updateable column
    My code for the column is currently
    apex_item.radiogroup(7,seq_id,c008)
    I also have a button that fires an update process.
    Ideally, I would like to get rid of the button and fire the update, after the user has changed the radio group.
    So I changed my code to
    apex_item.radiogroup(
                  7
                , seq_id
                , c008
                , null
                , null
                , null
                , 'doSubmit(''SUBMIT'')'
                , null
                , null
                , null)
    If I click on a different radio group nothing happens.
    If I then click on another one, the update fires, but with the value of the previous radio.
    Do I need to add something else to
    'doSubmit(''SUBMIT'')'
    Thanks
    Gus

    Submitting a page or navigating to another page is not an appropriate action to take on clicking a radio button checkbox:
    Setting or clearing a checkbox changes the checkbox's state with no other side-effects. Violating this guideline by associating additional actions with the change of state frequently confuses users, because they are used to configuring data in entry controls such as text boxes, radio buttons, and check boxes and then invoking an action control such as a push button to initiate the action to process the data.
    Use radio buttons to select items or options before initiating a submit using an appropriate control. Use  buttons and links to submit and navigate to other pages. This enables users to consider their choice and change it before submission.

  • Radio Group with submit is clearing page in IE But not in Firefox

    I have an incompatibility issues in an app which works correctly in Firefox but does not work in Internet Explorer for myself and other users. I have an item (Yes or No) set as a Radiogroup with Submit with the source set as only when current value in session state is null. In Firefox the value is retained, If I select Yes or No, the page does an automatic submit and the value I selected is returned correctly. However in IE, when the auto submit is done the value is set as null. What could be causing this to work correctly in Firefox and not in IE?
    Edited by: Ed S on Sep 24, 2008 2:07 PM
    Edited by: Ed S on Sep 24, 2008 2:08 PM

    I found the problem. The items in question are in a SQL Region generated from the wizard as an SQL report. When I move these items into an HTML region it works correctly. This is an APEX bug. I also noticed Date Picker items within a report region do not work, you are unable to select the date.
    Edited by: Ed S on Sep 24, 2008 4:15 PM

  • Win 7 Pro updates to Internet Explorer 11 every web page has blank frames and radio buttons. Updates show only IE11.

    This entry frame on your page has radio buttons, giving me some editing functions - Bold, Italic, Underline, Insert unordered List, Insert Ordered List, Insert Hyperlink, Remove Hyperlink, Insert HTML, etc... but
    I cannot see them.  Ever since updating Internet Explorer to ver 11, there is no going back to IE8.  Your Tech forum monitors keep rehashing the same links that do not answer this snafu.  Your Monitors suggest that the web sites are not running
    because they are not compatible with the newer versions of Internet Explorer - well, even Microsoft's websites?  When you create a new web interface, why would your coding team make it incompatible with your own company's sites? 
    The Monitors suggest our cards can't handle GPU and we should turn to software rendering.  My card is a GeForce GTX 50 TI and has, according to the manufacturer web site: "Microsoft®  DirectX® 11 Support
    DirectX 11 GPU with  Shader Model 5.0 support designed for ultra high performance in the new API’s  key graphics feature, GPU-accelerated tessellation."
    I have tried uninstalling and reinstalling IE and Microsoft must realize no customer wants to have the technical side string them along with pointless and futile misdirection to a garble of automatic chat responses that offer incomplete and unrelated fixes
    and then expect to gain points in the voting buttons that "this fixed my problem". 
    Microsoft: you are ignoring compatibility problems with your coding and pretending it is arises from hardware incompatibility or user stupidity.  Your code should be running seamlessly, should accommodate existing technologies, and be flexible enough
    to accept limitations of older hardware, older websites, and your monitors should march into Microsoft's development offices and demand answers ---- and fixes.  Has Microsoft gone into hiding when the latest technology show-piece isn't working for the
    rest of the world?  We do not exist in a research bubble.  We are here in the real world, with aging equipment and tight budgets, and we expect better from Microsoft.

    Hi ohernova,
    Sorry for the annoying issue you encountered and our develop team are trying our best to improve the performance of MS products, As I know, IE 11 was published after many technical tests, thus I suspect that it might be an individual case. I used to run
    IE 11 in my win7, and it works perfectly,    
    Here’re some test you may take into consideration:
    Make sure that you’ve installed all latest updates.
    Since your Monitors keeps suggesting that the web sites are not running because it’s a compatibility issue, I suggest you add one site to the compatibility view list for a test, (if you can find the settings in Tools>Compatibility view settings)
    Or click Win+F12, launch the F12 developer tool, click the last option, change the user agent string and document string to “10”, check whether the page can revert to normal.
    Regards
    Yolanda
    TechNet Community Support

  • Add radio button with script

    Hi All
    On my form i have RadioButtonList with one radio button in it. I want to do next, on button click new radio button into the RadioButtonList should appear. I tried something like this:
    var oNode = xfa.form.createNode("radioButton");
    questionary.#subform[0].RadioButtonList.nodes.append(oNode);
    but got an error "argument mismatch".
    Could you help me with this issue?

    Hi Mike,
    Thanks for the quick info.
    There is no text to edit. I have a box with a radio button at the far right side.
    When I right-click on the radio button I get the following options: Cut, Copy, Paste, Delete, Rename Object..., Change Object Type>, Send Backwards, Send To Back, Palettes> and Add to Library...
    When I tried the Radio Button in a document created in LC it workd as you mentioned. It is only when I import a PDF file.
    I figure I probably have something configured incorrectly. I am using PDF 1.7 (Acrobat 8) when distilling.
    I also noticed that some of the items in the Standard libarary are grayed out: Circle, Content Area, Image, Rectangle, Text, and Subform.
    Lee

  • How to display Radio buttons with default selection on

    Hi
    I want to display Radio buttons using jsf
    i have done it using
    <h:dataTable id="apartmentList" value="#{userBean.allApartmentList}"
                   var="apartments">
                   <h:column>
                        <h:selectOneRadio id="selectedApartment" onclick="javascript:setSelectedApartment(this);">
                             <f:selectItem itemValue="#{apartments.apartmentVO.apartmentId}" />
                        </h:selectOneRadio>
                   </h:column>
    inside a data table
    now when i click some page i want to display the radio's with default radio button selected
    also when i select one radio button and click on some command button
    eg:<h:commandButton action="#{userBean.setSelectedApartment}"
    the Radio button's Selection should not disappear
    i have written a javaScript
    function setSelectedApartment(oRadio)
              oForm = oRadio.form;
              elems=oForm.elements;          
              for(iIndex=0;iIndex<elems.length;iIndex++)
                   if(elems[iIndex].type == 'radio')
                        if(elems[iIndex].name != oRadio.name)
                             elems[iIndex].checked=false;
              document.getElementById("apartmentListForm:selectedApartmentId").value=oRadio.value;
    To check which Raio button is Selected
    How do i show the Default Selected button and How the selection should not disappear
    Can any one suggest me links or the solution to this problem
    Thank you
    Geetanjalee

    -set the value binding expression of select items to a request scope bean
    - on the page load event() ,do
    setdefaultval("ur default value")
    so each time on the page load it sets the default value. and you can get selected value by getdefaultval()
    --raju                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Click radio button with Apple Script

    I have something like this going on at the moment:
    tell application "Adobe Reader"
           activate
    end tell
    tell application "System Events"
           tell process "Adobe Reader"
                  click menu "file" of menu bar 1
                  click menu item "Print..." of menu "file" of menu bar 1
                  click radio button "pages" of window "Print"
                  --click button "Printer..." of window "print"
                  --click menu button "PDF" of window "Print"
                  --click menu item "Save as PDF…" of menu 1 of menu button "PDF" of window "Print"
                  --keystroke "D" using {command down, shift down}
                  --keystroke "G" using {command down, shift down}
           end tell
    end tell
    How do I click the radio button "Pages" in the print dialog box under "pages to print" with applescript?
    Thanks

    I ended up using key codes to tab using control down to get to it, which works for me.

  • 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

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

  • Radio button with javascript - - Please HeLP !

    Hi,
    I have the following code
    My question is:-
    Q : Clicking on Submit button. gives a javascript
    message "Please make a selection" even though when I selected a radio button
         I have haspmap which displays possible answers to a question in a radiobutton type. When submit is prssed, I like to check whether a selection is made or not. and if not, I want a message shown. And when selected. I want page to prcede to processSurveyInfo.do
    Please help
    <script language="javascript">
    function checkRBtn()
         var name = document.forms[getNetuiTagName("studentmultpChcform", this)][getNetuiTagName("rbtn", this)].value;
         if ((name==null) || (name=="Undefined")) {
         alert("Please make a selection");}
         else {
         document.forms[getNetuiTagName("studentmultpChcform", this)].method="POST";
         document.forms[getNetuiTagName('studentmultpChcform', this)].action="<netui:rewriteURL URL="/TrainingActivity/Administration/SurveyFile/processSurveyInfo.do" />";
         document.forms[getNetuiTagName("studentmultpChcform", this)].submit(); }
    </script>
    <table align="center">
    <tr>
    <td>
    <netui:button value="Next-->" type="submit" styleClass="commonButtons" onClick="checkRBtn(); return false;" tagId="nq"/> </td>
    <td>
    <netui:button value="Finish" tagId="finbtn" action="fwdfinish"/> </td>
    </tr>
    </table>
    <table align="center">
    <tr>
    <td>
    <netui:button value="Next-->" type="submit" styleClass="commonButtons" onClick="checkRBtn(); return false;" tagId="nq"/> </td>
    <td>
    <netui:button value="Finish" tagId="finbtn" action="fwdfinish"/> </td>
    </tr>
    </table>
    please help me out.
    Thanks
    -Raza-

    You need to write a custom script and it's location will depend upon when you want the script to execute.
    Radio Buttons and Check Boxes have a string value of "Off" when none have been selected and take the value assigned to the field when checked.

  • How to get  current row(Based on Radio button check)  submit button Click

    Hi i hava Query Region Search(Based On Auto Customization Criteria).
    For Showing Results iam Using Table Region.
    Using Radio button How we get the row reference value using Submit button Click.
    Please Help on this .
    Thanks & Regards
    San

    Hi san ,
    Try this
    if ("EventID".equals(pageContext.getParameter(EVENT_PARAM)))
    String rowRef = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    OARow row = (OARow)am.findRowByRef(rowRef);
    VORowImpl lineRow = (YourVORowImpl)findRowByRef(rowRef); // Replace your vo name .
    Please refer this link , Let me know if its not clear .
    Single Selection in table Region in OAF .
    Keerthi

Maybe you are looking for

  • How to make the entry unique

    Hi guys, I have a table of people with the following fields: firstName lastName DOB email address group as you can see, nothing makes an entry unique. so say I would like to get some info about John Smith, I might found more than one entry for John S

  • T520/W520 external display issues

    Hello community, We have issues connecting a external display via Port replicator. In the BIOs it is not possible to select either Digital 1 or 2. During boot up no picture is shown on the external display. This is very annoying because we want to us

  • Maintain Accounting Configuration - Special GL - properties

    Hello Experts, while maintaining Configuration in Special GL, in its properties tab, there's a column "Special G/L transaction types". in this we have 3 Radio Button option : 1. Down payment / Down payment request 2. Bill of exchange / Bill request 3

  • Calcualtion script optimization

    hi, I have the following script which i m trying to optimize: FIX( &ActualsMonths,      @LEVMBRS ("B", 0), B is sparse dimension      @LEVMBRS ("E", 0) E is sparse dimension      @LEVMBRS ("BU", 0) BU is sparse dimension      &ActualsYear)      FIX(

  • How develope ( enhanced the screen )

    Create Standard Order: Header Data                                                                                                          Standard  Order                                                             Purchase order no.             PO1