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.

Specifying a portal row in a calculation

Featured Replies

Is there a way to specify a specific Portal Row in a calculation in a way that is similar to specifying a specific repetition in a Repeating Field?

For instance, if it were a repeating field and I wanted the 4th repetition, I would write "Field1[4]".

If I want the data from Field1 in the fourth portal row, how would I do that?

The actual context for this is that I am working with a very idiosyncratic website and I have to transform a lot of PDF files that have a lot of tables into web pages. (The reasons for doing such a dumb thing are too complicated to go into.) I have to have the normal content in plain text, but the tables have to be transformed into HTML. at this point I have the tables transformed into related files that show up very nicely in portals. I have a script that will transform them into HTML, but I keep thinking that I should be able to create a Custom Function that will do the same job better. But I can't see how to do it if I can't make the calculation iterate through the portal rows.

The FileMaker function which makes this possible is GetNthRecord ( field, record number ). You can use the portal's relationship, then a field.

To iterate thru the records in a portal there is a Custom Function, GetRows, by Bruce Robertson, at:

http://www.briandunning.com/cf/309

also requires

http://www.briandunning.com/cf/308

He has another similar one, for named objects: GetRowsObjectList( ObjectList; N; delim1; delim2 )

All (and many more) at:

http://www.briandunning.com/filemaker-custom-functions/list.php

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.