Radio button Collection

Apex 3.2

I have a requirment to create a tabular presentation manual

One of the columns was to be a check box.

They are only allowed to check one of the boxes in the form, so I decided to go with a group of radio buttons instead.

I have never used a group of buttons radio before, so my code may be wrong

I also decided to base my form on a collection.

My collection creation works fine.

My sql tabular is

Select

APEX_ITEM. MD5_CHECKSUM (c001 c002 c003, c004, c005, c006, c007) |

apex_item.display_and_save (1, c001) ldeid,.

apex_item.display_and_save (2, c002) start_date,

apex_item.display_and_save (3, c003) end_date.

apex_item.display_and_save (4, c004) conversion_factor,.

apex_item.display_and_save (5, c005) target_bmi,.

apex_item. Text (6, c006) description,.

apex_item. RadioGroup (7, c007, ' is, not) ssi,.

apex_item. CheckBox (12, seq_id) chkbx,.

apex_item. Hidden (13, seq_id) seq_id

of apex_collections

where collection_name = "SMI_COL."

This will display that required such radio and a checkbox for deletion.

My update does not work, when I include the radio in the update.

If I do not include radio, it works

Begin

BECAUSE me IN 1.apex_application.g_f01.count
LOOP

() apex_collection.update_member
p_collection_name = > 'SMI_COL '.
, p_seq = > apex_application.g_f13 (i)
, p_c001 = > apex_application.g_f01 (i)
, p_c002 = > apex_application.g_f02 (i)
, p_c003 = > apex_application.g_f03 (i)
, p_c004 = > apex_application.g_f04 (i)
, p_c005 = > apex_application.g_f05 (i)
, p_c006 = > apex_application.g_f06 (i)
, p_c007 = > apex_application.g_f07 (i)
);

END LOOP;

END;

Also I can't seem to get my "remove" from the collection of work

Begin


BECAUSE me IN 1.apex_application.g_f13.count
LOOP

() apex_collection.delete_member
p_collection_name = > 'SMI_COL '.
, p_seq = > apex_application.g_f13 (i)
);

END LOOP;

END;

Any help much appreciated

Gus

Hello

Please check your example now.

I used the collection column c008 to store information line witch must be verified.

Kind regards

Jari

Tags: Database

