Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Delete Portal Row script step not working


This topic is 4920 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a portal and I want to give the user the option to delete a portal row. So I have an [x] button that calls a script that uses the delete portal row script step, but it does not delete the portal row. It does not give me any errors in the debugger. On the same layout, in another tab, is a different portal that uses the delete portal row script step in it's delete script, and it works fine.

I've compared the two to see what's different. Both have the same settings in the edit relationship dialog, both have an object name for the portal. The only difference I can see is that the portal that works is based on a join table, and the other one is not. I don't see why that would make a difference.

Any ideas?

Thanks!

Posted

Really odd, but this seems to be working now. I think it might have been that when I put bunk data in the portal row, I put text in a number field, and that was preventing the portal row deletion? I tried to replicate it, but I couldn't. Oh well, don't know what the problem was, but it works now.

  • 1 month later...
Posted

For an unknown reason, I had exactly the same problem.

Just restarted Filemaker and it worked. I wonder if this bug has been reported to FMI.

  • 8 months later...
  • 7 months later...
Posted

This isn't a "bug" in Filemaker, but rather something with your setup. If you'd post a clone of your file, we could look to see what you're doing wrong. Some ideas...

you have a record level access rule on the privilege set that you're using which prevents delete in that table,

you're not in the portal row (your script commits before the delete portal row step),

you have a script trigger somewhere that is interfering,

All just guesses, we need to see the file.

PS: Script triggers are the cause of many unexpected behaviors. My suggestion is to use them with caution.

This topic is 4920 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.