Login
`
Templates, Tools and Utilities
|
||
Add a comment to an Icetips ArticlePlease add your comments to this article.
Please note that you must provide both a name and a valid email address in order
for us to publish your comment. Comments are moderated and are not visible until they have been approved. Spam is never approved!
Back to article list Search Articles Add Comment Printer friendly Direct link Par2: One-to-one relationship 1997-12-05 -- Marius Roeksund Defining a MANY:1 relationship, with keys defined as UNIQUE will do this for you, if
you just embed this short little code into the FORM.
In the FILESCHEMATIC, you should add the related file to your "primary file", like this:
UPDATE RECORD ON DISK
+Primary file
-----Related file
This will lookup the related record for you, and you may add fields from that record on
the form.
When you exit, you must store the related record yourself....
In the embed "END OF PROCEDURE, BEFORE CLOSING FILES" you should add this
code:
if LocalRequest=RequestCompleted ! If OK is pressed...
PUT(related file) ! Update related file
End
Today is November 23, 2024, 2:22 am This article has been viewed 35192 times.
|
|