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

Hi,

Here's attached a FM5 and a FM7 file.

I'm using this tip to parse out a category from a multiline field (through a script for real).

As there may be multiple matches, I'm locating the longer one with this technique.

The Last( ) function isn't returning the correct result with 7 right now, or may be I am missing something.

If all fields are indexed, then it works though.

It's not quite like you to forget to post the attachment. Maybe it's time for a nap? wink.gif

  • Author

Oops

Here back the 3 files. The v7 Index works, the other involving a global doesn't.

Note that the category field isn't a global though, which in the real life and v5 is the case. But this doesn't make any difference.

FM7RepeatBug.zip

I remember this being a problem before. Last doesn't seem to evaluate unstored repetition calculations. Poot.

What is it that you say isn't working? They all seem to work for me. At least, if I pick item 2 in the value list I see the repeats for item 2. Same for item 1 or 3. But I must be missing something, what's the problem?

  • Author

Hi Bruce,

It's the "correct category" field, which should return the longest match.

In v5, Last( ) would return this value, either if the repeating field is stored or not. With v7, if the repeating field isn't indexed, Last( ) is empty.

As Max( ) works, the workaround, at the moment, is to change the filterMatch so that you can use GetRepetition( ) then.

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.