FETCHING ALL THE RECORDS IN DETAIL FORM [message #130065] |
Thu, 28 July 2005 00:56 |
samit_gandhi
Messages: 226 Registered: July 2005 Location: Hong Kong
|
Senior Member |
|
|
I HAVE CREATED A MASTER DETAIL FORM. WHEN I AM FETCHING THE RECORD FOR VIEWING PURPOSE I AM ONLY GETTING THE FIRST RECORD AND OTHER RECORD I AM NOT GETTING IN THE FORM. I HAVE MADE THE LOV AND CALL IT ON THE PUSH BUTTON FOR VIEW THE RECORD.
I DONT KNOW WHY IT HAPPENED. PLS GUIDE ME.
SAMIT GANDHI
|
|
|
|
|
Re: FETCHING ALL THE RECORDS IN DETAIL FORM [message #130075 is a reply to message #130072] |
Thu, 28 July 2005 01:44 |
|
djmartin
Messages: 10181 Registered: March 2005 Location: Surges Bay TAS Australia
|
Senior Member Account Moderator |
|
|
Unfortunately, I am not permitted to download forms onto the PC at this installation, so I will have to ask a few more questions instead.
A basic master-detail form would have a nicely defined 'master' block, the populating of which you can test by pressing 'Execute_Query'. The 'relation' you have defined will then 'power' the 'detail' block to also do an 'Execute_Query'. I assume that this is not working.
Does your master block populate when you press execute_query? Do you get any Oracle error messages?
Verify that you do not have references to the 'master' block in the 'default where' property of your 'detail' block, they should only be defined in the 'relation'. Verify that 'relation' does not use a 'database alias'.
To get the form to populate on start-up just put an 'Execute_Query' command in the 'When-New-Form-Instance' trigger.
If all else fails create a new test module. Use the wizards to define the 'master' and 'detail' block and then the 'relation. Use my suggested 'minimal' WNFI trigger and see what happens. Compile, generate and see what happens.
If you are using Forms 6 or 9 then make sure that you do a Ctrl-Shft-K, not just a Ctrl-K, before doing your Ctrl-T.
David
PS. Please stop writing IN CAPS it is annoying.
[Updated on: Thu, 28 July 2005 01:45] Report message to a moderator
|
|
|
|