Working with radio groups in tabular forms

Since this isn't documented properly in the help, I figured I'd drop the question here. I have a field in my table that I want populated based on a radio button. I can set up the radio button, but I cannot get it to display based on the value. this is the decode statement I am trying to use
decode(da.isdefault,
NULL,htmldb_item.RADIOGROUP(1,da.isdefault,'NULL','Open') ||
htmldb_item.RADIOGROUP(2,da.isdefault,'0','Preferred') ||
htmldb_item.RADIOGROUP(3,da.isdefault,'1','Default'),
1,htmldb_item.RADIOGROUP(1,da.isdefault,'NULL','Open') ||
htmldb_item.RADIOGROUP(2,da.isdefault,'0','Preferred') ||
htmldb_item.RADIOGROUP(3,da.isdefault,'1','Default'),
0,htmldb_item.RADIOGROUP(1,da.isdefault,'NULL','Open') ||
htmldb_item.RADIOGROUP(2,da.isdefault,'0','Preferred') ||
htmldb_item.RADIOGROUP(3,da.isdefault,'1','Default')) "Status"
If NULL, I want "Open" selected, if 1 I want "Default" selected, and if 0 I want "Preferred" selected. Any suggestions on how to get this working properly?
Thanks,
Scott

Anyone have a suggestion for this? My boss wants this set up ASAP. I set all the indexes to the same. My values are all coming up as NULL. Any help would be greatly appreciated.
Thanks,
Scott

