Prevent deletion of child itemPrevent deletion of child item
Old forum URL: forums.lhotka.net/forums/t/6589.aspx
wilfreds posted on Wednesday, March 11, 2009
I have a root object that contains a collection of child
items. At some time the root object has a state so that there is no longer
legal to delete child items. I would like this to prevention occur before the
actual save of the objects.
How can I accomplish this?
Thanks in advance for any suggestions.
ajj3085 replied on Wednesday, March 11, 2009
In your BLB you can have your BLB ask it's parent if children can be removed or not, which would likely be in your override of RemoveItem.
wilfreds replied on Wednesday, March 11, 2009
Yes, that's it, override RemoveItem. Thanks
Copyright (c) Marimer LLC