Unable to Update Collection from Tabular Form

I have built several Tabular Forms where I have updated the apex_collection with the data entered into the form. Then I loop thru the collection and update the database.
I now Copy a working form to create a new form using data from a different table. All I am doing is changing the underly apec_collection with a different select statement and give it a new collection name. The number of columns on the tabular form are the same as the working form.
Now I run the form and I get ORA-01403: no data found Error UNABLE to UPDATE ROWS
It is acting like it is not finding any data from the collection. But I put in the same selection critera for the update into a report below the tabular form and I see data just fine.
Here is the code I am using to update the collection when the SAVE button is pressed (Process on Submit before Calculations).
begin
for c1 in (
select seq_id from apex_collections
where collection_name = 'IPR_MATRIX' and c001 = :P21_FACILITY
and c002 = :P21_DEPT
order by seq_id) loop
c := c+1;
apex_collection.update_member_attribute (p_collection_name=> 'IPR_MATRIX',
p_seq=> c1.seq_id,p_attr_number =>5,p_attr_value=>wwv_flow.g_f01(c));
apex_collection.update_member_attribute (p_collection_name=> 'IPR_MATRIX',
p_seq=> c1.seq_id,p_attr_number =>6,p_attr_value=>wwv_flow.g_f02(c));
apex_collection.update_member_attribute (p_collection_name=> 'IPR_MATRIX',
p_seq=> c1.seq_id,p_attr_number =>7,p_attr_value=>wwv_flow.g_f03(c));
apex_collection.update_member_attribute (p_collection_name=> 'IPR_MATRIX',
p_seq=> c1.seq_id,p_attr_number =>8,p_attr_value=>wwv_flow.g_f04(c));
apex_collection.update_member_attribute (p_collection_name=> 'IPR_MATRIX',
p_seq=> c1.seq_id,p_attr_number =>9,p_attr_value=>wwv_flow.g_f05(c));
apex_collection.update_member_attribute (p_collection_name=> 'IPR_MATRIX',
p_seq=> c1.seq_id,p_attr_number =>10,p_attr_value=>wwv_flow.g_f06(c));
apex_collection.update_member_attribute (p_collection_name=> 'IPR_MATRIX',
p_seq=> c1.seq_id,p_attr_number =>11,p_attr_value=>wwv_flow.g_f07(c));
apex_collection.update_member_attribute (p_collection_name=> 'IPR_MATRIX',
p_seq=> c1.seq_id,p_attr_number =>12,p_attr_value=>wwv_flow.g_f08(c));
apex_collection.update_member_attribute (p_collection_name=> 'IPR_MATRIX',
p_seq=> c1.seq_id,p_attr_number =>13,p_attr_value=>wwv_flow.g_f09(c));
apex_collection.update_member_attribute (p_collection_name=> 'IPR_MATRIX',
p_seq=> c1.seq_id,p_attr_number =>14,p_attr_value=>wwv_flow.g_f10(c));
apex_collection.update_member_attribute (p_collection_name=> 'IPR_MATRIX',
p_seq=> c1.seq_id,p_attr_number =>15,p_attr_value=>wwv_flow.g_f11(c));
apex_collection.update_member_attribute (p_collection_name=> 'IPR_MATRIX',
p_seq=> c1.seq_id,p_attr_number =>16,p_attr_value=>wwv_flow.g_f12(c));
end loop;
end;
Any Ideas what I am doing wrong?

c is set to 0
It looks like I may have found my problem.
There tabular form is limited by a where clause in the report to a subset of the collection. Making the collection match the same where clause seems to have fixed my problem.
Not clear on why that works like that but it looks like I may have it working.