Similar Messages

  • Dynamic action on radio group in tabular form

    Hi,
    I'm very new to APEX and I've tried searching the web, but I can't seem to find a good answer for my problem. I have a page in APEX with a tabular form with 6 columns. The last column is supposed to show/hide a button for each row based on the value of a radio group (static LOV) with 2 options in column 5. I want to do this with a dynamic action on the radio group, but I'm having trouble figuring out how to do this. Since the radio group is in a tabular form it's not an item and so I can't just select it in the dynamic action wizard. I figure I have to use a JQuery selector here, but my knowledge of this is very limited.
    I've created the button in the select statement for the tabular form like this:
    select
    "ROWID",
    "DATA_COLLECTION_ID",
    "ID",
    "VARIABLE_NO",
    "VARIABLE_NAME",
    "DATA_TYPE",
    '<a href="javascript:epf.dialog.open(''f?p=&APP_ID.:18:&SESSION.::::P18_ROWID,P18_ID:'||ROWID||','||ID||''',800,700);" id="Category" class="epf-button"><span class="epf-tooltip" data-epf-tooltip="Definer kategorier for denne variabelen"></span>Definer Kategori</a>' category
    from "MATH_USER"."STA_VARIABLES"
    where "DATA_COLLECTION_ID" = :P17_IDAny help would be greatly appreciated.
    - Patrik

    patrikfridberg wrote:
    $('input[id="category"]')[currIndex].hide();;where does this category come from? and you are referencing id attribute which can only handle one row.
    You must make the jquery selector based on column name (inspect your column using firebug/chrome and see the name attribute of the column form element, it will in format f0x).
    Look at my original code below and i am controlling a column with name f01
    >
    It still doesn't work for me. From what I understood from the "Incorporating JavaScript into an application" page I should put the code in the JavaScript section. I tried that too, but nothing changed. So now I'm thinking there is something wrong with the code itself?
    YES
    this is my original code
    function test(pThis) {
    //get the curren row index on change
    var currIndex = $('select[name="'+pThis.name+'"]').index(pThis);
    if (pThis.value=='20') {
      $('input[name="f01"]')[currIndex].style.display = 'block';
    else {
      $('input[name="f01"]')[currIndex].style.display = 'none';
    }

  • Working with target groups in ChaRM?

    Has really nobody worked with transport groups in ChaRM??

    Hello Elena,
    I agree with Prakhar - admin/operator who performs the actual import into production must be VERY careful:
    in case when you have several target systems in the transport route, when you release transport from source system, the transport is exported into the buffer of EVERY target system that is defined in the route - no matter how you group your target systems.
    In the Task List however each producton system will have it's own CTS project generated.
    So your operator must be very well aware of which production system is accotiated with which CTS-project so to execure Import from SCMA correctly, and also be aware of what transports are in the buffer of that system at that time - there will be no pick-n-choose once Import is run.
    The import into production will NOT be made via SCMA or the change request itself, but directly in STMS via the QA buffer.
    We will generate an email with the target systems and transport request numbers out of the change request and send it to the basis team. They are not going to work in the Solution Manager.
    So, actually we need that the target group to be written directly in the transport request itself.
    Do you think this is possible?
    But I don't agree that it is a good idea to create multiple maintenance projects (i.e. separate for each production system) - if all your PRD* systems are fed from the same DEV... In this case it must be just one maintenance project with multiple target systems, I think.
    It is ok if the transports are written to all production buffers.

  • Google drive does not work with specific group but works with all users group!!

    Hi,
    Why Google drive does not work with specific group but works with all users group?
    My rule :  Internal > external > all users = works fine
    But
                   Internal > external > A group = not working !!

    Hi,
    if you require user authentication in Firewall policy rules, the clients must bei Webproxy clients (for HTTP / HTTPS) or TMG clients (for TCP/UDP):
    http://technet.microsoft.com/en-us/library/bb794762.aspx
    regards Marc Grote aka Jens Baier - www.it-training-grote.de - www.forefront-tmg.de - www.galileocomputing.de/3276?GPP=MarcGrote

  • Enable/disable/defaulting the radio button in tabular Form

    Hi friends,
    I have one radio button column in my tabular form with 3 values for it.
    <li>FC
    <li>BC
    <li>EC
    I need to enable/disable the radio buttons according to the position of the user.
    If the position of the user is CEO means,
    then FC radio button has to be checked defaultly and also for him he needs to have BC and EC radio buttons to be enabled.
    If the position of the user is between(1-4) grades means,
    then FC radio button has to be disabled, but BC radio button has to be checked defaultly and also for him he needs to have EC radio buttons to be enabled.
    If the position of the user is between(4-6) grades means,
    then FC, BC radio button has to be disabled, but EC radio button has to be checked defaultly.
    How i can achieve this radio button enabling/disabling and defaulting it dynamically according to the user.
    Where i need to specify this kind of restriction inorder to work for me in my application.
    Brgds,
    Mini

    Hi Bob,
    thanks for your reply first, and your suggestion too.
    I tried in the below manner on the lov definition of my radio button and it hide/shown according to the user who logs into the application.
    SELECT 'FC' d, 'FC' r FROM DUAL WHERE lower(:APP_USER) = (select lower(user_name) from apps.xxhy_ams_details_v where upper(job_name) = 'CEO')
    UNION ALL
    SELECT 'BC' d, 'BC' r FROM DUAL WHERE lower(:APP_USER) IN (select lower(user_name) from apps.xxhy_ams_details_v where grade_name
    BETWEEN 1 and 4 OR lower(:APP_USER) = (select lower(user_name) from apps.xxhy_ams_details_v where upper(job_name) = 'CEO'))
    UNION ALL
    SELECT 'EC' d, 'EC' r FROM DUALBut how i can check the radio button defaultly according to the user who logs in .
    <li> If the employee with the position CEO logs into the application means, he needs to have FC to be checked defaultly.
    <li> If the employee with the grade between(1-4) logs into the application means, he needs to have BC to be checked defaultly.
    <li> If the employee with the grade between(5-12) logs into the application means, he needs to have EC to be checked defaultly.
    Note:
    Instead of hide/show the radio buttons defaultly whether it is possible to enable/disable the radio button according to the user who logs into the application.
    Brgds,
    Mini...

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

  • Change image with radio group

    I hope this is a simple one for someone out there.
    I need to swap images with a radio group.
    I'll post the code here so you have what I have for now.
    Obviously I haven't gotten anything working.
    Image names to be:
    Case_green.png
    Case_blue.png
    Case_blacklight.png
    Case_red.png
    <!--START RADIO BUTTONS-->
    <!--START RADIO BUTTON SCRIPT-->
    <script type="text/javascript">
    </script>
    <!--END RADIO BUTTON SCRIPT-->
    <form name="Colors" method="post" action="">
    <table width="358" align="left">
    <tr>
    <td width="70"><label>
    <input name="ColorRadios" type="radio" id="ColorRadios_0"
    value="radio_green" checked>
    Green</label></td>
    <td width="57"><label>
    <input name="ColorRadios" type="radio" id="ColorRadios_1"
    value="radio_blue">
    Blue</label></td>
    <td width="105"><label>
    <input type="radio" name="ColorRadios"
    value="radio_blacklight" id="ColorRadios_2">
    Black Light</label></td>
    <td width="54"><label>
    <input type="radio" name="ColorRadios" value="radio_red"
    id="ColorRadios_3">
    Red</label></td>
    </tr>
    </table>
    </form>
    <p align="left">
    <!--END RADIO BUTTONS-->

    Mick,
    Thanks
    William - sorry about the missing quote.
    Paul Davis
    http://www.kaosweaver.com/
    Visit us for dozens of useful Dreamweaver Extensions.
    http://www.communitymx.com/
    Partner at Community MX - Extend your knowledge
    Mick White wrote:
    > Paul Davis wrote:
    >> this would be something like:
    >> <input name="ColorRadios" type="radio"
    id="ColorRadios_1"
    >> value="radio_blue"
    >>
    onclick="document.getElementById('swapimageid').src='Case_blue.jpg'>
    >
    > onclick=
    > "document.getElementById('swapimageid').src=
    > 'Case_'+this.value.split('_')[1]+'.jpg'"
    >
    > Mick
    > Note: You forgot closing quotes.
    >>
    >> The image that is getting swapped will need a unique
    ID, but that
    >> should do it.
    >>
    >>
    >> Paul Davis
    >>
    http://www.kaosweaver.com/
    >> Visit us for dozens of useful Dreamweaver
    Extensions.
    >>
    >>
    http://www.communitymx.com/
    >> Partner at Community MX - Extend your knowledge
    >>
    >> William Rickert wrote:
    >>> I hope this is a simple one for someone out
    there.
    >>>
    >>> I need to swap images with a radio group.
    >>>
    >>> I'll post the code here so you have what I have
    for now. Obviously I
    >>> haven't gotten anything working.
    >>>
    >>> Image names to be:
    >>> Case_green.png
    >>> Case_blue.png
    >>> Case_blacklight.png
    >>> Case_red.png
    >>>
    >>>
    >>> <!--START RADIO BUTTONS-->
    >>> <!--START RADIO BUTTON SCRIPT-->
    >>> <script type="text/javascript">
    >>>
    >>>
    >>> </script>
    >>> <!--END RADIO BUTTON SCRIPT-->
    >>>
    >>> <form name="Colors" method="post"
    action="">
    >>> <table width="358" align="left">
    >>> <tr>
    >>> <td width="70"><label>
    >>> <input name="ColorRadios" type="radio"
    id="ColorRadios_0"
    >>> value="radio_green" checked>
    >>> Green</label></td>
    >>> <td width="57"><label>
    >>> <input name="ColorRadios" type="radio"
    id="ColorRadios_1"
    >>> value="radio_blue">
    >>> Blue</label></td>
    >>> <td width="105"><label>
    >>> <input type="radio" name="ColorRadios"
    >>> value="radio_blacklight" id="ColorRadios_2">
    >>> Black Light</label></td>
    >>> <td width="54"><label>
    >>> <input type="radio" name="ColorRadios"
    value="radio_red"
    >>> id="ColorRadios_3">
    >>> Red</label></td>
    >>> </tr>
    >>> </table>
    >>> </form>
    >>> <p align="left">
    >>> <!--END RADIO BUTTONS-->
    >>>

  • Default button behavior not working with melting group

    Hi,
    I just realize that the default button behavior, i.e. fill out form and press enter without clicking on the actual button, does not work if one or more input form elements are in a melting group. This is a bug, right? I'm using CE7.1 SP5.
    Regards,
    Kevin

    Hi Dharmi,
    I define a button as default, fill out the inputfields  and press enter on the last one. As soon as I put this one in a melting group and press enter, the action of the default button is not triggered anymore. I can press enter in another field which is not in a melting group and the form is submitted correctly.
    I just noticed that if the button is in a melting group (with or without an input field) it doesn't work either.
    Can you reproduce this behavior?
    Best regards,
    Kevin

  • How to hide/show reports region with radio group selections

    Hi, I have an HTML region with a radio group of two choices (Rpt1 and Rpt2). Also got two other report regions which depend on the radio group selections and by pressing a button it will display records.
    Everything does work perfect BUT say I select Rpt1 and press the report button it will show the records and after that if I select the Rpt2 radio button I still see the result of Rpt1 records. How can I clear or hide the reports regions when I change my radio button selection?
    Thank you
    -iahmadi

    Hi,
    You can create HTML regions that do not need to contain anything at all (use the "No Template" region template to ensure that you don't see a region Title on the page).
    However, in order to get this region to be displayed until the Report button is clicked, you would need to have a hidden page item (called, say, P1_SHOW_REPORT) that has, as a default, 0 as a value. The branch that is triggered by the Report button would then set this item to 1 - so, 0 = hide and 1 = show
    On your page you should have a branch that is conditional on the Report button being clicked. On this branch, set the first "Set these items" to P1_SHOW_REPORT and "With these values" to *1*. You should also have a branch on the page that is unconditional - meaning that it can be triggered by anything that submits the page. Firstly, this branch should have a high Sequence Number (say, 99) and secondly, should should set the value of P1_SHOW_REPORT to *0*. So the Report button sets it to 1 and anything else (which will include the radio button selections) will reset it to 0.
    Now, on your regions you have to change the conditions slightly as we now have two conditions to check - which report has been selected and whether or not the Report button has been clicked.
    This can be done by using a SQL Exists condition of something like:
    SELECT 1 FROM DUAL WHERE :P1_SHOW_REPORT = 1 AND :P1_RADIO = 'ABC'(where ABC is the value for the radio button for the report
    The "blank" region would also have a condition - that would be a simple Item = Expression 1 condition of P1_SHOW_REPORT = 0
    Andy

  • How to update a column with default in a tabular form.

    We have a tabular form that has a submit button that does a multi row update. We would like to update a column with a defaut like APP_USER = updated user when the row is updated. Is this possible and how?

    used lovs and conditions.

  • Is zen micro meant to work with radio transmitters like the iTr

    just wondering if the zen is meant to work with uni'versal radio transmitters like the iTrip or the belkin unit... i can't seem to find an accessory offered by Creative that does the same thing... please help

    thanks for the replies =)
    the reason i asked was because i used the tunecast with a cheapo no-brand mp3 player and it worked perfectly, but when i tried it out with my creative zen micro it wouldn't work... a new pair of AAA batteries fixed the problem though =) the old ones were still lighting up the little LED, but not powering the unit enough to transmit to the stereo...

  • Radio Buttons on Tabular Form

    Everyone,
    I'm trying to create a report with radio buttons in it as described by the select statement below. The only thing I have not been able to work out is when the user presses a raido button to get the page to submit so another report region will update. Whats wrong with the statement below? Thank for the help.
    select
    id,
    mdid,
    serialnumber,
    apes_item.radiogroup(1, id, 'Show Failures', javascript:apex.submit('TEST'))as radiogroup
    from defectserialnum
    where mdid = :P10_ID

    See if this moves things forward:
    select
              empno
            , ename
              In 11g we can use named parameter notation in SQL...
            , apex_item.radiogroup(
                  p_idx => 1
                , p_value => empno
                , p_display => 'Show Failures'
                , p_onchange => 'apex.submit(''TEST'')'
                , p_item_id => 'rg-emp-' || empno
                , p_item_label => 'Show Failures') radiogroup_11g
              ...earlier DB versions have to include every parameter by position.
            , apex_item.radiogroup(
                  1
                , empno
                , null
                , 'Show Failures'
                , null
                , null
                , 'apex.submit(''TEST'')'
                , null
                , 'rg-emp-' || empno
                , 'Show Failures') radiogroup_10g
    from
              emp
    where
              job = 'MANAGER';
    EMPNO                  ENAME      RADIOGROUP_11G                                                                                                                                                                RADIOGROUP_10G
    7566                   JONES      <label for="rg-emp-7566" class="hideMe508">Show Failures</label><input type="radio" name="f01" value="7566"   onChange="apex.submit('TEST')" id="rg-emp-7566" />Show Failures <label for="rg-emp-7566" class="hideMe508">Show Failures</label><input type="radio" name="f01" value="7566"   onChange="apex.submit('TEST')" id="rg-emp-7566" />Show Failures
    7698                   BLAKE      <label for="rg-emp-7698" class="hideMe508">Show Failures</label><input type="radio" name="f01" value="7698"   onChange="apex.submit('TEST')" id="rg-emp-7698" />Show Failures <label for="rg-emp-7698" class="hideMe508">Show Failures</label><input type="radio" name="f01" value="7698"   onChange="apex.submit('TEST')" id="rg-emp-7698" />Show Failures
    7782                   CLARK      <label for="rg-emp-7782" class="hideMe508">Show Failures</label><input type="radio" name="f01" value="7782"   onChange="apex.submit('TEST')" id="rg-emp-7782" />Show Failures <label for="rg-emp-7782" class="hideMe508">Show Failures</label><input type="radio" name="f01" value="7782"   onChange="apex.submit('TEST')" id="rg-emp-7782" />Show Failures

  • Ipod touch equalizer not working with radio

    My first Apple device just purchased today.  The ipod Touch 8GB Generation 4.  The first thing I did was downdoad Tunein to listen to radio.  I noticed the preloaded Apple equalizer with presets does not work.  Is this normal with radio or this app.  Does the equalizer only work with itunes music player?  Thanks

    It's a bookshelf stereo system with an output channel so I have a Logitech Jukebox Internet Radio hooked up to it and it works fine but the iPod Touch ..... nada happens when I plug in the output cable to it. 

  • Issues with report with radio group

    Hi Friends,
    Am new to this apex 4.0,i have created a report using radio group
    select apex_item.radiogroup(1,person_id,'checked',person_id) "select",
    person_id,
    AVAIL_SAL_CERTIFICATE,
    OCCURANCE,
    LAST_AVAILED_DATE,
    REASON,
    EFFECTIVE_START_DATE,
    EFFECTIVE_END_DATE
    from YY_SALARY_CERTIFICATENow my requirement is if i checked the radio button and i pressed the next button in my report,it should redirect to the next page which is a detailed form page ant it should display the corresponding checked report row values.
    both the report and form having the same fields,
    please Someone help me to achieve this...

    hi vee,
    ya vee,actually i used my friend account because i forgot my password.Today only i reset my password so only i posted this issue..
    regards,
    yams

  • Need help with Apex 4.0 tabular form and searchable select list

    I would like to use an exisiting plugin for a searchable combo box on a tabular form. When I define the item types on my tabular form I don't see the plugin as an option. I reviewed the help documentation for the apex_item api for the tabular form but I didn't see how I could reference the plugin. Has anyone done this or have other ideas? Any help would be greatly appreciated.

    I noticed this problem in the first beta version but I thought this is so obvious and it will be corrected so I didn't follow on it further. This looks like a bug in 4.0. If I use firebug, I will see that the selected value is still RESEARCH allthough the display changes - <option selected="selected" value="20">RESEARCH</option> If I click on SAVE than wrong values will be changed.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

Maybe you are looking for

  • Dynamic Linq with Where and ObjectParameter doesn't work

    Hello !  I have this code : Imports System.Linq.Dynamic Dim mylist As IQueryable(Of Myobject) Dim ob1 As New List(Of ObjectParameter) Dim dynstr as string=string.empty dynstr += "it.id= @id" ob1.Add(New ObjectParameter("id", 26)) mylist=context.MyObj

  • Using Left Outer Join

    Hi SAP, I have an access database with table called "Employee_ID".  I am linking this table to a table called "Sales" in our main database and trying to report on January 2009. There is one employee that is not appearing in my report.  I know this em

  • Can't Install HotFix in ALBPM 6.0.2

    Hi all, I've upgraded my ALBPM studio to MP2 from MP1. If I click on "About BEA Aqualogic BPM Studio" I see Version 6.0.2 Build #83281. However, when I try to install the hot fix, I get this error: This HotFix cannot be applied to this product versio

  • Top-level navigation in masthead

    During test with our development portal, the top-level navigation has been moved to where the navigation-panel is (left side). I was present when we did this, and i believe that it was just a parameter that was changed. But i cannot remember it, and

  • PMTUD is broken

    Hi all, I tried to solve problem with fragmentation and configured parameters as below. The same is on the router on the other side. interface Tunnel0 ip mtu 1438 tunnel path-mtu-discovery I configured GRE over IPSEC (transport mode), and problem is