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

Storing field data from multiple records (in a global text field)


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

Recommended Posts

Posted

Hi all, I'm unsure this is the right place to ask this question but here goes...

 

In my solution I have an Events table which is link via a join table to a contacts table as it's a man to many relationship, so I have the Contact Fk and the Events FK in the join table to make the relatonship.

 

Previously I had restricted the contact info to just two contacts per event, so those contact fields (name, Mobile No) were in the events table, this made it easy to concatenate the mobile numbers to place in a 'Send sms' URL string... which worked perfectly...

 

Now I have the contact data in a seperate related table, with individual records for each contact, and I am stumped as to how I can concatenate the mobile numbers to create my send sms url string again.

 

I know how to create a foundset, of the related contacts, but not sure how to collate data (in a global text field for example) from individual fields in multiple records.

 

Can anyone help??

 

All suggestions much apreciated.

 

 

Posted

A number of different ways to do this:

1) use ExecuteSQL to collect the related data and then parse that result.

 

2) Use the List() function to simulate the same thing

 

3) use a portal and do some "portal walking" in a loop to collect the data

Posted
how I can concatenate the mobile numbers to create my send sms url string again.

 

Any time you are in a layout of Events, the expression =

List ( Contacts::MobileNo )

will return a carriage return-separated list of the related contacts' numbers. You can then use the Substitute() function to replace the delimiter. There is no need to store the result in a field - call it as and when needed (I assume you have a script for this?).

 

 

 

 

 

2) Use the List() function to simulate the same thing

 

LOL, I thought it was the other way around...

Posted

Hi guys, I've used the list function to gather mobile numbers from a related contact table foundset, but when I ask that it places them in a text field in another table, it only pastes the first record. Any ideas why this is?

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