Creating a complex tabular form manually

Hi,
I am trying to create a tabular form manually. The tabular form consists of
rows , with each row containing
1. Select List (of employee names)
2. JOB (Text box)
3. Salary (text box)
I have a add button to add a row, a row similar in appearance to the above, i.e it consists of a select list of "employee names", "job" text box and "salary" text box.
I should to be able to specify the id for these items in each row that I add, I need to specify id for each item in each row that I add since, there is a lov image attached to each row, that would capture any data entered by the user in that row and take him to a popup page with the values specified in the main page.
Can anyone tell me how to specify id to the items I add (i.e when I create a new row).I also dont find any id created to the items in the form that I have created manually. Please note i am using the APEX_ITEM package to create the tabular form manually.

Hi Andy,
I would like to explain what I have done and kindly let me know if this is right.
I created a tabular multirow form using APEX built in component, since I wanted to add validations and I could not get a handle to UpdateMRU, I decided to create the tabular multirow forms manually using the example on the APEX howtos link.
I find that the multirow form which i created manually does not have any id associated with the items.
1. Please let me know if I need to add validations is there only one way i.e to create the multi row tabular form manually?
2.How do I specify the ids for each item. The APEX_ITEM APIs dont provide any way to add ids to items?
3.Is it possible to add validations to the multi row form generated using APEX wizard?In the sense , for eg, I have the employee table presented as multi row table, when a user adds a new row or modifies an existing row, he should not be allowed to add an employee with the same name, Now where do I do this valiation and how can I show the error against that row?
4. What I need to do further is. I have an image on each row (akin to a button) that would spring up a popup page with search options , so that I can repopulate values back into the parent page, to do this I need to pass the ids of the ITEMS to and fro from the parent to the child and back.
I would like to understand how to approach the above issues.
Would appreciate if you could let me know on the same.
Thanks.

