fetching the master and detail record [message #160517] |
Mon, 27 February 2006 02:00 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
kamran.it
Messages: 265 Registered: September 2005 Location: Karachi
|
Senior Member |
|
|
first of all thanks all of you. you are helping me
how can i fetch data from Master and detail table in form,
master table has one record and detail table have 4 records. it is poosible to fetch in new form all these record
note= master in form and detial in tabular.
Thanks
plz also tell me form where i can get the help.
Kamran
[Updated on: Mon, 27 February 2006 02:09] Report message to a moderator
|
|
|
|
|
|
Re: fetching the master and detail record [message #160556 is a reply to message #160531] |
Mon, 27 February 2006 04:46 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
kamran.it
Messages: 265 Registered: September 2005 Location: Karachi
|
Senior Member |
|
|
sir actual I want to do:
I have table "abc" master & "xyz" detial. already i have created form as you told me and in this form i can show the all records.
but what I want to do i-e.
i created 2 others table master and detail now i want to fetch above mentioned table record one by one in these tables.. it is possible???
|
|
|
|
|
|
Re: fetching the master and detail record [message #160579 is a reply to message #160517] |
Mon, 27 February 2006 06:47 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
kamran.it
Messages: 265 Registered: September 2005 Location: Karachi
|
Senior Member |
|
|
Dear Sir,
Thank you very much for helping me, Sir Can I fetch the record from any master and detial table in new form and in new tables?
example:
first I created a form with table master & detail.
second i created another form with table master1 & detail1.
I entered few records in table master & detail through FORM ABC.
now just i want to fetch that data in new form.
it is possible??
hope understand me?
Best regards
|
|
|
|
|
Re: display the master and detail record [message #160603 is a reply to message #160589] |
Mon, 27 February 2006 10:19 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](/forum/images/custom_avatars/72104.gif) |
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
OP | first I created a form with table master & detail.
second i created another form with table master1 & detail1.
| It seems that I didn't understand you ... reading this, I guessed that you have two forms.
First form has two blocks in master-detail relationship, written upon 'master' and 'detail' tables.
Second form also has two blocks in master-detail relationship, written upon 'master1' and 'detail1' tables which are copies of 'master' and 'detail' tables. Are they not?
Reading your last post, it appears that you have only two tables: 'master' and 'detail'. You also have two forms, both having two blocks in master-detail relationship, and those blocks are 'master' and 'detail' tables. Is that correct?
Your words: "I want to fetch/display the record and which record I call, display only that record".
This leads to another idea: query.
In other words, when you enter the form, press "Enter query" button, enter value into the field(s) in the master block and press "Execute query". Doing so, master block will have only one record (others from the 'master' table will not be displayed), while detail record will show ALL records from the 'detail' table which correspond to the master record.
Additionally, if you need to see one and only one record in the detail block, repeat the procedure: while in detail block, press "Enter query", enter value, press "Execute query". Regarding the implicit WHERE clause, you might get one or more records.
Is that what you meant? If not, I don't have any idea at the moment ...
|
|
|
Re: display the master and detail record [message #160662 is a reply to message #160603] |
Mon, 27 February 2006 23:22 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
kamran.it
Messages: 265 Registered: September 2005 Location: Karachi
|
Senior Member |
|
|
you are near to me !!!!
I have two forms.
First form "PPSINGLE" has two blocks in master-detail relationship, written upon 'PP_KD' and 'SUB_PP_KD' tables.
Second form "WORKORDER" also has two blocks in master-detail relationship, written upon 'WO' and 'SUB_WO' tables which are not copies of 'PP_KD' and 'SUB_PP_KD' tables. right!!
There is no relationship between forms PPSINGLE & WORKORDER as weel as tables.
But "PPSINGLE" and "WORKORDER" block have some similar fields. like: in MASTER Block (PPNO,ITEM,FABRIC,GSM) and in Detail Block : (PPNO,C_CODE,PCS,KGS,REMARKS)
when I execute the query in form PPSINGLE I can see the all record in master & detial.
now problem is......
I want to display record in form WORKORDER which record I have seen in PPSINGLE. is this possbile???
********I MEAN I ENTERED VALUES IN FORM PPSINGLE: [MASTER]
PPNO=24,ITEM="SHEETS",FABRIC="JERSEY",GSM="115"
[DETAIL]
PPNO=24,C_CODE='1001',KGS=500,REMARKS="NILL"
PPNO=24,C_CODE='1002',KGS=600,REMARKS="NILL"
PPNO=24,C_CODE='1003',KGS=700,REMARKS="NILL"
AL THESE RECORD I WANT TO DISPLAY IN FORM "WORKORDER".
HOPE UNDERSTAND ME
|
|
|
|
|
|
Re: display the master and detail record [message #160745 is a reply to message #160723] |
Tue, 28 February 2006 04:20 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
kamran.it
Messages: 265 Registered: September 2005 Location: Karachi
|
Senior Member |
|
|
I made "OrderSheet" with master detail record. now I want to make Purchase order sheet.
Ordersheet and purchase order sheet have lot of samilar record than why we entered data again.
Actaul in master table I can do this easily but in detail table......
I create a LOV, with the help of this I called desire data but only in master, detail block shows only one record this is a big problem.
|
|
|