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

On my FM 5.5 I have this merged field on my layout that shows the following

Record 1 of 6533

Found 533

It comes from 3 Calculated fields

Status(CurrentRecordNumber)

Status(CurrentRecordCount)

Status(CurrentFoundCount)

I am trying to do this on a layout in FM 8 with no sucess

Thank you in advance

Dave

Status(CurrentRecordNumber) = Get ( RecordNumber ) or merge directly the "@@" symbols

Status(CurrentRecordCount) = Get ( TotalRecordCount )

Status(CurrentFoundCount) = Get ( FoundCount )

  • Author

Thank you very much

When I tried the Get Functions they would not work,

I then noticed that my old functions were unstored calculations after I changed the calculations to unstored it worked great

Thank you for taking the time to help me out

Dave

Edited by Guest

Hi Dave,

This is an example of when Custom Function is handy (since you have Advanced). You can create ONE custom function and just call it within each table (as unstored text calc). Going by the example you gave, you could have CF called RECORD BAR (with no parameters)???

"Record " & Get ( RecordNumber ) & " of " & Get ( TotalRecordCount ) & ¶ & Get ( FoundCount ) &

If ( Get ( FoundCount ) < Get ( TotalRecordCount ) ; " Found" ; " Total" )

It will speed up your development, add consistency for your Users and best of all, if you decide to change it, you will only have to do so in the Custom function itself. I also add the Sort state to the mix (since I remove Status Area). You can use it directly in a calc in each table without CF also. By combining your three calculations, your Define Fields will also be shorter (YAY). You would then just place the field directly on the layout (or place a merge field of the ONE calc). :wink2:

LaRetta

  • Author

Hello LaRetta

Thank you for the information. I set it up as a custom function and it worked great. I had not used the custom function feature before, I learned something new.

Thank you

Dave

"Record " & Get ( RecordNumber ) & " of " & Get ( TotalRecordCount ) & ¶ & Get ( FoundCount ) &

If ( Get ( FoundCount ) < Get ( TotalRecordCount ) ; " Found" ; " Total" )

Simple and handy :)

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.