Similar Messages

  • Building a Tabular Form Manually - More then 50 entries in a Selectlist

    Hi 2 all!
    I discovered a problem by creating a tabular form manually using this tutorial:
    http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html#MANUAL
    When i use the apex_item.select_list_from_query function, my SQL Query returns more than fifty rows and this results in an oracle error.
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Does anyone know how to display more than 50 entries in such a selection list?
    Best regards,
    Mike
    Message was edited by:
    ups_mike

    F01 - F50 refers to the editable columns you can have in a tabular form. It's not related to how many options you can have in a select list. So you can have a mix of text fields, select lists, date fields, etc in each row, up to 50 items / fields per row. All of this is subject to the 32000 character limit for each row though.
    Regards,
    Marc

  • Learning to build tabular form manually

    Hi,
    I am attempting to understand how to build a tabular form manually. I have gone through the Oracle How To document ...
    http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html
    and then I found another example at
    http://www.devshed.com/c/a/Oracle/Adding-Processes-to-HTML-DB-Applications/2/
    I have gotten the query below to work up to a point, when I uncomment the line that is commented I get the following error ...
    1 error has occurred
    Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00904: "TEMP": invalid identifier
    Can anyone tell me what the problem is.
    This is the query ...
    SELECT empno
          , APEX_ITEM.HIDDEN(1,empno)
          , APEX_ITEM.TEXT(2,ename,10,10) ename
          , APEX_ITEM.TEXT(3,job,9,9) position
          , APEX_ITEM.SELECT_LIST_FROM_LOV(9,mgr,'managers',NULL, 'NO') mgr
          , APEX_ITEM.DATE_POPUP(4,rownum,hiredate,'Month dd, yyyy') hd
          , APEX_ITEM.TEXT(5,sal,12) sal
          , APEX_ITEM.TEXT(6,comm,12) comm
          , APEX_ITEM.SELECT_LIST_FROM_QUERY(7,deptno,'SELECT deptno d , empno r FROM emp WHERE deptno > 0 ORDER BY 1') deptno  
          --, APEX_ITEM.CHECKBOX(8,empno,DECODE(temp,'Y','CHECKED',NULL)) temp
       FROM emp
    ORDER BY 1Thank You
    Ben

    Thank You,
    I thought if someone used the emp table as an example they wouldnt change its structure. Makes it very confusing.
    Ben

  • Add row not working when creating tabular form manually

    Hi friends,
    I am trying to create a manual tabular form( with the help of Denes's example). When adding a new row by clicking
    the add button new row is added and i can enter data in that row. This works fine when there is only one page.
    Now i have 30 rows in 2 pages. Now when i tried to add a new row by pressing the add button nothing is happening.
    In my add button i have given redirect to the same page and request as ADD and the report query is as below.
    SELECT apex_item.checkbox (1,
                               EQUIPMENT_ID,
                               'onclick="highlight_row(this,' || ROWNUM || ')"',
                               NULL,
                               'f01_' || LPAD (ROWNUM, 4, '0')
                              )Tick,
       EQUIPMENT_ID,
              apex_item.hidden (2,EQUIPMENT_ID)
    ||apex_item.text (3,
                              EQUIPMENT_ROLE,
                              80,
                              100,
                              'style="width:170px"',
                              'f03_' || LPAD (ROWNUM, 4, '0')
                             )|| apex_item.hidden (4, wwv_flow_item.md5(EQUIPMENT_ID,EQUIPMENT_ROLE,EQUIPMENT_VERSION,                       
                             SNMP_PORT,RO_COMMUNITY_STRING ,RW_COMMUNITY_STRING,COMMISIONED_STATE,CUSTOMER_ID,
                             SITE_ID
                             ))EQUIPMENT_ROLE,
    apex_item.text (5,
                             EQUIPMENT_VERSION,
                              80,
                              100,
                              'style="width:170px"',
                              'f05_' || LPAD (ROWNUM, 4, '0')
                             ) EQUIPMENT_VERSION,
    apex_item.text (6,
                             SNMP_PORT,
                              80,
                              100,
                              'style="width:170px"',
                              'f06_' || LPAD (ROWNUM, 4, '0')
                             ) SNMP_PORT,
    apex_item.text (7,
                             RO_COMMUNITY_STRING,
                              80,
                              100,
                              'style="width:170px"',
                              'f07_' || LPAD (ROWNUM, 4, '0')
                             ) RO_COMMUNITY_STRING,
    apex_item.text (8,
                             RW_COMMUNITY_STRING,
                              80,
                              100,
                              'style="width:170px" ',
                              'f08_' || LPAD (ROWNUM, 4, '0')
                             ) RW_COMMUNITY_STRING,
    apex_item.text (9,
                             COMMISIONED_STATE,
                              80,
                              100,
                              'style="width:170px" ',
                              'f09_' || LPAD (ROWNUM, 4, '0')
                             ) COMMISIONED_STATE,
    apex_item.text (10,
                             CUSTOMER_ID,
                              80,
                              100,
                              'style="width:170px" ',
                              'f10_' || LPAD (ROWNUM, 4, '0')
                             ) CUSTOMER_ID,
    apex_item.text (11,
                             SITE_ID,
                              80,
                              100,
                              'style="width:170px"',
                              'f11_' || LPAD (ROWNUM, 4, '0')
                             ) SITE_ID
          FROM EQUIPMENTS_FEAT_MVIEW
          UNION ALL
          SELECT     apex_item.checkbox
                                    (1,
                                     NULL,
                                     'onclick="highlight_row(this,' || ROWNUM || ')"',
                                     NULL,
                                     'f1_' || LPAD (9900 + LEVEL, 4, '0')
                                    ) delete_checkbox,
                     NULL,
                        apex_item.hidden (2, NULL)
                     ||apex_item.text (3,
                                        NULL,
                                        80,
                                        100,
                                        'style="width:170px"',
                                        'f3_' || LPAD (9900 + LEVEL, 4, '0')
                                 ) || apex_item.hidden (4, NULL)EQUIPMENT_ROLE ,
                      apex_item.text (5,
                                 NULL,
                                 80,
                                 100,
                                 'style="width:170px"',
                                 'f05_' || LPAD (9900 + LEVEL, 4, '0')
                                 )EQUIPMENT_VERSION,
                      apex_item.text (6,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:170px"',
                                  'f06_' || LPAD (9900 + LEVEL, 4, '0')
                                 )SNMP_PORT,
                     apex_item.text (7,
                                NULL,
                               80,
                                100,
                                'style="width:170px"',
                               'f07_' || LPAD (9900 + LEVEL, 4, '0')
                                 ) RO_COMMUNITY_STRING,
                      apex_item.text (8,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:170px"',
                                  'f08_' || LPAD (9900 + LEVEL, 4, '0')
                                 )RW_COMMUNITY_STRING,
                     apex_item.text (9,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:170px"',
                                  'f09_' || LPAD (9900 + LEVEL, 4, '0')
                                 )COMMISIONED_STATE,
                       apex_item.text (10,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:170px"',
                                  'f10_' || LPAD (9900 + LEVEL, 4, '0')
                                 )CUSTOMER_ID,         
                     apex_item.text (11,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:170px"',
                                  'f11_' || LPAD (9900 + LEVEL, 4, '0')
                                 )SITE_ID
                         FROM DUAL
                        WHERE :request = 'ADD'
    CONNECT BY LEVEL <= 1How can i solve this problem . Please help,
    Thanks,
    Jeev

    Hi,
    The blank row that you get from your second select statement would appear at the end of the report. Put that statement first and it should be at the top of the first page
    Andy

  • How to create validation only for created rows in tabular form

    Hi all,
    I have a simple question. Is it possible to create a validation for tabular form which will be fired only for created?
    There is a possibility in APEX 4.1 to choose two types of "*Execution scope*" first is "*For created and Modified Rows*" and second is "*All Submitted Rows*".
    Thanks in advance!
    Regards,
    Jiri

    Hello Jiri,
    >> Is it possible to create a validation for tabular form which will be fired only for created?
    You can still use the scope of For created and Modified Rows and use a PL/SQL Expression condition of:
    :APEX$ROW_STATUS = 'C'You also need to change Execute Condition to For Each Row .
    Hope it helps,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

  • What do I need to do to default some values when a new row is created in a tabular form?

    Hello all -
    I have a tabular form which requires a few columns to be entered by the user when s/he creates a new row, but other fields in the column can just default to certain values.  How do I set those default values so that the user doesn't have to be bothered with entering any data except those that MUST be entered?
    An example:
    Form1
    REGION        COUNTRY       CITY
    APAC            JAPAN            TOKYO
    APAC            AUSTRALIA    SIDNEY
    APAC            KOREA           SEOUL
    REGION is nearly always APAC, so I want to default to that.  The user can still adjust it if necessary, but I want to set it for the user, just to save having to enter a value.  When the user clicks the the Add Row button, I want to load that value right away and leave the next two fields blank so the user can enter whatever they want.
    Thanks!
    John

    Hi,
    Go edit that column.
    Under Tabular Form Attributes you can find options to set default value
    Regards,
    Jari

  • Creating a Dynamic Tabular Form

    Hi Everyone,
    This is a question aimed at Denes Kubicek, but if he is not on the forum today then maybe someone else could help me.
    I am trying to create a tabular form on a table view. The thing is that the primary key is not populated using a trigger, the primary key is 2 varchar columns.
    For Example.*
    SVC_NAME
    SVC_HST_IP
    SVC_NUM
    SVC_DB_TYPE     
    SVC_APP_TYPE     
    SVC_APP_NAME     
    SVC_BK_TYPE
    So i am trying to create a tabular form based on the above columns, where the SVC_NAME and SVC_HST_IP are going to be inserted as the primary keys.
    I have seen on Denes Kubiceks APEX website that he has been able to create a tabular form which could meet my requirements, Tabular Form Dynamic. The only thing is that i am falling at the first step. Please could someone provide me with some direction as regards to where to put the code?
    What I have done to this point is place section 1 of the code "1. SQL Query / PL/SQL Function Returning SQL Query" in a report. However, when I run the page I get "failed to parse SQL query:ORA-00936: missing expression" error message. I assume that section 2 and 3 will be application processes but I have not got to that point yet. I am not sure about section 4.
    Any help would be appreciated,
    Thanks,
    -N.S.N.O.

    N.S.N.O.
    See this example on how to proceed with tables without a primary key:
    http://htmldb.oracle.com/pls/otn/f?p=31517:157
    which applies in your case. Using ROWID is also an option.
    Whatever later you call your primary key is not important since this example uses ROWID.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

  • Error when creating breadcrumb for tabular form

    Dear all,
    I when I tried to create a breadcrumb in tabular form, I got:
    1 error has occurred
        * This Menu Identification Page already has an associated Menu Option. You must select another page.I found other thread that discussed the same subject and it mentioned about "deleting entries in tabular view" when apex_application_bc_entries showing the corresponding page was included in defined_for_page and url column (my corresponding page was included in those columns also). However I don't know how to delete those entries.
    Could anybody advise me?
    best regards,
    Val

    I have resolved the problem by copying the page I want to link to another page in the app without breadcrumbs, then added the breadcrumb region,
    a breadcrumb entry. I then pointed the 'home' page to the new page and was able to navigate to the new page and back to the home page.

  • Building a Tabular Form Manually

    Hi all,
    My Problem:
    1: created a sql report with the following query:
    SELECT
    HTMLDB_ITEM.HIDDEN(1,id) id,
    HTMLDBCHECK,
    HTMLDB_ITEM.SELECT_LIST_FROM_LOV(3,lademittel,'PACKAGING','NO','NO')"Lademittel",
    HTMLDB_ITEM.text(5,anzahl,5) Anzahl,
    HTMLDB_ITEM.TEXT(6,INHALT,10) Inhalt,
    HTMLDB_ITEM.TEXT(7,NETTO,5) Netto,
    HTMLDB_ITEM.TEXT(8,BRUTTO,5) Brutto,
    HTMLDB_ITEM.TEXT(9,FRACHTPFL,5) Frachtpfl,
    HTMLDB_ITEM.TEXT(10,LADEMETER,5) Lademeter,
    HTMLDB_ITEM.TEXT(11,VOLUMEN,5) Volumen,
    HTMLDB_ITEM.TEXT(12,LIEFERSCHEIN,10) Lieferschein,
    HTMLDB_ITEM.TEXT(13,ZEICHEN,10) Zeichen,
    HTMLDB_ITEM.TEXT(14,WARENWERT,5) Warenwert,
    HTMLDB_ITEM.SELECT_LIST_FROM_LOV(15,Gefgut_Klasse,'DANGEROUSMEDIUMCLASSES','NO','NO')"Gef-Klasse",
    SDGNUMMER,
    BENUTZER,
    HTMLDB_ITEM.CHECKBOX(40,HTMLDBCHECK) " "
    FROM TBPOSITIONENQUEUE WHERE BENUTZER = :F100_USERID ORDER BY ID
    I furthermore changed the report to sql query updateable report.
    2: created a process to insert a new row:
    INSERT INTO TBPOSITIONENQUEUE (LADEMITTEL, GEFGUT_KLASSE, BENUTZER) VALUES (0,0, :F100_USERID);
    2: created a process to delete selected rows:
    BEGIN
    FOR I IN 1..HTMLDB_APPLICATION.G_F40.COUNT
    LOOP
    DELETE FROM TBPOSITIONENQUEUE
    WHERE HTMLDBCHECK = HTMLDB_APPLICATION.G_F40(i) AND BENUTZER =
    :F100_USERID;
    END LOOP;
    END;
    3: created a process to update ALL rows (NOT only selected rows ):
    for i in 1..htmldb_application.g_f01.count
    loop
    update tbpositionenqueue
    set --lademittel = htmldb_application.g_f03(i),
    anzahl = htmldb_application.g_f05(i),
    inhalt = htmldb_application.g_f06(i),
    netto = htmldb_application.g_f07(i),
    brutto = htmldb_application.g_f08(i),
    frachtpfl = htmldb_application.g_f09(i),
    lademeter = htmldb_application.g_f10(i),
    volumen = htmldb_application.g_f11(i),
    lieferschein = htmldb_application.g_f12(i),
    zeichen = htmldb_application.g_f13(i),
    warenwert = htmldb_application.g_f14(i)
    --gefgut_klasse = htmldb_application.g_f15(i)
    where id = htmldb_application.g_f01(i);
    end loop;
    Deleting and adding rows is working so far but if I want to update a row the error "ORA-01722 invalid number" is raised. I think the error appeared because the where condition in the update statement was not given the expected primary key value back. Instead the return value was either nothing or just one primary key. (I tested it with another process and the same loop returning the value to a diplay only item)
    So I think my loop is referencing the wrong rows... I guess because of the check box and so the g_f01 array is referencing only selected rows... but I want to keep the query as it is WITH the checkboxes...
    Anybody who can help me on this?
    Thanks in advance
    Markus

    Arie,
    the columns in the table are all varchar2 types - besides id and some other columns that needs to be numeric because of a LOV - because I have to check the submitted values later on in a validation. If the users enters a string value into for example column 'brutto' there should be no problem. (Allthough there should be of course only a numeric value in this column but I wanted another error message than the standard unattractive and brutal one ;-)
    Anotherthing thing: I changed my code to the following:
    update tbpositionenqueue
    set --lademittel = htmldb_application.g_f03(i),
    anzahl = htmldb_application.g_f05(2),
    inhalt = htmldb_application.g_f06(2),
    netto = htmldb_application.g_f07(2),
    brutto = htmldb_application.g_f08(2),
    frachtpfl = htmldb_application.g_f09(2),
    lademeter = htmldb_application.g_f10(2),
    volumen = htmldb_application.g_f11(2),
    lieferschein = htmldb_application.g_f12(2),
    zeichen = htmldb_application.g_f13(2),
    warenwert = htmldb_application.g_f14(2)
    --gefgut_klasse = htmldb_application.g_f15(i)
    where id = 126
    126 is the primary key value of one row. With this values the (single) row is updated without any problems.
    Message was edited by:
    Markus

  • Manually created tabular form

    I created a tabular form manually. I got it to work so that it displays a blank record automatically so the user can insert a new row. But this only gives the user to insert one row at a time. Can this be changed so the user can insert multiple rows at a time?

    Thanks. The tabular form (detail) is actually part of another form based on another table (parent).
    I want to use the apply changes button that the parent form provides to update recrods for the detail form. And for my requirement, I actually need only 3 extra rows, and this is set number for every parent record.
    Can this be done without having to click on add row button, since I only and always need 3 rows?
    Thanks

  • How to create a manual tabular form with DELETE capability

    Since the wizard tabular form does not allow the use of checkboxes, I am building my tabular form manually following the HOW-TO document. I will need to be able to delete rows in the form in addition to inserting and updating. Is there a document somewhere that describes how to do this? The how-to doesn't cover it and I have searched the forums to no avail.
    Thanks.
    Darin

    To create dynamic checkbox you can do the following:
    SELECT HTMLDB_ITEM.CHECKBOX(1,"your database field name", 'unchecked or checked') " "
    FROM YOUR_TABLE_NAME OR DUAL;
    ...then...
    In order to extrapolate the checkbox value you use following array:
    htmldb_application.g_f01("subscript value)"
    This array will contain value of checkbox. At this point you can do this:
    if htmldb_application.g_f01("subscript value)" = 'Y'
    THEN
    INSERT DATA...
    DELETE DATA...
    END IF;
    Hope this somewhat helps...
    NOTE: I have entered a lot of pseudo values/code but I believe you can fill in the blanks for what you need.

  • 2 manually created tabular form on the same page based on 2 different table

    Hi, I followed the how to document on manually creating tabular form, including one extra row.
    The first form I created works fine, but when I attempt to create the second tabular form based on a different table on the same page, I get the following error message when I try to create the query:
    ORA-04045: errors during recompilation/revalidation of PUBLIC.X ORA-00980: synonym translation is no longer valid
    The logic behind both tabular forms I am using is the same, except that for the second query, I use 100 instead of 1, 300 instead of 3, etc:
    select htmldb_item.hidden(1,empno) empno,
    ename,
    htmldb_item.select_list_from_query(3,job,'select distinct job, job from emp') job,
    htmldb_item.popupkey_from_query(4,mgr,'select ename, empno from emp',10) mgr,
    wwv_flow_item.date_popup(6,null,hiredate) hiredate,
    htmldb_item.text(7,sal,10) sal,
    htmldb_item.text(8,comm,10) comm,
    htmldb_item.select_list_from_query(9,deptno,'select dname, deptno from dept') deptno
    from emp
    Can anybody help?
    Thanks a lot

    Hi,
    If by "100 instead of 1" you mean the column numbers, then this won't work as you can only have a maximum of 50.
    Andy

  • Query for create manual tabular form using apex collection add row button functionality

    Hello everyone
    My requirement is i created a tabular form manually using apex collection but if i click on add row button then previously selected data refreshed and added new row in this form it is fine.but i don't want to refreshed previously selected data and click on add row button then add new row .how it is possible? plz help
    Thanks & Regards,
    Ujwala

    Ujwala
    Instead of starting a new thread with the same question as Query for create manual tabular form using apex collection add row button functionality.
    Could you answer the question about what you see while debug the javascript code.
    If you don't understand the question or have trouble debug javascript let us know.
    Nicolette

  • Bug in Tabular form Not Exist Validation, fails when creating multiple rows

    Hi,
    I have a Not Exist validation created for a Tabular form:
       select 1 from my_table where col1 = :col1 and col2 = :col2Execution State: For created and Modified Rows
    which is working fine when a row already there in DB
    and I am trying to enter a new row with same data.
    but when there's no data and I enter two rows with same data, validation does not fire, first row should allowed to enter
    but for second row it should give error that data already exists, which is not happening.
    for example,
    let's say I have a row in DB with: 1, 2, 3
    when I try to add a new row with same data ie. 1, 2, 3 validation fires and showing error, which is fine.
    but let's say there's no data in DB and I am entering two rows with:
    1, 2, 3
    1, 2, 3
    validation is not working this time, it is allowing to enter both the rows.
    do I need to create a manual validation for this or what?
    Apex 4.1.1.00.23
    Regards,
    Tauceef
    Edited by: Tauceef on Dec 6, 2012 10:09 AM
    Edited by: Tauceef on Dec 6, 2012 11:22 AM
    Edited by: Tauceef on Dec 6, 2012 11:27 AM

    Hello Tauceef,
    >> Now I got it, I was under impression that it will validate one by one row before insertion,
    >> but it's going to check all the rows first, then do the insertion.
    Just to clear things up, the APEX engine works exactly as you describe, but this is your problem.
    The APEX engine do check\validate all the rows first, one row at a time, and only if all the rows pass validation, the DML processes kick in. The DML processes work on the entire Tabular Form record set (per page view, of course).
    In order for your type of validation to work (the one that queries the database), as you want it, the validation and DML actions have to run together, row by row. This is not how things work, because it’s less efficient/optimal, and may lead to a situation where a certain row can fail validation, but other row(s) already been inserted/updated/deleted into/from the database. This could be a very tricky situation.
    Vikram has suggested to rely on a database constraint, and control the APEX error message. This is possible, although I’m not sure that in this case, the Tabular Form will retain all the user changes, in case of validation error. You should check it.
    Another option, which Marc hinted on, is to manipulate the G_Fxx arrays. In your case, you should loop through the new rows, compute their MD5, and make sure that all the rows have different MD5 values. This is on top of the current validation, which makes sure that the new rows do not already exist in the database.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Manual Tabular form

    Hi everyone,
    I have created a maual tabular form with the help of (HOW TO) document in OTN.For that I wrote maual update and manual delete process and evething is working fine.But in the manual update process i did not include the code to compare the checksum of the submitted data with the old data (still its working fine).But in my application i have created several manual tabular forms like this .Do the application get any problem in the futher as i am not checking the checksum.If i compare the checksum i am getting error.I decoded that error by
    inserting the checksum values to a (test table).The checksum values for a row is changing even if there is no change in the data of the table.
    any suggestions please
    Here is my code
    declare
    l_cks wwv_flow_global.vc_arr2;
    j pls_integer := 1;
    begin
    -- Get original MD5 checksum
    -- select wwv_flow_item.md5( column1,column2,column3,column4) cks
    -- BULK COLLECT INTO
    --l_cks
    -- from table;
    -- Compare the original checksum, l_cks,
    -- with submitted checksum, htmldb_application.g_fcs.
    -- If they are different, raise an error.
    -- for i in 1..l_cks.count
    --loop
    --if htmldb_application.g_fcs(i) != l_cks(i) then
    -- rollback;
    --raise_application_error(
    -- -20001,
    -- 'Current version of data in database has changed '||
    -- 'since user initiated update process.');
    -- return;
    --end if;
    --end loop;
    -- update EMP
    for i in 1..htmldb_application.g_f07.count
    loop
    if htmldb_application.g_f07(i) is not null then
    update table
    set
    column2 = replace(htmldb_application.g_f08(i),'%'||'null%',NULL)
    where column1 = htmldb_application.g_f07(i);
    else
    if htmldb_application.g_f08(i) is not null then
    insert into table
    ( column1 ,
    column2,
    column3)
    values
    replace(htmldb_application.g_f08(i),'%'||'null%',NULL));
    end if;
    end if;
    end loop;
    end;
    Thanks
    phani

    Phani,
    I don't understand what you have working, what does not work, and what that code does (much of it is commented out). Can you put an example on apex.oracle.com that shows the problem?
    Scott

Maybe you are looking for