Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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.

 

 

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

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...

  • Author

Thanks Guys, that was a great help! just what I needed!

  • Author

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?

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.