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 a Portal record

Featured Replies

Hi,

I have 2 tables: a "transact" table to record every payment for a "Customer" table. I created a portal under customer layout so as to view all the transactions for a particular customer.

Question: How can I create a sequential number next to every portal record to show how many transactions there are. Currently I can only view the records but I have to count the number of records. Many thanks in advance.

Use Count(YourPortalRelationName::Any_Field) for show "how many transactions there are";

Use @@ before every record in portal for "create a sequential number"

  • Author

Cheers. I will digest your solution and let you know if I have further queries again. Thanks.

  • Author

Sorry I am rather new FM7. Are you able to show me the steps on what you meant by a) Use Count(YourPortalRelationName::Any_Field) and b)Use @@ before every record in portal. Thanks for your help.

Rgds

If you want to display a total outside the portal, then create a calculation field with Count(PortalRelationship::serial), where PortalRelationship is the same relationship that the portal uses and serial is the unique identifier for each related record.

If you want each row to display a sequential number, starting from 1, then type @@ on your layout and then put it within the portal's first row.

See attached for examples.

sample.zip

  • 1 month later...

thanks for the tip.. this helped me get up to speed on something new.

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.