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.

RE: Set the number of Variables based on the number of found records

Featured Replies

Hi there,

I have a script that goes to a set of found records. I am trying to concatenate 1 field from each of those records. I need to somehow get my script to create a variable for each found record.

Ex. If there are 4 records found I want to set #Variable1--> next record --> $Variable2--> next record --> $Variable3 --> next record -->$Variable4

My problem is I can't figure out how set the variables to accommodate different numbers of records (usually between 1 and no more than 5 records)

Any thoughts would be greatly appreciated

Chad

Why not use List ( ) from the parent record?

You'd probably receive a better answer, if you describe why you need this.

Well, List() won't work on a found set (unfortunately) - but knowing the purpose would be quite useful.

I figured he'd use list thru a relationship, comment. But, you're right to point out that it isn't found set aware.

I feel that answering his question without exploring why he feels he needs this technique is not doing him a service.

I feel that answering his question without exploring why he feels he needs this technique is not doing him a service.

No argument on that.

I feel that answering his question without exploring why he feels he needs this technique is not doing him a service.

Also agreed.

But would like to note that the preferred way to set and read numbered variables is the repeating variable square bracket format, which is much more easily addressable:

$var[1], $var[2], $var[29] etc

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.