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.

running count of self-related records in a table?

Featured Replies

Hi Everyone,

I'm sure I've done this once before, but I can't for the life of me work out how, so any ideas would be much appreciated.

I have a table with 10 records in it and a self relationship that contains 4 of these records. How can I have a field that shows the sequence number of those related records (ie. 1-4) in alphabetical order (they were entered in random order)?

I can do this easily in a portal, but that won't help me in this case.

Also, I'd like to avoid using a script.

I can set the first related record to 1 easily enough, but thats as far as I can get.

Thanks again,

Sean.

Create a value list using the self-relationship TO's field that you want to alphabetize, 'starting from' the original table. Then make your sequence number field equal to

Let( V = ValueListItems( Get(FileName); "yourValueList" );

ValueCount(Left( V; Position(

  • Author

Hi -Queue-,

Can't think you enough for that smile.gif Works a treat.

Glad I asked, I don't think I would have worked that out.

Having a bit of trouble coming to grips with FP7 and relationships, especially when it comes to value lists...

Thanks again,

Sean.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.