Our Preferred 5 Star Hosting Provider - Award Winning FileMaker Pro Hosting
Results 1 to 1 of 1
  1. #1
    Senior Moderator - FMT Preferred Developer Consultant - Netherlands, Europe, Asia, USA Maarten Witberg's Avatar
    Join Date
    Mar 2004
    FileMaker Pro Software
    version 11, 12, 13, 14, 15
    Windows & Mac
    Skill Level
    Last Post
    Local Date
    Local Time
    12:25 PM
    Last Active

    beware of data loss when scripting portal row deletion in FM 16

    read this article carefully, take error handling seriously:


    h/t to Christian Schmitz of Monkeybread Software

    Before using FileMaker 16.0.1 in production, please verify that your scripts that interact with portals also contain error checking to ensure that the correct portal is active before modifying or deleting data.
    Set Error Capture [On]
    Go to Object [Object Name: “Portal B”]
    If [ Get(LastError) ≠ 0 ]
    Exit Script [Get(Last Error)]
    Go to Portal Row [Select:On ; First]
    If [ Get(LastError) = 0 and Get(ActiveLayoutObjectName) = "Portal B"]
    Delete Portal Row [With Dialog: Off]
    End If
    End If
    Thank you for your patience while FileMaker, Inc. works on a resolution.
    Last edited by Maarten Witberg; 05-18-2017 at 12:35 AM.
    Stick to what you don't know.


    Filemaker 15 Certified Developer


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 12-23-2016, 11:27 AM
  2. Scripting Multiple Search Criteria (multiple fields per criterium)
    By JimmyO in forum ScriptMaker and Scripting
    Replies: 1
    Last Post: 09-06-2012, 07:41 AM
  3. Deletion of a Portal Record
    By droznick in forum FileMaker Pro 10 Advanced
    Replies: 4
    Last Post: 11-12-2009, 01:38 PM
  4. Multiple Page Portals: Printing a Fixed Number of Portal Rows on each Page
    By ramaker in forum FileMaker Printing, Reports, Output
    Replies: 4
    Last Post: 01-19-2008, 04:47 AM
  5. Related record creation/deletion through portal
    By tdawg in forum FileMaker Pro Versions 5 & 6
    Replies: 0
    Last Post: 11-08-2001, 06:22 PM

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Welcome to the Original FileMaker Forum
With designated forums for almost every FileMaker topic...FileMaker Today is a FREE to join community where you can boost your FileMaker expertise, build better apps & solutions and interact with over 42,000+ FileMaker Developers from all over the world. If you're building FileMaker solutions, this is the place for you.
Follow FMT
We Are FMT
FMT is home of The World's leading FileMaker News Site, Worldwide Developer Directory, FileMaker Connect Community and so much more.