Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 5966 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi again,

I understand that $$ creates a global value. I have a script that sets a global value and then opens each layout (separate tables for each) in turn and adds a new record to it, populating a matched field with the contents of the global. at least that is what it is supposed to do. It works perfectly on the first layout it goes to, and after that the global field is not populating the table field as indicated. The text is identical, save the table name and this leads me to suspect it's the global at fault. I shouldn't have to reset the global value at every step so the next fields can use it should I?

Cheers

Posted

Are you getting a record locking problem? You may have to commit each record as you go along.

Without more info, it's a little hard to guess. At a minimum, what result are you seeing on the 'wrong' attempts?

Posted

It's wierd. I am trying to pass each record only the Learner ID number which is a matched field. The first table to get a record gets this number, but the subsequent tables do not. However, they DO get the learner name, something they would only have access to if the matched field in the table correlated with the one in the learner table that I am sending the information from.

Very odd. No records are locking.

Posted (edited)

Nope - nothing like that. The tables are all linked by Learner ID alone, and the layouts have the fields drawn from the Learner Table (which is the main one). If the Learner ID field is empty in the other table, it shouldn't be able to access and display the guys name, right? Is it somehow using the global I created with $$learnerID to do this instead?

Alas, there is no manual method of performing this action without me writing one as it is all script based.

**Update** I need slapping. The layout was not linking the field to the correct one and so was empty. I have since corrected this and all is as it should be. Thanks.

Edited by Guest
Posted

I'm suggesting you:

manually go to layout 1

manually enter your value

manually go to layout 2

manually enter your value

then do you still get the goofy result?

or perhaps you're script is doing MUCH MORE than this. in that case more info and examination of the intervening processes would be in order.

Don

Posted

Hi again,

I understand that $$ creates a global value. I have a script that sets a global value and then opens each layout (separate tables for each) in turn and adds a new record to it, populating a matched field with the contents of the global. at least that is what it is supposed to do. It works perfectly on the first layout it goes to, and after that the global field is not populating the table field as indicated. The text is identical, save the table name and this leads me to suspect it's the global at fault. I shouldn't have to reset the global value at every step so the next fields can use it should I?

Cheers

Not enough information.

Post your script or example file.

This topic is 5966 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.