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.

Similar Messages

  • 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

  • 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

  • Radio Group with no default selection

    Is there a way to have a radio group on a form where none of the radio buttons are selected? I want the user to make an active "required" selection, but not have one displayed by default. The only way that I can think to do this would be to have a non-visible radio button as part of the group and have that non-visible button be the default value. That way the user has to select one.
    Is there a cleaner way to do this that is just escaping me? I gotta think there is.... Please show me that I'm an idiot for not realizing it. :) lol

    First off, sorry for my delay.... I've had other obligations and could not focus on this development effort.
    Andreas,
    It is just a warning..... But forms reports it as an error, but hey... I created the form for you anyway. Shouldn't it say warning? :) I'm thinking more from a production support standpoint once this code goes live. Somebody supporting production support 2 years from now with me not being around may not understand why they're getting an "error" now.
    Magoo,
    I actually will programatically force the user to make a choice on the radio buttons. But I want them to make an "active" choice. I don't want one selected by default.
    Ok... so I think my questions are answered... all that remains is whether or not I can suppress that ugly error. And it sounds like I can't..... Thank you so much for your help gang!

  • Radio group with URL for image in a table

    I'm trying to display some text and an image for a radio group so the form looks like
    (*) text for item 1 {image for item 1}
    ( ) text for item 2 {image for item 2}
    ( ) text for item 3 {image for item 3}
    I've found these:
    Re: Is it possible to display an image instead of button in a radio group?
    How to show image in radio group ?
    It looks like all I have to do is create a LOV that looks like:
    SELECT {complex stuff that generates the text string, img tag, and URL for image}
      ,DB_PK
    FROM dynamic_view_for_lov -- public synonym
    But, my images are stored in a table.
    I have been able to create an IR using the "Column Format=BLOB" method.
    The SQL for the report looks like:
    select
      db_pk, display_text, image_len, image_clob
    from dynamic_view_for_lov -- public synonym
    And the Number/Date Format for the IMAGE_LEN column is:
    IMAGE:DYNAMIC_VIEW_FOR_LOV:IMAGE_BLOB:DB_PK::::::Inline:Download
    My question:  How do I create the URL for the img tag for the LOV?
    many thanks
    MK

    MikeKutz wrote:
    I think Homer Simpson said it best:  Doh!
    For the person in the future, you have to 'fake create' the Automated Row Fetch process.
    The get_blob_file_src gets all the information from that Process and the column name of the Item Type that is on the same page.
    I forgot where I read about that trick.
    Basically, you create the Automated Row Fetch process, then 'disable' it.
    Same thing with the required Item Type.  Create it as a "File Type", just to tell APEX that it comes from a Database Column,.... then change it to a 'hidden' type.
    You don't have to "fake' it if the application already contains the file upload item and ARF. The assumption is that the application will contain these components in order to maintain the BLOBs and you'll just reference the functional ones.

  • Creating Dynamic Radio Groups with HTMLDB_ITEM

    Hi,
    I'm using HTMLDB (1.5.1.00.12) and attempting to create a Dynamic Radiogroup using the HTMLDB_ITEM package in a PL/SQL region. (It's not known until runtime whether a radiogroup should appear on the page.) I normally call to HTMLDB_ITEM and htp.p the results to the screen.
    If I was creating this radiogroup using a normal Page Item: Active/Inactive. I usually define a list of values as: STATIC:Active;A,Inactive;I
    How can I do this with HTMLDB_ITEM package, and get both radiobuttons to appear on the same line next to each other? Unfortunately this function doesn't have a p_query I can pass values to. I'm sure I'm overlooking something obvious so I'm hoping some fresh perspective on this will help.
    Thanks in advance!

    Hi Patrick,
    Thank you for your reply I have done this as follows.
    function getTermdetailsQuerySuccsess(sender, args) {
      var listEnumerator = Termsitems.getEnumerator();
      // var datatable = document.getElementById("TermList");
      var i =0;
      while (listEnumerator.moveNext()) {
       i=i+1;
       var Question = listEnumerator.get_current().get_item('Title');
       var QuestionNumbers = listEnumerator.get_current().get_item('questionnumber');
       if (QuestionNumbers == 1) {
       $("#questiontable1 tbody").append("<tr>");
       $("#questiontable1 tbody").append("<td align='left'>"+ Question +" </td>");
       $("#questiontable1 tbody").append("<td align='Center'><input type='radio' name='question1Radio"+i+"' id='Question1Radio"+i+"'></td>");
       $("#questiontable1 tbody").append("<td align='Center'><input type='radio' name='question1Radio"+i+"' id='Question1Radio"+i+"'></td>");
       $("#questiontable1 tbody").append("<td align='Center'><input type='radio' name='question1Radio"+i+"' id='Question1Radio"+i+"'></td>");
       $("#questiontable1 tbody").append("<td align='Center'><input type='radio' name='question1Radio"+i+"' id='Question1Radio"+i+"'></td>");
       $("#questiontable1 tbody").append("<td align='Center'><input type='radio' name='question1Radio"+i+"' id='Question1Radio"+i+"'></td>");
       $("#questiontable1 tbody").append("<td align='Center'><input type='radio' name='question1Radio"+i+"' id='Question1Radio"+i+"'></td>");
       $("#questiontable1 tbody").append("<td align='Center'><input type='text' name='question1Text"+i+"' id='Question1Text"+i+"'></td>");
       $("#questiontable1 tbody").append("</tr>");
    d.n weerasinghe

  • Impossible to change the Fontsize for a Radiogroup(with Submit).

    Impossible to change the Fontsize for a Radiogroup(with Submit).
    I have a Menue displayed from a Query like (select menue_title, id from lov_tabel)
    and displayed in a Report Region as a Radio group with Submit.
    The problem is, i've not been able to change the font size.
    What i' have tried.
    - Change the color works if i change "+Page Item"-> Element -> HTML Table Celle Attributes+ to
    style="font-size:1.2em; color:#CC00CC" I see the new color but NO change in font-size.
    - If change in Application-> Shared Components-> Templates
    copy the Template "Reports Region" to "MenueReport",
    then change on "MenueReport"->Template
    value to      <table class="t6ReportsRegion" id="#REGION_STATIC_ID#" #REGION_ATTRIBUTES# summary=""
         *style="font-size:1.2em; color:#CC00CC; font-family:Verdana"*>
         <tr><td class="t6Header">#TITLE#</td></tr>
         <tr><td class="t6ButtonHolder">#CLOSE#   #PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##CREATE2##EXPAND##COPY##HELP#</td></tr>
         <tr><td class="t6Body">#BODY#</td></tr>
         </table>     option style="font-size:1.2em; color:#CC00CC; font-family:Verdana" inserted
         and then change in the template for the report region the Option
         Edit Region->User Interface -> Template to "MenueReport".
         I see a new color but NO font-size will be changed!
    - I have changed the query to     SELECT  ' <font size="4">' || rt_name as x, rt_nr  FROM report_types order by rt_nr     But there is NO change of font size, and the Tag <font size= .. is deprecated.
    Used Version is Apex apex_030200 with Firefox 3.5.5 Windows.
    After all this failed attempts, i have no idea how to change the font for page to a larger size.
    Can anyone help me and explain how to change the font size in Apex for a Radiogroupe?
    Thanks in advanced
    Dieter

    Assign a [static region ID|http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/ui.htm#sthref1438] to the region containing the radiogroup.
    Place the following code in the HTML Header page property, replacing static-region-id with the ID given to the region:
    <style type="text/css">
    #static-region-id label {
      font-size:1.2em;
    </style>after that how do we need to call this css
    and does it need to be called within the Region HTML table cell attributes of a region or in the HTML Form Element Attributes of the radio group items
    >
    CSS isn't "called". Learn how [themes, templates|http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/themes.htm#CJABAEIE] and CSS are used to control the appearance of APEX applications.

  • Help with Radio Group and Web Service

    Hi,
         I created a Radio Group with Dynamic Entry List (Web Service).  It seems my list keeps coming back empty.  I am on SP10. 
         When I deploy I get warnings that "Entry List is missing output fields mapping.  I think this is a warning only because I don't have my form connected to any other components.  I just want to see the radio group populated. I don't think this is the cause. 
    I see references out there to this "Dynamic List" not working until SP12?  Can anyone add some insight to what is wrong?  unsupported until later?
    Thanks!

    I created a new model and the new model works fine.  Something must be cached.

  • 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

  • Radio group and textarea selection

    I have a form with a question like: "How did you hear about us?" and a radio group with some choices. One of the radio group choices is "Other - please describe!". When selected, a text area changes from "read-only" and the user can write something. I am not able to update a record with user's selection in one table field (I can save either radio group selection or text area). Any help? Thank you!

    Unfortunately it is not on Internet. But part of the code is this:
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE sarcini SET solutie_6=%s, introd_6=%s WHERE id_question=%s",
                           GetSQLValueString($_POST['Proposal_text'], "text"),
                           GetSQLValueString($_POST['Full_name'], "text"),
                           GetSQLValueString($_POST['id_question'], "int"));
      mysql_select_db($database_dbconfig, $dbconfig);
      $Result1 = mysql_query($updateSQL, $dbconfig) or die(mysql_error());
      $updateGoTo = "Search_answer.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    And than:
    <INPUT name="Proposal" type="radio" id="Proposal_0" value="No answer." checked="CHECKED">
                    No answer.
                    </label>
                </div>
                  <p align="left">
                      <label>
                    <INPUT name="Proposal" type="radio" id="Proposal_2" value="E-mail answer.">
                    E-mail proposal</label>
            </p>
                <p align="left">
                  <label>
                    <INPUT name="Proposal" type="radio" id="Proposal_1" value="I have this answer:">
                    I have this answer:</label>
                </p>
                <p>
                  <label for="Proposal_text"></label>
                  <textarea name="Proposal_text" id="Proposal_text" cols="50" rows="6"></textarea>
    I would like to update with: "No answer." , "E-mail answer." or, if  id="Proposal_1" is checked, with the values entered by user in textarea "Proposal_text".

  • Radio Group in Master Detail Form

    Hi There,
    I want to create a radio group with 2 options (Yes, No) for a detail-record within a master-detail form and I would like to save the selected option in a table-column, which is of Varchar2 and has the length of 1 (Y,N).
    How can I do that.
    I do not have a clue where to start from.
    In the guides I just could find ways of how to display information through a sql query in a radio-group and just in master-records.
    Thank you!!

    Unfortunately it doesn't appear that you can use a radiogroup display for tabular form column definitions. You can however use a select list.
    This makes sense because radiogroups could possibly consume far too much page real estate if the LOV was a long list, whereas a select list would always consume the same space no matter how many entries were in the LOV.
    If you want to pursue this just make sure that you have a column defined in your detail table with the correct datatype, as you described. Then when you create the detail form view you can modify the report column to display as a select list by going to the Report Attributes tab of the region definition, select the individual column you want to change and in the Tabular Form section of the Column Attrributes set the Display As to a Select List along with the appropriate LOV type, go to the LOV for the column further down the page and select or define the LOV. Click Apply Changes and your on your way.
    Earl

  • Theme 50 - jQuery Mobile Radio Group Required Label Template Possible Bug

    Hi,
    Application Express 4.2.3.00.08
    Theme 50 - jQuery Mobile Smartphone
    Page item of type "Radio Group" with label template of "Required" does not render with the required field indicator image. This happens for both horizontal and vertical display orientation settings.
    Thanks!
    JMcG

    Dear Pallavi,
    Very useful post!
    I am looking for similar accelerators for
    Software Inventory Accelerator
    Hardware Inventory Accelerator
    Interfaces Inventory
    Customization Assessment Accelerator
    Sizing Tool
    Which helps us to come up with the relevant Bill of Matetials for every area mentioned above, and the ones which I dont know...
    Request help on such accelerators... Any clues?
    Any reply, help is highly appreciated.
    Regards
    Manish Madhav

  • Radio Button group with images stored as BLOB files in database

    Hey all!
    I have radio button group, my idea is that radio button's LOV must display images, I mean BLOB files stored in a table.
    How can I do this?

    Hello Ken,
    I asked similar question in the past, and I believe the answer is still the same.
    Select List as an option of a Radio Group
    In your case, I think you can use a select list with added functionality, like "Select List with Branch to Page" or "Select list with Submit", or you can just attach an onChange event (JavaScript) to each select list. The effect should be similar to a radio group – as soon as the user select one item from any of the select lists, you can fire some action, based on the select list value.
    Hope this can help,
    Arie.

  • 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

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

Maybe you are looking for

  • Can anyone tell me how to put your backup discs on i tunes

    i have back up discs with songs on it and i cant seem to put them back on my i tunes. can anyone help me

  • Exclude values in infopackage

    Hi Firends I have an infopackage and the following data slections. company code profit center now i want to exclude few profit center values at the time of loading. can any one explain how we are going to do this. Regards Sundaresan

  • PI7.1 upgrade Question

    Hi Gurus We are moving IR and ID objects from PI7.0 to PI7.1 both are on different SLDs. While moving ID scenarios to PI7.1, is there a way where Business Systems are automatically converted to target required Business systems in PI7.1.. Just as happ

  • Assigning Renamed Component to Existing Application

    We had a WDC which we renamed. It has now lost it's association with the application. How do we assign it to the original application? Is there any way to view the application? In SICF we can view the node for the app but see no connection to the com

  • IPS Load monitoring using SNMP

    Since CPU is always 100% now in v6.x/v7.x - is anyway to monitor the system load (reported in IDM/IME) using SNMP? What counter can be a good indicator for system upgrade that can be monitored using SNMP?