KaosMaker Posted March 18, 2013 Posted March 18, 2013 Hi all, I've been hitting a wall with this and hope someone can help me out. Thanks in advance! I am trying to use a simple $record->getRelatedSet('TOCNAME') command on a ToC that references a table in a different Filemaker file (same server), and cannot get it to work. I know I have my syntax right, because I have tested the same code on a ToC within the same database file, and it works. The portal and field I need is on the layout I am accessing, and there IS a related record, with a valid field value. Is there anything I have to do different for related records in different files? The error message says: Related set "TOCNAME" not present, with no actual error code. "TOCNAME" also shows up in GetRelatedSets. Thanks for your help! K
webko Posted March 18, 2013 Posted March 18, 2013 If it is in a different file, you can access related information. The other file must have exactly the same user name and password and privileges as the current file...
KaosMaker Posted March 19, 2013 Author Posted March 19, 2013 Thanks! There was a difference in the capitalization of one one letter in the user name, but even after fixing it, the problem persists. The passwords are identical, and the privilege set is also identical, down to the last setting. I have tested the connection by swapping out the file name in the setProperty step, and sure enough, it has no problems connecting, using the same username/password as the first file.
webko Posted March 19, 2013 Posted March 19, 2013 I'll admit I just don't use relatedSet - I always go to the source file and table and make the query myself...
KaosMaker Posted March 21, 2013 Author Posted March 21, 2013 I suppose I could do that, but it seems so inelegant, to do an entire find just to get, say, a related contact field to show up. Ah well, whatever works! Thanks, I'll make the new query. If anyone has any input on why relatedSet on a different file doesn't work, though, I'd still appreciate it!
Recommended Posts
This topic is 4520 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