Scripting portal row operations

Expert

Create, update, and delete related records through portal rows from scripts, and understand commit behavior in portal context.

What you'll learn

  • How to navigate to a specific portal row from a script
  • How to create a new related record via a portal
  • How to delete a portal row without affecting the parent record

Portals display related records and can be edited directly by users. Scripting the same operations — creating a new portal row, modifying fields in a specific row, deleting rows — requires understanding how FileMaker tracks the "current portal row" and when portal changes are committed.

Stuck is a valid status

Need a second brain on this one?

If this lesson just collided with your real schema, script stack, or deadline, book consulting and turn the confusion into a concrete plan.

Book consulting
1/3
1

Navigate to a portal row

Go to Portal Row navigates to a specific row number within the specified portal. Combined with Go to Field, you can place the cursor in a portal field for editing.

FileMaker Script
# Go to the third row of the LineItems portal
Go to Portal Row [ No dialog ; "LineItems" ; 3 ]
Set Field [ LineItems::Quantity ; 5 ]
Commit Records/Requests [ No dialog ]

Sign in to track your progress and pick up where you left off.

Sign in to FM Dojo