Skip 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.

Portal Row Number

Featured Replies

How would I get a portal row number? IE. There are 15 rows total but only 5 contain data. I want it to display the portal row number when there is data in the row like

1 Data1

2 Data2

and if the rest of the rows are empty it would not show.

I tried Get (PortalRowNumber) but that returns only currently selected row otherwise it returns 0.

Thanks.,

  • Author

Wow, that solved it perfectly. Thank you.

  • Author

* Just found a workaround too - Made a Get (PortalRowNumber) in Parent table as an unstored calc and an Autoenter Calc in LineItems = Get (PortalRowNumber) from the parent table. That worked to (not sure if it will work smoothly or not).

Glad I asked tho @@ is the right way - many times I end up using something I "discovered" how to do myself while there are much better methods out there.

always learning.,

Thanks.,

You do not need to use get(portalRowNumber). You can create a field RecordNumber, unstored calc, get(RecordNumber). This will display correctly no matter where the record is. If it is in a portal, it will show portal row number.

I sometimes prefer to do this because of how I place fields in portals and how I size portals. It is easier to size the width of the portal if the portal is filled end to end with fields instead of @@ at one end.

  • Author

Thanks.,

  • 3 months later...

This is exactly what I want to do, but I dont understand what you mean by @@ as a text element on the row.

Do you mean place @@ in a certain field? Or part of a calcuation?

Steve

@@ is the symbol for Record Number (see on FM top menu Insert and at the bottom a list of symbols). For instance, // produces the current date. You woudl use your text tool (as if you just wanted to type text) and type the @@ directly into the portal row (but not directly into any field.)

thanks...I tried the get record number, perfect

  • 7 months later...

Okay. What if the portal is showing results from a join table? For example, you have an IPFs table (Never mind what an IPF is) and a Devices table. One IPF can have many devices and one device can be a part of many IPFs. How would you show the portal row numbers? Having the Get ( RecordNumber ) calculation in the join table doesn't help, because there are many unrelated entries.

  • 5 weeks later...

It works fine showing an unstored calculation of the joint table in a portal, the calculation been Get ( RecordNumer ).

In you case, you have a multiple to multiple relation, then an intermediate table has to be created, in which you can set up the calc.

  • 1 year later...

Using the unstored calc method, is there any way of having the "0" in the next (uncreated) row not display, or is that unavoidable? Thanks.

Bob

Using the unstored calc method, is there any way of having the "0" in the next (uncreated) row not display, or is that unavoidable? Thanks.

Bob

Here's one way.

RowCalc.fp7.zip

I was thinking something something about using 'case', but had no idea where to go.

That's ingenious, thank you!

Bob

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.