How can I get the value of the element checked a box to tick LOV?

Hi all

I need to insert rows into a table when a checkbox element is checked.
The checkbox element is a LOV in a form.
-----------------------
Select the DESCRIPCIÓN display_value, ID_DOCUMENTO return_value
of DOCUMENT
order by 1
------------------------------

Source
------------------------------
DECLARE
CURSOR C_REG_DOC IS SELECT ID_DOCUMENTO FROM REGISTRO_DOCUMENTO WHERE ID_REGISTRO =: P6_ID_REGISTRO;
v_id_documento documento.id_documento%TYPE;
v_results VARCHAR2 (50);
Boolean v_first_loop: = true;
BEGIN
for this loop C_REG_DOC
If v_first_loop then
v_results: = it.ID_DOCUMENTO;
v_first_loop: = false;
on the other
v_results: = v_results |': ' | it.ID_DOCUMENTO;
end if;
end loop;
Return v_results;
END;
--------------------------

I need to create a process to insert rows in a relational table, but I do not know how...
------------------
FOR *? *
LOOP
INSERT INTO registro_documento (id_reg_documento, id_registro, id_documento)
VALUES(null,:P4_ID_REGISTRO,???);
END LOOP;
---------------

How can I get the value of the active element (id_documento) to insert it?

Thank you!

Alex

Hello:

You can use the apex_util.string_to_table function to retrieve the values of the LOV as shown in the example

declare
arr wwv_flow_global.vc_arr2;
begin
arr:= apex_util.string_to_table(:P_CHECKBOX_LOV_ITEM)
for x in arr.first..arr.last loop
// insert statement
iNSERT INTO registro_documento( arr(i) ,.........id_reg_documento,id_registro,id_documento)
end loop;
end;

CITY

Tags: Database

