How to turn off the auto delete confirmation message


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.3K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I'm deleting a record form a BO via the BO directly. I'd like to turn off the auto delete confirmation message so I can provide my own, more specific message. (I suppose if I could override that text of the message that would work too).



I know there is a AutoShowDeleteConfirmation property on a SF form, but I'm not certain that is a good idea. First, there are a bunch of BOs on the form and I only want to control the delete message for one of them. Second, the BOs are all controlled individually, rather than via the form's delete method. I'm also just confused about how the delete confirmation is getting called, because I'm not dealing with the form. Does the form handle an event for any BO on it to raise this message?



Thanks!
StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Yes, the form handles the BeforeDelete event to show the message and cancels it if the user chooses not delete the record.  Unfortunately, the AutoShowDeleteConfirmation turns it on/off for all of the business objects on the form.  We decided that this was OK, however, because for each type of business object on the form (if you have several), you probably want to show a different message for each one. 
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.3K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Thanks Ben, that explained it enough for me to get it working.



I used the BO's ParentForm to access the AutoShowDeleteConfirmation property. I just save away the current setting for this property, then turn it off, show my message, do the delete and then reset the property after I'm done.
StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
A nice way to do it for just that one business object Smile  Good thinking.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search