tomp Posted March 17, 2007 Posted March 17, 2007 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
Vaughan Posted March 17, 2007 Posted March 17, 2007 To remove ambiguity the "delete" button should be in the portal row.
Genx Posted March 17, 2007 Posted March 17, 2007 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[ ]
tomp Posted March 17, 2007 Author Posted March 17, 2007 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
Lee Smith Posted March 18, 2007 Posted March 18, 2007 Why not use one of the icons of a trash can that is available?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now