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

List() only getting 1st value

Featured Replies

HI, Ive done a find and got my record set, say 10 records, and then the following line

set variable [$Clients; value:list(CLIENTS:ClientID)]

but it's only taking the 1st ClientID even though the get(foundset) shows 10. what's going wrong ?

The List() function does not return data from the current found set.

  • Author

OK, thanks, is there another functions that would do the same ? I want to add new records to another table using the data from a field in a found set

You can have your script loop through the found set, adding the values to a variable, one by one.

I want to add new records to another table using the data from a field in a found set

Are you sure about this? It sounds like creating a redundancy. Perhaps if you explained what are you actually trying to achieve here, a better way could be found.

  • 2 weeks later...
  • Author

Thanks, It all worked it out fine using TO's. the 'help' didn't say anything about not working on a current found set.

I have a number of clients, some of whom need us to hold accreditation, and I was wanting to make a new record in a table for so each of those that do. There's a 'tick-box' field in the client table to show which do (they often change their requirements) and in the script I had the set variable [$Clients; value:list(CLIENTS:ClientID)]. I then when to the table and into a loop, entered the rightvalues()into each new record (along with some other ID info obtained earlier via set variables) then deleting the it from $client using LeftValues( $clientsID; ValueCount($clientsID) - 1 )and exiting the loop when isempty($clients)

I have a number of clients, some of whom need us to hold accreditation, and I was wanting to make a new record in a table for so each of those that do.

Wouldn't it be sufficient to flag the records in the Clients table?

Create an account or sign in to comment

Important Information

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

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.