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.

Refer to field name with variables?

Featured Replies

  • Newbies

I'll try to give a quick example of my goal. First the relevant info:

field01, field02, ..., field50 - each has a drop-down menu where you can choose null(default), qty5, qty10, or qty15.

What I am trying to do is, for example, if I select 'qty10' in 'field25' it would fill in the value 'qty10' in field25-field34.

Now my thinking was along the lines of a PHP type program, using variables to address the fields and some sort of i++ loop. But I am finding out Filemaker doesn't really work that way, or at least doesn't seem to make it easy.

My attempt thus far has been:

Set Variable [$i; Value:Right (Get (ActiveFieldName) :2)] //gets numerical value of 'field'

if [Get (ActiveFieldContents ) = "qty10"

then I would do something like this (some type of PHP-esque while statment)

While $i; Set Field [tableName::field . $i; qty10] $i++; //and this would loop as necessary

But, I have not found a way to refer to incrementing (or individual) field names using concatenation or any other techniques. I did see a reference to using a Global variable and a calc field, but I didn't understand what they were saying. Any ideas? Hope this made some sense with my disregard to syntax.

Thanks for reading,

poeben

Edited by Guest

... Just set up auto enter options for each of the fields -- i.e. fields 25-50, to be ;)

Table::Field25

May i ask as to the purpose of this at all?

May i ask as to the purpose of this at all?

I'm with Genx here, the field should be the same single field in 50 records, there is something wrong with the relational approach.

Is the idea that if you change a value should all the following below adjust to it?? The autoenter (updating) would be possible and even be quite tempting, but is pretty unhealthy if the entries in some way later should be scrutinized statistically, say a summary report?

--sd

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.