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.

Numbering portal records

Featured Replies

  • Newbies

Hi everyone, looking for an assist.  I have related tables, and use a portal to display records.  I would like those records to be numbered, simply 1 through whatever.  I can't figure out how to get this done.  Can someone help? Thank you! Roger

  • Author
  • Newbies

Thank you, comment!  I'll try it right away.  And thank you for the specific reference.  The problem I often have when looking at these instructions is that I don't speak SQL or database, so I often don't recognize the answer even when the answer is staring me in the face.  I'm just a single-user making a database for my own purpose (in this case, to manage a large music collection).    I've managed to build a solution for myself, and just want to improve on what I have.  Thank you for taking the time to answer.  Happy Thanksgiving, should you be in the States.  Best regards, Roger

While comment's suggestion works, I experience a few problems with it. Consequently, I always add a calculation field to my tables, and make it unstored, get( recordNumber).

See attached example file and screenshots. The advantage of using a layout variable is that you don't need to modify the field definitions.

The disadvantage, in my experience, is that any time you touch the formatting of the variable, it resizes itself. 

variableExpands.jpg

touchformat.jpg

SimpleRecNum.fmp12

  • Author
  • Newbies

Thank you, Bruce, I did get comment's suggestion to work, but I'll try yours, too.  A related question: can I use the get( recordNumber) function to somehow provide a count of certain records on a page?  Say for instance that I want a page of statistics showing how many records in a certain field start with the letter A, the letter B, and so on.

I'm learning by doing, essentially, and I appreciate the generous help of the people on this forum.  Best to you and stay healthy.

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.