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.

Set Field issue with Repeating Field

Featured Replies

The following 3-step sequence is from a script that had worked for months. It simply populates a repeating field that holds working parameters. But this week I was blindsided by a change in its behaviour that took me hours to isolate and rectify. Even though I've restored the script’s operation, I can find no clear (i.e., documented) explanation of the root cause.

Set Field [ Table::Param ; Base::FieldA ]

Set Field [ Table::Param[2] ; Base::FieldB ]

Set Field [ Table::Param[3] ; Base::FieldC ]

But then I changed Init::FieldC to be a repeating field of 3 occurences (a push-down stack, actually -- used to hold prior values). A major runtime process started producing inapproriate results. Since this was a field-proven code, it took me a while to even look at these steps as suspect. The clue, however, was that Param[3] was being set to one of the prior values. I restored proper operation with the following:

Set Variable [ $Value ; Base::FieldC ]

Set Field [ Table::Param ; Base::FieldA ]

Set Field [ Table::Param[2] ; Base::FieldB ]

Set Field [ Table::Param[3] ; $Value ]

As an experiment, I set the third entry to:

Set Field [ Table::Param[3] ; Base::FieldC[1] ]

... and it worked properly, as well.

I've concluded that when the Init field was extended to 3 occurences, the Set Field picks up the third value when no index is specificed. BTW, all of these fields are defined as text fields.

So I ask: Is this a known syntax rule? ... or a feature? ... or a bug?

If it is a rule, are there corresponding rules for If statements? -- or can "no index" still be used to specify the first value?

Thanks in advance for any help.

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.