` Comment on an Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Add a comment to an Icetips Article

Please 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!

Your Name:  
Email:  
Header text/Subject:  

Please enter your comment in the box below:

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 April 28, 2024, 2:34 am
This article has been viewed 35109 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: