Update process with APEX_APPLICATION

Hi Friends,
I have a APEX page made with APEX_ITEM. I created the below process [which will run on a Button Click].
my issue is : Process completes with out updating the Database showing the Process Success Message. I do not see any errors. I checked the documentation and other examples for usage of APEX_APPLICATION and could not find any mistake.
All fXX columns are rightly displayed on the page and are mapped correctly in Insert and Update stmts of the below process.
Any suggestions to debug will help..
<Code here>
DECLARE
v_cp_id NUMBER;
v_cp_line NUMBER;
BEGIN
v_cp_id:=nv('P32_CP_ID');
for i in 1..apex_application.g_f02.count
loop
if ( apex_application.g_f02(i) is not null) then
update CP_OTHER_TRANSACTION_DETAILS
set BUSINESS_TRANSACTION_NAME = apex_application.g_f03(i),
DESCRIPTION = apex_application.g_f04(i),
TRANSACTIONS_PER_PEAK_HOUR = apex_application.g_f05(i),
SLA = apex_application.g_f06(i),
CSD_LINK = apex_application.g_f07(i)
where CAP_PLAN_ID = apex_application.g_f01(i) and LINE_NO = apex_application.g_f02(i);
ELSE
IF ( apex_application.g_f03(i) is NOT null) then
     SELECT NVL(MAX(LINE_NO),0)+1 INTO v_cp_line FROM CP_OTHER_TRANSACTION_DETAILS;
