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.

help with a calculation

Featured Replies

hello, i would like to have a globale calculated A field that contains all of B field's contents in current found set in this format:

A=B1

B2

B3

B4

...

A and B are in a same table, how can i do it?

Edited by Guest

  • Author

an answer?

Hi

if you want that the global field A shows all the values of field B in the found set of records in this manner:

B1

B2

B3

...

B (last of the found set)

you can do it with a *recursive* calculation (NOT STORED and NOT GLOBAL)that use a custom function like this one, but you'll need FM8 Advanced;

--------------------------------------

Recursive(field;number)

Case(

number < Get ( FoundCount ) ; GetNthRow( field ; number ) & ¶ & Recursive ( field ; number +1 ) ;

GetNthRow( field ; number )

)

--------------------------------------

or

with a script like this ( to use after a FIND)}:(

Go to Record/Request/Page [First]

Set field [A;B]

Loop

Go to Record/Request/Page [Next: Exit after Last]

Insert Calculated Result [A; ¶ & B]

End Loop

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.