10.1.2 form problem querying master details with underscore

I have a problem on a form we have were by the user is querying a record and the detail block is bringing through an incorrect record. This occurs on all records that have an underscore "_"
The form is huge so i am trying to cut down whilst testing but thought i would ask the question to see if its anything obvious.
basically there are 3 tables all on there own blocks linked by the built in relationships in forms.
the user queries the top one and the other 2 are set to auto query.
the problem is with only one primary key that is referenced. This has an underscore in it.
i.e user brings in top level "1000_0"
this brings through on all detail records another primary key which is "1000-0" but the top level shows the correct "1000_0".
Is anyone aware of anything this may be, iwill endeavor to set some testing up.

ok i have recreated in its most basic concept and still exhibits same problem.
3 db tables.
create table testparts
(part VARCHAR2(50) PRIMARY KEY)
create table testroute
(testroutepart VARCHAR2(50),
testrouteno NUMBER,
CONSTRAINT pK_testroute_PART PRIMARY KEY (testroutepart,testrouteno)  ENABLE,
CONSTRAINT FK_testroute_PART FOREIGN KEY (testroutepart) REFERENCES testparts (part) ENABLE)
create table testroutemat
testroutepart VARCHAR2(50),
testrouteno NUMBER,
testroutemat VARCHAR2(50),
   CONSTRAINT PK_testrouteMAT PRIMARY KEY (testroutepart, testrouteno, testroutemat) ENABLE,
    CONSTRAINT FK_MP_PART FOREIGN KEY (testroutepart) REFERENCES testparts (part) ENABLE
