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.

Featured Replies

  • Newbies

I am trying to figure out a way to create a script to loop through specific fields, but i can't use variables in field names. I have a table that contains inventory information for a walk-in cooler, each footprint in the cooler has fields for type of product and qty. They are all named the same except for the number after the end of each field name ex prod1, prod2, prod3, qty1, qty2, qty3 etc etc. I was writing a script to populate another table in the database with sums of everything in the walkin (ie 15 of this type, 30 of this type, etc) I thought i could set up something like a for loop where i have an integer that increments at the end of each loop iteration so i could use the value of the integer in the variable (ex. prod$i, qty$i.) Filemaker will not let me do this however because it wants a specific field name. I thought about using the "go to next field" function but each walkin object has multiple fields, and I'm not sure how to tell which field I am on or how to pass the value of the "current field" to a local variable. This walk-in is huge and it would take me forever to do each individual field. Any ideas on how i can loop through these fields to pull the information i want?

I believe you would find it much more convenient to have a record for each ... what is it, a "footprint"?

I am trying to figure out a way to create a script to loop through specific fields, but i can't use variables in field names. I have a table that contains inventory information for a walk-in cooler, each footprint in the cooler has fields for type of product and qty. They are all named the same except for the number after the end of each field name ex prod1, prod2, prod3, qty1, qty2, qty3 etc etc.

You are trying to solve the wrong problem.

Field names like that are almost always always a sign that the basic data structure needs to be normalized.

Because - no surprise here- it presents reporting problems, and many other problems.

It will help to start with a more complete description of what this is all about.

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.