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.

Nested Loop Match All combos of First M. Last Name

Featured Replies

  • Newbies

Hello!

I have a file with three tables:

First Names | Middle Initials | Last Names

I am trying to output every combination of one field from each table. Specifically, formatted like so:

<record>

<first>John</first>

<middle>A.</middle>

<last>Doe</last>

</record>

I believe this should be done using the null relationship (X) between each table. Then, using a script that loops through each record set and inserts the result into a global field in the first table. I've also thought about using counters and a layout with two portals to do the looping. I can successfully loop throught the first names and could setup a script for each name then eliminate duplicates, but I'd rather learn the right way to do it.

Does anyone have nested loop scripting experience they can share with me?

Here's how I loop through the first names:

screen08262004.gif

  • Author
  • Newbies

My script is bloated with the unnecessary "go to related records" because I figured they would be necessary once I figured out how to loop through the other related records, btw. smile.gif

<added>and my actual script didn't use "select contents" on every insert... lol</added>

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.