insert into testparts(part)
values ('TEST_1');
insert into testparts(part)
values ('TEST-1');
insert into testroute (testroutepart,testrouteno)
values ('TEST-1',1);
insert into testroutemat (
testroutepart,
testrouteno,
testroutemat
values(
'TEST-1',1,'MATERIAL 1'
insert into testroutemat (
testroutepart,
testrouteno,
testroutemat
values(
'TEST-1',1,'MATERIAL 2'
commit;Then create a new form.
This form contains 4 blocks.
a non db block with one non db item on it where the user types in part.
then 3 further blocks based on the 3 tables above.
On the block for testparts this has a default where containing
part=:ctl.partand a relationship to detail block testroute
part=testroutepartset this relationship to auto query also.
Then on the blocks for testroute this has relationship to detail block testroutemat
TESTROUTE.testroutepart=TESTROUTEMAT.testroutepart and TESTROUTE.testrouteno=TESTROUTEMAT.testroutenoI then have a button on on non db block containing
go_block('TESTPARTS');
execute_query(no_validate);you then enter TEST_1 within the non db block non db item. hit button and the other items are shown i.e TEST-1 for the detail items?
Has anyone any ideas??

Similar Messages

  • How to turn a table-based form into a master/detail ?

    Hello, I have a form based on a table on which I have spent quite a bit of time adjusting presentation and adding dynamic actions.
    Now comes the requirement to handle an open number of related records, ideally on the same page.
    Has someone documented the steps needed to turn a record-based form into a master/detail one ?
    I am using APEX 4..2.1

    If you think your are missing something you could create the master detail pages for comparison. And delete these dummy pages when your done.
    I finally got around to working on this. You got me on the right track Nicolette, so thank you for that.
    I also had to fix bits in making processes conditional, and branching, too.
    Mainly this has to do with the "delete checked" button which deletes detail records, and submits the page to itself.
    One also needs to rename the REQUEST used in that case from MUTLI_ROW_DELETE to APPLY_CHANGES_MRD
    (as this pattern will trigger an UPDATE for the master record)
    All in all doable but one needs to be careful and generating a quick example M/D page for reference is useful.
    In my case I reckon this was still faster than re-doing all the layout adjustments and DA's
    (plus I got to better understand how this all works - there are a couple moving parts, all interdependent)

  • Post query trigger problem in master detail oracle forms

    Hello experts,
                        I am new in oracle forms n using Fission middleware 10g with oracle forms 11g at windows 7 platform.
    I have made a master detail form using a tab canvas.There is a database column STUDENTID and it is in my student tab with a TBL_STUDENTENTRY data block.Now I Have an another tab named previous_education with TBL_STUDENT_PREVIOU_EDU datablock here there is also a database column STUDENTID and corresponding field in my  previous_education TAB under TBL_STUDENT_PREVIOU_EDU  datablock.Now i want to add a display item to show  student name corresponding to STUDENTID.For this I have tried to make a select query in TBL_STUDENT_PREVIOU_EDU data block POPST_QUERY TRIGGER.
    begin
    select STUDENTNAME into :TBL_STUDENT_PREVIOU_EDU.STD_NM   from TBL_STUDENTENTRY where STUDENTID=:TBL_STUDENTENTRY.STUDENTID;
    end;
    But, This trigger is not fired at runtime,Please suggest me what is going wrong and give me the solution.
    Thank You
    AADITYA.

    http://www.club-oracle.com/forums/post_query-problem-in-oracle-forms-t9751/#post23794 ,  This is the link at where  I have tried to show my problem with the help of an image,Please get the link:
    thanx
    regards Aaditya.

  • 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

  • Dynamic LOV problem in Master Detail form in 3.0

    I am using Master detail layout for my app, In detail there is a LOV depending on the value of one of the items in master.
    LOV statement is like this
    select col1 a,col1 2
    from test_tab
    where col2 = :P2_VAL ;
    Note: :P2_VAL is the value of the one of the master table column value
    This code is working fine in version 2.1 .
    After I Upgraded to 3.0 , it is not working .
    If I put the hardcoded value like col2 = 'TEST' , it works for those values. Any suggestions for this problem is greatly appreciated.

    I solved it by commenting the Go_Item(startitm); line in the clear_all_records program unit which is generated by oracle forms.
    as shown below.
    IF :System.Cursor_Item <> startitm THEN
    --Go_Item(startitm);
    Check_Package_Failure;
    END IF;

  • 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

  • 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

  • Oracle Forms..  Master/Detail problem

    Hi,..
    I have a problem..
    I have 2 blocks in a page. One is an single row block and the other one an multirow block.. master/detail relationship.
    I would like that when I change a specifike item in the master block, a column of a specifike record gets changed.
    For example:
    master block has 3 items.. day, time and weather.
    detail block is a multirow block with items.. accessori, owned, take.
    when you choise a day and time.. but when you change weather (example to rainy) it goes into the multirow and searches for umbrella and changes the value of column take to YES.
    Can anybody help me?
    Gr.
    Kenneth
    Edited by: KHE on 24-mrt-2011 16:15

    Hi
    FRM 40737: Illegal restricted procedure GO_BLOCK in WHEN-VALIDATE-ITEM trigger.. yes u can't use GO_BLOCK built in WHEN-VALIDATE-ITEM trigger
    u can use timer to do it in WHEN-VALIDATE-ITEM trigger as
    DECLARE
      vTimer TIMER;
    BEGIN
      vTimer:=CREATE_TIMER('TEMP',10,NO_REPEAT);
    END;at form-level called WHEN-TIMER-EXPIRED and use the code ...
    GO_BLOCK ('BLOCK_NAME');
    GO_ITEM('ITEM_NAME');
    DELETE_TIMER('TEMP');Hope this helps...
    Regards,
    Abdetu...

  • 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

  • Problem in master-detail form on "Apply"

    Hi experts,
    I've got a master-detail OAF page and in the details resultsTable (based on a VO, which is based on an EO) i've
    1. one messageLovInput item
    +"Location(View attr: LocationCode[transient])"+.
    2. two messageTextInput items
    +"LocationId(View Attr: LocationId[EO])",+
    +"LocationNameId(View Attr: LocationNameId[transient])"+
    3. three more messageStyledText items
    +"LocationType(View Attr: LocationType[EO])",+
    +"LocationName(View Attr: LocationName[transient])" and+
    +"SubinventoryCode(View Attr: SubinventoryCode[transient])"+
    Now, the ideal situation or ideal way how the program should run:
    1. On invoking and selection of LOV, the values for all the 6 items should be returned from the lov(*which is working fine).
    2. I've two VO attributes VendorId and OrganizationId which i need to set the value of +LocationNameId[transient](mentioned above)+ depending on the LocationType
    attribute. So, i've a custom logic to iterate through the VO and set these attributes, which is executed when "Apply" button is clicked before getTransaction().commit();
    (But, this is not happening actually when i do this iterate portion, the changes ain't committed. And when i removed this iteration portion, changed are committed, but my
    objective ain't fulfilled)
    3. When on-ProcessRequest() of the page the executeQuery() of VO runs, i need to get the respective values in the transient attributes of VO also to display them in detailsTable
    so, after executeQuery() i've added a custom logic to iterate through the VO and retrieve the values for transient attributes by using PreparedStatement. (This is also not
    working)
    Plz help experts .. ASAP
    Regards
    Ari

    Hi,
    As per my understanding, your issue is that you are displaying some other value (transient attr) in field and storing something else (VO/EO attr) in DB table.
    So instead of creating a transient attribute, modify your VO query and add another column for the value you are displaying on page like:
    EO.value1,
    EO.value2,
    (select value from table_name where val = EO.value1) display_val,
    from tablename EO;
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • 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

  • Master detail with from clause query

    Hi!
    I have 2 blocks: master and detail. The master block is based on a from clause query. Since I have to insert, update and delete on this block I have created the on-insert, on-update, on-delete and on-lock triggers (and the respective procedures).
    In this block I have on-populate-details and pre-delete triggers created by the master-detail relation.
    Now I have a problem!
    Since I only want to commit to db when I click the "ok" button and I want to insert and delete records from these 2 blocks, when I insert records into the detail block (and master too), it forces me to save changes if I change the focus of the current record of de master block to another record within the same block.
    How can I do this in order to insert records saving changes only when I click the button?
    Thanks!
    Ana

    I think that it is intended behaviour: when detail records are populated and there are uncommited changes so Forms asks if user wants to save changes.

  • Problem in Master detail report

    Hi Team,
    I want to generate a master detail- report on table employees(empno,ename,sal,jobid,deptno,deptname,dept_mobileno,dept_pincode).
    The report should be display in the format which is shown in the image present at URL:- http://www.uploadup.com/di-DC37.jpg
    For each unique combination of columns (empno,ename,sal,jobid) , i want to display the detailed records ( more than one ) (deptno,deptname,dept_mobileno,dept_pincode).
    Please see the image present at URL :- http://www.uploadup.com/di-DC37.jpg
    Please help me on this how to edit templates for my requirement and what sql query is required to solve this problem.
    Thanks and Regards,
    Rajendra Yadav

    913508 wrote:
    Hi Team,Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "913508".
    You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    I want to generate a master detail- report on table employees(empno,ename,sal,jobid,deptno,deptname,dept_mobileno,dept_pincode).
    The report should be display in the format which is shown in the image present at URL:- http://www.uploadup.com/di-DC37.jpg
    For each unique combination of columns (empno,ename,sal,jobid) , i want to display the detailed records ( more than one ) (deptno,deptname,dept_mobileno,dept_pincode).
    Please see the image present at URL :- http://www.uploadup.com/di-DC37.jpg
    Please help me on this how to edit templates for my requirement and what sql query is required to solve this problem.Thanks for making the effort to create the demo screenshots, they're helpful but with APEX we're fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    Please create sample tables and data on apex.oracle.com and post guest developer credentials for your workspace here.
    +{message:id=9816577}+ covers a similar problem.

  • LOV problem in Master-detail blocks

    Hi,
    I'm working with Designer 6.0.3.5.0.
    I've got a form with two master-details blocks :
    Block A
    |
    |||
    Block B
    |
    |||
    Block C - Lov D/E
    In my block C, i want to create two lovs (D/E).
    When i'am displaying the key item of the block (FK between C and the LOVs) and with the property "Enter FK with Descriptor"=NO. The LOV is OK on the key item and works correctly.
    But when i want to display only the descritor item (with the property "Enter FK with Descriptor"=Yes). The item is correctly displayed but without the LOV. If i open my module with forms, i can see that the lov is not built.
    Does somebody know if i miss something or if it's a bug ?
    Thanks for your help.
    Dominique

    I solved it by commenting the Go_Item(startitm); line in the clear_all_records program unit which is generated by oracle forms.
    as shown below.
    IF :System.Cursor_Item <> startitm THEN
    --Go_Item(startitm);
    Check_Package_Failure;
    END IF;

  • Create Form setup for Master Detail Form

    Hello All,
    I have to create a Master Detail OAF Form where user will enter data in the header section and then fill the detail section on the same page. Now, I have created Header section but when I go to detail section and fill the information I got an error because HeaderId for header section is not passing to the detail section. I have created even VL also.
    Kindly let me know that what all steps are required to set the View Link for this Master Detail form.
    Many Thanks in advance.
    Thanks,
    Sandy

    Hello Gyan,
    Thanks for the prompt reply. I would also like to know that once AO will create what all steps I need to take. Like I have to create a VL and then I need to create two regions and now what all properties I need to update to work M-D relationship.
    Thanks,
    Sandy

Maybe you are looking for

  • Can not view topics in infolink

    Can not access topics from the Table of contents, they will show as Page can not be displayed. However when we try and access the same topic for another page it will display.

  • Compile Error with ResultSet.CONCUR_UPDATEABLE

    Hi All, I get the following compile error "CopyTable.java [49:1] cannot resolve symbol symbol : variable CONCUR_UPDATEABLE location: interface java.sql.ResultSet Statement DestStmt = DestDB.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.C

  • I am in over my head, but I'm trainable

    I want to save the xmp file from my Photoshop 7 images as a text file. I downloaded the developers kit, but frankly, I am not a developer. If someone can point me in the right direction, I would appreciate it. I am operating in Macintosh OS-X. I have

  • Choosing Director for gaming project

    Hi all I'm doing my masters degree in multimedia and for a final group project am involved in creating a collaborative game. We are just at the research stage and I'm looking into technologies to use. We all have been taught Director/basic Lingo and

  • Audio Sync Vista, latest quicktime

    Is there a solution for the audio sync issue in windows vista? I've completely uninstalled quicktime and installed the latest version on my wife's laptop, but when she watches trailers on apple.com the audio is out of sync. Google is little help.