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.

BUG: Get(CurrentPortalRow) = 0

Featured Replies

OK, this has been driving me a little nuts; I think I have uncovered a bug in FileMaker 7.

I am working on a Time Tracking module, and several of my scripts use the Go to Portal Row script step. Some of my scripts use the steps in creating a new related record (by going to the last portal row), and some simply go to the first or last portal row and modify or clear a time.

Sometimes, for no obvious reason, FileMaker fails to enter the portal, and inserting a Custom Dialog check after it should be on the correct portal row results in the Get(CurrentPortalRow) = 0.

Has anyone else run into this? I can't think of anything I'm doing wrong; the file I'm working on HAS been converted from a FM 6 version, but if that's the cause, it's still a bug. :)

Does the layout have more than 1 portal?

Matt--

Including your scripts would help...

That said, does your script hierarchy include going to any other windows? If so, you have to remember to re-select the portal by using the Go To Portal Row script step again, as the change of windows causes the focus to change. The return of 0 as the current portal row suggests that this is what's happening.

I had a situation where I was looping through a portal and performing a script, which called another script, and that third script temporarily opened a new window, put some information into a new record, and closed up again. I couldn't figure out why the portal kept resetting to the first row. Several hours of debugging showed me the problem.

HTH,

David

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.