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.

Is self-loading array possible?

Featured Replies

I have a table where each record contains an editable value (along with associated information). At runtime, I need access to the values as a one-dimensional array, so I transfer them at startup into a global repeating field. All this works fine, but I got to thinking:

Is there a way to define an unstored calculated repeating field that effectively resolves its contents in realtime, whenever another calculation references the field? I put together a test file using text fields in place of numbers (easier to see what's happening). I've tried a couple of different approaches but all I've been able to get is a value in the array's first position. What I need is for the second record's value to be in the second position and the third record's in the third position and so on. I don't necessarily expect the array to be fully populated all the time (e.g., for display), but when referenced from another calculation (Alpha::Result in the example file), it needs to return the proper record's value.

Is it even possible to do this, or should I leave well enough alone and stay with my original approach? (BTW, there are 200 records in the table, so I really don't want to use a 200-element case statement, which seems very inefficient if it's even possible.)

Thanks in advance for any suggestions.

Array.fp7.ZIP

  • Author

Excellent!

I tried it in my application and it works like a charm. I had not had a reason to use the Extend function before and (based on the book definition) I'm afraid I would not have thought to try it for this.

This is an elegant solution that provides a displayable array as well.

Thank you very much.

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.