How to use Delete helper https://community.intersystems.com/post/deletehelper-class-help-deleting-referenced-persistent-classes
Hi:
I don't understand how to use this open exchange item for auto creating deleting items. I think it assumes knowledge in the steps of how to use it which i don't get.
Added the code into dev on SRFT.Utility.DeleteHelper.OnDeleteSuper and SRFT.Utility.DeleteHelper.AddHelper
current class is
Class Messages.XML.GenericWif.fileparameters Extends (%Persistent, %XML.Adaptor)
{
Property revisionnumber As %String;
Property primarylink As Messages.XML.GenericWif.primarylink;
Property additionalindexes As Messages.XML.GenericWif.additionalindexes;
}
Adding the extends doesn't seem to do anything to super it it would initially say
MPP5610 : Referenced macro not defined: 'LoadObjectNotFound'
if say include Ensemble it compiles but see no change and no ondelete generated
Compilation started on 02/03/2023 11:07:22 with qualifiers 'cuk /checkuptodate=expandedonly'
Compiling class Messages.XML.GenericWif.fileParametersSynertec
Compiling table Messages_XML_GenericWif.fileParametersSynertec
Compiling routine Messages.XML.GenericWif.fileParametersSynertec.1
Compilation finished successfully in 0.252s.
Include EnsembleClass Messages.XML.GenericWif.fileParametersSynertec Extends (%Persistent, %XML.Adaptor, SRFT.Utility.DeleteHelper.OnDeleteSuper)
{
Property revisionNumber As %String;
Property primaryLink As Messages.XML.GenericWif.primarylink;
Property additionalIndexes As Messages.XML.GenericWif.additionalIndexesSynertec;
Storage Default
{
...
}
Comments
Calling @Tani Frankel