Similar Messages

  • Unable to delete row(s) from tabular form

    Hi!
    I created report with row selector, when I select one row I get tabular form regarding to the selected row from report. I can insert and update data from tabular form, but I have problem with deleting them. Error I get is ORA-01403: no data found (Row 207589)My tabular form is created by wizard and primary key is managed by database rowid, I use apex 4.1 an 10g database.
    Do you know for any solution for my problem?
    Regards,
    drama9346
    Add:
    For creating report and tabular form I use code and suggestion from this thread: {thread:id=2490862}
    Edited by: drama9346 on 28.1.2013 1:51

    Hi,
    I tried everything I know and I didn't solve my problem.
    Can anyone give me some clue?
    Regards,
    drama9346
    Add:
    I solve my problem.
    Edited by: drama9346 on 29.1.2013 1:52

  • Unable to update record in web Form

    Hi, i am unable to update record in a form. I am building a custom form using forms 6i and putting it on the web in oracle applications 11.5.9
    I used template.fmb as a starting point for my form. I have one datablock based on a table. Insert, update and delete properties are set to yes on the property pallete of data block. The table against which i am running the form has a primary key which is a combination of two fields. I am able to update a record with pure SQL running against the table.
    My form now brings back a record from the db like it should but whenever I try to update that record either by pressing Action Save or by clicking button that has update statement in it, instead of doing an update, it does an insert and tells me that this record already exists and that i entered value(s) that must be unique for each record. It thinks I want to insert but I want to update. What am i doing wrong???
    Update allowed value is set to Yes in all the items in the data block and at the data block level as well. Querly_only is set to no.
    What's even more frustratinng is that I've ran the form manually before starting with template.fmb and have been able to update the table but when I put it on the web and used template.fmb it stopped working!
    I am very new to forms, can anybody suggest anything? Please help!!!

    When you populate the 2nd block with a select into query, it's the same as just typing the data into the block. The record is treated as one needing to be inserted, not as one that is queried.
    To populate it using a true query, but with data from the LOV, you can do this:
    Programmatically set the default_where clause of the block based on the LOV. For example, if a name is chosen from the LOV in an item called LOV1, you could do:
    set_block_property('block2','default_where','name='''||:block1.lov1||'''');
    or if the LOV is a number, like a department number:
    set_block_property('block2','default_where','deptno='||:block1.lov1);
    The tricky part when you build your where clause is that you must surround strings with single quotes, and the way to do this is to use two single quotes to represent an actual single quote in the where clause. Otherwise a single quote is interpreted as part of the PL/SQL syntax.
    Then, just navigate to block 2 and execute a query:
    go_block('block2');
    do_key('execute_query');
    I hope this works for you. I didn't have time to test this, so I hope I didn't make any syntax errors when typing.

  • Unable to retrieve collections from the Search Service.

    Hi,
    I have a user trying to upload a collection. She gets the
    following error:
    Unable to retrieve collections from the Search Service.
    Please verify that the ColdFusion MX Search Server is
    installed and running.
    Obviously, I checked the service. It was running. I restarted
    the service. That did nothing. I restarted all the CF services.
    Didn't fix the issue. I also rebotted the server, not expecting
    that to work. It didn't.
    Checking the server logs, I see this:
    The description for Event ID ( 105 ) in Source ( ColdFusion
    MX 7 Search Server ) cannot be found. The local computer may not
    have the necessary registry information or message DLL files to
    display messages from a remote computer. You may be able to use the
    /AUXSOURCE= flag to retrieve this description; see Help and Support
    for details. The following information is part of the event:
    ColdFusion MX 7 Search Server.
    Also, after talking to my co-worker more, it turns out this
    occurred right after she uploaded a new collection to the
    administrator. This link sounds similar to what I'm experiencing:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=6c6881a9
    Maybe it's a corrupt collection?
    but I don't see any errors in the log
    (:\CFusionMX7\verity\Data\services\ColdFusionK2_indexserver1\log\status.log)
    Finally, there are some errors in the Verity service, and it
    looks like the Verity service Verity K2Server (Version 2.20pr6)
    points to D:\CFusionMX\lib\k2server.exe, which doesn’t exist
    anymore because we’ve upgraded to MX7.I'm not sure if this is
    an old service left over from before we upgraded from CFMX to
    CFMX7.
    We are running CFMX7 on a Windows 2003 Server SP1 if that
    matters.
    Thanks in advance for any help.

    In the left hand panel of the ColdFusion Administrator expand
    the Data & Services link. Then select the Verity K2 Server
    link. Change localhost to 127.0.0.1 in the Verity Host Name
    textbox.
    Ted Zimmerman

  • Delete rows from Tabular form

    Hi,
    Anyone knows how dynamicly delete rows from Tabular Form (on button click, button is as item)?
    Thanks.

    I am in a great fix. We had a test instance.. and we had a version apex 3.2.. But when the same application has been uploaded to prod.. we used apex 4.0.Why on Earth would you do this? The whole point of the testing is to verify that the application will work in the production environment: the first requirement for this is that the test and production environments are equivalent.
    has any body is facing the same issue as mine..Yes, as is easily discovered by searching the forum...see Delete button doesn't work in tabular form after upgrade from APEX3.2 to 4.

  • How to use apex_item.text in a collection or tabular form

    Hello,
    I have a table with table names. (simplified)
    create table test (tab_nm VARCHAR2(30) )
    Now I want to present this tables on a tabular form with a checkbox and a text item to put the short name for this table name.
    So I was thinking in the way of
    select apex_item.checkbox(1,ids) check,
    tab_nm,
    apex_item.text(2,c001) short_name
    from test;
    Ibut this doesn't work since the c001 column does not exist.
    So I probably should go for a collection, but how do I do that and how to process the text put in in the text item?
    Thanks

    Hi Marc,
    I think the purpose is different. I want to create a 3 column report with a checkbox to select the tables I want to use and because I do not store the shortname in the table I want the user to be able to give the shortnames himself for the selected tables.
    So
    checkbox tab_nm from table item( filled in by user but not stored in table)
    x table 1 tab1
    x table2 tab2
    table3 tab3
    writing this I 'm considering to save the short names because it can give conflicts if a shortname is used twice
    Purpose is to generate tables, with sequences and triggers dynamically from the selected tables.
    Erwin

  • Sending emails for each record from tabular form

    I currently have a requirements management tabular form that used to update or set job requirements inactive and/or covered.
    We're a staffing agency and have salesmen across the country that will use this tabular form to quickly manage their requirements to mark them as covered or inactive if the position has been filled.
    The multi-row update works fine since the form was built using the wizard, but I need to be able to send out an email for each record that's been marked as covered in the tabular form.
    How can this be accomplished?
    I'm running Oracle 12c and Apex 4.2.0 on a windows 2008 R2 server.
    Thanks again.

    Greg,
    I took a different approach from what I originally suggested.  Since the tabular form is displaying only reqs that eligible to be covered, I chose to construct a process that would read the database after the reqs table was updated.  The code should find recent reqs covered by the salesman and then send out an email for each covered req.
    Since I cannot see the data structure of your reqs table, I guessed the data type and size for the local variables in the DECLARE section, you many need to adjust these.
    Give this code a shot and let's see where we get.  By the way, the naming conventions of your database are in need of naming standards.
    The process needs to occur After Submit and after the Automatic Row Processing (DML) process that is updating the reqs table.  Make sure that the process sequence number is greater than the Automatic Row Processing (DML) sequence number.
    DECLARE
       l_id           NUMBER;
       l_index        NUMBER;
       l_vc_arr2      apex_application_global.vc_arr2;
       lc_message     VARCHAR2 (4000);
       l_pkey         NUMBER;
       l_date_wrote   DATE;
       l_sales        VARCHAR2 (100);
       l_client       VARCHAR2 (100);
       l_job          VARCHAR2 (100);
       l_1or2         VARCHAR2 (100);
       l_rate         NUMBER;
       l_notes        VARCHAR2 (4000);
    BEGIN
       FOR c1
          -- Retrieve reqs primary key that have been covered
          -- in the last 2 seconds by the salesman
       IN (SELECT pkey
             INTO l_pkey
             FROM reqs
            WHERE     SYSDATE < (date_wrote + 1 / 46200)
                  AND active = 'Active'
                  AND reqs.sales = :p12_sales
                  AND covered IS NOT NULL)
       -- Send an email for each req that has been covered
       LOOP
          SELECT c1.date_wrote,
                 c1.sales,
                 c1.client,
                 c1.job,
                 c1.notes,
                 c1.who,
                 c1.1or2,
                 c1.rate
            INTO l_date_wrote,
                 l_sales,
                 l_client,
                 l_job,
                 l_notes,
                 l_who,
                 l_1or2,
                 l_rate
            FROM reqs
           WHERE pkey = l_pkey;
          lc_message := 'Date Written   :' || l_date_wrote || CHR (10);
          lc_message := lc_message || 'Sales          :' || l_sales || CHR (10);
          lc_message := lc_message || 'Client         :' || l_client || CHR (10);
          lc_message := lc_message || 'Position       :' || l_job || CHR (10);
          lc_message := lc_message || '#1 or #2       :' || l_1or2 || CHR (10);
          lc_message := lc_message || 'Rate           :' || l_rate || CHR (10);
          lc_message := lc_message || 'Notes      :' || l_notes || CHR (10);
          l_id :=
             apex_mail.send (
                p_to     => '[email protected]',
                p_from   => 'DO_NOT_REPLY@REQS',
                p_subj   =>    ''
                            || l_who
                            || ' Has Covered '
                            || l_job
                            || ' at '
                            || l_client
                            || CHR (10),
                p_body   => lc_message);
          COMMIT;
          apex_mail.push_queue ();
       END LOOP;
    END;
    Jeff

  • Mass Update Column In Tabular Form

    Hi,
    I'm trying to create a tabular form that has a mass update column function. i.e. the tabular form will be displayed as normal but at the top of certain columns will be a text box or lov and what ever is entered into those boxes will be cascaded into the empty values in that column without refreshing the page.
    Hope that makes sense.
    I've search the forum but cant find reference, is this possible.
    Thanks Andy

    Hi,
    Just wondering if anyone had any thoughts on this.
    I can get the text to populate another cell e.g.
    http://mlw-mis-2/dev/apex/f?p=174:4
    But how can i get it to reference a column, this is what I'm using to reference another item
    onKeyUp="f_getTextUpper('P4_COL1','P4_TEXT')"
    and I've tried changing the P4_TEXT to other things like
    apex_application.g_f03 (vRow)
    apex_application.g_f03 (i)
    apex_application.g_f03
    But with no luck

  • Updating on a tabular form

    hi, i have two extra column on my tabular form and one say 'UPDATED_BY" and the other says "DATE_UPDATED" i am trying to set the parameters so that every time someone adds a row to that column the system automatically displays the name of the user and the current date and time on the other column, both are read-only columns and i want the data to update on just the new row that was added, how would i go about doing this..

    Hi,
    The best option, in my opinion, is to use a database trigger.
    Follow this topic to get how to instructions:
    Passing SYSDATE between pages
    Paulo Vale
    http://apex-notes.blogspot.com

  • How to prevent update in a tabular form

    Hello,
    I have a tabular form table based.
    I need one cannot update rows, but just insert and delete.
    I'm working on Apex Application Express 4.1.0.00.32.
    How can i do?
    Thank you.

    If I get rid the Submit button, how could i submit the inserted rows?

  • Updating fields on Tabular Forms created with wizards

    I have created a Tabular Form using the creation wizard in version 2.0.
    When we update database records, we always place a date and a user ID into the record to track the last time updated.
    In HTML-DB I typically create an "After Submit" process called "Set Hidden" which updates my items LAST_UPDATE_DATE and LAST_UPDATED_BY.
    This works great on non-Tabular forms when I am dealing with one record at a time.
    How do I do this on a multi-row tabular form?
    Any help would be appreciated.

    Sorry, I assumed a basic familiarity with Oracle and HTML DB development concepts
    1. "v" is a HTML DB function to read session state
    2. v('APP_USER') will give you the authenticated username of the current session
    3. For some reason, if that is blank, the NVL will evaluate to USER which is a builtin Oracle keyword just like SYSDATE. USER evaluates to the userid for the currently connected Oracle user (typically HTMLDB_PUBLIC_USER)
    4. FOO is the function which will take the username and convert it to the internal id you seem to want.
    5. NVL is a function that evaluates both its arguments and returns the first non-null expression.

  • Use value from tabular form column in the LOV where clause of another column

    Hi
    Using APEX 4.2 on 11g
    In a tabular form I want to filter the values in a Popup Key LOV based on the value of another column (same row).
    i.e. I want to get the value of one column and use it in the where clause for the Popup LOV on the same row.
    e.g. where COL 2 is a popup LOV
    COL 1
    COL 2
    1
    LOV SQL: SELECT a FROM b WHERE c = <value from COL 1>
    2
    LOV SQL: SELECT a FROM b WHERE c = <value from COL 1>
    3
    LOV SQL: SELECT a FROM b WHERE c = <value from COL 1>
    The value in COL 1 does not change once the row is created. It is a hidden ID field.
    Is this possible?
    Nick

    Anyone have any ideas?
    I thought getting the value from one column and using it in another column would be commonly used functionality... I just can't seem to work it out.

  • For Update Query from ORACLE Forms

    Hi
    We are using Oracle Forms 10g running with 10g database 10.2.0.1.0. We happend to see a query which is getting generated in AWR report like Select rowid, all_columns from TableName for Update of C1 Nowait. But no such query is really written in forms and we are aware that, Any query prefixed with rowid is definitely executing from Forms. But how the ForUpdate and Nowait clause is appended to the query.
    We have checked the following properties in the database Block
    *1) Locking Mode is set to Automatic*
    *2) Update Changed Columns only is set to YES*
    *3) Query all records is set to No (Though this particular property may not be relevant to the issue)*
    What is the property or setting which might trigger such a query from ORACLE Forms with ForUpdate and Nowait clause.
    Any ideas/suggestions on why such behaviour. Please have a healthy discussion on this. Thanks in advance.

    you can't dynamically add a query to the data model in reports.
    You should look into the XML based customization of Oracle Reports. This will enable you to define a report dynamically by creating a definition in XML.
    Also another option is to have the report with a query in it and use lexical parameters in reports to pass the query definition or just the where part of it.
    Look at the reports online help for both of these solutions.

  • Update SAP from Adobe forms

    Hi all,
    I use BAPI with web service to update several line items (e.g. of a PO) from a table in Adobe forms to SAP.  I expect that all the occurrences of the line items to be transferred to the func mod. via the defined table interface, but only the last line got transferred and the others seem to be overwritten.  I have tried adobe fixed and dynamic tables but that did not change the outcome (In another application, I'm able to display all line items from func. mod. to Adobe form).  Question : What do I need to do to have ALL the line items transferred  from Adobe form to the func. mod. ?            
    Components used : Designer 7, SAP ECC 6 level 9 .
    Please, provide help with concrete and proven information only.
    Best regards,
    Nancy

    Hi Vaibhav,
    Thanks for the reply.  I use table and not structure but somehow all the records did not get transferred.  So far i've been able to get the data to and from SAP without web dynpro and hope to be able to get this scenario to work as well.
    Regards,
    Nancy

  • Mavericks (10.9.2) notes unable to update notes from iCloud

    Hi There!
    I am using mavericks, I found out that my notes in mavericks is unable to update any notes from iCloud since I upgrade to 10.9.2.  Here I have tried out some of the method which I search from forum and Google.
    1. I have tried to sign out then sign in again from iCloud account in mavericks but won't resolve my problem. 
    2. I have also tried to remove iCloud account then add them back but also won't work. 
    3. Created new user account the login my iCloud account but with same result come up. 
    There is something strange that I realized when I am trying out the above mentioned methods, which is to create new note from mavericks notes app and it will update to my iCloud panel and it is updating to my iPad or iPhone. the only problem is all my notes in iCloud are unable to update to my mavericks notes app.  Calendar, Mail, Contacts, Reminder and others services are working fine but Notes.
    Is there any suggestion?
    Many thanks!
    KT

    I'm having the same issue with the 10.9.2 update. Tried signing out of the account, removing the account, repairding disk permissions, etc, and still can't get my iCloud notes to sync to the Notes application. The notes are on the iCloud website and sync correctly to my iPhone.
    iMac 3.2 Ghz Intel Core i5
    OS 10.9.2

Maybe you are looking for