March 17, 200718 yr 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
March 17, 200718 yr 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[ ]
March 17, 200718 yr Author 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
Create an account or sign in to comment