Committing related Records

Help, Tips, and Tricks for deploying GoZync: our "sync" engine for FileMaker Go.
Posts: 36
Joined: Tue Mar 28, 2006 8:41 pm
Location: Pittsburgh
PostPosted: Mon Jun 18, 2012 1:40 pm
In order for some lookups to occur properly on a related record I need to commit the record when pulling from the host. I'm pulling down a "Job" record with related "LineItem" records.

I see the section about "Forcing Lookups" listed here: http://www.seedcode.com/pmwiki/pmwiki.p ... eldMapping

But the instructions don't seem to match up with the files. Could you elaborate how this should be done?

Thanks
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Mon Jun 18, 2012 2:08 pm
Hi there,

You just want to make sure you've committed the parent record before you set any of the child fields that need to lookup from the parent. All this means is putting a Commit Record script step in the Set Field script that sets the parent record's fields: put it at the end after you've set all the Job fields (in this case). That way, when your LineItem fields get set, then job record is there to be looked up from.

Hope that helps,

John
John Sindelar
SeedCode
Posts: 36
Joined: Tue Mar 28, 2006 8:41 pm
Location: Pittsburgh
PostPosted: Wed Jun 20, 2012 2:11 pm
thanks. Got it working

Return to GoZync

Who is online

Users browsing this forum: No registered users and 2 guests

(855) SEEDCODE
[email protected]
Follow us: