Multiple Radio Groups

Hi,
I am using multiple Radio Groups... something like this:
Group 1
Canada
USA
Maxico
Group 2
England
France
Germany
Group 3
India
China
Iran
my query has something like this:
where
(CITY = :P60_GROUP1 or CITY = :P60_GROUP2 or CITY = :P60_GROUP3)
PROBLEM: when I select option across groups, it dosen't reset previous option... let's say if I click on Germany, I see data for Germany... but when I click on India (after Germany) I see data for both Germany and India... How to ensure that when I select an option, other's get reset

OK, in that case, you need to write 3 on click events (one for each set) which will set the values of the other radio button to null when you click a radio button.

Similar Messages

  • [JS] CS3 One radio group multiple colums

    Is there any way to split one radio group into multiple columns?
    For example:
    Paragraph Alignment: Left
    Right
    Center
    Justify
    I would like it to look like this:
    Paragraph Alignment: Left Center
    Right Justify

    > Would you know where documentation for ScriptUI would be?
    ESTK 3: Help > JavaScript Tools Guide
    ESTK 2: Help > SDK > JavaScript Tools Guide
    Peter

  • Email multiple selected recipients / Radio Group?

    Hi all.
    I've recently come to basic grips with PHP and Forms. I would
    like to create something similar to a radio group, in which the
    user can select multiple email recipients and then click Send to
    relay a message to all, and only, the selected.
    Imagine a radio group numbered 1 through 10, each number
    represents a different email address - the user can select as many
    or as few as he likes and then press send to email the comment to
    those selected.
    Could I use Radio Groups to do this? or any other form of
    HTML Forms?
    In the long run the picture get's a little more complicated -
    but if I can solve this I'm half way there!
    Please help!
    Thanks! Nathan

    BTW, you also need a script to "Check All Boxes"
    http://www.somacon.com/p117.php
    "NJFuller" <[email protected]> wrote in
    message
    news:gmfm3d$k1f$[email protected]..
    > Hi all.
    >
    > I've recently come to basic grips with PHP and Forms. I
    would like to
    > create
    > something similar to a radio group, in which the user
    can select multiple
    > email
    > recipients and then click Send to relay a message to
    all, and only, the
    > selected.
    > Imagine a radio group numbered 1 through 10, each number
    represents a
    > different email address - the user can select as many or
    as few as he
    > likes and
    > then press send to email the comment to those selected.
    >
    > Could I use Radio Groups to do this? or any other form
    of HTML Forms?
    >
    > In the long run the picture get's a little more
    complicated - but if I can
    > solve this I'm half way there!
    >
    > Please help!
    > Thanks! Nathan
    >

  • Getting value of radio group in a report

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

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

  • Cross column radio group solution using dynamically generated HTML

    I am tasked with creating a screen in Apex matching look and feel of an existing application screen; tabular form, multiple column radio buttons to update a single column value (radio group needs to be row oriented, across multiple columns). I could not find a way to use HTMLDB_ITEM.RADIO_GROUP () function for this due to the radio group being column based, great as a row selector but not for use across columns (each button being a column).
    My first thought was to comprise and use checkboxes via HTMLDB_ITEM.CHECKBOX () for the multiple choices (in each column) and HTMLDB_ITEM.HIDDEN() to hold the chosen value, a JavaScript function for “onClick” event to make the checkboxes in one row act like radio buttons in a radio group. I created a simple application to show the concepts of my solutions …
    SQL looks like this:
    select pk_id, -- f01
    object_to_color, -- f02
    HTMLDB_ITEM.CHECKBOX(11, color_choice,
    'onClick="chkboxAction('||pk_id||', document.wwv_flow.f11, ''RED'')"', 'RED') red,
    HTMLDB_ITEM.CHECKBOX(12, color_choice,
    'onClick="chkboxAction('||pk_id||', document.wwv_flow.f12, ''BLUE'')"', 'BLUE') blue,
    HTMLDB_ITEM.CHECKBOX(13, color_choice,
    'onClick="chkboxAction('||pk_id||', document.wwv_flow.f13, ''GREEN'')"', 'GREEN') green,
    color_choice -- f03
    from objects_to_color
    Columns pk_id and color_choice are set as Show off and Display As Hidden. Note that my HTMLDB_ITEM.CHECKBOX items start with id number 11 (f11 – f13) so as not to conflict with the item id’s Apex will generate on it’s own. I could have used HTMLDB_ITEM functions to create all items and had my own PL/Sql update process.
    This creates a tabular presentation with a column for each color choice as a checkbox, shown checked if that color is initially set.
    The JavaScript function chkboxAction() clears the other checkboxes if a color is selected and stores the color in the hidden item db column for use in Apex Submit processing. Sorry the identation get's lost in the post!
    function chkboxAction (id, ckbx, color) {
    // f01 is pk_id (hidden)
    // f11 is RED checkbox
    // f12 is BLUE checkbox
    // f13 is GREEN checkbox
    // f03 db column color_choice for update (hidden)
    var idx;
    // Find row index using pk_id passed in as id argument.
    for (var i=0; i < document.wwv_flow.f01.length; i++) {
    if (document.wwv_flow.f01.value == id) {
    idx = i;
    i = document.wwv_flow.f01.length;
    if (ckbx(idx).checked == true) {
    // Set hidden color_choice column value to be used in update.
    document.wwv_flow.f03(idx).value = color;
    // Uncheck them all, then reset the one chosen.
    document.wwv_flow.f11(idx).checked = false;
    document.wwv_flow.f12(idx).checked = false;
    document.wwv_flow.f13(idx).checked = false;
    ckbx(idx).checked = true;
    } else {
    // Unchecked so clear color_choice column value to be used in update.
    document.wwv_flow.f03(idx).value = '';
    This works well and, as an aside, has an added feature that the color can be “unchosen” by unchecking a checked checkbox and leaving all checkboxes unchecked. This cannot be done with radio buttons unless a radio button is added as “no color”.
    But what if radio buttons must be used, as in my situation? Here is another solution using custom code to dynamically generate radio buttons for a row based radio group rather than using HTMLDB_ITEM.RADIO_GROUP ().
    select pk_id, -- f01
    object_to_color, -- f02
    '<input type="radio" name="rb'||pk_id||'" id="rb'||pk_id||'_1" value="RED" '||
    decode(color_choice, 'RED', 'CHECKED', '')||
    ' onClick="rbAction('||pk_id||', ''RED'')">' red,
    '<input type="radio" name="rb'||pk_id||'" id="rb'||pk_id||'_2" value="BLUE" '||
    decode(color_choice, 'BLUE', 'CHECKED', '')||
    ' onClick="rbAction('||pk_id||', ''BLUE'')">' blue,
    '<input type="radio" name="rb'||pk_id||'" id="rb'||pk_id||'_3" value="GREEN" '||
    decode(color_choice, 'GREEN', 'CHECKED', '')||
    ' onClick="rbAction('||pk_id||', ''GREEN'')">' green,
    color_choice -- f03
    from objects_to_color
    The pk_id column is used here to ensure a unique name and unique id for the items. In practice a custom api should be used to generate items in this way.
    The JavaScript function is actually simpler for radio buttons because the radio group handles the mutually exclusive logic for choosing a color.
    function rbAction (id, color) {
    // f01 is pk_id (hidden)
    // f03 db column color_choice for update (hidden)
    var idx;
    // Find row index using evaluation_question_id.
    for (var i=0; i < document.wwv_flow.f01.length; i++) {
    if (document.wwv_flow.f01.value == id) {
    idx = i;
    i = document.wwv_flow.f01.length;
    // Set hidden result column referenced in update.
    document.wwv_flow.f03(idx).value = color;
    Now the problem is that on update, Apex will be confused by the custom items and try to post updated values to it’s own internal items – which don’t exist. The result is the very frustrating HTTP 404 - File not found error when apex/wwv_flow.accept executes on Submit. So, the trick is to clear the custom items prior to the update with a simple JavaScript function, then the values show again when the page is rerendered, if you are not branching from the page. The Submit button is changed to call the following function:
    function submit () {
    var items = document.getElementsByTagName("INPUT");
    for (i=0; i< items.length; i++) {
    if (items(i).type == "radio") {
    if (items(i).checked == true)
    items(i).checked = false;
    doSubmit('SUBMIT');
    This technique might have general use when using custom items. Comments or improvements on this?
    See Oracle Apex site: workspace SISK01, app OBJECTS_TO_COLOR

    Just the code for formatting.
    Checkboxes to behave like radio group ...
    SQL ...
    select pk_id,              -- f01
           object_to_color,    -- f02
              HTMLDB_ITEM.CHECKBOX(11, color_choice,
                  'onClick="chkboxAction('||pk_id||', document.wwv_flow.f11, ''RED'')"', 'RED') red,
              HTMLDB_ITEM.CHECKBOX(12, color_choice,
                  'onClick="chkboxAction('||pk_id||', document.wwv_flow.f12, ''BLUE'')"', 'BLUE') blue,
              HTMLDB_ITEM.CHECKBOX(13, color_choice,
                  'onClick="chkboxAction('||pk_id||', document.wwv_flow.f13, ''GREEN'')"', 'GREEN') green,
           color_choice  -- f03
    from objects_to_colorJavaScript ...
    function chkboxAction (id, ckbx, color) {
        // f01 is pk_id (hidden)
        // f11 is RED checkbox
        // f12 is BLUE checkbox
        // f13 is GREEN checkbox
        // f03 db column color_choice for update (hidden)
        var idx;
        // Find row index using pk_id passed in as id argument.
        for (var i=0; i < document.wwv_flow.f01.length; i++) {
           if (document.wwv_flow.f01(i).value == id) {
              idx = i;
              i = document.wwv_flow.f01.length;
        if (ckbx(idx).checked == true) {
          //  Set hidden color_choice column value to be used in update.
          document.wwv_flow.f03(idx).value = color;
          // Uncheck them all, then reset the one chosen.
          document.wwv_flow.f11(idx).checked = false;
          document.wwv_flow.f12(idx).checked = false;
          document.wwv_flow.f13(idx).checked = false;
          ckbx(idx).checked = true;
        } else {
          //  Unchecked so clear color_choice column value to be used in update.
          document.wwv_flow.f03(idx).value = '';
    }Radio button solution ...
    SQL ...
    select pk_id,              -- f01
           object_to_color,    -- f02
           '<input type="radio" name="rb'||pk_id||'" id="rb'||pk_id||'_1" value="RED" '||
                decode(color_choice, 'RED', 'CHECKED', '')||
                ' onClick="rbAction('||pk_id||', ''RED'')">' red,
           '<input type="radio" name="rb'||pk_id||'" id="rb'||pk_id||'_2" value="BLUE" '||
               decode(color_choice, 'BLUE', 'CHECKED', '')||
               ' onClick="rbAction('||pk_id||', ''BLUE'')">' blue,
           '<input type="radio" name="rb'||pk_id||'" id="rb'||pk_id||'_3" value="GREEN" '||
               decode(color_choice, 'GREEN', 'CHECKED', '')||
               ' onClick="rbAction('||pk_id||', ''GREEN'')">' green,
           color_choice  -- f03
    from objects_to_colorJavaScript ...
    function rbAction (id, color) {
        // f01 is pk_id (hidden)
        // f03 db column color_choice for update (hidden)
         var idx;
         // Find row index using evaluation_question_id.
        for (var i=0; i < document.wwv_flow.f01.length; i++) {
           if (document.wwv_flow.f01(i).value == id) {
              idx = i;
              i = document.wwv_flow.f01.length;
        //  Set hidden result column referenced in update.
        document.wwv_flow.f03(idx).value = color;
    function submit () {
      // Clears radio buttons to prevent Apex trying to post and causing page error.
      var items = document.getElementsByTagName("INPUT");
      for (i=0; i< items.length; i++) {
        if (items(i).type == "radio") {
          if (items(i).checked == true)
            items(i).checked = false;
      doSubmit('SUBMIT');
    }

  • I need some information about using multiple toggle groups??

    Hi,
    I am trying to implement multiple toggle groups in javafx(one for radio button and one for toggle buttons).
    On selecting one of the radio buttons , the toggle buttons appear and I need to perform some operation based on the selected toggle button value.
    But for me only the radio button toggling is working.
    The toggle button is coming as disabled.
    Please help me out.

    Can you post a short, self-contained, correct example demonstrating the problem? The following example works fine for me:
    import javafx.application.Application;
    import javafx.scene.Scene;
    import javafx.scene.control.RadioButton;
    import javafx.scene.control.ToggleButton;
    import javafx.scene.control.ToggleGroup;
    import javafx.scene.layout.HBox;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class MultipleToggleGroupExample extends Application {
      @Override
      public void start(Stage primaryStage) {
      final ToggleGroup radioButtonGroup = new ToggleGroup();
      final RadioButton rb1 = new RadioButton("Choice 1");
      final RadioButton rb2 = new RadioButton("Choice 2");
      rb1.setToggleGroup(radioButtonGroup);
      rb2.setToggleGroup(radioButtonGroup);
      final ToggleGroup toggleButtonGroup = new ToggleGroup();
      final ToggleButton tb1 = new ToggleButton("Choice A");
      final ToggleButton tb2 = new ToggleButton("Choice B");
      tb1.setToggleGroup(toggleButtonGroup);
      tb2.setToggleGroup(toggleButtonGroup);
      final HBox root = new HBox(10);
      final VBox radioButtons = new VBox(5);
      radioButtons.getChildren().addAll(rb1, rb2);
      final VBox toggleButtons = new VBox(5);
      toggleButtons.getChildren().addAll(tb1, tb2);
      root.getChildren().addAll(radioButtons, toggleButtons);
      toggleButtons.visibleProperty().bind(rb2.selectedProperty());
      primaryStage.setScene(new Scene(root, 600, 400));
      primaryStage.show();
      public static void main(String[] args) {
      launch(args);

  • Bind radio group to table with ADF

    Hi,
    I've managed to bind a drop down list to a table as follows :
    <label for="cardtype">Card Type:*</label>
    <select name="cardtype" class="input-box">
    <c:forEach var="Row" items="${bindings.cardtype1.rangeSet}" >
    <option value="<c:out value='${Row.RvMeaning}'/>">
    <c:out value="${Row.RvMeaning}"/>
    </option>
    </c:forEach>
    </select>
    The binding is solely for display purposes as the user selection is not stored in the database.
    I am unable to do a similar bind for a radio group(display purposes only)
    Can anyone help ?

    No idea if anyone ever will read this reply, but I'm a dummy and I did spend a day to implement a radio group (radiogroup) with ADF and a common JSP. UIX of course offer more flexibility and possibilities!
    I did create a View Object secting values that could be displayed in a LOV. Test this first in order to test the data binding beteen the View Object and the attribuut (here gender) Then remove the LOV and drop the attribuut in your Form as radio group. The iterator created a radio 'box' for each record in the list, here M(ale)/F(emale)/B(oth). The radio group will be used to select the gender that should be searched on a dating site, displaying the gender in multiple languages! That's why fmt:message instead of bean:message was used. Value 'label.gender.${rv.prompt}' will be transformed into:
    label.gender.M OR label.gender.F OR label.gender.B
    The properties contain the labels in English, Dutch etc.... It should be possible to use a Static list as wel to store the domain values related to your radio group.
    <td>
    <c:out value="${bindings['Gender2'].label}"/>
    </td>
    <td>
    <c:forEach var="rv" items="${bindings.DCLOVList.displayData}">
    <html:radio idName="rv" property="DCLOVList" value="index"/>
    <fmt:setBundle basename="view.ApplicationResources"/>
    <fmt:message key="label.gender.${rv.prompt}"/>
    </c:forEach>
    </td>

  • Dynamic Radio Group field

    Hi All,
    I'm building a application to take a Test or Exam, where you'll have a question with multiple options, some question might have 6 options: A( ) B( ) C( ) D( ) E( ) F( ) and then another question might be just 3 options: A( ) B( ) C( )
    Is there a way to make this kind of behavior on a field in Application Express? having a radio group that could have different number of options for each record?
    Thanks in advance for all your help on this

    Sure, just base the radigroup item on a dynamic LOV query and it will render as many radiobuttons as the number of rows returned by the query.

  • VCenter Single Sign-On Permissions Assignment for Members of Multiple AD Groups

    Hi all,
    I ran across an interesting issue whilst assigning permissions using Active Directory groups within vCenter.
    Environment
    1 vCenter Appliance managing 2 Datacenters (1 Datacenter with 2 Clusters, 1 Cluster with 2 Hosts, 1 Cluster with 4 Hosts, 1 Datacenter with 1 Cluster containing 1 host.) 
    vCenter has an SSO Identity Source configured using Active Directory (Integrated Windows Authentication).
    vCenter and all hosts are domain members of child1.parent.com.au
    The Active Directory Forest contains a parent domain, let's call it parent.com.au, and two child domains child1.parent.com.au and child2.parent.com.au.
    Although the Identity Source was configured for my child domain, using child domain credentials it added the parent domain and subsequently both child domains. Okay, so there are trusts, I'm okay with this. The interesting issue is yet to come.
    Two Active Directory Groups were added. Deployment Admins A and Deployment Admins B.
    Two vCenter Roles were created with similar names. VM Deployers A and VM Deployers B
    Deployment Admins A was assigned the Deployers A role to Cluster A (Cluster, VM Folders, Datastore Folders)
    Deployment Admins B was assigned the Deployers B role to Cluster B (Cluster, VM Folders, Datastore Folders)
    Note: No objects overlap. All hosts, vms and datastores are isolated to each cluster.
    So the next step is assign an child1 AD User to the Deployment Admins A group. As expected the user using credentials child1\user can connect to vCenter via the VI Client and see all the relevant objects. Great!
    So now I assign the same child1 AD user to the second AD group Deployment Admins B. Now we wait and nothing happens. The permissions don't change. The user logs out and logs back in using the same credentials and still the permissions don't change.
    So I remove the user from both AD groups and get them to log out and in and sure enough they can't.
    This time I assign the child1\user account the roles as set out previously. So child1\user account is assigned to both roles in place of each AD Group. The expected behaviour is observed. As I add the second permission set, the objects become visible within the VI client.
    Okay so now I remove the explicitly assigned permissions and reassign via the groups and this time I ask the user to log in via the UPN ([email protected]). Whoa! It works.
    So it seems that assigning permissions for the same user in multiple AD groups across multiple roles can only be achieved when the user uses a UPN login to the VI Client.
    Has anybody else found this to be the case?
    If so, were you able to fix it?

    Hello,
    I have found this to be the case and think it is more due to SSO than AD. If you look at how you login as the 'administrator' when you first configure SSO it is in effect using UPN. I would raise this as a case to VMware and make sure they are aware of the issue. There are some issues with SSO being worked each day.
    Best regards,
    Edward L. Haletky
    VMware Communities User Moderator, VMware vExpert 2009, 2010, 2011,2012,2013,2014
    Author of the books 'VMWare ESX and ESXi in the Enterprise: Planning Deployment Virtualization Servers', Copyright 2011 Pearson Education. 'VMware vSphere and Virtual Infrastructure Security: Securing the Virtual Environment', Copyright 2009 Pearson Education.
    Virtualization and Cloud Security Analyst: The Virtualization Practice, LLC -- vSphere Upgrade Saga -- Virtualization Security Round Table Podcast

  • 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

  • Read-only radio group losing value on validation error

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

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

  • Clearing a Form or Radio Group on Click of a Button

    Hi Experts,
    I have a simple VC model which has BI Query as Data service and a Form is connected to it.
    Form will be populated based on the input to the BI Query.
    I have Few Input Fields, Drop Downs, Date files and Radio Groups in that form.
    I have included two buttons 1. Clear whole form, 2. Clear Radio Group
    I was able to clear whole form by giving some garbage value to one of the fields.
    But didnt find any way to clear only Radio Group.
    Kindly let me know how can i reset only Radio Group in the above form.
    Regards,
    Rk.

    Hi Jayant Kulkarni
           Please go through this link
    http://en.allexperts.com/q/Javascript-1520/disable-part-radio-button-1.htm
    Please reward points if useful

  • Displaying a radio group in SQL QUERY report region

    Good morning everyone,
    I have a report in which a column - ORDER STATUS, will come in with a value of 1, 2 or 3...being order unfilled, order partially filled, or order filled, respectively.
    I would like to display the order status as a radio group on the report so that it will be easy to run down the column of radio buttons to see what is filled, etc.
    I've gone to the manual and checked the doco on HTMLDB_ITEM.RADIOGROUP. But the example given there is actually for CHECKBOX (is this an error?!?).
    I went to the forums and found nothing suitable.
    My region is an SQL QUERY. Can I display the STATUS as a radio group in the SELECT ?
    This is the question.
    Thankyou in anticipation. TC. 23/11/2004

    Tony,
    There may be better solutions, but here's what I was thinking:    create table orders (id number, status number, customer varchar(30))
        insert into orders (id,status,customer) values(1,1,'ACME')
        insert into orders (id,status,customer) values(2,2,'BENSON')
        insert into orders (id,status,customer) values(3,3,'CLARKE')
        commit
        Query Source
        select
          id "ORDER NUMBER",
          decode(status,
            1,htmldb_item.RADIOGROUP(1,status,'1','unfilled')||htmldb_item.RADIOGROUP(2,status,'2','partial','"disabled=true"')||htmldb_item.RADIOGROUP(3,status,'3','filled','"disabled=true"'),
            2,htmldb_item.RADIOGROUP(1,status,'1','unfilled','"disabled=true"')||htmldb_item.RADIOGROUP(2,status,'2','partial')||htmldb_item.RADIOGROUP(3,status,'3','filled','"disabled=true"'),
            3,htmldb_item.RADIOGROUP(1,status,'1','unfilled','"disabled=true"')||htmldb_item.RADIOGROUP(2,status,'2','partial','"disabled=true"')||htmldb_item.RADIOGROUP(3,status,'3','filled'))
          "STATUS",
          customer "Customer Name"
        from orders;Scott

  • Radio group in classic report based on another column on the same row.

    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    Application Express 4.1.0.00.32
    How can I have a radio group column based on an LOV utilizing another column on the same row of the report?
    For example: what if I had a survey application and depending on the likert scale that was assigned to the question there would be different possible answer choices:
    Question 1 on row 1 of the report: The class instructor was friendly?
    Likert scale choice is Agreement.
    Choices on Radio Group: Strongly Agree, Agree, Undecided, Strongly Disagree
    Question 2 on row 2 of the report: The class offered good materials?
    Likert scale choice is Quality.
    Choices on Radio Group: Excellent, Below Average, Average, Above Average, Excellent
    The radio group can change per row depending on the Likert scale assigned to the question which is assigned to a different column on the row.
    Can LOV utilize the column? :
    SELECT scale_text
    FROM scale_choices
    WHERE scale_category_choice_id = 2 <<= this would be the Likert scale identifier
    ORDER
    BY display_order

    Here is the answer:
    APEX_ITEM.SELECT_LIST_FROM_QUERY(
    p_idx IN NUMBER,
    p_value IN VARCHAR2 DEFAULT NULL,
    p_query IN VARCHAR2,
    p_attributes IN VARCHAR2 DEFAULT NULL,
    p_show_null IN VARCHAR2 DEFAULT 'YES',
    p_null_value IN VARCHAR2 DEFAULT '%NULL%',
    p_null_text IN VARCHAR2 DEFAULT '%',
    p_item_id IN VARCHAR2 DEFAULT NULL,
    p_item_label IN VARCHAR2 DEFAULT NULL,
    p_show_extra IN VARCHAR2 DEFAULT 'YES')
    RETURN VARCHAR2;

  • Report With Multiple Radio Button ,How to reset the values of when selected

    Reaching out to the experts here. I have a report which i created a radio group which saves the value rownum when the radio buton is selected to a hidden item based on an on click event. There are currently 3 radio button , i need to be able to "reset" the value of the other items when more than of the button are selected .I.E. There are 3 buttons, user clicks button one , but then decides they need to click button two , then realizes they really wanted to perform button 3 , I want to be able to "reset" the value of the 1st two hidden items so the only value populated is the 3rd hidden item. I am new to working with these features and scenarios so any and help would be appreciated.
    Here is the report
    SELECT APEX_ITEM.RADIOGROUP(1, ROWNUM, NULL,NULL,'onclick="javascript:$x(''P5_HIDDEN1'').value=' || ROWNUM|| '"') UPDATE_RECORD
    ,APEX_ITEM.RADIOGROUP(1, ROWNUM, NULL,NULL,'onclick="javascript:$x(''P5_HIDDEN2'').value=' || ROWNUM|| '"') DELETE_RECORD
    ,APEX_ITEM.RADIOGROUP(1, ROWNUM, NULL,NULL,'onclick="javascript:$x(''P5_HIDDEN3'').value=' || ROWNUM|| '"') SET_PRIMARY
    ,papf.first_name
    ,papf.last_name
    ,hl.meaning
    ,pp.phone_number
    ,case when phone_type is not null then (select meaning from hr_lookups where lookup_type ='PHONE_TYPE' and pp.phone_type=lookup_code)
    end as phone_type
    ,emrg.primary_contact_flag
    from hr.per_all_people_f papf
    ,apps.hr_lookups hl
    ,apps.per_contact_relationships pcr
    ,apps.per_phones pp
    ,(select contact_person_id,primary_contact_flag
    from apps.per_contact_relationships pcr
    where pcr.person_id = :P5_PERSON_ID
    and contact_type = 'EMRG') emrg
    where pcr.contact_person_id in emrg.contact_person_id
    and pcr.personal_flag='Y'
    and contact_type <> 'EMRG'
    and trunc(sysdate) between date_start and NVL(date_end,'31-DEC-4712')
    and pcr.contact_type = hl.lookup_code
    and hl.lookup_type='CONTACT'
    and pcr.contact_person_id = papf.person_id
    and trunc(sysdate) between papf.effective_start_date and papf.effective_end_date
    and pcr.contact_person_id = pp.parent_id
    and pp.phone_type in (select lookup_code from hr_lookups where lookup_type ='PHONE_TYPE')

    Related thread here How to Pass values from SQL Report into TEXT ITEM ?
    Regards,

Maybe you are looking for

  • Calling a method after 10 seconds

    Hello, I need to call a method after 10 seconds. That is to make sure that if one particular field is updated, say 3 times in a window of 10 seconds, I should just be able to take the last value and process it, in my ajax app. I am so far using the T

  • UMR Purify error on C++ 5.3 (Solaris 8)

    UMR: Uninitialized memory read This is occurring while in: std::ctype<char>::ctype(const std::ctype_base::mask*,bool,unsigned)+0x1e8 [opt/SUNWspro/WS6U2/lib/libCstd.a pc=0x439eac] std::ctype_byname<char>::ctype_byname(const char*,unsigned)+0x30 [opt/

  • Error msg on user setup

    When setting up a new user you get a error message at the botom of the screen when a field is not setup correctly. For example if user name already exist or password is short,..... How can we change the color of the error message to a different color

  • Setting default magnification for PDF export

    I've created a PDF in InDesign with image files in it. The image files are scaled to look good at a certain resolution & magnification. However, when I export my InDesign document to PDF, and then open the PDF, for some reason the PDF opens at 125% m

  • Registration Key Input

    Dear All SAP High Technicians. I would like to apply the new Registration Key to SQL Anywhere 12 Evaluation Edition. Version Info : SQL Anywhere Server Licensing Utility Version 12.0.1.3994 how can I use the "dblic.exe" command in the CMD? dblic.exe