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

Problematic Portal and Repeating Fields


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

Recommended Posts

Posted

A parent table creates sequentially numbered sample names (e.g. Sample34, Sample35, ..., Sample42) that are stored in separate records along with other descriptive data (essentially duplicated data with the exception of the unique sample names). The user determine the number of sample names by entering the number of sample replicates. A daughter layout must show these sample names on one side of the screen so that a user can copy and paste these sample names from the list into a portal on the other side of the screen that is designed to simulate a 9x9 grid storage box (i.e. one sample name per position in box). This would allow us to keep track of where samples are located. BTW, each sample box is uniquely identified.

A portal doesn't work here because the data comes from a parent. A repeating field doesn't work well because I don't think you can populate it from within a script in the parent table by using a Set Field[ParentTable::RepeatField[Ctr]; SampleName] where Ctr represents a variable counter providing the indexing and SampleName is constantly updated through each pass in the loop.

It seems my table organization is poor, but it appears to simulate what goes on in the real world. Any help for a desperate novice? Did I say desperate. I meant REALLY desperate!

Posted

A parent table creates sequentially numbered sample names (e.g. Sample34, Sample35, ..., Sample42) that are stored in separate records along with other descriptive data (essentially duplicated data with the exception of the unique sample names). The user determine the number of sample names by entering the number of sample replicates. A daughter layout must show these sample names on one side of the screen so that a user can copy and paste these sample names from the list into a portal on the other side of the screen that is designed to simulate a 9x9 grid storage box (i.e. one sample name per position in box). This would allow us to keep track of where samples are located. BTW, each sample box is uniquely identified.

A portal doesn't work here because the data comes from a parent. A repeating field doesn't work well because I don't think you can populate it from within a script in the parent table by using a Set Field[ParentTable::RepeatField[Ctr]; SampleName] where Ctr represents a variable counter providing the indexing and SampleName is constantly updated through each pass in the loop.

It seems my table organization is poor, but it appears to simulate what goes on in the real world. Any help for a desperate novice? Did I say desperate. I meant REALLY desperate!

Posted

A parent table creates sequentially numbered sample names (e.g. Sample34, Sample35, ..., Sample42) that are stored in separate records along with other descriptive data (essentially duplicated data with the exception of the unique sample names). The user determine the number of sample names by entering the number of sample replicates. A daughter layout must show these sample names on one side of the screen so that a user can copy and paste these sample names from the list into a portal on the other side of the screen that is designed to simulate a 9x9 grid storage box (i.e. one sample name per position in box). This would allow us to keep track of where samples are located. BTW, each sample box is uniquely identified.

A portal doesn't work here because the data comes from a parent. A repeating field doesn't work well because I don't think you can populate it from within a script in the parent table by using a Set Field[ParentTable::RepeatField[Ctr]; SampleName] where Ctr represents a variable counter providing the indexing and SampleName is constantly updated through each pass in the loop.

It seems my table organization is poor, but it appears to simulate what goes on in the real world. Any help for a desperate novice? Did I say desperate. I meant REALLY desperate!

Posted

Your script can have 9 steps for set field, as follows

Set Field [ ParentTable::RepeatField[1]; GetField ("SampleNameTextPart"&StartNum)

Set Field [ ParentTable::RepeatField[2]; GetField ("SampleNameTextPart"&StartNum+1)

Set Field [ ParentTable::RepeatField[3]; GetField ("SampleNameTextPart"&StartNum+2)

...

Set Field [ ParentTable::RepeatField[9]; GetField ( "SampleNameTextPart"&StartNum+8)

This is instead of looping and relying on a calculation for Set Field, which you can't do anyway.

Posted

Your script can have 9 steps for set field, as follows

Set Field [ ParentTable::RepeatField[1]; GetField ("SampleNameTextPart"&StartNum)

Set Field [ ParentTable::RepeatField[2]; GetField ("SampleNameTextPart"&StartNum+1)

Set Field [ ParentTable::RepeatField[3]; GetField ("SampleNameTextPart"&StartNum+2)

...

Set Field [ ParentTable::RepeatField[9]; GetField ( "SampleNameTextPart"&StartNum+8)

This is instead of looping and relying on a calculation for Set Field, which you can't do anyway.

This topic is 7245 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.