Similar Questions

  • How can I get the green check mark image in APEX?

    How can I get the green check mark Image that appears whenever an action is processed in the APEX?  I use the Application Express 4.2.1.00.08.  I need to add the image of mark in a column on a report that shows the lines that have already been discussed.

    Can someone tell me how to do this?

    I was able to produce the report with the following:

    Select case when Status = 'closed '.

    can ''

    else ''

    end as "completed."

    'ID', 'PROJECT', 'TASKNAME', 'START_DATE', 'END_DATE', 'STATUS', 'ASSIGNED_TO', 'COST', 'BUDGET '.

    TASKS

    Once you add this column of the report, change the properties of the REPORT of the region, then the columns (filled) ATTRIBUTES and change the setting "display as" 'Standard report Column'-, this allows the browser to "make" image compared to only print the text string of the "img" tag

  • How can I get the 'Bitdefender Quick Scan' box that appeared suddenly without be invited in the lower right winder on my screen to disappear cone?

    A black box of non-mobile with "Bitdefender Scan" fast "you don't have not scanned your computer in some time. Would you start QuickScan now? appears in the lower right of my screen. How can I remove it?

    Yes, by running a scan was the first thing I've done - nothing works, I might add. BitDefender is not and was not installed on my system - but it's a part of the configuration of Firefox. Just after I posted my question I have figure out how to get that box off my screen - don't ask me what I've done because I don't remember.
    Thanks for your reply.

  • How can I get the default sequences bounding box?

    I try to get the bounding box for a film to be on by default for selected images in the timeline panel, but I can't seem to find out how. where is this preference or this setting for this? FCP7 has this and I cannot understand how do in PP. I hate having to click on the transformation icon everytime I want to scale or to place something in the program monitor.

    What you want is to emulate the FCP Image + wireframe. As you probably already know that does not exist in Premiere Pro. You will have to make a feature request for this specific feature: http://www.adobe.com/go/wish

  • How can I get the items checked in a list that is generated automatically?

    I'm still pretty new a CF and could use very little help. I try to get every item that is checked a page that generates the list automatically from a query and get the text textbox associated with it. For example:

                        <!--- Start Get Data Hierarchy List--->
                                  <cfquery datasource="MyDatasource" name="qry_GetData">
                                            SELECT C.taxonomy_id, C.lvl, C.taxonomy_name, C.taxonomy_tree, C.taxonomy_guid, C.taxonomy_standard_name
                                            FROM dbo.taxonomy AS P
                                            JOIN dbo.taxonomy AS C
                                                      ON P.taxonomy_id = 21
                                                      AND C.hid.IsDescendantOf(P.hid) = 1
                                                      AND C.lvl = 3
                                  </cfquery>
                        <!--- Start Get Data Hierarchy List--->
    









    < cfloop query = "qry_GetData" >









    < input type = "checkbox" name = "" cbox_PE_SelTax #taxonomy_id # "value =" #taxonomy_name #"> < font size ="4"color = '3399FF' > #taxonomy_name # < / font >"









    < br / >









    "- Details of ' experience with #taxonomy_name #: < input name =" "tbox_PE_SelTax #taxonomy_id #" id = "tbox_PE_SelTax #taxonomy_id #" size = "50%" >









    < br / >









    < br / >








    < / cfloop >

    If you want just the names, you can let the value of the checkboxes the value taxonomy_name. In your action page (intrusion via CFMAIL, whatever) you could just output it:

    Taxonomies: #form.cbox_PE_SelTax #.

    Dave Watts, CTO, Fig Leaf Software

  • How can I get the spell checker to work on emails?

    New computer. Using Mozilla Thunderbird for email but the spell checker does not work.

    Do you have a dictionary installed or selected? (See attached image).

    You have activated the spell under Tools | Options of| Composition | The spelling?

    You can also download a dictionary in the settings pane opened by the latter sense, but the link it provides is almost certainly open in Thunderbird. At some point, it of better with the right button and select 'Open in browser' and it will re - open in your default browser. From there, you can download. I would recommend you right click on the proposed link, use "Save as" and download it. You can then drag the file downloaded from the window modules modules of Thunderbird, or use the small button to the left of the search box in the window.

    http://www.Ramsden.org.UK/3_How_to_install_Add-ons_in_Thunderbird.html

  • How can I get a value of an element to the variable?

    I have a simple page with name and address on a form text fields.

    First name: (txtLastName)

    First name: (txtFirstName)

    Address: (txtAddress1)

    etc...

    Once the user enters information, what is the syntax for this information in a form variable?  I want the variables available on the next page.

    $varLastName = ["txtLastName"];  ?

    Thank you.

    PS I am obviously a newby and am very frustrated.  I would appreciate your help!

    What I read, it seems that I should use Session variables to store data from one page to another, but I don't know how to do this.

    Google can help you here.  It's pretty simple.

    Can I publish data without that happening in a database?

    Of course - when you submit a form, it is displayed to the next page in the header, so that it is not visible by the user.

    If you want to have several forms on the page, each page can submit each page, where the data from the previous page is loaded in hidden fields.  In this way, each page shows the cumulative set of data.  Who is?

  • How can we get the element box converter change event in the tile list?

    For example.

    I have tile list and there itemrender having to check component... If I select checkbox.checked, then add the entry of text in canvas

    otherwise delete the text input.

    Copy the following code should help you get started.

    If this post answers your question or assistance, please mark it as such.

    Greg Lafrance
    www.ChikaraDev.com

    Support and Flex development services

    
    
      
        
      
      
        
          
            
              
              
            
          
        
      
      
        
      
    
    
  • How can I get the string value displayed on a digital control defined for the relative time.

    I have a digital potentiometer to display relative time in increments of 30 minutes.

    I want to record the value displayed on the control string.  Unfortunately, when I use the "convert to decimal string.vi" number, the resulting string is just the value in seconds.

    How can I get the value as a string? (for example 01:30 for an hour and thirty minutes)

    Thank you

    Sean

    Hi Sean.C!

    M_Peeker's suggestion is a good thing.  A stage that could clarify things is that you must set the % t <%H:%M> format string entry.

    < br / > Kristen:.

  • How can I get the max of a measurement value

    How can I get the max of a measurement value?

    http://forums.NI.com/T5/LabVIEW/how-can-I-return-the-maximum-value-from-a-voltage-sensor-over/m-p/30...

    I tried the while loop max-min-solution described in this link. But this using my myRio acceleration measurement no longer works. It seems to hang.

    I use the I2C Communication.

    The inner circle while loop is a bad construction.  It will be either executed once, if enter the Boolean value is True, or forever if the value is false.

    Put your records on the timed loop shift and eliminate inside while loop.  Then your code should work.

  • Hi, I have a PDF form that has multiple check boxes. Some boxes have values (off, yes) that others have just (Yes). How can I get the value of "Off" to all of the other boxes as well. Any help is greatly appreciated.

    Hi, I have a PDF form that has multiple check boxes. Some boxes have values (off, yes) that others have just (Yes). How can I get the 'Off' the value assigned to all the other boxes as well. Any help is greatly appreciated.

    'Off' is the default value of any box when it is not checked. It can not

    be changed.

  • ICF custom connector; How can I get the values of the parameters of the recon calendar task?

    I'm trying to create a custom connector icf with progressive reconciliation. My recon schedule a task, I have the settings "attribute of Date additional Recon ' and 'last token" that should be used for gradual reconciliation.

    How can I get the values of the parameters ' attribute of Date additional Recon ' and 'last token "?

    ICF should handle this for you.

    The value of "attribute of Date additional Recon ' must be filled in the OperationOption (e.g. executeQuery() and PROCESSES of FilterTranslator has this as a method parameter).

    For the "last counter", you need to implement ' createGreaterThanExpression (GreaterThanFilter, filter, is not Boolean) ' in your filter translator class. You can get the attribute of the filter object. Look for a description here: http://docs.oracle.com/cd/E37472_01/apirefs.1112/e28159/oracle/iam/connectors/icfcommon/recon/SearchReconTask.html

  • NOAE: How can I get the real value of FPS?

    I implement an external encoder as an After Effects plugin library. This requires a value for the encoding of the FPS as a float value.

    With the help of:

    ERR (suites. IOOutSuite4()-> AEGP_GetOutSpecFPS (mouthand fps));

    gives a completely ridiculous value (1964114, when the FPS publication is 29.97). How can I get the real value of FPS?

    Hello

    It seems that AEGP_GetOutSpecsFPS returns a value of type A_Fixed.  You can use the macro FIX_2_FLOAT() (defined in AE_Macros.h) to convert to a float value.

  • How can I get the value of the element with the namespace?

    I tried to get an element of value in xml a namespace, but I can't.
    I removed the namespace, I get a value of the element.

    How can I get a value of the element with the namespace?

    -1. Error ----------- xml ------------------------------
    <? XML version = "1.0" encoding = "UTF-8"? >

    * < TaxInvoice xmlns = "" urn: kr: or: kec:standard:Tax:ReusableAggregateBusinessInformation:1:0 "xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"xsi: schemaLocation =" urn: kr: or: kec:standard:Tax:ReusableAggregateBusinessInformation:1:0 http://www.kec.or.kr/standard/Tax/TaxInvoiceSchemaModule_1.0.xsd "> *"
    < ExchangedDocument >
    < IssueDateTime > 20110810133213 < / IssueDateTime >
    < ReferencedDocument >
    < ID > 318701 - 0002 / < ID >
    < / ReferencedDocument >
    < / ExchangedDocument >
    < TaxInvoiceDocument >
    < IssueID > 201106294100 < / IssueID >
    < > 0101 TypeCode < / TypeCode >
    < IssueDateTime > 20110810 < / IssueDateTime >
    < PurposeCode > 02 < / PurposeCode >
    < / TaxInvoiceDocument >
    < TaxInvoiceTradeLineItem >
    < SequenceNumeric > 1 < / SequenceNumeric >
    < > 200000000 InvoiceAmount < / InvoiceAmount >
    < TotalTax >
    < CalculatedAmount > 20000000 < / CalculatedAmount >
    < / TotalTax >
    < / TaxInvoiceTradeLineItem >
    < / TaxInvoice >


    -2. success - xml - remove namespace.
    <? XML version = "1.0" encoding = "UTF-8"? >
    < TaxInvoice >
    < ExchangedDocument >
    < IssueDateTime > 20110810133213 < / IssueDateTime >
    < ReferencedDocument >
    < ID > 318701 - 0002 / < ID >
    < / ReferencedDocument >
    < / ExchangedDocument >
    < TaxInvoiceDocument >
    < IssueID > 201106294100 < / IssueID >
    < > 0101 TypeCode < / TypeCode >
    < IssueDateTime > 20110810 < / IssueDateTime >
    < PurposeCode > 02 < / PurposeCode >
    < / TaxInvoiceDocument >
    < TaxInvoiceTradeLineItem >
    < SequenceNumeric > 1 < / SequenceNumeric >
    < > 200000000 InvoiceAmount < / InvoiceAmount >
    < TotalTax >
    < CalculatedAmount > 20000000 < / CalculatedAmount >
    < / TotalTax >
    < / TaxInvoiceTradeLineItem >
    < / TaxInvoice >




    -program-
    procedure insert_table
    (
    l_clob clob,
    OK, Boolean.
    Error out varchar2
    )
    is
    l_parser dbms_xmlparser. Analyzer;
    xmlDoc xmldom.domdocument;

    l_doc dbms_xmldom. DOMDocument;
    l_nl dbms_xmldom. DOMNodeList;
    l_n dbms_xmldom. DOMNode;
    l_root DBMS_XMLDOM.domelement;
    l_node DBMS_XMLDOM.domnode;
    l_node2 DBMS_XMLDOM.domnode;
    l_text DBMS_XMLDOM. DOMTEXT;

    buf VARCHAR2 (30000);

    XMLParseError exception;

    TYPE tab_type is Table of xml_upload % ROWTYPE;
    t_tab tab_type: = tab_type();
    pragma exception_init (xmlparseerror,-20100);
    l_node_name varchar2 (300);

    Start
    l_parser: = dbms_xmlparser.newParser;
    l_doc: = DBMS_XMLDOM.newdomdocument;
    dbms_xmlparser.parseClob (l_parser, l_clob);
    l_doc: = dbms_xmlparser.getDocument (l_parser);
    l_n: = dbms_xmldom.makeNode (l_doc);

    l_nl: = dbms_xslprocessor.selectNodes (l_n, ' / TaxInvoice/TaxInvoiceDocument ');

    FOR cur_tax in 0.dbms_xmldom.getLength (l_nl) - 1 LOOP
    l_n: = dbms_xmldom.item (l_nl, cur_tax);

    t_tab.extend;

    t_tab (t_tab.last) .ed_id: = '5000000';

    dbms_xslprocessor.valueOf (l_n, ' IssueID / text () ', t_tab (t_tab.last) .tid_issue_id);
    dbms_xslprocessor.valueOf (l_n, ' TypeCode / text () ', t_tab (t_tab.last) .tid_type_code);

    END LOOP;

    FORALL i IN t_tab.first... t_tab. Last
    INSERT INTO xml_upload VALUES t_tab (i);

    COMMIT;

    dbms_xmldom.freeDocument (l_doc);
    correct: = true;

    exception
    When xmlparseerror then
    -xmlparser.freeparser (l_parser);
    correct: = false;
    error: = sqlerrm;

    end insert_table;
    l_nl := dbms_xslprocessor.selectNodes(l_n, '/TaxInvoice/TaxInvoiceDocument');
    

    try to change as follows

    l_nl := dbms_xslprocessor.selectnodes(l_n,'/TaxInvoice/TaxInvoiceDocument','xmlns="urn:kr:or:kec:standard:Tax:ReusableAggregateBusinessInformation:1:0"');
    

    Published by: Alexandr on August 17, 2011 12:36 AM

  • How can I get the numbers to treat my numeric value in text form?

    When using the 'numbers', I want to type in a number and have it show exactly as input, in this case with leading zeros.  How can I get the program to deal with any symbol in the form of text and enter it exactly as I typed?

    Then select all the cells in the Inspector (right bar), click cell (Format-click just above the Inspector, if the cell is not a choice at the top of the Inspector) and change the Format of text data.

    If the Inspector is not visible in the right sidebar, view menu > Inspector > Format.

Maybe you are looking for

  • Need to recover the Office 2003

    We had a system crash and had to recover in the start menu (F10). The biggest problem is that our original disks and backup are who knows where, since then, we bought the Pavilion about 4 years ago. We had Office 2003 and now are not. Is there a way

  • Question of Ogg Vorbis...

    Well, I know that, but a bit slow, just now, I opened my mp3 player in the world of the Ogg Vorbis. I converted a song for her, and my computer doesn't not recignize it. That's ok, because I copied my rocket, and it works. My question is, how can I r

  • zip files are running rampid!

    When I try to open a file Explorer zip becomes crazy and opens over and over and over again.  I can not stop it without stopping and restarting my computer manually.  I can't stop even opening windows using the Task Manager.  What is going on?

  • Customze watch info?

    Am very happy with my SW2 and can consider the upgrade to the SWR50.  I just have one question: The information displayed on the watch SWR50 can be customized (like on the SW2)?.  For example, I like having the time, day/date, battery, bluetooth, eve

  • Problem with database SQLite 20 MB

    Hello I m developing an application with SQLite and I need to attach a large database, 20 MB. I have can´t generate the relase, I get the following error.