Master-detail form problem after upgrading to 4.1

Hello,
I have running Apex 4.0.2 instance on 11g2 database.
After upgrading to Apex 4.1 I have a problem with all Master-detail forms.
I'm able to open the one but detail region shows error 'failed to parse SQL query:
ORA-00923: FROM keyword not found where expected'.
All forms work correctly on 4.0.2 version.
If I migrate that 'SQL Query (updateable report)' region to 'Interactive report',
the form works fine on 4.1
What could be a problem?
Thanks
Sasa

Hi Patrick,
I tried to make test application (the one master-detail page).
But when I copy the page from my application to test application, copied page in test
application works fine and because of that I didn't import test application to apex.oracle.com
Strange thing is that the column in detail table FAK_ID in the page of original application has
defined default value (P108_ID) but in the copied page in test application that column doesn't have
defined default value!?
I don't know if it's expected behavior...
Anywav, even if I set default value of FAK_ID column in test application, application works as expected.
I tried upgrade to 4.1 Apex version for three time but unfortunately I always got the same error in the master-detail page.
BR
Sasa

Similar Messages

  • Master Detail Form - Problem using built in wizard

    Hi There
    We are working on Application express 2.2.
    We are facing problems for a master detail form using Wizard. The
    details are as follows : >>
    1) Master table : TS_ENTRY_TXN
    trans_id P.K.
    2) Detail table : TS_ENTRY_TXN_DETAIL
    a)trans_id
    b)sub_trans_id Composite P.K.(trans_id,sub_trans_id) & these are
    based on sequences.
    If i try to build a master detail form using the Wizard, the options
    for providing P.K. for master & detail are listed which we used.
    As it is a master detail form, we want to carry trans_id to the detail
    for updations/insertions which doesn't happen.
    The MRU fails with oracle error :
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1,
    ORA-01400: cannot insert NULL into
    ("TS_APEX"."TS_ENTRY_TXN_DETAIL"."ENTRY_ID"), insert into
    "TS_APEX"."TS_ENTRY_TXN_DETAIL" ( "ENTRY_ID", "SUB_ENTRY_ID",
    "SMR_ID", "TASK_ID", "SUB_TASK_ID", "TIME_SPENT", "REMARKS") values (
    :b1, :b2, :b3, :b4, :b5, :b6, :b7)
    Is there any other way to build master detail wihout wizard.
    Could you please suggest us better way to complete this task.

    If I'm reading this correctly, then one of the columns in your detail tables' primary key is also the foreign key pointing to your master table? If that's the case, then that's not supported by the wizard. For the wizard generated master-detail form to work properly, you'll have to have a foreign key column in your detail table which is not part of your detail table's primary key.
    Hope this helps,
    Marc

  • Master Detail form - Problems

    We are facing problems for a master detail form using Wizard. The details are as follows : >>
    1) Master table : TS_ENTRY_TXN
    trans_id P.K.
    2) Detail table : TS_ENTRY_TXN_DETAIL
    a)trans_id
    b)sub_trans_id Composite P.K.(trans_id,sub_trans_id) & these are based on sequences.
    If i try to build a master detail form using the Wizard, the options for providing P.K. for master & detail are listed which we used.
    As it is a master detail form, we want to carry trans_id to the detail for updations/insertions which doesn't happen.
    The MRU fails with oracle error :
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-01400: cannot insert NULL into ("TS_APEX"."TS_ENTRY_TXN_DETAIL"."ENTRY_ID"), insert into "TS_APEX"."TS_ENTRY_TXN_DETAIL" ( "ENTRY_ID", "SUB_ENTRY_ID", "SMR_ID", "TASK_ID", "SUB_TASK_ID", "TIME_SPENT", "REMARKS") values ( :b1, :b2, :b3, :b4, :b5, :b6, :b7)
    Is there any other way to build master detail wihout wizard.
    Could you please suggest us better way to complete this task.

    Hi San Mat,
    I would never recommend having a composite PK on any table. Use the sub_trans_id as the PK in its own right and have trans_id as a Foreign Key pointing to the master table.
    However, given your existing table structure, what you need to do is add a Default value for the ENTRY_ID field on the child table that points to the Page Item used for the PK field on the master table (you've said trans_id but do you mean ENTRY_ID??). On the column's Column Attributes page, set Default Type to Item (Application or page item name) and the Default to P1_ENTRY_ID (or whatever the name is of field is on the master table's form that holds the PK)
    When a new row is added to the child table, the ENTRY_ID from the master table is inserted automatically.
    Regards
    Andy

  • Master-Detail form Problem

    Hi,
    I've made a Master-Detail form, but I'm getting a weird behavior... When I query a record from the master block it shows the rocords associated from the deatil block, but if I move to the deatil block and click on any field of the records queried, the block gets cleared and the cursor moves to the first line and enters in insert mode, like if I wanted to insert a new record. This same thing happens when I click on an empty line of the detail block... the rows queried get cleared and it moves the cursor to the first line to insert a new record. I don't want this to happen... When I click an empty line to insert a new record, I want the other records to remain there, not to be cleared from grid... I don't know if that's a property or something, I've checked triggers trying to find something weird, but nothing.
    I want to add that the records are not deleted from the tables, just cleared from the grid.
    Thanks for your help!

    It would help knowing how you have set up your data blocks.  Are they Base Table blocks or do you populate the blocks manually through code?
    If your tables are Base Table blocks, do you have a Releationship created between your Master and Detail blocks?  How many records are displayed in your Detail Block?
    Too many questions...not enough information. 
    Craig...

  • Forms problem after upgrade

    Dear all,
    We recently upgrade our applications from 11.5.10.2 to r 12.13.
    After upgrade, we noticed that there is an asset module form , where the asset number is being
    displayed.We noticed that there is a one letter blank space infront of the asset number. I tried regenerating the forms too..
    What could be the problem as the data is fine in the database ?

    Hello,
    It seems best to create a Service Request for this issue.
    Regards, Carlo.

  • URGENT : Master Detail Form problem

    the senario 1 is :
    i have a (Master --> Detail ---> SubDetail) form
    the Master and Detail Parts are displayed on
    canvas and have relation on block level as well as in
    DB,
    but the third SubDetail part has only db relation and
    it is updated on commit.
    On PostQuery trigger in Detail Part , the related
    information in SubDetail is placed in a temporary
    table (XYZ)
    this temporary table is updated on validation of a
    field in Detail Part.
    The above mentioned process WORK FINE FOR THE FIRST
    TIME , BUT SECOND TIME ON EDITING A RECORD IN DETAIL
    PART FAILS.
    AND GEBNERATE THE FOLLOWING ERROR
    WHEN-VALIDATE-ITEM RAISED UNHANDLED EXCEPTION
    ORA-00600
    --=============================================================================================================
    THE SENARIO 2 IS:
    I have 4 tables
    Invoice_MT = A
    Invoice_detail = B
    INVOICE_EXPENSES = C
    GRN_DETAIL = D
    THE A TABLE HAVE (one to many) JOIN WITH B AS
    WELL AS C.
    THE D TABLE HAVE (one to many) JOIN WITH B
    THE INFORMATION IN C TABLE IS ALSO PLACED IN B
    TABLE AFTER CALCULATION.
    THIS CALCULATION IS DONE THROUGH
    1- ROW AND STATEMENT LEVEL DB TRIGGERS ON C
    TABLE
    OR
    2- ROW AND STATEMENT LEVEL DB TRIGGERS ON B
    TABLE
    WHEN THIS UPDATION IS DONE THROUGH " ROW AND
    STATEMENT LEVEL DB TRIGGERS ON B TABLE "
    THERE INVOLVES A TEMPORARY TABLE (ON COMMIT DELETE
    ROWS)
    WHICH IS POPULATED ON ROW LEVEL AND USED TO UPDATE
    "D" TABLE ON STATEMENT LEVEL.
    THE STATEMENT LEVEL TRIGGER OF TABLE B ALSO
    INCLUDE THE REMAINING ROWS FROM B TABLE WHICH ARE
    NOT UPDATED FROM USER INTERFACE.
    DURING THIS STAEMENT LEVEL PROCESS THE FOLLOWING
    ERRORS RAISED ...
    INTERNAL ERROR CODE ATGUMENTS ORA-00600
    [4521],[2],[132033],[0],[4234644],[4294967295],[4294967295],[]
    INTERNAL ERROR CODE ATGUMENTS ORA-00600
    [4553],[2],[25],[],[],[],[],[]
    THE ABOVE ERRORS ARE RAISED IN DIFFERENT TIMES BUT
    ON SAME STATEMENT

    I don't fully understand what you are trying to accomplish, but if you just need to validate the number entered into MY_ITEM, the "WHEN-VALIDATE-ITEM" trigger is normally used for doing that. If it fails validation, just display your alert message and raise a "FORM-TRIGGER-FAILURE" exception which will leave the focus on the field.

  • Problem: trying to update all detail rows on pre-commit (MASTER DETAIL FORM

    Hi:
    I got a MASTER DETAIL form... and I need to update every detail row of this form (if the master was updated) before commiting the changes. the problem is that i cannot do that for instance in PRE-COMMIT or ON-COMMIT... it's an "illegal operation". I achieved part of it by coding KEY-COMMIT... but that did not solve the all problem. first take a look of the kind of code i want execute before commiting.
    form trigger key-commit code is is somehow like this:
    DECLARE
    tot_line NUMBER (3);
    line NUMBER (3);
    begin
    IF NAME_IN ('system.form_status') = 'CHANGED'
    THEN
    GO_BLOCK ('DETAIL');
    LAST_RECORD;
    tot_line := GET_BLOCK_PROPERTY ('DETAIL', current_record);
    FIRST_RECORD;
    line:= 1;
    LOOP
    :detail.quant := :detail.quant + 1;
    EXIT WHEN line= tot_line;
    next_record;
    line:= line+ 1;
    END LOOP;
    FIRST_RECORD;
    GO_BLOCK ('MASTER');
    END IF;
    COMMIT;
    end;
    The problem is for instance when the users close form in the "X" button (right top, near minimize form) ... If they do that Forms ask "Do you want to save changes?" ... and with this i do not execute the update of the detail rows...
    But there are other situations when this happens... for instance if EXECUTE_QUERY when i change a record...
    Anyone help?
    Joao Oliveira

    Use PRE-UPDATE trigger (Master block).
    begin
    update <detail_table>
    set quant + 1
    where <detail_table>.<relaition_column1> = :<Master_block>.<relaition_item1>
    and <detail_table>.<relaition_columnN> = :<Master_block>.<relaition_itemN>
    and <detail_block_WHERE>;
    EXCEPTION WHEN OTHERS THEN NULL;
    end;

  • Old items are not populated after adding items into a master/detail form

    Hi,
    I am relatively new to APEX. I am creating a master/detail form. It works well. When I add new items the older items are no more populated. Why ?
    For example I have an itme which is a select list as a Named LOV. At creation of the row I want the user to choose from this select list. It works well.
    But when modifying the record, I don't want the user to change this name. For that purpose, I create an item which is a display only item. This item is conditional and appear only when the record has been created.
    And this is where the problem comes. It seems to work but, if I logout of the application and login, then values are no more populated to the items and I get an error when trying to update the form.
    I hope I make it clear. I have been trying a lot of times and found that if I add items, then everything goes wrong.
    Thank you for your kind help.
    Christian

    Hi Christian,
    You don't say what the error is that you are getting - this may help us with your problem!
    On the form, do you now have TWO fields - one being the original select list and the other being a read-only version of it? Is it likely that BOTH fields could appear on the page at the same time AND that both are connected to the field on the table?
    You can set the select list to be read-only conditionally - in this case you could make it read-only on the condition of the primary key field not being null.
    Andy

  • Problem in Master Detail form when using ADF table for Detail

    hi,
    jdev version-11.1.2.1.0
    i have create Master detail form using datacontrol drag as ADF Master Form Detail Table.
    Now when i create a new row in Detail table using CreateInsert button a blank new row created on the top of detail table.
    and other row show that data of previous record based on master.
    problem is that i want when i click on createInsert button all row of detail table should be blank and when user fill two or three row then commit.
    Thanks in Advance

    Hi,
    if a detail table has data, then createInsert adds to these. If you want to hide existing rows, create a new View Object instance and set its "Retrieve from the Database" option to "No Rows". The use an af:switcher to change the table shown when the user clicks the createInsert button. There is a bit of coding required to have this use case in ADF, but its mostly declarative. Bottom line is that there is no automated option other than creating new rows in a separate page or dialog if you are bothered by existing rows
    Frank

  • Post-trigger problem in master detail form.

    I have designed a master detail form having two data blocks.
    in detail data block there is a post-query.
    when i tried delete one record in master block
    an error occurred ie
    'frm-40654. Record is updated by another user
    re-query to see changes'.
    in detail block there are 3 non database items.
    when i delete the post-query trigger the record is deleting properly.but the post-query trigger is also needed to display the non database item values. please give me a solution to tackle this problem.

    Hi,
    Even though yout items are non-database items, when you assign a value to them forms sets the block status to "CHANGED".
    Add the following lines add the end of your post-query trigger to reset the block status to "QUERY"
    set_record_property (GET_BLOCK_PROPERTY('YOUR_BLOCK_NAME',CURRENT_RECORD)
    ,name_in('system.cursor_block')
    ,STATUS
    ,QUERY_STATUS
    Hope this helps,
    Hugo

  • JTable problem in master detail form

    I've created a master detail form. There is only one Navigation bar for both master and detail. Detail has a JTable component. JTable doesn't get focus when it doesn't have any row and I am uanble to insert new rows. To cope with this problem I've added two new buttons in Navigation Bar to travers to the next and previous iterBinding.
    When I start my form cursor apperas in the first field of master view when I press Next Button nothing happens ( Status Bar should show the next iterbinding/view). I've addes some debug mesgs in iterBindingChanged method of NavitaionBar class and it seems by looking the mesgs that detail/Jtable's iterBinding get focus two times but at last focus has been returned to the master iterBinding.
    Is there any suggestion to solve this problem.
    Regards
    Aamir

    Hi,
    I'm using 1.4.0 for my JClient and, due to the improved focus management provided in the new JDK, I am able to properly manage master-details configuration with only one navigation bar (of course, the JTable must be able to receive the focus, but this also is much easier in 1.4.0...)
    Nevertheless, the solution I found is quite complex and I would happily discard it.
    If you could find a solution that works "naturally" on frames with only one navigation bar, it would be great! I think that the buttons in the nav bar should apply to the "current" iterator binding (the iterator binding for the control having the focus).
    Thanks,
    Adrian

  • Problems in Master-Detail forms when the detail contains LOVs

    I am having problems with master detail forms when the detail contains and lov.
    In my detail form I have a messageLovInput field that returns 2 values (code and description). When the lov window returns both values the messageLovInput disappear from the form.
    This problem happens only when I iterate in the master view and I try to add a record in the detail form.
    If I add a new record without navigation for the master view there is no problem.

    Jode,
    which technology are you using, ADF JClient ? If yes, please provide a step by step description of how to setup a testcase to reproduce the problem.
    Frank

  • Problems with Master-Detail Form not retrieving Detail Rows

    Portal 3.0.7.6.2 on NT
    I am having problems with a Master-Detail Form not retrieving Detail Rows. Sometimes it retrieves all, sometimes about 50%, the majority of the time it's not retrieving any. If it never retrieved any I would suspect that the 'join' condition was wrong but that isn't the case. I didn't have this problem with a prior MD Form I created. I have tried re-creating the MD Form but I get the same problem.
    Is anyone having similar problems/is this a know bug??
    Any help or thoughts are appreciated.

    I experienced performance problems. The simpiest MD form takes about 10 secs. to requery. I's not answer to your question, but there is more problems with this concept.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Michael Finch ([email protected]):
    Portal 3.0.7.6.2 on NT
    I am having problems with a Master-Detail Form not retrieving Detail Rows. Sometimes it retrieves all, sometimes about 50%, the majority of the time it's not retrieving any. If it never retrieved any I would suspect that the 'join' condition was wrong but that isn't the case. I didn't have this problem with a prior MD Form I created. I have tried re-creating the MD Form but I get the same problem.
    Is anyone having similar problems/is this a know bug??
    Any help or thoughts are appreciated.<HR></BLOCKQUOTE>
    null

  • Having problem with creating Master Detail form , please help

    I have to work on a project to create a survey system using APEX, as am new on using this tool , am still facing some problems to finish my job..
    i created Master/Detail form using wizard, the master form is working fine but am when i try to add data using the detail form its giving me error :
    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 = "A884FA378C851786DDFE3A33709CB23C", item checksum = "5F8B1EE5CD3D46437455F43B37B9A6A0"., update "ABA"."ABA_SURVEY_SUBCATEGORY_MAST" set "ASCM_CATEGORY_ID" = :b1, "ASM_SURVEY_CODE" = :b2, "ASSM_SUBCATEGORY_ID" = :b3, "ASSM_SUBCATEGORY_DESC" = :b4
    i tried to go through the posts from others but i still dunno what is this error !!!& how to solve it..
    my master data table have 2 primary keys.. the details data table have 3 primary key all of them using trigger to fire a sequence to get the next_val!!
    am desperate & need help urgently for this ASAP.

    hello
    here is the solution,i hope this might help u.
    go to the code of your button and change write the following
    go_block('name of your master block');
    execute_query(no_validate);
    and in the object navigator make the first item in the master
    block that it should be displayed in the canvas and it must be a
    navigable item too.not a display item.
    thank you
    Zeeshan Ahmad

  • Problem in Master Detail form

    Hello I am new to Form Developer and the question I am asking may be very simple for experienced programmers but as I said I am new to forms development so I am finding it a bit hard.
    I have got the following three tables in database.
    1. Student (roll_no, name) Primary key is roll_no
    2. Fee_type(Fee_code, Type, Amount) Primary key is Fee_code
    3. Fee_Receipt(roll_no, Fee_code, Date_of_Payment) roll_no & fee_code are foreign keys
    I want a form containing a combo box filled with all the roll numbers of students, a combo box containing all the fee types and then fields for entering data into fee_receipt table by using text items.
    I dont want to see the names of students, just their roll numbers filled in the combo box. I dont want to see the fee code i just want to see the fee types in the second combo box.
    how would i be able to do that. Any sort of help big or small will be appreciated. Thanks in advance

    Hi,
    Check this out... *[url http://www.holowczak.com/oracle/dev9i/#creatingmasterdetail]Creating Master-Detail Form*
    It is a similar kind of master-detail form. But you have to adapt your requirement accordingly.
    Hope it helps

Maybe you are looking for

  • Direct link to file in workflow notification email

    Hi everyone, I know that I can set up a workflow for each of my forms where an email is automatically sent to specific people. If I have a file upload field on my form, is it possible for there to be a link to the file that was inserted in the CRM vi

  • USB video adapter

    I have a MBpro running the latest OSx 10.8.2. I am wondering any anyone can recommend a stable USB video Adapter. I have recently tried using display link and other such devices however when Mac OS updates the drivers seem to lag on there compatibili

  • /etc/pacman.conf question..

    This may have been asked before, but I could not find it... <yes, I did use the search on the forums...  > I was wondering if the NoUpgrade option in pacman.conf uses shell-like wildcard expansion... Does the following work? NoUpgrade = etc/host* she

  • Active Directory Migration Tool Issue

    Hi, I am currently doing a pilot to migrate users from a Windows Server 2003 Forest (2000 FFL, 2003 DFL) into Windows Server 2008 R2 (2008R2 FFL, 2008R2 DFL). There is an External Trust setup between the 2 forests. Having successfully migrated some t

  • Delete downloaded photos in Nokia Photo

    The new Nokia Nseries PC Suite comes with a new photo download program called Nokia Photos. How do you configure Nokia Photos to remove photos/videos from the phone after you have downloaded them to your PC? The previous program in the Nokia PC Suite