Avoid display of certain properties in message contents display
Hi,
is it possible to avoid the display of certain properties in a custom message class in the message viewer content section. The message class is a common Ens.Request with a bunch of properties alongside one property of Type enslib.dicom.document wich in Turn is Not extended By %XML.Adaptor so the content display of course displays an error.
My idea is to avoid the display of That certain property When output is rendered (Text/XML). Using Ens.Util.MessageBodyMethods and method %OnShowContents could be a way to do this But i don‘t find a way to do so.
Of course the property containing the dicom document could be set to private but singe this in contrast with my application design i am looking for another way to accomplish my goal.
any suggestions are highly welcome.
best Regards Sebastian
Comments
You can define your property with an XMLPROJECTION attribute of "none".
For example:
Property DICOMDoc As EnsLib.DICOM.Document (XMLPROJECTION = "none");
See here for more info:
https://docs.intersystems.com/irislatest/csp/docbook/Doc.View.cls?KEY=G…
Thanks Tani, that did the trick - sorry for the kind of silly question.