fksstechguy Posted June 22, 2006 Posted June 22, 2006 I have been beating my head against the wall trying to figure this out! I want to print a record, but at the same time create a log of the record in a seperate file. Here is my code: Go to Field [select/perform; Office Copy Card Activity::Date] Go to Portal Row [select; Last] Set Field [Office Copy Card Activity::Date; Get( CurrentDate)] Set Field [Office Copy Card Activity::Time; Get( CurrentTime)] ... I have created a relationship between the 2 files, but everytime I run the script and expect there to be a record created in the other file there is nothing! Please help!
John Mark Osborne Posted June 22, 2006 Posted June 22, 2006 In order for Set Field to create a related record, the "allow creation of records in this table" option on the relationship has to be checked. Even with this checked, only one related record can be created. Set Field will write over the existing related record without a technique for making a unique primary key value. There are ways to do this. You can see the technique in an example file called New Portal Rows. It also shows an alternative method that is much easier to understand. http://www.filemakerpros.com/NEWROW.zip
Recommended Posts
This topic is 6729 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now