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.

Why Get ( CalculationRepetitionNumber ) doesn't work?

Featured Replies

I don't understand why it works only for the first repetition.

Any hint would be greatly appreciated.

Tnx.

GetRepetition.JPG

It's because idioma is not a repeating field. So when FM looks to idioma from the 2nd rep of the MenuTitulo field, it finds a null value for the 2nd rep for the idioma field. If you wrap each of your references to non-repeaters in an Extend() function, it should work as expected.

Of course, you've chosen to use repeating fields instead of the preferred relational design. But I'm not going to mention that. :)

Edited by Guest

It doesn't work, because you are not using Extend() around non-repeating fields.

It can also be a lot simpler, because in a repeating calculation field you can reference other repeating fields directly, and get the corresponding repetition.

  • Author

Thanks, D J for the quick answer. I'm going to try it.

GBY

  • Author

Well, I thought it was a simple way, to update globals anytime you decide to change language (idioma), as this table will have only one record, and place those globals all around the solution.

I wasn't talking about that. All I meant is you don't need all this GetRepetition() and Get ( CalculationRepetitionNumber ) stuff.

BTW, you might find this thread interesting:

http://www.fmforums.com/forum/showtopic.php?tid/183314/

  • Author

Ok, Dr. comment, I first studied/learned/enjoyed your LanguageLabels technique, then I applied it in a copy & paste basis to my solution. Thank you very much.

GBY

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.