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

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • Updating a table through a manually created tabular form does not work.

    Hi Friends,
    I don't know why the "On submit - After computations and validations" process does not update the referenced table. May I miss something. Here is my source :
    select
    apex_item.hidden(1,eqp_id) id,
    apex_item.hidden(2,tcs_tcs_id) tcs,
    apex_item.text(3,eqp_equip_name,50) name,
    apex_item.text(4,eqp_equip_ident,50) ident,
    apex_item.text(5,eqp_equip_type,15) type
    from equip_physical
    where tcs_tcs_id = :P1_TCS_ID
    and here is the process source
    FORALL i IN 1..apex_application.g_f01.count
    UPDATE equip_physical
    SET eqp_equip_name=apex_application.g_f03(i),
    eqp_equip_ident=apex_application.g_f04(i),
    eqp_equip_type=apex_application.g_f05(i)
    WHERE eqp_id=apex_application.g_f01(i);
    No error message is displayed and my success message associated to the process is displayed. But the modified text field value is erased and the database table is not updated.

    I'd call it a bug/missing feature.
    It appears that within a Basic report, sorting on a column created using APEX_ITEM.DATE_POPUP2() does not sort by date.
    I'd file this with Oracle Support and see what they say.
    Include a link to this thread and your workspace login information.
    I got something to work by: (probably not what you want.)
    using the C004 column directly. (I just added it to the SQL code)
    setting the column's attribute "Display As" to "Date Picker"
    setting the column's attribute "Number /Date Format" to DD-MM-YYYY
    I suspect: since you don't start with p_idx => 1, this column becomes "1" ==> g_f01
    MK

  • Create Check box in Tabular form and report

    This is Marilyn. I wanted to know if anybody can help me with the following scenario.
    I created tabular form which has some LOV columns, and some check boxes. When the user clicks on "add row" button, I want to populate the row with the values from the LOV display to be selected by user, and some of the blank check box also display as empty check box in order for user to select check or uncheck them.
    If this is possible, can you provide an example?
    Thanks

    Visit this demo app:
    http://apex.oracle.com/pls/otn/f?p=31517:1
    Section VI has a lot of tabular form stuff with checkbox handling.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    https://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Trying to Create Tabular Form with apex_item... and apex_item.select_list

    I am trying to create a tabular form that uses multiple altec_item functions (select_list, select_list_from_LOV,...). Whenever I attempt to create a new page and select Tabular Form, I am forced to select a table and columns. So I have just selected any table and once the sql is created, I overwrite it with my own sql. When I try to apply the changes, I get an error anytime I use apex_item... for a particular column. I have tried the same creating a standard report with the same results. I have read at least 20 examples but none say where to start from when creating the tabular form and just jump right in to the code. Can anyone please point me in the right direction?
    Thanks,
    Jerryu

    You can start with creating a simple classic report. You can use apex_item functions in your query and later set your column attributes to "Standard Report Column". Basically, you are creating a updateable report.

  • Help- I have added a field in my tabular form and now i get an error in mul

    Help- I have added a field in my tabular form and now i get an error in muli update form; Here is the error, how do I go in to change the process, adding the extra field??
    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. current checksum = "F10F6D7EC4CF938382C6DC2EE22800F6", item checksum = "90E47F32E95B71B7A9D47A1311063445"., update "CAPRS"."CONTRACT_ERRORS" set "ID" = :b1, "CONTR_NUM" = :b2, "REPT_MONTH_CD" = :b3, "REPT_FISCAL_YEAR" = :b4, "REPORT_FAC_CAGE_CD" = :b5, "END_ITEM_NUM" = :b6, "END_ITEM_DESC" = :b7, "WSSC" = :b8, "WBS_CD" = :b9, "WPC_CD" = :b10, "CONTR_CLIN" = :b11, "CO
         Error      Unable to process update.

    Hi,
    I believe the error is due to the checksum process which doesn't have that additinoal field's information. You can try creating the form again with the additional field, or if needed you can go with the Manual tabular form.
    Thanks,
    Manish

  • How to create tabular form whithout primary key in table

    Hi All,
    I have requirement to create a tabular form but the problem is, the table which I am using in the application don't have any Primary key, I am using only one table can't change any thing in table.(i.e can't add any row in table,no change in data model)
    How can I create tabular form when primary key is not available.
    looking forward for all of your quick responce.
    Thanks in advance.
    Dikshit Kumar Nidhi

    You can create a view like
    select a.rowid id, a.*
    from table a
    and create a tabular form on this view. You can use
    the new column ID as Primary key.Did you try to actually do this? I did at
    http://htmldb.oracle.com/pls/otn/f?p=24317:159
    And when I change something and click Submit, I get an error
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-01733: virtual column not allowed here, update "VIKASA"."NO_PK_VW" set "ID" = :b1, "I" = :b2, "J" = :b3 where "ID" = :p_pk_col
    Thanks

  • Creating tabular form using SQL query

    Hi,
    I need to create a tabular form using an SQL query so that multiple rows of a table are displayed on screen and are editable to the user.
    I have created this sort of form before using the Tabular Form wizard however for this form I need to enter SQL to produce it.
    The steps I take are:
    1. Create Page
    2. Page with Component
    3. Form
    4. Fow on a SQL query
    5. For the query I have: 'select * from depot_master_customer'
    However when I view the page, it just displays one blank field with the title '*' !!
    I am doing something completely wrong here? It seems like it should be a simple thing to do.
    Any help appreciated, this one is driving me mad.
    Thanks
    Simon

    Simon,
    You will need to manually create the tabular form and DML process. This is covered in detail in the How To document shown below:
    http://www.oracle.com/technology/products/database/htmldb/howtos/tabular_form.html
    Have you tried this yet?
    Good luck!
    Emilio.

  • Help with validation on a manually created tabbed form

    version 4.1.1.00.23
    Hello,
    I have a manually created tabbed form that I'm having trouble creating validation on.
    The page is a Resource Staffing page where PM's can forecast the Resources that will be needed for various projects. The forecast can be for 12 - 18 months.
    The requirement is to display a message to the user if they are trying to save a row without forecasting any time. It's possible they may not know how may Resources or the length of time needed when the row is created.  If they respond that they want to save the row without time the MRU will create the record. If they answer that they do not want to save the row they are returned to the page without loss of information.
    The month fields on the page are defaulting to 0 (zero).
    I've updated the Save button to Redirect to URL and in the URL Redirect I have: javascript:confirmNoTimeSaved()
    The javascript:
    [code]
    function confirmNoTimeSaved()
        var arr_jan,arr_feb,arr_mar,arr_apr,arr_may,arr_jun,arr_jul,arr_aug,arr_sep,arr_oct,arr_nov,arr_dec = new Array();
            arr_jan = document.wwv_flow.f07;
            arr_feb = document.wwv_flow.f08;
            arr_mar = document.wwv_flow.f09;
            arr_apr = document.wwv_flow.f10;
            arr_may = document.wwv_flow.f11;
            arr_jun = document.wwv_flow.f12;
            arr_jul = document.wwv_flow.f13;
            arr_aug = document.wwv_flow.f14;
            arr_sep = document.wwv_flow.f15;
            arr_oct = document.wwv_flow.f16;
            arr_nov = document.wwv_flow.f17;
            arr_dec = document.wwv_flow.f18;
        for(i = 0; i < arr_jan.length; i++)
            if(arr_jan[i].value == 0 && arr_feb[i].value == 0 && arr_mar[i].value == 0
                && arr_apr[i].value == 0 && arr_may[i].value == 0 && arr_jun[i].value == 0
                && arr_jul[i].value == 0 && arr_aug[i].value == 0 && arr_sep[i].value == 0
                && arr_oct[i].value == 0 && arr_nov[i].value == 0 && arr_dec[i].value == 0)
                txt = 'You have no time assigned to your Forecast. Do you want to save this Forecast without time entered?' + '\n' + '\n' + '"Yes" to save the Forecast.' + '\n' + '"No" to return with no changes.';
                caption = 'Confirm Saving With No Time';
                vbMsg(txt,caption)
                switch (isChoice)
                    case 6:
                        doSubmit('SUBMIT');
                        break;
                    case 7:
                        doSubmit('CANCEL2');
                        break;
            else
                doSubmit('SUBMIT');   
                break;
    </script>
    <script language="VBScript">
    <!--
    //Yes    = 6
    //No     = 7
        Function vbMsg(isTxt,isCaption)
            testVal = MsgBox(isTxt,vbYesNo,isCaption)
            isChoice = testVal
        End Function
    //-->
    </script>
    [/code]
    The 'CANCEL2' is just a Branch I'm using to branch back to the page without clearing Cache. I do have 'Cancel' button on the page and the Branch created for that clears the Cache.
    While debugging the javascript I get into the VB Script on the testVal = MsgBox(isTxt,vbYesNo,isCaption) line and the browser crashes.
    Can someone help with this requirement?
    What additional information can I provide?
    Thanks,
    Joe

    The code above is my attempt at this requirement, however, the browser crashes when it gets to the VBScript on the MsgBox call. I don't have to use this approach. Does someone have an idea how to solve this?
    Thanks,
    Joe

  • Create Tabular Form wizard - how to add rows to Table / View Owner list?

    Create Tabular Form wizard asks to choose "Table / View Owner"
    How to add additional schemas/users to this "Table / View Owner" dropdown list?

    Next step:
    I tried to create 2nd application - and it sees and allows to select from schemas I added in previous step.
    Then I tried to add 1 more schema - and 2nd application can't see it...
    I create 3rd application and select 1st schema (assigned when workspace was created) - and it sees only this one schema
    I create 4th application and select another schema (added in previous steps) - and it sees 2 schemas from 4 assigned
    what is this?
    how to live with it?

  • II am using acrobat Pro 9 for the Mac OS. I recently created a form and sent it to several individua

    I am using acrobat Pro 9 for the Mac OS. I recently created a form and sent it to several individual. They filled the form out with acrobat reader and said that they were unable to save the information, therefor unable to send it back to me. What can I do to address this problem?

    You didn't forget to Advanced menu and set Reader Rights.Once you do that then, they can save and send back to you.

Maybe you are looking for

  • [b]EJB Hotel RA Client Error - HELP[/b]

    1. Travel schema installed fine 2. Web Client can successfully be run and all the buttons work fine 3. The only file I modified was in config properties. Provider_Url = ormi://localhost:8888/OneEJBHotel 4. in oc4j directory: principals file: user id

  • SUN CLuster probe value

    Hi, I've a little question about probe value when creating a probe script. Exit code 100 (automatic failover) means that the probe is not valid and it should restart during the rety-count in the retry_interval, Exit code 0 means that everything is OK

  • Spilled Coke on screen. Help please...

    Alright, so I managed to get the Coke off in time before there was any major damage, but then I noticed the screen. From a glance one would think it appeared fine, but upon closer inspection, I see a huge ugly-looking spot. I believe I have the gloss

  • How to relate MATNR (material number) with its internal Characteristics?

    Material and its internal characteristics should be extracted from R/3 to BW? The Internal Characteristics are available in following tables CABN (Characteristic) CAWN (Characteristic Value) CAWNT (CHaracteristic Value Texts) How to relate MATNR with

  • Re-start

    I have a Pavillion Media Center Desk Top that will periodically re-start.  Some of the time it will be in a loop and re-start over and over.  I am sure that it is coincidental, but this began to occur after downloading HP Printing Software.  Any answ