Multiple Radiogroup ?

Hi everbody,
I need to make a survey page and there will be 30 questions with 5 choice every one of them. Like:
Faculty is fully qualified 1 2 3 4 5
1:certainly agree
2:agree
3:almost
4:do not agree
5: certainly do not agree
I create a table like:
question_id | question |
How can i create these 30 questions from sql with radiogroup apex item?
And then i need to insert the return values.
Thanks
Onur

Actually i have LOV but i do not know how to display all these questions like a radiogroup survey test ?
What should be the syntax,this is the default radiogroup item
APEX_ITEM.RADIOGROUP(
p_idx IN NUMBER,
p_value IN VARCHAR2 DEFAULT,
p_selected_value IN VARCHAR2 DEFAULT,
p_display IN VARCHAR2 DEFAULT,
p_attributes IN VARCHAR2 DEFAULT,
p_onblur IN VARCHAR2 DEFAULT,
p_onchange IN VARCHAR2 DEFAULT,
p_onfocus IN VARCHAR2 DEFAULT,)
RETURN VARCHAR2;
I think i should do something in a loop like:
FOR I in 1.. to the end row num of table questions
select APEX_ITEM.RADIOGROUP(x,x,x,x,x,x )
end loop;
But i do not know the syntax actually.

Similar Messages

  • Multiple Text Boxes Populating a Single Field

    I need to create several select lists in a form that can each populate the same field in a table, but obviously need for the select lists in the form to be mutually exclusive so that the user can only enter data into one of them.
    There is also a field on the form displayed as a radiogroup, and I would like for the user's selection on this radiogroup to dictate which one of these multiple select lists they use to enter this data.
    Before I do any of this, however, I guess my first question is, how do I create multiple text entry fields on a form for just a single field in the table?

    hi brice--
    if you're coding your form page manually, you'd simply add your extra fields to your page definition and conditionally diplay and use the values you needed. i'm guessing you're asking about wizard generated forms.
    you can associate multiple fields with a single database column on your form by simply adding the extra ones you need and conditionally displaying/processing the ones you need. your other questions sound like javascript ones to me. if it were me, i'd take a look at our javascript how-to document at...
    http://otn.oracle.com/products/database/htmldb/howtos/htmldb_javascript_howto2.html
    ...and find the specific javascript i needed from google.
    hope this helps,
    raj

  • Report with several radiogroup based on Collection, onChange event?

    Hello all,
    my Re: Report with multiple choice Radio Group possible thread gave me a report with three radiogroup items.
    The report is based now on a collection with 50 members.
    Checking /unchecking the state of an option should change the value for one member_attribute of the affected member.
    Each change Event should fire a update_member_attribute against the collection.
    A submit Item after completing will bulk insert all members into a different table.
    Can I implement a simple onChange process against the Apex_Item.Radio_Group statement of the query ?
    Or is there a process type which suits my needs ?
    Regards
    Franz

    I was able to schedule the report based on the event by hardcoding the id with the code snippet that you provided - Thanks
    But actually my question really should have been...
    I have an event with the following attributes:
    Type: File
    Event Name: Indicative Data
    Description: Indicative data trigger file.
    Server:  XXXXXXX.eventserver 
    Filename: D:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\Trigger\Indtrigger.txt
    My assumption is that I would need to query CI_SYSTEMOBJECTS to get the ID of this event using this query:
    Select * From CI_SYSTEMOBJECTS Where SI_NAME = 'CrystalEnterprise.Event'
    But unsure how to proceed from there to get event information that I need.  If this is not the correct way of retrieving events, would you be able to provide me the correct query and/or code snippets?

  • RadioGroup and Textbox on the same page. (HTMLDB_APPLICATION.G_F0?)

    I am trying to test a case where a report based on a table has both
    a) radio groups
    b) checkboxes
    for each each record.
    The problem I see is that all the items have the standard HTMLDB_APPLICATION.G_F0X (which is limited to 50).
    Consider this table definition..that i created to explain this case..
    SQL> desc temp;
    Name              Null?    Type
    EMPNO             NOT NULL NUMBER(4)
    ENAME                      VARCHAR2(10)
    JOB                        VARCHAR2(9)
    RQR_IND                    NUMBER
    LOCK_IND                   VARCHAR2(1)The required_ind can have three options 0,1 and 2 and to implement it, say we use.. radio group function..
    The lock ind has two possible values (yes (or) No and to implement it, say we use.....checkbox function..
    Here are the two possible implementations and the problems that I see...
    1) Use an p_Id of 1 for the radio group and p_id of 2 for the checkbox...
    select empno,
           ename,
           job,
           htmldb_item.radiogroup(1,empno,
                                  'threeOptions??'
                                  ) rqr_ind,
           htmldb_item.checkbox(2,empno,
                                case when lock_ind = 'Y' then 'CHECKED'
                                     else ''
                                end
                                ) lock_ind
      from tempUI : http://www.flickr.com/photos/48119423@N06/4406620805/
    The problems with this case
    a) how do i display multiple radio buttons for each radio group.
    b) all the radio groups havethe same name (F01) so the radio group is actually vertical instead of horizantal (per row).
    2) The existing code has dynamically generated radio groups (from 1-50) .. one for each row...using code similar to this...and the update process has 50 individual updates .. one for each row...
    select empno,
           ename,
           htmldb_item.radiogroup( mod(rownum-1,50)+1,
                                  'Y',
                                  rqr_ind,
                                  'Required'
        || htmldb_item.radiogroup( mod(rownum-1,50)+1,
                                  'N',
                                  rqr_ind,
                                  'Optional'
        || htmldb_item.radiogroup( mod(rownum-1,50)+1,
                                  '3',
                                  rqr_ind,
                                  'Do Not Display'
                                  ) Required_Indicator,
         htmldb_item.checkbox(mod(rownum-1,50)+1,
                                empno,
                                case when lock_ind = 'Y' then 'CHECKED'
                                     else ''
                                end ) lock_ind
        from temp  The problem with this case is that the radio groups are rendered and the values without any problems..but when i add a different array, the values HTMLDB_APPLICATION.G_F01 refer to that of the radio group already.
    UI : http://www.flickr.com/photos/48119423@N06/4407457354/in/set-72157623555719072/.
    please advice as to how I can accommodate both of them in the same page and how I can refer to them in my process.
    Thanks,
    Rajesh.

    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/
    http://java.sun.com/docs/books/tutorial/javabeans/index.html
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPIntro.html
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPBeans.html
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/JSPTags.html
    http://java.sun.com/j2ee/tutorial/1_3-fcs/
    http://java.sun.com/developer/onlineTraining/index.html
    http://java.sun.com/docs/books/tutorial/index.html
    http://developers.sun.com/events/techdays/codecamps/index.html

  • Single Form Erroneously Creating Multiple Records

    I've created a form that uses several pages, with different fields of the form on each page. The pages branch from one to the next depending on the choices made by the user, mostly using a regular select list or a radiogroup with submit. The problem I'm having is that some fields are being populated in one record on one page, and then the information entered by the user on the next page, for another column, creates a new record, so that every time a user would be finished making a complete entry into the form, multiple records have been created, with null fields in each from where those fields were populated, but in a different record. How can I make sure that only one record is created by the user each time they use this form?

    Basically the way the page is designed is that there are only three main pages the user will see. 1) The login page then 2) The main menu page, and then 3) The page where they input the information that should populate the remainder of the fields in that record in the table.
    The login page simply allows the user to access the menu page, and submits no data. The main menu page consists of 5 fields. Three of them are text fields, the fourth is a date field with a date picker. The fifth field is a radiogroup with submit that has 5 options which branch to 5 respective pages. Upon selecting an option from the radiogroup, these fields submit their data to the table and redirect the user to whichever page was designated by their choice.
    This brings up the third page. Most of these other 5 pages consist simply of 4 fields; two required select lists, one required textarea field, and one nonrequired textarea field. Anyway, the problem occurs because instead of populating the remaining fields in the same record, each page with information to submit creates a new record.
    I realize that the preceding may not be any additional relevant info., but I thought that if anything, there may be a better way to do that anyway. I thought that maybe editing the "Process" in the Page Definition could be where I need to change something, but I'm not sure how.
    Right now my "Process Point" is set as "On Submit - After Computations and Validations," and my "Run Process" is set as the default "Once Per Page Visit." These settings are the same on every page on which I have fields that submit data; however, one difference I noticed is in the process editing interface for the initial menu page, the "Name" says "Insert row into USER_INPUT (table name) with a "Type" of "PL/SQL Anonymous Block", whereas all the other pages processes are named "Process row of USER_INPUT" with a type of "Automatic Row Processing (DML)." Am I even close to where I need to be looking to find the solution to this problem? Sorry for the novel I just wrote, but if there's any additional info. I can provide, just let me know.

  • JavaScript Radiogroup/Select List

    Hi,
    I would to multiple the values of a radiogroup and a select list.
    This is what I have so far:
    <script type="text/javascript">
      function sumItems(){
        function getVal(item){
       if(document.getElementById(item).value != "")
         return parseFloat(document.getElementById(item).value);
       else
         return 0;
        document.getElementById('P1_TOTAL').value =
           getVal('P1_RADIO') * getVal('P1_SELECT');
    </script>
    I get a NaN error; I assume that is because of the radiogroup and/or select list.
    Is this a correct assumption?
    Thanks
    VC

    Hello,
    The following is a very simple example of the technique I offered you - http://apex.oracle.com/pls/apexbeta/f?p=10:30 . You can adapt it to any specific select lists you are using, and to any number of them.
    I defined 3 hidden items on the page:
    - P30_ORIGINAL – holds the original value of the select list
    - P30_FLAG0 – set to ‘true’ if a select list value set to 0. Init value 'false'
    - P30_FLAG2 – set to ‘true’ if a select list value set to 2. Init value 'false'
    The following is the JavaScript code:
    <script type="text/javascript">
    function saveOriginalValue(pItem){
      $x('P30_ORIGINAL').value = pItem.value;
    function validate_Selected_Value(pItem){
      if ($x('P30_ORIGINAL').value == 0 && pItem.value != 0) {
        $x('P30_FLAG0').value = 'false';
      if ($x('P30_ORIGINAL').value == 2 && pItem.value != 2) {
        $x('P30_FLAG2').value = 'false';
      if (pItem.value == 0) {
        if ($x('P30_FLAG0').value == 'true'){
          alert("You can't choose 0 as a value");
          pItem.value = '%';
          return;
        $x('P30_FLAG0').value = 'true';
      if (pItem.value == 2) {
        if ($x('P30_FLAG2').value == 'true'){
          alert("You can't choose 2 as a value");
          pItem.value = '%';
          return;
        $x('P30_FLAG2').value = 'true';
    </script>For each select list item I’m using the following events (in the ‘HTML Form Element Attributes’ field):
    onfocus="saveOriginalValue(this)" onchange="validate_Selected_Value(this);"As you can see, this code is generic, so you can use it with as many select lists you need on your page.
    Regards,
    Arie.

  • Creating Multi-Column API radiogroup based on LOV

    Hi everyone!
    I was wondering whether or not it is possible to create a 3 column radiogroup based on the APEX_ITEM.RADIOGROUP API in APEX 3.0?
    For instance, my radiogroup is based on a user's interest level and is supposed to look like: oTest oProduction oBoth
    The values returned by whichever button is selected is based on a table value.
    I'm having trouble making this multi column instead of 1 column with multiple rows. I need to set these up with an LOV similar to STATIC2:Test;TEST,Production;PROD,Both;BOTH
    I also cannot create this radio group as a page item because they must display based on a query issued by a report region on this page.
    Any ideas // suggestions?
    Thanks,
    Eric
    Edited by: user11685190 on Oct 12, 2009 9:50 AM

    Andy,
    I'm actually going to have a radiogroup within the report column itself. The suggestion you gave is actually why I'm mixed up as to how to do this....I've always used Apex page items to create my radiogroups, and then you can simply add the LOV and change the number of columns and it's all set up for you.
    This radio group is actually going to be within a row queried by the report. The report is essentially a 'checkbox selection screen' that also allows the user to select which interest level they hold for each selection (interest level is represented by this 3-option radio group). Therefore what you're going to see on the screen is ( [] represent checkboxes, o represent radio buttons):
    Banner INB
    []Planned Outage Notification oTest oProduction oBoth
    []Unplanned Outage Notification oTest oProduction oBoth
    Banner Self Service
    []Planned Outage Notification oTest oProduction oBoth
    []Unplanned Outage Notification oTest oProduction oBoth
    My question was mainly geared towards whether or not you can add a static LOV to an API radiogroup (apex_item.radiogroup(1,interest_lvl,blah)), so that it could look like:
    apex_item.radiogroup(1,1:2:3, NULL, 'Test':'Production':'Both') as result.
    The only documentation I can find deals with issuing a single return value to these API radiogroups. I actually need a three column API radiogroup that hold's three different values based on which group member the user selects. If you can only issue one return value per group, I would have to define three under the same global variable except changing the return value and displayed text for each...such as:
    apex_item.radiogroup(1,1,NULL,'Test') || apex_item.radiogroup(1,2,NULL,'Production') || apex_item.radiogroup(1,3,NULL,'Both) which will hopefully display as: oTest oProduction oBoth
    I'm going to have to concatenate some &nbsps in between so my radio group buttons and labels are actually seperated, but this may be the right idea.
    I'm going to toy around with this a little more today, I'll post my results.
    Thanks for your quick responses!
    Eric

  • Apex_item.radiogroup

    Hi,
    I need help regarding the apex_item.radiogroup.
    I am fetching the data from table in report region. There is one status column which has either 'A' active or 'I' inactive. corresponding to one unique record we can have multiple subrecord and
    only one is active. In the report region i am trying to show the active and inactive radiobutton per row. and if select any row as active in the report other rows radiobutton should be inactive so once i hit the update button i don't have to think which all other went to inactive.
    my query looks like
    select apex_item.hidden(10, primary_key) || record,
    apex_item.radiogroup(3, h.status,'A', 'Active')||apex_item.radiogroup(3, h.status, 'I', 'Inactive'),
    case when rec_flag = 'N' then 'NO' else 'YES' end "flag"
    from table
    If there is 4 rows selected based on this query only one row radio button is highlighted.
    I am new to apex and need your help.

    Hi,
    For the select list issue - the fourth parameter of the APEX_ITEM.SELECT_LIST function allows for attributes, so you can do:
    apex_item.select_list(3, h.status, 'Active;A,Inactive;I','onchange="javascript:myfunction(this);"') "Status"Then you create a function called myfunction(ss) that is triggered by the value of the select list changing - onclick is not used here. As we are passing "this" into the function, we can loop through all select lists, except for the current one and change their values where needed:
    function myfunction(ss)
    if (ss.value == 'A')
      var sLists = document.getElementsByName('f03');
      var k;
      if (sLists)
       for (k = 0; k &lt; sLists.length; k++)
        if (sLists[k] != ss)
         sLists[k].value = 'I';
    }So, as long as we change the current list to A, then we change all the others to I.
    For the radio buttons, if you need to use two buttons per row, you should have a radiogroup that is for each row separately. Your use of "pk_table" for the Inactive button should also be used for the Active button. When the user clicks on either Active or Inactive, you would then have to loop through all the radiogroups and set the appropriate value.
    To get to all the buttons, you have to do something like:
    var x = document.getElementsByTagName("INPUT");
    var k;
    if (x)
    for (k = 0; k &lt; x.length; k++)
      if (k.type == 'RADIO')
       do something herre
    }Andy

  • RadioGroup items not working in Warnsave procedure

    I have been using some javascript to check to see if any items were changed and warn user before exiting. It seems to work fine on all pgaes eccept those that have radiogroup type items. Any page that has a radio group item only seems to check the items up to the radiogroup and exits out 9even though there are changed items below it). has anybody seen this behavior and addressed it?
    function isElementChanged( ele, i ) {
    var isEleChanged = false;
    switch ( ele.type ) {
    case "text" :
    if ( ele[i].value != ele[i].defaultValue )return true;
    break;
    case "textarea" :
    if ( ele[i].value != ele[i].defaultValue ) return true;
    break;
    case "radio" :
    val = "";
    if ( ele[i].checked != ele[i].defaultChecked ) return true;
    break;
    case "select-one" :
    if ( ele[i].style.backgroundColor == "yellow" ) return true;
    break;
    case "select-multiple" :
    if      (ele[i].id>99 ) return false;
    for ( var x =0 ; x <ele[i].length; x++ ) {
    if ( ele[i].options[ x ].selected != ele[i].options[ x ].defaultSelected ) return true;
    break;
    case "checkbox" :
    if ( ele[i].checked != ele[i].defaultChecked ) return true;
    default:
    return false;
    break;

    Bob,
    The following may be of interest...
    http://www.danielmcghan.us/2008/12/wait-wait-don-forget-to-save.html
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

  • How do multiple family members use iTunes.? One account or multiple?

    How do multiple family members use iTunes. One account right now but apps gets added to all devices and iTunes messages go to all devices.  Can multiple accounts be setup and still have ability to share purchased items?

    Hey Ajtt!
    I have an article for you that can help inform you about using Apple IDs in a variety of ways:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Using one Apple ID for iCloud and a different Apple ID for Store Purchases
    You can use different Apple IDs for iCloud and Store purchases and still get all of the benefits of iCloud. Just follow these steps:
    iPhone, iPad, or iPod touch:
    When you first set up your device with iOS 5 or later, enter the Apple ID you want to use with iCloud. If you skipped the setup assistant, sign in to Settings > iCloud and enter the Apple ID you’d like to use with iCloud.
    In Settings > iTunes and App Stores, sign in with the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match). You may need to sign out first to change the Apple ID.
    Mac:
    Enter the Apple ID you want to use for iCloud in Apple () menu > System Preferences > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in Store > Sign In. In iTunes 11, you can also click iTunes Store > Quick Links: Account.
    PC (Windows 8):
    Enter the Apple ID you want to use for iCloud in the Control Panel. To access the iCloud Control Panel, move the pointer to the upper-right corner of the screen to show the Charms bar, click the Search charm, and then click the iCloud Control Panel on the left.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes. In iTunes 10, select Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    PC (Windows 7 and Vista):
    Enter the Apple ID you want to use for iCloud in Control Panel > Network and Internet > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes 10 in Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    Note: Once a device or computer is associated with your Apple ID for your iTunes Store account, you cannot associate that device or computer with another Apple ID for 90 days. Learn more about associating a device or computer to your Apple ID.
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • How do I move multiple dimension members up one level in planning?

    I can't figure out how to select multiple members.
    I hope I don't have to cut and paste them individually.

    ODI maybe ?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How can I setup a mail-specific passcode/restriction on iPad used by multiple family members?

    How can I setup a mail-specific passcode/restriction on iPad used by multiple family members?
    Have an Exchange mail account setup and accessible in my mail on iPad... however my kids use it and i would like to restrict them from accessing this specific portion of the device.  I tried viewing restriction options and do not see that i can apply a restriction specifically to Mail.  Thanks for your help.

    Not a feature of iOS. Check the AppStore to see if there are other
    mail apps that allow passcode protection.
    Or use Safari to log onto your email via a web-based interface and
    enter your credentials each time. A bit slower, but the kids will
    not know the details to login.

  • How can a family with multiple existing accounts use Home Sharing?

    I'd like to use the new Home Sharing feature, but it appears to be restricted to families in which all of the family members share a single user account.
    We already have separate accounts for each family member. Is there some way for us to use Home Sharing without abandoning most of our existing accounts, along with all of the purchases made by those accounts? I don't think anyone in this situation would be willing to do that.

    Eh. I am not too sure since I have not messed with it much but I do have a great deal of experience with multiple accounts. Each computer can be authorized for multiple accounts. As can iPods. iPods can sync songs/videos/apps from multiple accounts as long as the computer is authorized with them. What I have set up here, is I buy my stuff I want, my parents buy what they want and so do my brothers. When my bro gets something I want I just move it to my computer. That way all our accounts are separate, but if there is something I want I can get it. Also, since the music no longer has DRM, it won't matter. It will play on any computer. What you should see is if you can just do the shared library with multiple accounts. Then if you don't have videos or such, you can get apps or music. Hope this helps!

  • How can multiple users use the same Creative Cloud Individual on one single-machine?

    We have one shared graphics workstation, which is infrequently in use by different people - therefore we bought a single-workstation license (which we were referred to "Creative Cloud Individual"). In the FAQs it says it installs locally, but whenever a user different from the installing adminstrator logs in, he is forced to use the trial.
    Is there a way to make the local installation usable on that single machine for multiple users?
    Thanks in advance for your reply

    Serenatasystems do the other users not have administrator access?  What happens if they sign in using the Adobe ID tied to your Creative Cloud subscription?  Do your Adobe Creative applications then exit trial mode?

  • How can I use multiple ipad's on one account without sharing individuals personal email accounts?

    Is it possible to have multiple ipads on one account and share info, but also allow the individual users to have personal email that is not seen on the other ipad's? We have all ipads on same icloud account because we all need to see the same ical. It seems like that's the problem. If it IS related to icloud then if we have separate icloud accounts, how would we share the main ical otherwise? Sharing the ical is very important for this business so everyone can access the daily schedule. Of course each user still wants to have private email.
    Hope this wasn't too confusing!
    Thanks!
    Doreen

    you could set up the main icloud itunes acount for ical and not have in setup on the devices
    and share the calandar with the other itunes accounts on the devices
    or only have it on one device
    devices have the users indervidual itunes icloud setup
    they should be able to access the shared "main" itunes icloud ical account once it's shared
    http://howto.cnet.com/8301-11310_39-57542557-285/three-methods-for-sharing-an-ic loud-calendar/
    if the devices are company owned you could go futher and setup find my iphone on the main itunes account
    and not on the user icloud accounts

Maybe you are looking for