I have a cache object class with 3 properties:
name
dob
address
When I return it as a resultset using a web service I get the 3 properties, as expected.
How do I also get the %ID in the XML projection, since the object is also persisted?
I have a cache object class with 3 properties:
name
dob
address
When I return it as a resultset using a web service I get the 3 properties, as expected.
How do I also get the %ID in the XML projection, since the object is also persisted?
You want to create a property of type %XML.Id.
You can read documentation for this here: http://docs.intersystems.com/ens20131/csp/docbook/DocBook.UI.Page.cls?KEY=GXMLPROJ_special#GXMLPROJ_C16628