Similar Questions

  • help on the use of dynamic action to update the items in a table (more precisely, the radio button) based on the collection

    Hi everyone, I posted this question in the past and made huge strides with the help of Denes Kubicek: https://apex.oracle.com/pls/apex/f?p=31517:294:115851992029365: based on my previous question posted: https://forums.oracle.com/forums/thread.jspa?threadID=2537494

    I'm fighting with a single element in my tabular presentation.  There is a radio button.  The choices all seem correctly, but the value is not saved in the collection (and therefore not recorded in the table).  All the other elements in the form of tables to record properly.

    Here's what I have for the query.   This is element c024 (which maps to;) ("F03'), which is defined as a radio based on an existing LOV LOV.

    Currently I have:

    2 items on the page:

    P110_ID

    P110_VALUE

    Dynamic action called COLUMN of CHANGE:

    event: CHANGE

    selection type: jQUERY Selector

    jQuery:

    Select jQuery = input [name = "f03"], select [name "f08"], select [name = "f09"], input [name = 'f10'], input [name = 'f11'], input [name = 'f12'], select [name = "f40"], input [name = "f21"], input [name = 'f22'], input [name = "f23"], input [name = 'f50']

    scope of the event: Dynamics

    real action #1: set the P110_ID javascript expression this.triggeringElement.id

    real action #2: set the P110_VALUE javascript expression this.triggeringElement.value

    action 3: run pl/sql code

    declare
      v_member number;
      v_seq number;
    begin 
      v_member := TO_NUMBER (SUBSTR (:p110_id, 2, 2));
      select ltrim(substr(:p110_ID,5,4),'0') into v_seq from dual;
      safis_collections.update_column(v_seq,
                                    v_member,
                                    :p110_value);
    
    
    

    refreshment area true creation #4: LANDINGS_COLLECTION

    the tabular presentation is based on the query:

    SELECT
    apex_item.text(1,seq_id,'','','id="f01_'||seq_id,'','') "DeleteRow",
    seq_id,
    seq_id display_seq_id,
    apex_item.text_from_LOV(c004,'SPECIES')||'-'||apex_item.text_from_LOV(c005,'GRADE')||'-'||apex_item.text_from_LOV(c006,'MARKETCODE')||'-'||apex_item.text_from_LOV_query(c007,'select unit_of_measure d, unit_of_measure r from species_qc') unit,
    apex_item.select_list_from_LOV(8,c008,'DISPOSITIONS','onchange="getAllDisposition('||seq_id||')"','YES','0','  -- Select Favorite --  ','f08_'||seq_id,'') Disposition,
    apex_item.select_list_from_LOV(9,c009,'GEARS','style="background-color:#FBEC5D; "onFocus="checkGearPreviousFocus('||seq_id||');"onchange="getAllGears('||seq_id||')"','YES','3333','-- Select Favorite --','f09_'||seq_id,'') Gear,
    apex_item.text(10,TO_NUMBER(c010),5,null, 'onchange="setTotal('||seq_id||')"','f10_'||seq_id,'') Quantity,
    apex_item.text(11,TO_NUMBER(c011),5,null,'onchange="getPriceBoundaries('||seq_id||')"','f11_'||seq_id,'') Price,
    
    apex_item.text(12, TO_NUMBER(c012),5,null, 'onchange="changePrice
    ('||seq_id||')" onKeyDown="selectDollarsFocus('||seq_id||',event);"','f12_'||seq_id,'') Dollars,
    decode(c013,'Y',apex_item.text(14, c014,30,null,'style="background-color:#FBEC5D;" onClick="onFocusAreaFished('||seq_id||');"','f14_'||seq_id,''),'N','N/A') Area_Fished,
    decode(c017,'Y',apex_item.text(18, c018,4,null,'style="background-color:#FBEC5D; "onBlur="setUnitQuantity('||seq_id||')"','f18_'||seq_id,''),'N','N/A') UNIT_QUANTITY,
    decode(c017,'Y',apex_item.text(19,'CN',3,null,'readOnly=readOnly;','f19_'||seq_id,''),'N','N/A') UNIT_COUNT,
    c024 hms_flag,
    decode(c050,'Y',apex_item.checkbox(21,'Y','id="f21_'||seq_id||'" style="background-color:#FBEC5D; " onClick="alterYes('||seq_id||');" onKeyPress="alterYes('||seq_id||');"',c021),'N','N/A') FinsAttached,
    decode(c050,'Y',apex_item.checkbox(22,'N','id="f22_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterNo('||seq_id||');" onKeyPress="alterNo('||seq_id||');"',c022),'N','N/A') FinsNotAttached,
    decode(c050,'Y',apex_item.checkbox(23,'U','id="f23_'||seq_id||'" style="background-color:#FBEC5D;" onClick="alterUnk('||seq_id||');" onKeyPress="alterUnk('||seq_id||');"',c023),'N','N/A') FinsUnknown,
    decode(c050,'Y',apex_item.textarea(28,c028,3,null,null,'f28_'||seq_id,''),'N','N/A') Explanation,
    decode(c024,'N',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'U',apex_item.select_list_from_LOV(29,c029,'HMSNATURE','onchange="saveNature('||seq_id||')"','YES','A','-- Select Nature of Sale --','f29_'||seq_id,''),'Y','N/A') Nature_Of_Sale,
    decode(c020,'Y',
    apex_item.select_list_from_LOV(40,c040,'HMS_AREA_CODE','style="background-color:#FBEC5D;"',null,null,null,'f40_'||seq_id,''),
    'N','N/A') HMS_AREA_CODE,
    c020,c050,
    decode(c020,'Y',
    apex_item.text(41,TO_NUMBER(c041),5,null,null,'f41_'||seq_id,''),
    'N','N/A') Sale_Price
    from apex_collections
     where collection_name = 'SPECIES_COLLECTION' order by seq_id
    
    
    
    
    
    

    I noticed the following:

    When I change the column C011 (price) the following values are defined in dynamic action:

    P110_ID = f11_1

    P110_VALUE is everything that I change the price.

    When I change the column C024 (hms_flag), the following values are defined:

    P110_ID = f03_0001

    P110_VALUE = change everything what I hms_flag to.

    the region is updated in my dynamic action, and change of hms_flag does not take.  I tested the SQL query that generates the value of v_SEQ in the dynamic action.   Both a change of price and HMS_FLAG, it seems valid

    Select ltrim (substr(:p110_ID,5,4),'0 ') in the double v_seq;

    If f11_1, v_seq: = 1

    If f03_0001, v_seq: = 1

    Thank you!

    solved.  sort of.

    domain c024 references f03.

    dynamic ACtion, step 4 calculated v_member as a substring of P110_ID... and in all other areas, the column and the field (fxx) displayed the same value... otherwise c024.

    I'm not exactly sure how solve it, but see the problem.

  • Dynamic radio button fields do not display again after registered form

    Hello

    I have a group of questions of radio button at the breast of a dynamic form that display additional questions based on the answer.

    So to the question "is there a basement?" If the user indicates Yes, there is a basement, additional questions are displayed in order to collect more information on the basement. If the user says no, while these questions do not appear.

    Everything works beautifully in the form. However, when the form is saved and then re-opened, other issues do not appear in the form. So, the structure goes to this:

    image1.jpg

    To do this:

    image2.jpg

    Users must toggle buttons radio to reappear these issues... and when they reappear, they maintained that respond to the user indicated before the Save.

    I don't know why this happens... does anyone have advice?

    Thank you

    Theresa

    Can you make sure you have state changes based on an automatic script enabled for your form. If you go to file-> properties of form-> by default and see what the script option button is selected. If you have manually, you need to handle all state change yourself and you are not as likely at the present time. Try him affecting automatically and see if it works on the opening of the saved pdf file. I did a quick in Designer 8.2 and it seemed to match your question.

  • Radio button to filter Datagrid, buggy

    Hi all.

    I have a datagrid in poplated with the form of a mysql database, data is stored in a Collection of table.

    Here's my datagrid

    < XY = "1" mx:DataGrid = "20" width = "296" dataProvider = "{YourCandidatesArr}" height = "325" itemClick = "itemClickHandler (event)" >
    < mx:columns >
    < mx:DataGridColumn headerText = "" ID: "width ="35"dataField ="ref"/ >"
    < mx:DataGridColumn headerText = "First name" dataField = "FirstName" / >
    < mx:DataGridColumn headerText = "Name" dataField = 'secondname' / >
    < / mx:columns >
    < / mx:DataGrid >

    Here's my radio buttons

    < s:RadioButton = x "447" y = "180" label = "Live" groupName = "radiogroup1" id = "CB_live" change = "GetYourCandidates_filterFunc (event)" / >
    < s:RadioButton = x "447" y = "206" label = "Zéro" groupName = "radiogroup1" id = "CB_Archieved" change = "GetYourCandidates_filterFunc (event)" / >
    < s:RadioButton = x "447" y = "232" label = "All" groupName = "radiogroup1" id = "CB_All" change = "GetYourCandidates_filterFunc (event)" / >

    And finally my script

    protected function GetYourCandidates_filterFunc(item:Object):void
    {
    If (CB_live.selected)
    {
    output. Text = "a";
    YourCandidatesArr.filterFunction = case_a_filterFunc;
    YourCandidatesArr.refresh ();
    }
    ElseIf (CB_Archieved.selected)
    {
    output. Text = "b";
    YourCandidatesArr.filterFunction = case_b_filterFunc;
    YourCandidatesArr.refresh ();
    }
    ElseIf (CB_All.selected)
    {
    output. Text = "c";
    YourCandidatesArr.filterFunction = case_c_filterFunc;
    YourCandidatesArr.refresh ();
    }
    }

    Filters


    protected function case_a_filterFunc(item:Object):Boolean
    {
    If (item.locked == 'no')
    {
    Returns true
    }
    on the other
    Returns false;
    }
    protected function case_b_filterFunc(item:Object):Boolean
    {
    If (item.locked is "Yes")
    {
    Returns true
    }
    on the other
    Returns false;
    }
    protected function case_c_filterFunc(item:Object):Boolean
    {
    If (item.locked is "Yes")
    {
    Returns true
    }
    Else if (item.locked == 'no')
    {
    Returns true
    }
    on the other
    Returns false;
    }

    Now my problem is, the buttons filter correctly when I click on them first, but if I click through them, in a random order they do not work as they should.

    Hello

    try to make the code as below, it should fix your problem

    David

    PS: Sorry for last night went to Canberra really late and crashed for a few hours just sorta

    (600km of travel and an aggressive meeting on the same day a affecting).

    http://ns.Adobe.com/MXML/2009.

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight >

    Import mx.collections.ArrayCollection;

    Import mx.events.ItemClickEvent;

    [Bindable] private var isLocked:String = 'All ';

    [Bindable] private var myArray:ArrayCollection = new ArrayCollection();

    protected function radiogroup1_itemClickHandler(event:ItemClickEvent):void

    {

    isLocked = event.label;

    myArray.filterFunction = lockFilter;

    myArray.refresh ();

    }

    protected function lockFilter(item:Object):Boolean

    {

    Switch (IsLocked)

    {

    case 'Live': if (item.locked == 'no') true false return otherwise return;

    break;

    case 'Archive': if (item.locked == 'Yes') true false return otherwise return;

    break;

    case 'All': if (item.locked == 'Yes' | item.locked == 'no') true false return otherwise return;

    break;

    }

    }

    ]]>

  • Help with Radio buttons in form

    Hello. I inherited a site that has a simple form. Asked me to change the form of 4 radio buttons added to collect the consumer satisfaction with the content of the Web site. I added radio buttons using Dreamweaver MX, however, they do not work as I planned to do. I was under the impression that option buttons did not allow the user to select several options because when the user has selected a different option, the first option is deselected. My form is currently allowing all four options to choose from at the same time. The code for the form is below. I changed the @ in the email address of the form to avoid possible spam. Any help would be greatly appreciated.

    Looks like you need to change the name = the same on each radio button, if they all have the same name, you can go only one. Then, click the shape in the behaviors panel and don't forget that the name of the radio button is the insertion in the appropriate column db.

  • Upper right corner radio buttons disappear

    Whenever I update Firefox since version 32, radio buttons right up to "minimize, resize the window and close", disappear. They will appear momentarily, and then they are gone. If I downgrade to the version 32, I get back them, so I kept version 32 just for this reason. I wonder why they are endangered in version 33!

    Thank you

    You use a theme installed, or the default value?

    Start Firefox in Safe Mode {web link}
    While you are in safe mode;

    Type of topic: preferences< enter > in the address bar

    Select Advanced > General.
    Find and stop using hardware acceleration.

    Search web sites secure. Are there problems?

    Then restart.

  • 33 Firefox works only with Amazon Wish List radio buttons

    On Amazon.com, if I click on the option button "Add to wish list", my wish lists list doesn't go down for display and selection. Instead, the item is added to my wish list default (I have several wish lists). Within any given wish list, radio buttons 'Move' (to another list of wishes) and 'Delete' does not work for any item in the list. This does not work on my system (Win 7; 33 Firefox) if I use (God forbid!) Internet Explorer.

    This happens in Firefox Safe mode? If this isn't the case, it can be a complement on. Questions to troubleshoot Firefox in Safe Mode

  • Radio buttons of style entry does not not in firefox linux

    Under linux, we cannot use radio buttons pass Foundation zurb. Look at this question: https://github.com/zurb/foundation/issues/1615#issuecomment-14593962.

    The buttons work if I add a - moz-appearance: no rules

    div.switch input {
     position: absolute;
     z-index: 3;
     opacity: 0;
     width: 100%;
     height: 100%;
     -moz-appearance: none
    }
  • Firefox crashes in typing or by clicking check box or the radio button, even with all the plugins / extensions removed. Check with many types of malware scanners.

    Firefox crashes in typing or by clicking check box or the radio button, even with all the plugins / extensions disabled, then deleted. Sometimes it hangs for five minutes. I checked the PC with several types of scanners of evil-ware, but none to be found. All hidden and deleted cookies, all DELETED & extension plugins. Remove all instances of Firefox PC and registry, then restored to bookmarks. The only thing that I did not is to remove and reinstall not my favorites.
    Windows Vista (yes I know) and FF 13.0.1

    Try disabling hardware acceleration in Firefox.

  • Why 200 radio buttons in a form cause 8 second period of rendering

    We have an on-line questionnaire containing 36 questions, each with 6 radio buttons (216 total) in a single form. Although the page to render quickly, there is then a delay in Firefox up to 8 seconds before it will record an option by clicking button. This problem does not occur in Chrome or Safari, and there are slight delay (second) in Internet Explorer. The period shall be reduced pro rata by reducing the number of option buttons. The period may also be reduced to about 4 or 5 seconds by removing all elements of the page outside the boxes option and the form.

    Unfortunately, you will need to get with Norton to try to determine why.

    We could try to open a bug report in Bugzilla... Use the Plugins with Norton AV product component-> https://bugzilla.mozilla.org/enter_bug.cgi?product=Plugins

  • How to programmatically set the option button selected on a group of radio buttons

    Hello, I have another question for you.

    How can I set an option specifically button selected programmatically on a group of Radio buttons? I think it's very simple, but I can't find a solution.

    Thank you in advance.

    You can use the SetActiveCtrl function

  • resize the radio button

    Hello

    How to resize the radio button face before image.i am using labview 8.6

    "" To create a resizable option button, right click on the option button control and selectreplace"classic"Boolean Classic'Round/Square option button. "" You can also place a Radio button Classic Round/Square directly on the front panel or in the box of radio buttons by right-clicking on the front panel to display the controls palette and selecting classic "Boolean Classic'Round/Square option button. This new radio button is now resizable.

  • IdeaPad z460 - how to turn off the physical wireless radio button?

    Hello...

    It is possible to disable the wireless radio button? It's very annoying when I disable the wireless without notice and wasting time trying to figure what happened.

    TKS,

    Hi neokenchi,

    Then... Thanks again for the reply, but I'm a little disappointed that I can't set (enabled) button.

    The only way is to avoid touching this unawareness button...

  • Resize the system checkbox and radio buttons system

    Is it possible to resize the system checkbox and radio buttons system. If we right click on one of them and go to properties, size controls are disabled. I wonder if it's feasible.

    Also I noticed that I could add the new radio buttons to do a right-click and choosing Add new button. Is it possible to achieve this programattically.

    Kind regards

    Austin

    AustinCann wrote:

    Is it possible to resize the system checkbox and radio buttons system. If we right click on one of them and go to properties, size controls are disabled. I wonder if it's feasible.

    As mentioned, system controls cannot be customized, because they depend on the windows theme. However, here are some Boolean values, so all you need to do is use an ordinary Boolean value and import the graphics that you want in the case of true and false. They can easily be made to look like an oversized check box. More details, especially about radio buttons can be found here.

    AustinCann wrote:

    Also I noticed that I could add the new radio buttons to do a right-click and choosing Add new button. Is it possible to achieve this programattically.

    You could probably do it in edit mode programmatically by using scripts. You can't do it at run time.

    To fill a RadioButton with new Boolean values, you can simply drag the new values Boolean inside or even shift-do drag an item to create a copy of it. Don't forget to change the labels to something intuitive.

  • Help with custom radio buttons.

    Before you go all Rube Goldburg thought that I post for a quick reality check.

    Basically, I have a test with several different configurations of coupon and I try to give users an advanced interface to select one they use. Using radio buttons seems the way to go and I inserted my custom images but I have only be able to select by clicking on the buttons. I want the user to be able to click on the image. Unless I'm missing something, I have this feeling that I have to create the four complete custom Boolean buttons with States of 4-6 and then write the code to do that alone is never on at the same time?

    Joint-

    You can change the appearance and the size of the used option button and overlay them on your chart, and then set the transparent parameter. So it looks like they're clicking on custom image but they are clicking on the invisible button on the top of the image.

    But it might be easier to use a ring of photo,

    Photo ring can be changed at runtime to add selections. Where the radio button enum cannot.

Maybe you are looking for