Select in the collection?

There is the following code
declare
  type r is record( rid rowid, acct_id number );
  type t is table of r;
  v t := t();
begin
  ...
  execute immediate v_sql bulk collect into v;
  ...
end;
run fills immediate collection with some data provided by the v_sql statement: table rowid and acct_id as a number. Is it possible to use this collection in one direction, while it would be possible to write later in this code:
delete ACCOUNTS@db_link_to_remote_database
where acct_id in ( *[here comes some magic subquery that supplies acct_id from collection]* )
If it is possible how this can be done?

No, you cannot use this exact collection in a SQL statement.

If you can set the collection in SQL, as rp0428 has already suggested, you can use the collection in a SQL statement.
If you could define the collection in a PL/SQL package, rather than in an anonymous PL/SQL block, you can write a function table in the pipeline that could be described as SQL. It is not clear to me that one of the restrictions you have is an inability to use named PL/SQL blocks.

Justin

Tags: Database

Similar Questions

  • Photo, what are the criteria for images selected from the collections of photos?

    With Photo on my Mac when I'm in the view "of the years', I see all my photos. When I switch to 'Moments' I see all the photos, especially older. When I go to "collections", then I self pictures? What are the criteria for images selected in 'collections' of photos? Thank you

    You should see all the photos in the Moments, the years, Collections, unless you have the "Summarize" option enabled in Photos > Preferences > General.  Then some pictures will be omitted, but the rules are not documented.

  • Select the column values in the collection

    Greetings,

    I want to select column values from the collection (plsql tables or table), as the following code, would it be possible
    Here tt is any collection



    Select emp_no, name, date of birth, sal tt (1), tt (2), tt (3), tt (4) emp; -single line query

    Select name, Department of justice, strength and dep_no in tt (5), tt (6), tt (7), tt (8) EMP; -single line query


    Version
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production

    Thanks in advance

    Not sure about your business needs. But technically you can do.

    declare
       type tbl is table of number;
       lemp tbl := tbl();
    begin
       lemp.extend;
       lemp.extend;
       lemp.extend;
    
       select empno
            , mgr
            , sal
         into lemp(1)
            , lemp(2)
            , lemp(3)
         from emp
        where empno = 7369;
    
       for i in 1..lemp.count
       loop
         dbms_output.put_line(to_char(lemp(i)));
      end loop;
    end;   
    
  • Select the distinct value of a column in the collection in bulk.

    Hi all

    Collecting the data of a query to a variable of type table. I need to select a separate of a perticular column value in the collection.

    Collection has followiing values inside.
    Col(c).articleid,
    Col(c).userkey,
    Col(c).origin,
    Col(c).addnlorigindata,
    Col(c).avdest,
    Col(c).dispfmt,
    Col(c).sourcecode,
    Col(c).success_ind,
    Col(c).error_code,
    Col(c).entry_createddate,
    Col(c).createdby,
    Col(c).filenumber,
    Col(c).linenumber,
    Col(c).acctnum,
    Col(c).assetkey,
    Col(c).autocompletedterm,
    Col(c).accessionnumber,
    Col(c).requestdatetime,
    Col(c).requestorip,
    Col(c).articleordinal,
    Col(c).userinitiatedind,
    Col(c).captchastatus
    I need to select distinct column values (for example: Col (c) .sourcecode) collection and the need to insert in the table if the value in this column does not exist in the table.

    Say, Col (c) .sourcecode has the value XYZ, ABC. If the "XYZ" value does not exist in the table, so I need to insert in the table and if "ABC" exists in the tables then don't insert it. (something like fusion) after seecting to the distinct values in a column in the collection.

    Thanks n regards
    Nana Akkivalli.

    The collection must be inserted before you can use this topic.

    In the Begin block, you have to collect a loose and insert inside: something like

    SELECT *
    BULK COLLECT INTO l_array
    FROM ALL_USER
    ...CONDITIONS...
    
  • How to export the collected addresses

    I carried on a new machine (win 7). I have properly exported and imported my address book that contains only 7 entries in my opinion.
    It is now only that I realize that Thunderbird uses the addresses of his "collected addresses" for a long time to suggest the person in the address bar, and that all of these hundreds of addresses are not registered in my address book.
    How can I get access to my (what must be hundreds of) "collected addresses" and get them on my new machine?

    Thank you

    Opens the address book, then select Tools-Export. Select the collected book to export.
    http://KB.mozillazine.org/Moving_address_books_between_profiles

  • Request that you be selected for the trial of impregnation.

    If you take your personal time to participate in surveys and to respond to their e-mails and REQUEST that they not lose your time and aquirer then your personal information. They do nothing, they are just the collection of personal information and nothing more. Look at the website that collects your information "surveymonkey.com. Your giving them the right to share with the 3rd party, because you think you would have the chance to test the new software coming for a little personal information. Wise up people. Nothing but trouble with Motorola, the customer service and here in the forums. This company is a piece of work. Excellent material will give them that.

    We collect the information necessary for the purposes of the Motorola feedback network opportunities. Information is not shared with all 3 parts. Signing up is voluntary. Selection is at the discretion of the directors of Motorola feedback network. Some possibilities are offered to all eligible members and others are accessible only to members who have consistent feedback through previous occasions.

    Mark

    Forums Manager

  • Try to install Windows 7 but the grip to install in the "collection of information".

    suspended in the "collection of information".

    Try to install Windows 7, suspended in the "collection of information".  Any suggestions?

    How long you wait to determine that she is hooked on collecting the information?

    You try to upgrade or clean installation?

    You disconnect all devices non-essential connected to the computer before attempting the installation?

    If you are upgrading from a previous version of Windows:

    1 disable any security software before attempting to upgrade
    2. make sure that your computer is updated (devices and applications)
    3. disconnect all external devices before installing.
    4. check your hard disk for errors:
    Click Start
    Type: CMD, according to the results, right-click CMD
    Click on "Run as Administrator"
    At the command prompt, type: chkdsk /f /r
    When you restart your system, your computer will be scanned for errors and will try to correct them.

    1. click on start, type msconfig in the search box and press ENTER.
    User account control permission
    If you are prompted for an administrator password or a confirmation, type the password, or click on continue.
    2. in the general tab, click Selective startup.
    3. under Selective startup, clear the check box load startup items.
    4. click on the Services tab, select the hide all Microsoft Services check box, and then click Disable all.
    5. click on OK.
    6. When you are prompted, click on restart.
    7. after the computer starts, check if the problem is resolved.

    Also run the Windows 7 Upgrade Advisor:
    http://www.Microsoft.com/Windows/Windows-7/Upgrade-Advisor.aspx

  • Selection of the mSATA port w / 120GB SSD and HDD using Rapid Storage Technology

    For my XPS 8500, I try to understand how to better select the appropriate for my two readers ports: 1.standalone120GB SSD drive and player 2.a 1 TB HHD mSATA of w / 120GB SSD using Intel Rapid Storage Technology.  The standalone SSD should be on port 0 (SATA III) and put on port 1 HARD drive (SATA II), or would the using HHD Rapid Storage Technology better put on port 0, and put the standalone SSD on port 1?  Which of the two configurations of ports will get the best performance for startup, application loading and general use (no game)?  I intend to use the standalone SSD as boot drive and application drive while using the HHD to store data (especially the collection large photo).  As I understand it, the choice becomes one which the reader will work better (suffer the least) on the SATA II port.  I read that HARD drive using Rapid Storage Technology technology perform almost as although independent of SSD, but I do not know if the SATA II port speed limit either or both players so that no matter what port is selected (i.e. HARD drive using RST on port 0 would work as well as standalone SSD on port 1)?

    Thoughts or suggestions would be most appreciated.

    Hi DoctorDED,

    The mSATA SSD is usually used as a cache for a mechanical drive. With a 120 GB SSD as drive system, you do not have the reader mSATA as a cache, but I believe you can still use it for storage.

    You must install the SSD on port 0 and mechanical training on port 1.

  • delete all the images in the Lightroom mobile, but those in the collections

    Hello

    After using Lightroom for mobile on my Apple TV, I realized that, other than the images I've grouped in collections, all the photos I took with my iPhone are available under the "images" tab

    I don't want that, so I disabled the feature to add.

    How can I delete all these images from Lightroom on mobile?

    I want to only keep those in my collections. Also, I don't want to delete the pictures that I took with the iPhone from the mobile, only from Lightroom.

    I hope someone can help,

    Thank you in advance.

    Thank you once again, Mohit.

    I thought... a work around in Lightroom, I created a collection called mobile DELETE... so I went to all the "Lightroom Photos' and choose ' copy in...» »

    I then could quickly select hundreds of photos at once and have all those I want to deleted in the new collection.

    Finally, the desktop version of Lightroom, I can select all the images in the collection DELETE and get rid of them.

  • Oracle apex 5.0: not update the values in the Collection.

    Hello again,

    I have a problem in IR where content comes from the collection query.

    Now the question is when I update the value of the column in the report and click on the custom button, that it will update the value of collection and insert the updated values of the collection member in another table that works well according to my condition, but when I will apply to any word in the search bar (say books in order not to update the values of books) and tries to update the value as a result of research above requirement does not work I mean the collection is not updated. Apex. Oracle.com

    testdump/developer/Office

    All of the Suggestions!

    Thank you

    Pranav.

    Pranav.Shah wrote:

    I have a problem in IR where content comes from the collection query.

    Now the question is when I update the value of the column in the report and click on the custom button, that it will update the value of collection and insert the updated values of the collection member in another table that works well according to my condition, but when I will apply to any word in the search bar (say books in order not to update the values of books) and tries to update the value as a result of research above requirement does not work I mean the collection is not updated. Apex. Oracle.com

    testdump/developer/Office

    The "coll update" process fails with a ORA-01403: no data found error. This happens in line 11 because of the access attempt to the wwv_flow.g_f01 using the variable array subscript c who has been incremented beyond the size of the table, which is now smaller because of the IR filter applied.

    begin declare
      c pls_integer := 0;
    begin
    for c1 in (
      select seq_id,c001 from apex_collections
      where collection_name = 'MATRIX2'
      ) loop
    c:=c+1;
    apex_debug.message(c);
      apex_collection.update_member_attribute (p_collection_name=> 'MATRIX2',
      p_seq=> c1.seq_id,p_attr_number =>'2',p_attr_value=>wwv_flow.g_f01(c));
    
    end loop;
    end;
    end;
    

    I agree with fondant tabular forms on interactive reports, but you can meet your requirement as follows. In your application, see page 2.

    1 Add a column of form element hidden IR containing the sequence number of collection:

    select
        c001 col1
      , apex_item.text(2, c002) col2
      , apex_item.hidden(1, seq_id) seq
    from
        apex_collections
    where
        collection_name = 'MATRIX2'
    

    2 place the question of the hidden form in the report using the COL1 Expression HTML attribute:

    #COL1##SEQ#
    

    3. change submit to the process if it is driven by the subject table, not the existing collection:

    begin
    
      for i in 1..apex_application.g_f01.count
      loop
        apex_collection.update_member_attribute(
            p_collection_name=> 'MATRIX2'
          , p_seq=> apex_application.g_f01(i)
          , p_attr_number => '2'
          , p_attr_value=> apex_application.g_f02(i));
      end loop;
    
    end;
    
  • using fetch employeeid from the collection

    Hi all

    The code below may not fetch employee_id using the collection. can you please tell me where I was wrong.

    DECLARE

    Emp_table_type TYPE IS an ARRAY OF

    Employees.employee_id%type;

    my_emp_table emp_table_type;

    BEGIN

    SELECT employee_id IN my_emp_table FROM employees;

    BECAUSE me IN 1.my_emp_table.count

    LOOP

    DBMS_OUTPUT. Put_line (my_emp_table (i) .employee_id);

    END LOOP;

    end;

    WARNING: In BULK to COLLECT without a limit is a bad habit, correct it yourself.

    DECLARE

    TYPE emp_table_type IS TABLE OF THE employees.employee_id%type;

    my_emp_table emp_table_type;

    BEGIN

    SELECT employee_id COLLECT LOOSE my_emp_table FROM employees;

    BECAUSE me IN 1.my_emp_table.count

    LOOP

    DBMS_OUTPUT. Put_line (my_emp_table (i));

    END LOOP;

    end;

  • Help with master / multiple details from the collections

    Hello

    I am trying to create multiple details for my master report using collections by the method of Blarman on https://community.oracle.com/thread/1091458. This is my first shot of dagger to collections and I seem to be missing something, but for the life of me, I don't know what. I managed to get the display of collection for the captain, but when this inserts / updates, only the first collection seq_id is already updated or inserted the user entry. I suspect that I'm doing something stupid on BCM_POPULATE_TICKET_REF_COL to avoid updates to all items in the collection, but after much research and trying, I do not know what. Any suggestions would be much appreciated.

    Thank you!
    Michelle

    1. structure of the table

    CREATE THE TABLE DBSCH1. BCM_FINDINGS
    (
    NUMBER OF FINDINGS_ID
    VARCHAR2 (200 BYTE) WORKING GROUP,
    VARCHAR2 (200 BYTE) TEAM.
    DIVISION VARCHAR2 (200 BYTE),
    RAISED_BY VARCHAR2 (200 BYTE),
    ...
    )

    CREATE THE TABLE DBSCH1. BCM_COMMENTS
    (
    NUMBER OF COMMENTS_ID
    COMMENTS VARCHAR2 (4000 BYTE),
    FINDINGS_ID NUMBER NOT NULL
    )

    CREATE THE TABLE DBSCH1. BCM_TICKET_REF
    (
    NUMBER OF TICKET_REF_ID
    TOOL VARCHAR2 (4000 BYTE),
    TICKET_REF VARCHAR2 (4000 BYTE),
    LINK VARCHAR2 (4000 BYTE),
    FINDINGS_ID NUMBER NOT NULL
    )


    2 created master / detail report on BCM_FINDINGS & BCM_COMMENTS.

    3. create the BCM_TICKET_REF collection:

    CREATE or REPLACE PROCEDURE BCM_CREATE_TICKET_REF_COL (full bcm_findings_id)
    as
    I have pls_integer;
    CNTR pls_integer: = 5;
    Start
    apex_collection.create_or_truncate_collection ('POPULATE_TICKET_REF_COL');
    for Rec in)
    Select the tool, ticket_ref, link, ticket_ref_id, findings_id
    of bcm_ticket_ref
    where FINDINGS_ID = bcm_findings_id

    )
    loop
    () apex_collection.add_member
    p_collection_name = > 'POPULATE_TICKET_REF_COL ',.
    p_c030 = > Rec.ticket_ref_id,--primary key
    p_c031 = > Rec.tool, - placeholder text
    p_c032 = > Rec.ticket_ref, - placeholder text
    p_c033 = > Rec.link, - placeholder text
    p_c034 = > Rec.findings_id fk - space
    );
    end loop;
    because me in 1.cntr
    loop
    () apex_collection.add_member
    p_collection_name = > 'POPULATE_TICKET_REF_COL ',.
    p_c030 = > 0, - designates this as a new registration
    p_c031 = > NULL,-placeholder text
    p_c032 = > NULL,-placeholder text
    p_c033 = > NULL,-placeholder text
    p_c034 = > bcm_findings_id - number placeholder
    );
    end loop;
    end BCM_CREATE_TICKET_REF_COL;

    Support - before the header:

    BEGIN
    BCM_CREATE_TICKET_REF_COL (bcm_findings_id = >: P2_FINDINGS_ID);
    END;


    4. definition of standard report for BCM_TICKET_REF region:
    SELECT rownum,
    apex_item. Hidden (30, c030), - ticket_ref_id
    apex_item. Text (31, c031, 20, 20) tool.
    apex_item. Text (32, c032, 15, 15) ticket_ref,.
    apex_item. Text (33, c033, 15, 15) link.
    apex_item. Hidden (34, c034) findings_id
    OF APEX_COLLECTIONS
    WHERE COLLECTION_NAME = "POPULATE_TICKET_REF_COL."

    5. get user input for the update of the collection BCM_TICKET_REF
    CREATE OR REPLACE PROCEDURE BCM_POPULATE_TICKET_REF_COL
    AS
    j pls_integer: = 0;
    Start
    for j1 in)
    Select seq_id apex_collections
    where collection_name = "POPULATE_TICKET_REF_COL."
    the order of seq_id loop)
    j: = j + 1;
    -(number) ticket_ref_id
    apex_collection.update_member_attribute (p_collection_name = > 'POPULATE_TICKET_REF_COL',)
    p_seq = > j1.seq_id, p_attr_number = 30, p_attr_value = > wwv_flow.g_f30 (j));
    -tool (text)
    apex_collection.update_member_attribute (p_collection_name = > 'POPULATE_TICKET_REF_COL',)
    p_seq = > j1.seq_id p_attr_number = > 31, p_attr_value = > wwv_flow.g_f31 (j));
    -ticket_ref (text)
    apex_collection.update_member_attribute (p_collection_name = > 'POPULATE_TICKET_REF_COL',)
    p_seq = > j1.seq_id p_attr_number = > 32, p_attr_value = > wwv_flow.g_f32 (j));
    -link (text)
    apex_collection.update_member_attribute (p_collection_name = > 'POPULATE_TICKET_REF_COL',)
    p_seq = > j1.seq_id p_attr_number = > 33, p_attr_value = > wwv_flow.g_f33 (j));
    -(number) findings_id
    apex_collection.update_member_attribute (p_collection_name = > 'POPULATE_TICKET_REF_COL',)
    p_seq = > j1.seq_id p_attr_number = > 34, p_attr_value = > wwv_flow.g_f34 (j));
    apex_application.g_print_success_message: = "loop COUNTER" | j;
    end loop;
    end;

    On present - before the calculations and validations

    BEGIN
    BCM_POPULATE_TICKET_REF_COL;
    END;


    6 update DB with the data in the collection BCM_TICKET_REF
    CREATE OR REPLACE PROCEDURE DBSCH1. BCM_UPDATE_TICKET_REF
    AS
    j pls_integer: = 0;
    Start
    -Obtaining records from Collection
    for y in (select TO_NUMBER (c030) ticket_ref_id,
    C031 tool,
    C032 ticket_ref,
    C033 link,
    TO_NUMBER (c034) findings_id
    OF APEX_COLLECTIONS
    WHERE collection_name = "POPULATE_TICKET_REF_COL") loop
    j: = j + 1;
    If y.ticket_ref_id = 0 then - new record
    insert into BCM_TICKET_REF (ticket_ref_id, tool, ticket_ref, link, findings_id)
    values (BCM_TICKET_REF_SEQ.nextval, y.tool, y.ticket_ref, y.link, y.findings_id);
    APEX_DEBUG. MESSAGE (p_message = > 'INSERT the LOOP COUNTER': j);
    "exit";
    elsif y.ticket_ref_id > 0 then - existing record
    Update BCM_TICKET_REF
    adjustment tool = y.tool,
    ticket_ref = y.ticket_ref,
    link = y.link,
    findings_id = y.findings_id
    where ticket_ref_id = y.ticket_ref_id;
    APEX_DEBUG. MESSAGE (p_message = > 'UPDATE the LOOP COUNTER': j);
    "exit";
    on the other
    APEX_DEBUG. MESSAGE (p_message = > "NUTHIN'");
    "exit";
    end if;
    end loop;
    end;

    Present on - after calculations and validations

    BEGIN
    BCM_UPDATE_TICKET_REF;
    END;

    HA! Well it took me several tries, but I finally saw him, you have a 'out' right after insertion (and updated).  That could leave the loop and record #2 would never happen.

    Just remove it. In your case you are inserting/updating all your lines.

    -Jorge

  • Virtual copies (do not appear) in the collections

    I n Lightroom can only see virtual copy either when I select all of the photographs, or if I'm in the folders, if I'm in the Collections that they disappear. What I don't understand?

    I think I've cracked it. Will doublecheck this evening.

    The imported structure opening with recommended Adobe add, implement the same structure as in the opening... but!

    Opening projects translate Collection sets in Adobe, and LR creates a "subproject" which he named 'Project' and puts the actual images than void / project.  In terms of LR, the subproject is a Collection.

    So, while I was in the Collections tab in LR, I was actually in a set of Coillection. descendant of a layer to the Collection autonamed project makes everything works as it should.

    So far so good.  Does make sense to experts of LR you?

  • Need to update the collection

    Hi gurus

    I'm stuck on a problem related to the collection.

    I have the following structure.

    Sample data

    DROP TABLE dept2;
    DROP TABLE dept2_dtl;
    CREATE TABLE dept2
    (DEPTNO NUMBER (2),)
    DNAME VARCHAR2 (14).
    LOC VARCHAR2 (13),
    DEPT_ID NUMBER (5))
    ;
    -------
    CREATE TABLE dept2_dtl
    (DEPTNO NUMBER (2),)
    DNAME VARCHAR2 (14).
    LOC VARCHAR2 (13),
    DEPT_ID NUMBER (5))
    ;

    CREATE SEQUENCE dept_seq
    START WITH 1000
    INCREMENT BY 1;

    -----------

    Code so far

    DECLARE
    TYPE t_dept IS TABLE OF dept2% rowtype;
    v_dept t_dept;
    cursor c1 is select deptno, dname, loc, null of the Department;
    BEGIN
    OPEN c1;
    loop fetch c1 COLLECT LOOSE v_dept limit 1000;
    exit WHEN v_dept.count = 0;
    ForAll indx IN 1.v_dept.count
    INSERT INTO dept2
    (DEPTNO,
    DNAME,
    LOC           ,
    DEPT_ID)
    VALUES
    (
    v_dept (indx). DEPTNO,
    v_dept (indx). DNAME,
    v_dept (indx). LOC,
    dept_seq.nextval
    );
    -This section contains an exception


    BEGIN

    ForAll indx IN 1.v_dept.count
    INSERT INTO dept2_dtl
    (DEPTNO,
    DNAME,
    LOC
    -DEPT_ID
    )
    SELECT v_dept (indx). DEPTNO, v_dept (indx). DNAME, v_dept (indx). LOC
    OF the double
    where v_dept (indx). DEPTNO = 10;
    End;
    -Now, I want to add

    end loop;
    END;

    The above code work fine, but I want to add dept2. DEPT_ID in table of details that are dept2_dtl but unable to reference it. I need to change a code in my second insert something like below:

    SELECT v_dept (indx). DEPTNO, v_dept (indx). DNAME, v_dept (indx). LOC,

    v_dept (indx). DEPT_ID

    OF the double

    where v_dept (indx). DEPTNO = 10;

    but the problem is that I don't have DEPT_ID in my collection at this time, please advice. Thank you

    I'm stuck on a problem related to the collection.

    I see NOTHING in what you posted indicating that the collections or PL/SQL is even necessary.

    The first part of what you are doing is just selecting data in DEPT and inserting into DEPT2 with a new value in the sequence.

    Then you say you want to insert the same data into another table that you just inserted in the first table.

    Why don't you just use SQL to query DEPT and do insertion in DEPT2?

    Even if you were to use the collections and that the solution is pretty simple, don't you think?

    This is the cursor you have defined:

    cursor c1 is select deptno, dname, loc, null of the Department;

    And that's what you say, what is the problem:

    the problem is that I don't have DEPT_ID in my collection right now

    So FIX THIS PROBLEM! is not the solution the more simple, just to add DEPT_ID to this collection?

    Define your collection on the projection of CURSOR and add DEPT_SEQ. NEXTVAL in the cursor query.

    Now you have DEPT_ID in the cursor AND in the collection, you can use the collection to INSERT in the two tables.

    DECLARE

    cursor c1 is select deptno, dname, loc dept_seq.nextval deptid of the Department;

    TYPE t_dept IS TABLE c1% rowtype;

    v_dept t_dept;

    BEGIN

    OPEN c1;

    loop fetch c1 COLLECT LOOSE v_dept limit 1000;

    exit WHEN v_dept.count = 0;

    ForAll indx IN 1.v_dept.count

    INSERT INTO dept2

    (DEPTNO,

    DNAME,

    LOC           ,

    DEPT_ID)

    VALUES

    (

    v_dept (indx). DEPTNO,

    v_dept (indx). DNAME,

    v_dept (indx). LOC,

    v_dept (indx). DEPTID

    );

    ForAll indx IN 1.v_dept.count

    INSERT INTO dept2_dtl

    (DEPTNO,

    DNAME,

    LOC           ,

    DEPT_ID

    )

    SELECT v_dept (indx). DEPTNO, v_dept (indx). DNAME, v_dept (indx). LOC, v_dept (indx). DEPTID

    OF the double

    where v_dept (indx). DEPTNO = 10;

    end loop;

    END;

    The big question is why you are using this TERRIBLE to begin implementation?

  • Interactive report editable without using the Collection

    Hi Experts,

    I use Oracle Apex 4.2.5

    Is it possible to create an interactive report that can be changed in the same page? If the user edit a field, it must get updated in this table.

    Let me know if this is possible without assistance from the Collections of the Apex

    BR,

    Patrick

    Paul Broughton says:

    Hi Patrick,

    I also agree there is no out of the box solution, I need this for an application and I used elements of the APEX of the APEX_ITEM API

    Here is a very basic example that I have not tested, but you have a question, something like:

    [code]

    Select

    APEX_ITEM. DISPLAY_AND_SAVE (1, empno) as patient_id,

    APEX_ITEM. TEXT (2, ename) as ename

    Of

    EMP;

    [/ code]

    Make sure you use columns of standard report as your column types.

    When you click on submit you'd have a process similar to the following:

    [code]

    Start

    BECAUSE me in 1... APEX_APPLICATION. G_F01. COUNTING LOOP

    Update emp

    set ename = apex_application.g_f02 (i)

    where empno = apex_application.g_f01 (i);

    end loop;

    end;

    [/ code]

    That's assuming you don't need inline editing.  If you do this will require an even more customized solution, but the way above requires no collections.

    Thank you

    Paul

    Hi Paul,.

    I think that IR out-of-box features do not work correctly when you use the APEX_ITEM functions in the query.

    Here's another one you could use APEX 4.2

    Yet another way to create & quot; editable interactive report & quot;

    Kind regards

    Jari

Maybe you are looking for

  • Terminal guard opening randomly

    Thus, every once in a while... (as both days) I wake up my iMac and notice that my terminal is open. Now, I rarely if ever open it... If it of not like I opened and didn't close it. I have not use this month... Nothing unusual appears in it. It would

  • How can I remove a device access Firefox Sync rights?

    If I have a camera paired with Sync, and this device is lost or stolen, is there a way to delete all the data synchronization of the device? This concern to synchronize all the data previously sent along with future data. In the same vein, if I chang

  • Why Google website rises considerably enlarged?

    It is not a larger font. He looks just enlarged.

  • iPhone & iPad can't Airprint for LaserJet p1102w

    Just bought a p1102w so I can print from my iPhone 4 / iPad 2. I was able to get the printer running with my WiFi network. I can print wireless from my iMac very well. Yet, none of my iOS devices 5 see any printer either. I even downloaded the iOS eP

  • whaoo ant + key

    I have a keys whaoo Ant + and I want to connect to my my Iphone 6 heart rate monitor. Whaoo key requires a 30 lightning to be connected to the iphone adapter 6 and I used an original Apple. Once inserted key is not recognized by Iphone 6. Has also ch