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

Deleting Portal entries


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

Recommended Posts

Posted

I have a layout with multiple portals.

I allow the user to delete portal rows in one of the portals through a script.

The other portals do not have the 'allow deletion of portal records' box checked.

When the user clicks the 'delete item' button, a script executes the 'delete portal row' script step. This step will delete the selected portal row no matter which portal has been selected. This can create havoc in the database.

How can I be sure the user has selected the correct portal before I execute the 'delete portal row' step? I use a custom dialog box to ask the user to verify the desire to delete, but they may discover that they can delete anything they want without understanding the consequences, and just go ahead and delete whatever they'd like!

I'm using developer 7.

TIA

Posted

To remove ambiguity the "delete" button should be in the portal row.

Posted

I agree that placing it above the row is a bit ambiguous, but it does sometimes have it's uses and if it's consistently applied...

If[ IsEmpty( Get(PortalRowNumber) ) ]

Show Dialog[ "Error" ; "Select A Row" ]

Halt Script

End If

Delete Portal Row[ ]

Posted

Thanks!

The delete button in the portal row clutters the screen a bit, but does remove any ambiguity.

I don't believe the script offered as a solution would solve the problem. I don't see that it restricts the delete to any particular portal. As long as a portal row has been selected, it seems that it will be deleted, wherever it is.

Thanks again!

Tom

This topic is 6461 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.