开发者

SharePoint Custom Field - is it possible to handle item deletion event?

开发者 https://www.devze.com 2023-01-05 13:47 出处:网络
I\'m expanding SPFieldText and BaseFieldControl to create a custom field. The field saves some data externally (for e开发者_如何学Cxample, on a database or on another list)

I'm expanding SPFieldText and BaseFieldControl to create a custom field. The field saves some data externally (for e开发者_如何学Cxample, on a database or on another list)

Within the control I'm able to handle Edit and New events (using ControlMode).

I'd like to run a function and clean up some data when an item containing my field is deleted. Is this possible, in the context of a custom field?


No, the field has no "knowledge" of the item it is contained in. You could however perform the cleanup by creating an ItemEventReceiver.

0

精彩评论

暂无评论...
验证码 换一张
取 消