insert into CP_OTHER_TRANSACTION_DETAILS
(CAP_PLAN_ID,
     LINE_NO,
BUSINESS_TRANSACTION_NAME,
DESCRIPTION,
TRANSACTIONS_PER_PEAK_HOUR,
SLA,
CSD_LINK
values
(v_cp_id, v_cp_line,
apex_application.g_f03(i),
apex_application.g_f04(i),
apex_application.g_f05(i),
apex_application.g_f06(i),
apex_application.g_f07(i) );
end if;
end if;
end loop;
COMMIT;
END;
</Code here>
Thanks ..

Having looked at your app, I would suggest you recreate this page using a Tabular Form based on a Table/View. This feature will automatically take care of adding new rows, updates etc., as well as those all important record lock mechanisms!
As for what you have at the moment, the problem lies in the hidden elements on the form - the PL/SQL process was never dropping into the loop because apex_application.g_f02.count is zero! This is because the columns are flagged as "not shown".
To include these items, modify the SQL in your report to concatenate the items together with the first displayable item on the page.
Therefore something like this:
select apex_item.hidden(1,CAP_PLAN_ID) ||
         apex_item.hidden(2,LINE_NO) ||
         apex_item.text(3,BUSINESS_TRANSACTION_NAME) BUSINESS_TRANSACTION_NAME,
apex_item.text(4,DESCRIPTION) DESCRIPTION
.NOTE - the first two fields are concatenated to the business_transaction_name column, but remain hidden when the page is displayed!
Hope that makes sense!
Edited by: FFS on 09-Mar-2010 08:51
Edited by: FFS on 09-Mar-2010 09:07
Edited by: FFS on 09-Mar-2010 09:12

Similar Messages

  • LSMW Update Process with IDoc

    Hi Experts,
      We have an LSMW project to upload to create new activity in the CRM server and it has been working fine. Now we want to modify the project so that the existing data gets "updated" instead of creating a new activity.
    My question is..
    Is it possible to make data "updates" using LSMW.
    I tried adding more fields in  the existing project and now i get this error when i try to update. "Activity already exists in the system"
    I'd really appreciate your help and inputs.
    Thanks in advance
    Mani

    Hi Mani,
    I have gone through your query.
    When you use LSMW Idoc method to create the Activity with in the CRM system, you can definitely use the same project to update the Activity details as well. Follow the simple rules below.
    1. With the Basic type you have used to create Activity, in the rules for the segments change the task to Update.
    2. With this change done, for the segments you need to update the data, change and save them.
    3. After all these you can create and process the Idocs so that the activity details are updated.
    LSMW can be used to create, update and make changes with in permissible business objects. So definitely this update can be done. I hope this helps.
    Regards,
    Venkat

  • Problem with checkboxes in IR report mainly for update process please help

    Hello,
    Can anyone please help me out with this issue.
    I have an interactive report with 3 checkbox item for a single column named status. Based on the value of the column status the check box should be checked. For example:
    DECODE(status,'DEV',1,0) as DEV,
    DECODE(status,'RVW',1,0) as RVW,
    DECODE(status,'PRD',1,0) as PROD,
    So for this I have used the apex_item.checkbox item. Below is my report query
    SELECT APEX_ITEM.HIDDEN(30,0,'','f30_' || ROWNUM)
         || APEX_ITEM.HIDDEN(31,0,'','f31_' || ROWNUM)
            || APEX_ITEM.HIDDEN(01,ROWNUM,'','f01_' || ROWNUM)
         || APEX_ITEM.HIDDEN(04,CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN,'','f04_' || ROWNUM)
            || APEX_ITEM.HIDDEN(05,CHF_STATUS,'','f05_' || ROWNUM)
         || APEX_ITEM.HIDDEN(06,CHF_STATUS,'','f06_' || ROWNUM)
            || APEX_ITEM.HIDDEN(08,CHF_STATUS,'','f08_' || ROWNUM)
         || APEX_ITEM.HIDDEN(09,CHF_STATUS,'','f09_' || ROWNUM)
            || APEX_ITEM.HIDDEN(11,CHF_STATUS,'','f11_' || ROWNUM)
         || APEX_ITEM.HIDDEN(12,CHF_STATUS,'','f12_' || ROWNUM)
            || APEX_ITEM.CHECKBOX (32,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f30'');"'
         ,DECODE (0,1, ROWNUM),':','f32_' || ROWNUM) DELETE
            ,CHF_COLUMN
            ,CHF_STATUS
            ,APEX_ITEM.CHECKBOX (07,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f05'');"',DECODE (CHF_STATUS,'DEV',ROWNUM),':','f07_' || ROWNUM) 
              DEV_EDIT
         ,APEX_ITEM.CHECKBOX (10,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f08'');"',DECODE (CHF_STATUS,'RVW',ROWNUM),':','f10_' || ROWNUM) 
              RVW_EDIT
            ,APEX_ITEM.CHECKBOX (13,ROWNUM,'onClick="javascript:ToggleValue(this,' || ROWNUM || ','||'''f11'');"',DECODE (CHF_STATUS,'PRD',ROWNUM),':','f13_' || ROWNUM) 
              PRD_EDIT
            FROM CHF_COLUMN WHERE
    CHF_DATASTORE  = 'DOMAIN_DEV' AND
    CHF_SCHEMA     = 'SCHEMA_DEV' AND
    CHF_TABLE      = 'EMPLOYEEE'
    ORDER BY 1;  And I have a button for the update process so that the users can check the checkboxes option for the status column either 'DEV', 'RVW', 'PRD'. The status of the column can be in either of these states or can be null.
    I have a update process, its having some problem - I don't understand whats causing the problem. Below is the error message which I encountered when trying to update.
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    My Update process.
    DECLARE
    l_cnt BINARY_INTEGER := 0;
    l_stepid number := 10;
    l_date DATE := SYSDATE;
    BEGIN
    FOR i IN 1 .. apex_application.g_f01.COUNT
    LOOP
    IF APEX_APPLICATION.G_f05 (i)  = 1 THEN
          UPDATE  CHF_COLUMN
               SET      CHF_STATUS = 'DEV'
             WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
              l_cnt := l_cnt + SQL%ROWCOUNT;
    apex_application.g_print_success_message := apex_application.g_print_success_message ||
    'Successfully updated'||l_cnt ||'<br><br>';
    END IF;
    IF APEX_APPLICATION.G_f08 (i)  = 1 THEN
          UPDATE  CHF_COLUMN
               SET      CHF_STATUS = 'RVW'
             WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
              l_cnt := l_cnt + SQL%ROWCOUNT;
    apex_application.g_print_success_message := apex_application.g_print_success_message ||
    'Successfully updated'||l_cnt ||'<br><br>';
    END IF;
    IF APEX_APPLICATION.G_f11 (i)  = 1 THEN
          UPDATE  CHF_COLUMN
               SET      CHF_STATUS = 'PRD'
             WHERE CHF_DATASTORE||CHF_SCHEMA||CHF_TABLE||CHF_COLUMN = APEX_APPLICATION.G_f04 (i)
              l_cnt := l_cnt + SQL%ROWCOUNT;
    apex_application.g_print_success_message := apex_application.g_print_success_message ||
    'Successfully updated'||l_cnt ||'<br><br>';
    END IF;
    END LOOP;
    COMMIT;
    END;If you can please have a look at the app, you can get a better understanding of my problem.
    Workspace : orton_workspace
    username : [email protected]
    password : sanadear
    Application No: 15089 SAMPLE_CHECKBOX_APP
    Thanks,
    Orton
    Edited by: orton607 on Aug 4, 2010 9:28 AM

    I could be wrong but maybe change the hidden items to be like:
    APEX_ITEM.HIDDEN(05,DECODE(CHF_STATUS,'DEV',1,0),'','f05_' || ROWNUM)
    APEX_ITEM.HIDDEN(08,DECODE(CHF_STATUS,'RVW',1,0),,'','f08_' || ROWNUM)
    APEX_ITEM.HIDDEN(11,DECODE(CHF_STATUS,'PRD',1,0),,'','f11_' || ROWNUM)so that the values are 0/1?
    Also, you have
    DECODE (CHF_STATUS,'DEV',ROWNUM)instead of
    DECODE (CHF_STATUS,'DEV',0,1)in the checkboxes, as I would expect.
    I'm also not sure why you need to duplicate the checkboxes (f07,f10,f13) as hidden items (f05, f08, f11) if they are both 0/1 values.

  • SQL Query updateable report with row selector. Update process.

    I have a SQL Query updateable report with the row selector(s).
    How would I identify the row selector in an update process on the page.
    I would like to update certain columns to a value of a select box on the page.
    Using the basic:
    UPDATE table_name
    SET column1=value
    WHERE some_column=some_value
    I would need to do:
    UPDATE table_name
    SET column1= :P1_select
    WHERE [row selector] = ?
    Now sure how to identify the [row selector] and/or validate it is checked.
    Thanks,
    Bob

    I don't have the apex_application.g_f01(i) referenced in the page source...In the page source you wouldn't find anything by that name
    Identify the tabular form's checkbox column in the page(firebug/chrome developer panel makes this easy)
    It should be like
    &lt;input id=&quot;...&quot; value=&quot;&quot; type=&quot;checkbox&quot; name=&quot;fXX&quot; &gt;we are interested in the name attribute , get that number (between 01 and 50)
    Replace that number in the code, for instance if it was f05 , the code would use
    apex_application.g_f05
    --i'th checked record' primary keyWhen you loop through a checkbox array, it only contains the rows which are checked and it is common practice to returns the record's primary key as the value of the checkbox(available as the the i'th array index as apex_application.g_f05(i) , where i is sequence position of the checked row) so that you can identify the record.

  • During the io 5 update process, my iphone 3gs froze and now will shut off and turn on by itself, and will not allow me to unlock the phone or do anything with it. how do i fix this?

    during the io 5 update process, my iphone 3gs froze and now will shut off and turn on by itself, and will not allow me to unlock the phone or do anything with it. how do i fix this?

    Follow the instructions here > http://support.apple.com/kb/HT1808
    You may need to try a few times to get it to work

  • Problems with user-defined update-process

    Hi.
    I have a small problem in the right syntax in an user-defined updated process.
    The process is called by a button on the page and should update a record in a table.
    BEGIN
    UPDATE wam_mod_allocation SET
    alloc_assessment = V('P2120_ASSESSMENT'),
    last_update_date = LOCALTIMESTAMP,
    last_update_staff = V('APP_USER')
    WHERE username = V('P2120_USERNAME')
    AND module_id = V('P2120_MODULE_ID')
    END;
    This is the code of the process. The line with the problem is marked bold. P2120_USERNAME is a text field in the page and contains the username to be updated.
    The problem is, that the comparison doesn't work. the value "smith" is available in the table and is the same as in the text field. (both in lower case).
    If I replace the part V('P2120_USERNAME') with 'smith' (with single quotes), the update statement works properly.
    How do I have to compare the username with the item value that it works properly?

    1. Stephan
    2 + 3 Well. I enclosed both tags in the TRIM-Operator and it works. First, I thought, a whitespace caused the problems. To determine which value contains the whitespaces I removed the trim-tags on both sides. It works.
    It is quite funny, because,if I remove both tags, it works too? Well. Yesterday it didnt.
    To be on the safe side, I will include the trim-tags.
    Thanks very much.
    Stephan

  • Dear Sir/Madam,  Adobe acrobat claims that there is an update. However the update process is very flaky and unreliable. Very poor service, with useless update prompts.  System report is attached.  Please fix the update, before advertising useless prompts

    Dear Sir/Madam,
    Adobe acrobat claims that there is an update.
    However the update process is very flaky and unreliable.
    Very poor service, with useless update prompts.
    System report is attached.
    Please fix the update, before advertising useless prompts for updates, for paid versions.
    Thanks

    Nothing is attached.
    You should also be aware that there are a number of scams and malwares claiming fake updates.
    Please post your report and tell us exactly what product and exact version you have.
    And be aware you aren't talking to Adobe.

  • Problems with Update Process Version

    When I open old images in the Develop Module, I am given the opportunity to update Process Version to 2010.  So far so good.  If I upgrade images one by one, the update process works fine.  If I try to update all filmstrip photos, I ge the following error message:
    An internal error has occurred.
    ?:0; attempt to perform arithmetic on field '?' (a nil value)
    If try to update process after selecting several images in grid view, I get the same error message.
    I have also tried to "reset all warning dialogs" under Preferences/General, but it did not help.
    I have installed LR3 in a MacBook Pro with OSX 10.6.4.
    Any advice?

    Try changing your option for viewing changes in Before/After. There is a bug there (I'm pretty sure it occurs if you have it checked, but can't find it to verify right now)
    -melissa

  • I cannot open my facebook app and it happened after an updating process but I don't know what really happened and even don't know what update was it. Please help me with this. Thanks

    I cannot open facebook app in my iphone4 and it happened after going through an updating process. But I don't know what did I update it to. I've tried deleting and re installing but still doesn't work. Please help me. Thanks

    Something has gone wrong. Force the phone into recovery mode, as described here, & restore it:
    http://support.apple.com/kb/ht1808

  • WTH is wrong with Adobe update process?

    Adobe products require so much and so frequent patching and updating and it and seems so unorganized and unprofessional.  I find this pretty outrageous at this point.
    It should be embarassing to Adobe that the Enterpise updating process is such a mess.
    Why are the administrative installations still messed up so Volume License keys are made invalid if you attempt to update it?
    Why are there no Update Catalogs for SMS, SCCM, SCE etc?
    Why aren't there cumulative updates that can be installed over any previous versions?
    Why are they not offering an WSUS-equivalent centralized update manager?

    Acrobat products require less patching than MS products I believe. Most folks view scheduled quarterly updates as a good thing. Security patches go out as needed. Averaging about once per quarter I believe.
    As of July 13, Reader updates are provided as a chained installer from the Reader Download Center.
    SCUP support is coming in A10.
    Managing Windows software is best handled via Microsoft tools--SCCM, SMS, GPO, etc.
    Ben

  • Update process does not work on Tabular Form

    Hello,
    I have 2 tabular forms on one page, which are using manual update processes.
    First form is created using wizard, and therefore works perfectly.
    The update process is as follows:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f01.COUNT
      LOOP
         lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*03*(i) || '|' || APEX_APPLICATION.G_f*04*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Second form is created manually, using the following code:
    SELECT apex_item.checkbox (30,
                               '#ROWNUM#',
                               'onclick="highlight_row(this,' || '#ROWNUM#'|| ')"',
                               NULL,
                               'f30_' || '#ROWNUM#'
                              ) delete_checkbox,
           CATALOG_ID,
              apex_item.hidden (31, CATALOG_ID)
           || apex_item.text (32,
                              LANG,
                              80,
                              100,
                              'style="width:100px"',
                              'f32_' || '#ROWNUM#'
           || apex_item.hidden (33, wwv_flow_item.md5 (LANG, DESCRIPTION)) LANG,
           apex_item.text (34,
                           DESCRIPTION,
                           80,
                           100,
                           'style="width:255px"',
                           'f34_' || '#ROWNUM#'
                          ) DESCRIPTION
      FROM V_CATALOGS
    UNION ALL
    SELECT     apex_item.checkbox
                              (30,
                               TO_NUMBER(9900 + LEVEL),
                               'onclick="highlight_row(this,' || '#ROWNUM#' || ')"',
                               NULL,
                               'f30_' || TO_NUMBER (9900 + LEVEL)
                              ) delete_checkbox,
               NULL,
                  apex_item.hidden (31, NULL)
               || apex_item.text (32,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:100px"',
                                  'f32_' || TO_NUMBER (9900 + LEVEL)
               || apex_item.hidden (33, NULL) LANG,
               apex_item.text
                                               (34,
                                                NULL,
                                                80,
                                                100,
                                                'style="width:255px" '  ,
                                                'f34_'
                                                || TO_NUMBER (9900 + LEVEL)
                                               ) DESCRIPTION
          FROM DUAL
         WHERE :P18_TEMP = 'ADD_ROWS1'
    CONNECT BY LEVEL <= 1However, the update process does not work on this form.
    I created it using the first one as an example, but with the id's of the second form:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
      LOOP
         lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*32*(i) || '|' || APEX_APPLICATION.G_f*34*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Also, both forms are opening in a modal pop-up dialog window.
    I use a Dialog Region plug-in for that.
    Please advise, what is causing a problem with update?

    Sloger,
    if this is your tabular form
    SELECT apex_item.checkbox (30,
    ...and this is your update statement
    FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
    ...Then you will only ever update records that have been checked. Unchecked checkboxes are not passed back in the global array. You need to have a hidden column with the ID's for the record and loop through that when you are updating/inserting. That is why the built in tabular form has a MRU and a MRD. the MRU loops through the hidden ID column. The MRD loops through the checkbox.
    Thanks,
    Tyson Jouglet

  • Associating a process with a 'select list with submit'

    Hi,
    In a tabular form I have 2 'select list with submit'. If a row is selected in the tabular form I need the following functionality from each of the select lists:
    Once a value is selected from the list a process will get excuted which will update a column of the checked row in the database table with the selected value from the list.
    My question is,
    1. How can I associate an 'after submit process' with the 'select list with submit'?
    2. Can I store the selected value in a variable which I can pass as an input parameter to a PL/SQL body?
    Regards,
    AM

    Hi,
    Please see my requirement below.
    I have a 'select list with submit' say P1_Select in a Tabular form Page. I want to create an after submit process (PL/SQL Process) which will take the selected value from the select list as input parameter and perform an update function for the checked row with that value.
    I'm trying give a feel the procedure:
    CREATE OR REPLACE procedure "P_REJECT"
    (p_message IN VARCHAR2 default Null)
    is
    begin
    FOR ii IN 1 .. APEX_APPLICATION.G_F01.count
    LOOP
    UPDATE NI SET NI.STATUS_NI = 'WCONF', NI.NI_Message = p_MESSAGE
    WHERE NI.NI_REF = APEX_APPLICATION.G_F01(APEX_APPLICATION.G_F01(ii));
    END LOOP;
    end;
    As suggested by Flavio I created the conditional 'after submit' process where I'm making a call to the above procedure.
    1. I am not sure how to pass the selected value as a parameter to the proc.
    2. 'request = value, where the value is the string literal P1_SELECT'.... Could not really figure out the meaning of string literal P1_SELECT
    Regards,
    AM

  • Update process issue - having two reports on a page

    Hello,
    I have a page which contains two reports (normal SQL query). And each report have some editable field items with an update button. The thing is that the update process is not working, its giving an error when any of the reports update button is clicked. I am not able to understand the problem. I think their might be a conflict between the two update processes when a page is submitted. Below are the report source queries and update processes. I think their is a problem with the code itself. Like when I click either of the update buttons, the process is failing and is going to the exception block and printing a message "Failed to update row at step 10 with error message "
    . I have given different names for the two update buttons. Can anyone please help me out with this issue.
    ------REPORT1 SOURCE QUERY------
    T_DS||T_SCH||T_TBL -- is my Primary key column of TBL_NAME1
    select
    apex_item.hidden(04,T_DS||T_SCH||T_TBL,'','f04_' || ROWNUM)
    || APEX_ITEM.MD5_HIDDEN(45,ASSIGNED_DA_SID,ASSIGNED_ARCH_SID,ASSIGNED_ETL_SID,CHF_CHANGE_HISTORY)
    || APEX_ITEM.HIDDEN(01,ROWNUM,'','f01_' || ROWNUM) " ",
    T_SCHEMA,
    T_TABLE,
    T_DATASTORE,
    APEX_item.textarea(12,T_COMMENTS,4,150) COMMENTS
    APEX_item.textarea(13,CHANGE_HISTORY,4,150) CHANGE_HISTORY
    from Tbl_name1
    WHERE T_SCH = :P0_SCHEMA AND
    T_DS = :P0_DATASTORE AND
    T_TBL = :P0_TABLE
    order by T_DS
    -------UPDATE PROCESS OF REPORT1-----------
    DECLARE
    l_cnt BINARY_INTEGER := 0;
    l_stp number := 10;
    BEGIN
    FOR i IN 1 .. apex_application.g_f01.COUNT
    LOOP
         IF WWV_FLOW_ITEM.MD5(     APEX_APPLICATION.G_f12 (i)
    ,APEX_APPLICATION.G_f13 (i)
                   ) <> APEX_APPLICATION.G_F45 (i) THEN
              UPDATE TBL_NAME1
              SET T_COMMENTS = APEX_APPLICATION.G_f12 (i)
    ,CHANGE_HISTORY = APEX_APPLICATION.G_f13 (i) WHERE T_DS||T_SCH||T_TBL = APEX_APPLICATION.G_f04 (i);
              l_cnt := l_cnt + SQL%ROWCOUNT;
         END IF;
    END LOOP;
    COMMIT;
    l_stp := 20;
    IF l_cnt = 0 THEN
         apex_application.g_print_success_message := 'No Modifications Done !' ;
    ELSE
         apex_application.g_print_success_message := 'Successfully updated ' || l_cnt || ' record(s).';
    END IF;
    l_stp := 30;
    EXCEPTION WHEN OTHERS THEN
         ROLLBACK;
         apex_application.g_print_success_message := 'Failed to update row at step ' || l_stp || ' with error message ' ;
    END;
    --------REPORT2 SOURCE QUERY---------
    T_DS||T_SCH||T_TBL||T_RVW_TYPE||T_RVW_DT -- is my Primary key column of TBL_NAME2
    select apex_item.hidden(07,T_DS||T_SCH||T_TBL||T_RVW_TYPE||T_RVW_DT,'','f07_' || ROWNUM)
    || APEX_ITEM.MD5_HIDDEN(46,T_RVW_STATUS,T_RVW_SUMM)
    || APEX_ITEM.HIDDEN(03,ROWNUM,'','f03_' || ROWNUM) " ",
    APEX_item.text(22,T_RVW_STATUS,30) RVW_STATUS,
    APEX_item.textarea(23,T_RVW_SUMM,4,150) RVW_SUMMARY
    from TBL_NAME2
    WHERE T_SCH = :P0_SCHEMA AND
    T_DS = :P0_DATASTORE AND
    T_TBL = :P0_TABLE
    order by T_DS
    --------UPDATE PROCESS OF REPORT2-----------------------
    DECLARE
    l_cnt BINARY_INTEGER := 0;
    l_stp number := 10;
    BEGIN
    FOR i IN 1 .. apex_application.g_f03.COUNT
    LOOP
         IF WWV_FLOW_ITEM.MD5(     APEX_APPLICATION.G_f22 (i)
                        ,APEX_APPLICATION.G_f23 (i)
                   ) <> APEX_APPLICATION.G_F46 (i) THEN
              UPDATE TBL_NAME2
              SET     T_RVW_STATUS = APEX_APPLICATION.G_f22 (i)               
    ,T_RVW_SUMM = APEX_APPLICATION.G_f23 (i) WHERE T_DS||T_SCH||T_TBL||T_RVW_TYPE||T_RVW_DT = APEX_APPLICATION.G_f07 (i);
              l_cnt := l_cnt + SQL%ROWCOUNT;
         END IF;
    END LOOP;
    COMMIT;
    l_stp := 20;
    IF l_cnt = 0 THEN
         apex_application.g_print_success_message := 'No Modifications Done !' ;
    ELSE
         apex_application.g_print_success_message := 'Successfully updated ' || l_cnt || ' record(s).';
    END IF;
    l_stp := 30;
    EXCEPTION WHEN OTHERS THEN
         ROLLBACK;
         apex_application.g_print_success_message := 'Failed to update row at step ' ||l_stp || ' with error message ' ;
    END;
    Thanks,
    Orton

    Hi Orton,
    to narrow down the source of your error i recommend using a process running before your two other page processes where you write debug-message to output to check how your array's are built up.
    Your no-data-found error message comes most probably from accessing one of the g_fxx arrays on a index position without data. (e.g. if you access g_f04(5) and nothing ever was assigned to index 5 in array g_f04 you'll get an no-data-found exception).
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com

  • I bought a brand new mac and follow through setting up process with my apple id but when I open App Store I don't see lion into the purchases list. why?

    I bought a brand new mac and follow through setting up process with my apple id but when I open App Store I don't see lion into the purchases list. why?

    Updates come through Software Update not the App Store. If you have to reinstall Lion that is done via Internet Recovery.
    OS X Lion- About Lion Recovery
    OS X Lion- Run Software Update to use Lion Internet Recovery
    Lion maintenance and recovery operate via the Recovery HD. It's possible to create a separate recovery disk on a flash drive using OS X Lion: About Lion Recovery Disk Assistant.
    To boot into the Recovery HD:
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.

  • Missing iPhone backup in iTunes from iOS5 update. What happens to the backup files from the update process?

    My PC had a BSOD while restoring my data.  After I restarted, opened iTunes, and connected my phone, the restore did not resume. (I have seen the restore process resume after an interruption.)  I tried to manually restore the data, but iTunes does not list the backup that was taken during the update process.  Is this backup stored in a different location or format?  Is there a way I can get my data back?  I tried an extraction tool from the web and it didn't detect the backup from the update.

    Same with me; I only found one backup dating back from august; tried that and works fine. But missing all my pics/vids in between. I have been searching my pc for files that were created on the day of the OS upgrade, but could not figure out any backups...
    Any help?
    iPhone 4, Windows 7

Maybe you are looking for

  • Audigy 2 platinum EX . Computer freeze probl

    Every time I try to intall my new soundcard the pc freezes after booting up. I'm running xp pro with service pack 2, and the pc has a pentium 4 , 2.4 Ghz processor. This is the third card I've had with the same result. The PCI slots take graphics, an

  • Old Web Server Software on Mac OS X Server 10.4.6?

    I am wondering why my apache that is running is only 1.3.33 accordign to my webmin tool that my friend installed, the php and sql are old too. I'm not a unix guru by any means and I want to upgrade these and enable GD etc, but I'm running 4 or more v

  • Connect Time Capsule to BT Home Hub ?

    I recently purchased the Time Capsule and want to connect it to my BT Home Hub, using the Airport Utility on the CD that comes with Time Capsule I follow all the on screen prompts about adding it to my existing wireless network. The Time Capsule upda

  • 6/21/2012 - Windows Flash Player Update

    Today, the Windows Flash Player plug-in for Firefox, Mozilla, Netscape, Opera and other browsers was updated to 11.3.300.262. This release addresses stability issue found in Mozilla Firefox.  This build does not address the audio issues reported by s

  • Need files off an old 7200/75 - Please help!

    Hi, i've got an old Power Mac 7200/75 with no monitor, no keyboard/mouse, etc. I've been trying to source these items on craigslist and having little to no luck. I figured If i could get it running and go online, I could just email the files to mysel