Custom process on tabular form

Hi everyone,
I was wondering if anyone could show me an example of a process on a tabular form that checks the rows and values of other columns
does the insert with the MRU process and immediately follows with the custom process in order to update another column of the same table (used in the tabular form).
I would really appreciate the help.
Kind Regards,
Cleo

Hi Cleopatra,
I think that you will need to manage all the required steps in the "Custome Process".
You can go throug every line of the report adapting the following example:
FOR I in 1..APEX_APPLICATION.G_F01.COUNT LOOP
    DELETE FROM emp WHERE empno = to_number(APEX_APPLICATION.G_F01(i));
END LOOP;
You can see more details in: [http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_item.htm#CHDDCHAF]
By doing this you will be able implement as many processes you need for each line.
Hope you find this info help full. Try it and let me know if it works!
Kind regards!

Similar Messages

  • MRU process on Tabular Form

    Hi,
    I have a table based form wich has has his Automated Fetch/Automatic updates processes.There is a page item P1_ID wich I set up to be returned from AutomaticRowProc with 'Return Key Into Item' P1_ID.When I create a row I see in debug that P1_ID has the proper value (returned by a 'before insert' trigger).
    On the same page I have also a Tabular Form wich has a column COLID wich has the 'defaul value' = P1_ID .
    AutomaticRowProc has sequence=10 , ApplyMRU has sequence = 20 . Both processes fires on Request=CREATE.
    How to make that ApplyMRU proces to set the value of COLID = P1_ID ?
    Thankyou.

    Hi David,
    If it's going to be anywhere, I would have thought it would be on the APEX_APPLICATION_PAGE_RPT_COLS view. Assuming that Apex outputs in the DISPLAY_SEQUENCE order, and ignoring items that won't involve an fnn item on the page (eg, those with WITHOUT_MODIFICATION in the DISPLAY_AS_CODE column), that should result in the values you need.
    However, and there's always an "however", I've had instances in the past where the order of the columns in the report definition does not match the order of the fnn values. Usually, either because the page has been copied or because I've done things with the columns after the initial creation (more them about or added new ones, for example). I have to say, though, that this was on older versions on Apex and I haven't really double-check things on Apex 4 (except that I've noticed that copying tabular forms doesn't work properly!).
    Andy

  • Custom popup from tabular form

    Hi,
    I would like to create a custom popup in a tabular form.
    The standard popup doesn't realy satisfy my needs.
    I followed the "How to" to create a custom popup, so that method is known. And this is working for a part.
    I managed to alter the tabular form so that it calls the Javascript to get the popup window by entering :
    <INPUT TYPE="TEXT" VALUE="#PROJ_ID#"> Click for LOV
    in the HTML Expression of the column format section.
    So the popup window is opened correctly, but the problem is how to return the selected value to the text item in the tabular form.
    Returning a value to a normal text item is no problem, but it is to return it to a cell in an tabular form.
    I tried to enter the following in the Passback Javascript:
    opener.document.getElementById("F04").value = passVal2;
    But this doesn't work correct and also is not flexible since F04 is the cell for only that row.
    So the question is: How can I write my Javascripts Passback function so that it returns the passVal2 value to the right cell of the tabular form?
    Any ideas?
    Regards Guido

    Nobody has ever done such thing?
    Isn't there a way to address a specific cell in a tabular form?
    Maybe then I have to look for another solution:
    What I would like is, when selecting something from the popup (in the tabular form) a second column (The description column)has to be filled in with a value looked up from the selected popup value. This is just a default value,this "Description" field must be a text field so that users can change the description before "saving" the record to the table.
    So anybody has an idea how this can be implemented?
    Thanks for your help in advance!
    Guido

  • Custom errors in tabular form

    Hi,
    I am getting oracle errors in a tabular form if entering some illegal values. For example i am getting below oracle error
    when giving an invalid date in a date field
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: Found invalid date value, please verify
    date format., insert into "PE_DIP"."CORRELATION_ELIGIBILITY"
    ( "ID", "CUSTOMER_ID", "SITE_ID", "EQUIPMENT_ID", "TERMINATION_ID", "CORRELATION_ELIGIBILITY", "LAST_MO
    DIFIED_BY", "LAST_MODIFIED_ON") values ( :b1, :b2, :b3, :b4, :b5, :b6, :b7, :b8)i just need the message
    Found invalid date value, please verify date formatand like this, for each errors i just need the error message and that will be dispalyed in the notification area and not in
    other page. Is this possible?. Plz help,
    Thanks,
    TJ

    Hi TJ,
    You could write a JavaScript function to do that for you. Just call it onChange or onBlur. I have the following javascript functions that I use. These display the error next to the item though, so you may need to play around with it to display it where you want it to. (Pls note: I have a few validation functions like the notNull one below that all call the setError function.)
    //This function checks to see if the object sent in is null and if so displays an error message
    //back to the user. This is useful when doing client side validations on tabular forms in APEX.
    //It takes in the ID of the object we want to do this check for and prints out an error
    //just after the cell where the error occurred.
    function notNull(object, errObj) {
    var val = $x(object).value;
    setError(object, (val == "" || val == null), "This field cannot be empty ", errObj);
    //Function to display an error in a tabular form. The error will be displayed next to the field associated
    //with the object parameter, using div tags. In addition to the object parameter, the function also takes in
    //the err object to use as id in the div tag, a boolean variable to indicate if there is an error and the error string
    //to display
    function setError(object, isErr, errStr, errObj) {
    //ensure you have the name for the error string to be displayed
    if (!errObj) {
    errObj = "err_".concat(object.id);
    //if there was a prior error displayed, first delete that, so we do not have duplicate messages shown
    $x_Remove(errObj);
    if (isErr) {
    if (!$x(errObj)) {
    $x_Style(object, 'border', '1px solid red');
    var errStr = ('<div name="err" id="').concat(errObj).concat('" style="color:red;">').concat(errStr).concat(' </div>');
    object.parentNode.innerHTML += errStr;
    $x("Back").focus();
    $x(object.id).focus();
    } else {
    $x_Style(object, 'border', "1px solid #C8C8C8");
    $x_Remove(errObj);
    In the report item attributes page, I call the above function as onBlur="notNull(this);" in the element attribute field.
    HTH,
    Chandini

  • Checkbox in tabular form - help needed

    I'm trying to build a tabular form, with a checkbox for a field that can have value 'Y' or 'N'. Adding the checkbox is no problem, with the htmldb_item.checkbox API.
    However, processing it is.
    On this forum I found a way to process the checkboxes, by looping through all the records (with the help of htmldb_item.hidden in which the id is stored) and reading the value from the checkboxes and updating the column if the checkbox is checked. (see Re: Report with updateable checkbox)
    however, as soon as I add a htmldb_item.hidden item, I receive the following error when I submit the tabular form to the Multi Row Update process:
    "Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. "
    My query:
    Select id
    ,htmldb_item.hidden(1,id)
    ,htmldb_item.checkbox(2,id, decode(field, 'Y', 'CHECKED', NULL))
    from table
    What am I doing wrong?
    is there a better way to process a tabular form with checkboxes?
    Or should I process all the rows manually by updating every record even if it hasn't changed (with a loop through all the records)?

    Tonnie, did you ever get an answer to this question?
    Michael Cunningham

  • Multi Row Update for Tabular Form

    1) I'm trying to understand how the built-in MRU works for tabular forms: While running through every row, does it check for changes before issuing an UPDATE or does it blindly UPDATE every row in the current pagination range?
    2) If I need to write my own Multi Row Update process for tabular forms, could someone give me some tips on how to do that?
    Thanks,
    Pavel

    1) It stored a checksum for each row that it renders. It calculates the checksum again before processing the rows. The UPDATE statement it issues has a predicate like where old_checksum!=new_checksumSo, it only updates the rows that have at least 1 column value that is different (causing the row checksum to be different)
    2) See the howto at http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html

  • Custom error message in a tabular form

    Hello,
    I try to implement a solution for a custom error message in a tabular form.
    My intention is, that a error message about a foreign key constraint violation should told the end user what happens in a friendly way.
    So I try to implement my own delete-process, where I can catch the exception and display my own error message.
    In the process I use the following code to delete the selected row:
    begin
    for i in 1..apex_application.g_f01.count loop
    delete from d_cmp_campaign
    where campaign_id = apex_application.g_f02(i);
    end loop;
    end;
    And this is the select of the tabular form:
    select
    "CAMPAIGN_ID",
    "CAMPAIGN_ID" CAMPAIGN_ID_DISPLAY,
    "NAME",
    "CAMPAIGN_NO",
    "DWH_DEF_TIME",
    "DWH_DEF_USER"
    from "#OWNER#"."D_CMP_CAMPAIGN"
    The problem is, that the first row is deleted always, whatever row is selected.
    Can anyone help me with that issue?
    Thank you,
    Tim

    Every checkbox has a value which is the corresponding row. You got to get the row number
    first and based on that you select the record. For example, if you click the rows 1 and 5,
    you first need to know which rows are selected. Then, you would loop twice and get the
    first and the fifth array values.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Custom tabular form for multi-row not saving data

    Ok, before anyone asks, yes, I did read the how-to:-)
    I have a custom tabular form, which I did cause I need to use popups and the popups that you can use in the wizard tabular form does not display the text but rather the value underneath it.
    It returns data rather nicely and when I go and update values I can tell it is changing the fields underneath. I put a process in that will display the values in text fields on the form (for one row only) and I see them changing from what is already there and with the proper values.
    However, when I do that the data that is displayed then gets reverted back to what it was previous to the update but reports that the process was successful.
    I have also tried to insert but that is basically doing the same thing. Can anyone guide me.
    SQL to generate the tablular form...
    SELECT x.sak_release_db
    , x.sak_object
    , x.sak_release
    , x.sak_participant
    , x.sak_csr
    FROM
    (SELECT htmldb_item.hidden(1,sak_release_db) sak_release_db
    , htmldb_item.popupkey_from_query(2, sak_object,
    'SELECT b.nam_schema||''.''||a.nam_technical as table_name , b.sak_object
    FROM system_object a
    , database_table b
    WHERE a.sak_object = b.sak_object') as sak_object
    , htmldb_item.hidden(4,sak_release) sak_release
    , htmldb_item.popupkey_from_query(5, sak_participant,
    'SELECT nam_first || '' '' || nam_last as name, sak_participant FROM co_participant') sak_participant
    , htmldb_item.popupkey_from_query(7, sak_csr,
    'SELECT external_id|| ''-''||id_split as co, sak_csr FROM co') sak_csr
    FROM release_db_xref
    UNION ALL
    SELECT htmldb_item.hidden(1,NULL) sak_release_db
    , htmldb_item.popupkey_from_query(2, NULL,
    'SELECT b.nam_schema||''.''||a.nam_technical as table_name , b.sak_object
    FROM system_object a
    , database_table b
    WHERE a.sak_object = b.sak_object') as sak_object
    , htmldb_item.hidden(4,NULL) sak_release
    , htmldb_item.popupkey_from_query(5, NULL,
    'SELECT nam_first || '' '' || nam_last as name, sak_participant FROM co_participant') sak_participant
    , htmldb_item.popupkey_from_query(7, NULL,
    'SELECT external_id|| ''-''||id_split as co, sak_csr FROM co') sak_csr
    FROM dual) x
    Process to verify that I have the correct global fields: (Type: PL/SQL anonymous block, Process Point: On Submit - After Computations and Validations)
    begin
    :P3_2 := replace(htmldb_application.g_f02(1),'%'||'null%',NULL);
    :P3_5 := replace(htmldb_application.g_f05(1),'%'||'null%',NULL);
    :P3_7 := replace(htmldb_application.g_f07(1),'%'||'null%',NULL);
    end;
    Process to do the insert/update. Note, I hardcoded the value in the where clause but I was originally using the global value for g_f01 (i also tried putting a commit in there for fun) (Type: PL/SQL anonymous block, Process Point: On Submit - After Computations and Validations):
    -- Update the RELEASE_DB_XREF table
    FOR i IN 1..htmldb_application.g_f01.count
    LOOP
    IF htmldb_application.g_f01(i) IS NOT NULL THEN
    UPDATE release_db_xref
    SET sak_object = replace(htmldb_application.g_f02(i),'%'||'null%',NULL)
    , sak_participant = replace(htmldb_application.g_f05(i),'%'||'null%',NULL)
    , sak_csr = replace(htmldb_application.g_f07(i),'%'||'null%',NULL)
    WHERE sak_release_db = 22;
    ELSE
    IF htmldb_application.g_f02(i) IS NOT NULL THEN
    INSERT INTO release_db_xref
    (sak_object
    ,sak_release
    ,sak_participant
    ,sak_csr)
    VALUES
    (replace(htmldb_application.g_f02(i),'%'||'null%',NULL)
    ,htmldb_application.g_f04(i)
    ,replace(htmldb_application.g_f05(i),'%'||'null%',NULL)
    ,replace(htmldb_application.g_f07(i),'%'||'null%',NULL));
    END IF;
    END IF;
    END LOOP;

    Florian,
    Checkboxes are different from other HTML form items. When you have a text box for example, there's always a value send to the server when submitting. Even if that value is NULL. When you have a checkbox however, you only get the value if the checkbox is checked. It's not posted to the server when it is not checked. That's the general behavior of HTML forms and not specific to Oracle HTML DB.
    When working with tabular forms in HTML DB, you can access your form values using the htmldb_application.g_f0x arrays. Now if you have for example 10 rows in your form, then you'll get ten elements in your array for text boxes, select lists, etc. For checkboxes however you'll only get as many elements as you have rows checked. If I read your update and insert code correctly, you're trying to use the checkbox arrays the same way you use the arrays based on other item types. My recommendation would be to use Yes/No select lists instead of checkboxes or at least use select lists initially to get it working and then work on properly processing the checkboxes.
    Some general information about working with checkboxes in tabuar forms can be found here:
    http://www.oracle.com/technology/products/database/htmldb/howtos/checkbox.html#CHECKBOX_IN_REPORT
    Hope this helps,
    Marc

  • Tabular Form - submit custom data and insert/update records

    I have a tabular form with 2 columns representing table data and 5 more custom columns.
    Task ID
    Task Name
    10/7/2013 to 10/13/2013
    10/14/2013 to 10/20/2013
    10/21/2013 to 10/27/2013
    10/28/2013 to 11/3/2013
    11/4/2013 to 11/10/2013
    1
    TASK1
    2
    TASK2
    3
    TASK3
    I use an sql which returns null values for columns 3 to 7. Then I use the html formatting option of apex and jquery to add change the headers to weeks and add checkboxes.
    My sql: select task_id, task_name, null week1, null week2, null week3, null week4, null week5 from <table name>
    My table has the columns task id, task name , start_date and end_date.
    When the user clicks the submit button, i need to send the checkbox data to my stored procedure and insert records into the corresponding table. I am unable to find out how to send a mapping of the task_id, date headers in each column and the checkbox data to apex back end and process them. For example, if the first check box in first row is checked, i should insert a row with values "1, TASK1, 10/7/2013, 10/13/2013". I also have to read the data from the table and display it in the same format. Please let me know how to accomplish this in apex.

    instead of using null, you can use apex_item api to create check boxes
    read http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_item.htm#CHDDCHAF
    you can set the value of check boxes using apex_item api and then the value can be captured in your process
    check this: Martin Giffy D'Souza on Oracle APEX: APEX Report with checkboxes (advanced).
    let me know if this answers your query in the current thread
    Regards,
    Vishal
    Oracle APEX 4.2 Reporting | Packt Publishing
    Vishal's blog

  • Manual tabular form "Update Process"

    Hello,
    i made a tabular form manually,
    now i want to add an update process, but its not working?
    I created a Button "P_UPDATE" and i added a Process which listens to the P_UPDATE Button.
    i used the following PL/SQL script:
    for i in 1..htmldb_application.g_f01.count
    loop
    update MATCHUMSATZ
    set PARTNER_ID = replace(htmldb_application.g_f10(i),'%'||'null%',NULL),
    RECH_DATUM = replace(htmldb_application.g_f02(i),'%'||'null%',null),
    RECH_NR= htmldb_application.g_f06(i),
    PROV_GRUNDLAGE= htmldb_application.g_f08(i),
    KUNDE= htmldb_application.g_f14(i),
    VERTRIEBSART_ID = replace(htmldb_application.g_f17(i),'%'||'null%',NULL)
    where id = htmldb_application.g_f01(i);
    end loop;
    This is an example which i customized from: http://www.oracle.com/technology/products/database/application_express/howtos/tabular_form.html
    I suppose that 'htmldb_application.g_f01' is the ID of the table 'MATCHUMSATZ'.
    Why is there replace() and sometimes not ?
    Would be glad if anybody could help me!
    Phil

    Hi Phil,
    You can add in the in-built MRU update process that will do this for you. When you add a process, select Data Manipulation then Multi Row Update, then follow the prompts to link it to your table.
    In your code snippet, htmldb_application.g_f01 refers to the first column in your form (even if this is hidden). Normally this is the Primary Key for the table on which the form is based. htmldb_application.g_f02 refers to the second column and so on, although you can assign any number from 1 to 50 to each field when you create the sql statement.
    The replace() function is used because some of the fields will contain %null% which needs to be converted to null before updating the table.
    Regards
    Andy

  • Need customized query on updateable report (tabular form)

    I have a pl/sql function that returns a SELECT statement based on very flexible query specifications allowed in a form. (Form has a field for each table column, allows operations like <,>,between, etc, that can be entered directly into the field; all fields need not have some sort of query constraint specified. Essentially the same sort of query flexibility you get in Forms... ) The select always returns the same number of columns. Query results are returned on a different page (either report or tabular form) than that used to enter the query specs.
    The function works beautifully on a page type of Report.
    However, when I take a Tabular Form and switch its query source to PL/SQL function body returns SQL select, the page type becomes Report. The query works on this modified page (returns correct rows), and the columns are still editable (can be typed into) but the changes can't be submitted because the page is no longer a tabular form -- Error is: No updateable report found. Multi row updated and delete operations can only be performed on tabular forms of type 'Updateable Report'.
    How can I have flexible query specs paired w/ an updateable report? Does this require writing my own multi-row DML processes? Or is there a simpler way?
    Thanks,
    Carol

    I have a pl/sql function that returns a SELECT statement based on very flexible query specifications allowed in a form. (Form has a field for each table column, allows operations like <,>,between, etc, that can be entered directly into the field; all fields need not have some sort of query constraint specified. Essentially the same sort of query flexibility you get in Forms... ) The select always returns the same number of columns. Query results are returned on a different page (either report or tabular form) than that used to enter the query specs.
    The function works beautifully on a page type of Report.
    However, when I take a Tabular Form and switch its query source to PL/SQL function body returns SQL select, the page type becomes Report. The query works on this modified page (returns correct rows), and the columns are still editable (can be typed into) but the changes can't be submitted because the page is no longer a tabular form -- Error is: No updateable report found. Multi row updated and delete operations can only be performed on tabular forms of type 'Updateable Report'.
    How can I have flexible query specs paired w/ an updateable report? Does this require writing my own multi-row DML processes? Or is there a simpler way?
    Thanks,
    Carol

  • Custom tabular form error on apex_item id larger than 50

    First post :)
    I'd like to share a potential bug in apex (3.0.1) or misconfiguration in our application server
    When creating a page with a custom tabular form, i've noticed that when i give a column an id over 50 (ex: "apex_item.text(51,salary) salary")
    the page will generate errors in the apache.
    The apache error log states the parameter F51 as incoming but it contains no value.
    Further allong the log states:
    "VARIABLES IN FORM NOT IN PROCEDURE: F51"
    example report query:
    select apex_item.hidden(1,"ID")||apex_item.checkbox(2,"ID") delete_checkbox
    ,apex_item.text(3,name) name
    ,apex_item.text(51,salary) salary
    from employee;
    I've always been under the impression that we could use F01 till F99?
    Is there anyone who has encountered this problem before, or are my conclusions wrong?
    Looking forward to an answer!
    Niko

    Hi Niko and Roel
    Roel, you are right, I am hitting the 50 columns only limit too. Do you know of any ways to overcome this limit?
    This post also describes the problem: Re: column in tabular form
    Currently I need to create a tabular form to edit a table with 84 columns.
    It sounds ugly, but this is a spreadsheet and the requirement is to get it in Oracle Apex 'as it is' and still, be able to edit it using MRU.
    Any ideas?
    Thank you very much.
    Kubilay
    Edited by: Kubilay on Jun 15, 2009 10:29 AM
    Edited by: Kublai-Khan on Jun 15, 2009 10:30 AM

  • 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

  • Using a custom PL/SQL to populate the primary key in a tabular form

    I want to use a Custom PL/SQL Function to populate the primary key when I insert a new record into a tabular form. I want to get the value from a hidden page Item. The code I am using for the primary key source is:
    BEGIN
    INSERT INTO TEAM_MEMBERS(TEAM_ID)
    VALUES(:P75_TEAM_ID);
    END;
    When I try to insert a new record I get the following error:
    Error      ERR-1904 Unable to compute item default: type = Function Body computation_type= BEGIN INSERT INTO TEAM_MEMBERS(TEAM_ID) VALUES(:P75_TEAM_ID); END; .
    ORA-06550: line 5, column 2: PLS-00103: Encountered the symbol ";" when expecting one of the following: begin case declare end exception exit for goto if loop mod null pragma raise return select update while with << close current delete fetch lock insert open rollback savepoint set sql execute commit forall merge pipe The symbol "exit" was substit
    Any ideas what I am doing wrong?
    Thanks!

    Brian - Sometimes whitespace at the end of the block causes this. Be sure to trim everything after the last semicolon including tabs and newlines.
    Scott

  • Java script is not working in custom tabular form

    hai all,
    i have changed my built in tabular form to custom tabular form.my java script is coding working fine in built in tabular form . But in my custom tabular form java script is not working ,since it is created as standard report(Display As).
    pls help me.
    with thanks and regards
    sivakumar.G

    Is the appostrophe function test(pthis) *'* present in your javascript code...
    If not can you post the same in apex.oracle.com and give the credential so that I can the why its not wroking
    Regards,
    Shijesh

Maybe you are looking for