How to display th e data [message #326961] |
Fri, 13 June 2008 04:10 |
durgadas.menon
Messages: 365 Registered: December 2007 Location: Nowhere
|
Senior Member |
|
|
Hi,
Attached is the screen shot of my form. FRA_CUPBOARD (table - cupboard) contains the master and FRA_BOOKS (table - books) contains the details columns. Cupboardno is the primary key in Cupboard and foreign key in Books table.
I have created the relationship between them and have put them on the single Canvas, now according to what I read if search on the key that links the master and the detail then the data in the details columns should be automatically displayed.
eg. 14 is a value in cupboardno column of the cupboard table, if I search it then all the values of books column which had cupboard no 14 has to be automatically displayed on the form
I am not able to do that. I tried entering 14 in the cupboard column and then pressing the execute option under Query menu title but it does not do any search. Can anyone guide me how to do that search? or would it only appear after I write the PL/SQL code for the same.
|
|
|
|
|
|
|
|
Re: How to display th e data [message #327010 is a reply to message #326993] |
Fri, 13 June 2008 06:50 |
durgadas.menon
Messages: 365 Registered: December 2007 Location: Nowhere
|
Senior Member |
|
|
Thanks for the reply,
I did exactly as you said but I get this error
Quote: | FRM-40202 - Field must be entered
| then I have to put in the cupboardname (dd) get rid of this error.
Still when I press F8 I the third screen shot (screen3.gif). I have customized the form a little and have removed a few columns from the frame in the detail table display (including the foreign key cupboardno), can this be causing the problem?
|
|
|
|
Re: How to display th e data [message #327140 is a reply to message #327015] |
Sat, 14 June 2008 03:45 |
durgadas.menon
Messages: 365 Registered: December 2007 Location: Nowhere
|
Senior Member |
|
|
Thanks,
When I tried it this time it worked fine. Also I had forgotten to check the box, in the Data Block Wizard, which asked for referential integrity. I also changed the automatic query to 'YES' in the relation property object
|
|
|