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

Similar Messages

  • Can we have Manual Form and Tabular form in the same page..

    Hi,
    Is it possible to create a form manually with Save/Apply Change button and another Tabular form using wizard on the same page such that -
    if we click the save button on the manulaly created form , it should save the data present in manual form as well as Tabular form...
    Edited by: Apex_Noob on Mar 21, 2009 5:58 AM

    Hi Dan,
    My table structure is :
    Process
    process_id ( number primary key )
    process_owner ( number which represent the user who is responsible for the process)
    category_id ( number )
    focus_area ( number )
    frequency ( number )
    process_description ( varchar2 )
    Process Region
    process_id ( number )
    region_id ( number )
    Process_website
    id (number primary key)
    process_id ( number)
    web_address ( varcahr2 )
    Above is the struct of part of my DB.
    At present my manual form does the following :-
    When users click on SAVE button , it run PAGE PROCESS , ADD_PROCESS
    In ADD_PROCESS ,
    I have following logic to insert into process table
    Select seq.next_val into temp_variable from dual; - This is the process_id
    insert into process values ( temp_variable , :p2_process_owner , :p2_cateogory , .... )
    to insert into region i used the following logic ( Region is displyed as check box :p2_region north=1 , south=2 ,east = 3 and west = 4)
    l_vc_arr2 := APEX_UTIL.STRING_TO_TABLE(:P2_REGION);
        FOR z IN 1..l_vc_arr2.count LOOP
           INSERT INTO "REGION" VALUES
           ( temp_variable ,
             l_vc_arr2(z));
        END LOOP;
    END;Now as I told, I want to have three text field where user will enter web_address and it should be added to process_website table
    Thanks a ton for all your help
    Regards,
    Shijesh
    Edited by: Apex_Noob on Mar 21, 2009 10:07 AM

  • How can I use two tabular forms on the same page.

    I have create one tabular form in page and try to create second tabular form so
    it gives below error.
    1 error has occurred Updatable SQL Query already exists on page XXXXX.
    You can only add one updatable SQL query per page. Select a different page.

    I can get this to work but the page is submitted, either when I use a button with URL link or from a link on a display only text field.
    Is this how it is supposed to work? I thought it was supposed to work just on the browser so it is fast.
    IGNORE THIS!
    =============================
    I resolved it easily by modifying the URL from f?p=blah blah to #LINK_NAME
    Message was edited by:
    user530800

  • Two tabular form on the same page

    Hi,
    There is a tutorial or a standard way to build two tabular form on same page?
    thanks in advance
    lukx

    Hi,
    You can see this example also.
    http://htmldb.oracle.com/pls/otn/f?p=31517:163:1033737280330848:::RP,::
    Thanks
    Tauceef

  • Two Manual Tabular forms in a same page

    Since i have to create two tabular forms in a same page, i created tabular forms manually.
    Both the forms are working fine if the columns are not defined as conditional display.
    Based on item value set by user, few fields should be either displayed as text field (editable) or read only (display).
    I created two columns for a same field one as editable another one as non editable.
    Based on item value any one of the column will be displayed.
    Since the manual tabular form update process is using 'apex_application.g_f02', if any one of the column is not visible,
    multiple row update is failing.
    can any one please help me or suggest me to solve this.
    Edited by: Ravi on Apr 19, 2012 9:02 AM

    I'm guessing you have a page item that is used to control display of the columns as display only or editable.
    If that's true and the page item tells you to display the editable column, then you end up with say a g_f02 and a g_fo3, where you otherwise might only have a g_fo2.
    Use the value of the page item in your update process to control which tabular form element to use.

  • Select list in a manually created tabular form

    I created a select drop down item in a manually created tabular form. When I run the page, it also shows the null value '%'. How do I edit this?
    This is the line I am using in the SQL:
    htmldb_item.select_list_from_query(34,IN_PGRS_STAT_DSC,'select distinct STAT_DSC, STAT_DSC from PROJECT_STATUS_REF') IN_PGRS_STAT_DSC,

    And the select list doesn't work. It gives me an error message if I have the form to display one extra empty record and the select list. But even with the select list, if I don't include the extra row, it works properly.
    report error:
    ORA-06550: line 1, column 13:
    PLS-00103: Encountered the symbol "COLLECT" when expecting one of the following:
    := . ( @ % ;
    ORA-06550: line 1, column 82:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( , % from
    What I also realized is that the drop down shows the value 7. But the table is empty with no records. I have no idea where this number 7 is coming from?
    Message was edited by:
    user494578
    Message was edited by:
    user494578

  • For "select-form" in the same page, add a cancel button in editing status

    Dear JHeadstart team
    For "select-form" in the same page, I still have a trouble.
    How can I customize the Tempalte File to make the editing page have cancel button to abandon the edit.
    If I want to learn the the JHS's Template costomizing (.vm file) and where can I find more reference documents about JHS's Template costomizing (excepting "Oracle JHeadstart 10g for ADF Developer's Guide").
    thanks!

    Can you be more precise on what you want:
    - should the cancel button be displayed when creating new row AND editing existing row?
    - when pressing the Cancel button, where do you want to go, to the select page?
    Steven Davelaar,
    JHeadstart Team.

  • How to pass a parameter from a report to multiple forms in the same page

    Hi:
    i have a report and a lot of forms in the same page. The fact is that i want to stablish a link over a filed in the report which would make some information appear in those forms so that information could be updated. For example: i have a report with company names. Over those names i want to put a link. When the link would be pressed the forms would reflect the information about that comany. Is this possible to be done? how can i do this or something similar?
    Thanks.
    Regards. Urko.

    Please see post Re: session state security
    It has been done for a single form in a page and can be extended to multiple forms as well.

  • Apply the same LCR two times on different tables

    Hi all
    Just one question:
    Can I apply the same LCR two times on different tables using only one apply queue?
    For example executing two times LCR.EXECUTE(TRUE) in a procedure handler:
    LCR.EXECUTE(TRUE);
    LCR.EXECUTE(TRUE);
    ....

    Topas,
    You need to create new LCR and execute both LCRs.
    Regards,
    Serge

  • Calling Report from a Form on the same page

    Hi,
    We have a SEARCH Form and when user inputs search criteria, then we want to call a report on the same page, just below the search button. We tried many things but the report does not show up on the same page, it navigates to next page.
    Please help..
    Thanks
    Kumar.

    I am trying to do a similar thing... I have created a form application component and a Report application component which is called from the search form. This works fine.
    I expose the search form as a component and put it on a portal page. I do the same with the report.
    When I call the page and enter the search params in the form and call the report, the report appears in a separate non-portal window. I would like the report in the same portal page to be run in-line with the new parameters.
    Has anyone done this before?

  • Column link to  populate a form on the same page

    Hello all,
    Can anyone tell me how I can use a report column link -- that when the link is clicked will populate all of the text fields of my form which is on the SAME page? The form has about 10 fields, and their is only (3) Name/Value associations for a column link.
    Thanks,
    Jeff

    Great! Thanks for the advice. It appears that when you do that, it changes the column link attributes to a URL and puts the name/values in the URL -- when I first clicked on the link, it would not work -- said that it could not find item P6_FAX. I looked at the URL and then I deleted some of the spaces after the commas in the URL and it works great.
    Thanks!
    Jeff

  • Search criteria on manually created tabular form

    Hi All,
    Apex v4.0
    DB 11g
    In a page I have created one manually tabular form using collection .
    My requirement is :- Search criteria on the form based on 3 column field of that form.
    I tried to use LIKE, EQUAL in the select statement of the query. BUT search option is not working .
    When I tried to search ,it doesn't return anything.
    But its working on wizard base TF.
    I am not sure this one option for search criteria on the manually created TF.
    Kindly suggest any other way we can achieve it.
    Thanks in Advance !!!
    Regards,
    Amu

    Remember that the values on an apex page is only accessible once you submit your page.
    And for tabular forms the values needs to be processed to the apex collections after you submit.
    For better understanding what happens inside the collections I suggest that you always make a conditional report with
    select * from apex_collectionsand Condition
    Where Value of item in expression1 = Expression2
    Expression1
    DEBUGExpression2
    YESThis way you can show the content of your collections easily by just enabling debug.
    Regards

  • Add row in manually created tabular form

    Hi,
    I have created a manual tabular form in one of my pages, as I need 2 tabular forms.
    In my manual tabular form i have used collection, so while adding a row into it, the whole page get submitted.
    Do some have any idea how to add a row without refreshing the page, also kindly let me know all the steps for it, as I am new to Apex.
    Thanks,
    Rupak

    Hi Kiran,
    My code for tabular form is as below:
    SELECT apex_item.checkbox (40,
    seq_id,
    'onclick="highlight_row(this,' || seq_id || ')"',
    NULL,
    'f40_' || LPAD (seq_id, 4, '0')
    ) DELETE_CHECKBOX,
    APEX_ITEM.hidden (41, seq_id)
    ||
    APEX_ITEM.TEXTAREA (42,
    c001,
    5,
    80,
    'f42_' || LPAD (seq_id, 4, '0'),
    NULL) Major_Risks_Issues,
    APEX_ITEM.TEXTAREA (43,
    c002,
    5,
    80,
    'f43_' || LPAD (seq_id, 4, '0'),
    NULL) Mitigation_Plan_Action,
    APEX_ITEM.SELECT_LIST (44,
    c003,
    'Open;Open,Closed;Closed',
    'f44_' || LPAD (seq_id, 4, '0'),
    NULL) Status,
    APEX_ITEM.hidden (45,
    c004,
    'f45_' || LPAD (seq_id, 4, '0'),
    NULL) RISK_ID
    FROM apex_collections
    WHERE collection_name = 'COLLECTION_GT'
    UNION ALL
    SELECT apex_item.checkbox (40,
    NULL,
    'onclick="highlight_row(this,' || TO_NUMBER (9900 + LEVEL) || ')"',
    NULL,
    'f40_' || LPAD (9900 + LEVEL, 4, '0')
    ) DELETE_CHECKBOX,
    APEX_ITEM.hidden (41, NULL)
    ||
    APEX_ITEM.TEXTAREA (42,
    NULL,
    5,
    80,
    'f42_' || LPAD (9900 + LEVEL, 4, '0'),
    NULL) Major_Risks_Issues,
    APEX_ITEM.TEXTAREA (43,
    NULL,
    5,
    80,
    'f43_' || LPAD (9900 + LEVEL, 4, '0'),
    NULL) Mitigation_Plan_Action,
    APEX_ITEM.SELECT_LIST (44,
    NULL,
    'Open;Open,Closed;Closed',
    'f44_' || LPAD (9900 + LEVEL, 4, '0'),
    NULL) Status,
    APEX_ITEM.hidden (45,
    NULL,
    'f45_' ||LPAD (9900 + LEVEL, 4, '0'),
    NULL) RISK_ID
    FROM DUAL
    WHERE upper(:request) = 'ADD'
    CONNECT BY LEVEL = 1
    My Code for adding a row is as below:
    DECLARE
    vupdatecount NUMBER := 0;
    vinsertcount NUMBER := 0;
    BEGIN
    FOR ii IN 1 .. apex_application.g_f41.COUNT -- SEQ_ID
    LOOP
    -- if it's an existing record
    IF apex_application.g_f41(ii) IS NOT NULL -- contains SEQ_ID
    THEN
    apex_collection.update_member (p_collection_name => 'COLLECTION_GT',
    p_seq => apex_application.g_f41
    (ii),
    p_c001 => apex_application.g_f42
    (ii),
    p_c002 => apex_application.g_f43
    (ii),
    p_c003 => apex_application.g_f44
    (ii),
    p_c004 => apex_application.g_f45
    (ii)
    vupdatecount := vupdatecount + 1;
    ELSE
    apex_collection.add_member (p_collection_name => 'COLLECTION_GT',
    p_c001 => apex_application.g_f42
    (ii),
    p_c002 => apex_application.g_f43
    (ii),
    p_c003 => apex_application.g_f44
    (ii),
    p_c004 => apex_application.g_f45
    (ii)
    vinsertcount := vinsertcount + 1;
    END IF;
    END LOOP;
    END;
    Kindly look into this and let me know if any thing is wrong here.
    Regards
    Rupak

  • Manually Created Tabular Forms and Firefox 4 Problem

    I have a tabular form created with pl/sql dynamic content regions using the apex_item toolkit. An apex collection is used to maintain state for the tabular data entered. It is an application originally created in APEX 1.5 and upgraded through the years to 3.2 . Never a problem with the application until now. I have re-created the issue on the apex.oracle.com site here:
    http://apex.oracle.com/pls/apex/f?p=28213
    Run the application in IE ( I am using 8) and then run in Firefox 4. Enter a quantity in the first item then hit Next and then Previous multiple times. See the problem? The problem does not occur in FF 3.6 or Chrome either. I have not tried Safari as my mac is at home and I am at the office.
    Here is code for both pl/sql regions and the collection update (after submit). Page 2 is just a report selecting from the collection. I have spent a day trying to solve this problem. Any help will be appreciated. Re-architecting without the pl/sql dynamic regions is not an option at this time.
    Dave
    Report region 1: (collection not exists)
    declare
    other1 varchar2(2000) default null;
    other_char varchar2(32000) default null;
    begin
    htp.p('<table border="1" width="100%">');
    htp.tablerowopen;
    htp.p('<th>Description</th><th>Price</th><th>Quantity</th>');
    htp.tablerowclose;
    for rec in (SELECT id, description,to_char(price,'$9,999.99') price
    FROM foodbev_items order by id) loop
    select apex_item.hidden(1,rec.id) into other_char from dual;
    htp.p(other_char);
    select apex_item.hidden(3,rec.description) into other_char from dual;
    htp.p(other_char);
    htp.tablerowopen;
    htp.tabledata(rec.description);
    htp.tabledata(rec.price,'right');
    -- quantity here
    select apex_item.text(6,null,5)
    into other1 from dual;
    htp.tabledata(other1);
    htp.p('<tablerowclose>');
    end loop;
    htp.p('</table>');
    end;
    Report Region 2: (collection exists)
    declare
    other1 varchar2(2000) default null;
    other_char varchar2(32000) default null;
    begin
    htp.p('<table border="1" width="100%">');
    htp.tablerowopen;
    htp.p('<th>Description</th><th>Price</th><th>Quantity</th>');
    htp.tablerowclose;
    -- collection BREAKFAST_SELECTION
    -- 1 is item_id, 3 is descrip 6 is qty
    for rec in (SELECT a.c001 item_id, a.c003 description,to_char(b.price,'$9,999.99') price, a.c006 entered_qty
    FROM htmldb_collections a, foodbev_items b where a.c001 = to_char(b.id) and a.collection_name = 'BREAKFAST_SELECTION' order by b.id) loop
    select apex_item.hidden(1,rec.item_id) into other_char from dual;
    htp.p(other_char);
    select apex_item.hidden(3,rec.description) into other_char from dual;
    htp.p(other_char);
    htp.tablerowopen;
    htp.tabledata(rec.description);
    htp.tabledata(rec.price,'right');
    -- quantity here
    select apex_item.text(6,rec.entered_qty,5,5)
    into other1 from dual;
    htp.tabledata(other1);
    htp.p('<tablerowclose>');
    end loop;
    htp.p('</table>');
    end;
    Collection Update:
    declare
    la_cks wwv_flow_global.vc_arr2;
    other_char varchar2(2000) default null;
    other_char1 varchar2(2000) default null;
    begin
    htmldb_collection.create_or_truncate_collection('BREAKFAST_SELECTION');
    for i in 1 .. htmldb_application.g_f01.count
    loop
    -- 1 is item_id, 2 is numeric price , 3 is descrip, 6 is qty
    htmldb_collection.add_member(
    p_collection_name => 'BREAKFAST_SELECTION',
    p_c001 => htmldb_application.g_f01(i),
    p_c003 => htmldb_application.g_f03(i),
    p_c006 => htmldb_application.g_f06(i)
    end loop;
    end;

    Dave,
    All I am saying is both of your report regions can very easily be made into a sql statement and put into a report region. you can then use the apex builder to format them. How you validate that data is up to you and would not change all that much other than making sure your global arrays are pointing to the same columns. it just looks to me that you are going through a lot more effort to not use what apex will very easily do for you. Plus the more apex built in functionality you use the more robust your application will be in different browsers.
    I tried running your application in IE 7 and FF 3.6 and i did not see any problems. i entered 1,6,4 clicked next. Clicked previous numerous times and was redirected back to the page and saw 1,6,4.
    What is happening when you run the app?
    Thanks,
    Tyson Jouglet

  • 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

Maybe you are looking for

  • Recover data from failed hard drive?

    Hi, My hard drive failed recently and wouldn't boot up anymore. Since then, I replaced the drive and bought an IDE to USB adapter to try and recover some of the data on the drive. But when I plug in the adapter to my computer, a message comes up sayi

  • Blackberry Desktop Software only synchronizes with folder Outlook in Microsoft Outlook

    Blackberry Desktop Software only synchronizes with folder Outlook in Microsoft Outlook.  But, folders (.PST files) may be renamed and there may be multiple such folders open in Outlook at any time.  I have six, none of which is named Outlook.  Two of

  • How to store a text file in a hash table in C#?

    I am fairly new to c#. I am creating a console application project for practice. I am supposed to create a program that reads a text file (it's a poem), store it in a hash table, have two different sorts, and unhash the table. I managed to get the po

  • Authorization issue - Query is not working

    Hi All, I have creared an auth.object on zcomp_code. created a role and assigned to a particular user. I have included 20 comp.codes in this auth object. All is well except the query result I have 2 variables in the variable pop-up screen. 1 is FiscY

  • Unable to disable cookies in FF 3.6.10 in some web sites

    Both cookies boxes are unchecked in FF 3.6.8. Enter some web sites which over-ride my [no cookies allowed] settings and write unlimited cookies to my hard disk. What is procedure to block and avoid these unwanted cookies ? In the past my system has r