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.

Why aren't portal rows being created?

Featured Replies

Item table has a historical values table. There can be multiple historical values per item. The relationships is defined that historical values can be deleted/created/etc from the item.

I have a script to update the historical values with current info from the item table. What is happening is that it seems to be overlaying the existing portal row rather than creating another one.

Freeze window

Go to layout [item layout with the history portal in it]

show all records

go to record/request/page [first]

loop

go to portal row [last]

set field [historical::value; item::value]

..then several more set field lines..

end if

go to record/request/page [next;exit after last]

end loop

go to layout [original layout]

When I first run the script it adds the portal row fine. If I change the value in the item record and rerun the script it seems to simply replace the values in the portal row rather than add another row with the new values.

What am I doing wrong?

Edited by Guest

  • Newbies

What version of FileMaker are you using? Perhaps you can give the portal a name and add a go to object(the portal name) script step right before the step "go to last portal row".

  • Author

The problem isn't that it doesn't find the portal it does. It does add the portal row.

The problem is that if you run the script again it doesn't add a second row. It seems to replace the values in the first row.

Add a commit records step in your script after setting the values in the related record

  • Author

Nope. Still not working. The first time I run the script I get portal rows as I expect. The next time I run the script it is not creating a second row. Looks like it is updating the existing row.

  • Author

What was missing was a go to field step before going to the portal row. I hadn't mentioned in my post that there was more than one portal on the layout. So #1 added the commit, #2 added the go to field. Works fine now.

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.