Thanks Enrico. I look forward to being able to use the new features of Cache and IRIS someday. The company I work for is still running Cache 2017.1.3, so those new JSON features are not available. But I sincerely appreciate the information. Because once we upgrade to IRIS, then I will be able to leverage/use the information you shared.
Best Regards!
Exactly! I updated my code based on your suggestion and it worked like a charm. It looks just like what you demonstrated above. I really appreciate the information you provided.
Side Note: The one thing that I noticed (that was a little annoying from the Cache perspective) is my XML Export uses the XMLNAME keyword values, but the JSON Export does not.
Here is an example of my real property names from the Slide class with the XMLNAME keyword values:
Property SlideSequence As %Integer(XMLNAME = "slideSeq");
Property BarcodeText As %String(MAXLEN = 100, XMLNAME = "barcodeID");
Property StainType As %String(MAXLEN = 200, XMLNAME = "stainType");
Property StainTypeMapped As %String(MAXLEN = 200, XMLNAME = "mappedStainType");
Property Block As %String(XMLNAME = "blockNumber");
The XML Export uses the XMLNAME value. But the JSON Export uses the class property name. I looked in the documentation to see if there was a JSONNAME keyword - but no luck. So that is a little nuance and inconsistency with Cache. I like how we can encapsulate the real property name with an alias using XMLNAME (we use the XMLNAME mainly for downstream systems, and to keep the real property names hidden (for lack of a better word) in the projected data formats). But at least you got me to where I needed to be. So you are the Cache Developer Community Hero of the Week - at least for me :)
Best Regards and GO TEAM!







If you have an install of Cache, then any of the COS commands should work with your Cache Terminal or whatever terminal emulator you are using for your instance/namespace.
In regard to the "class does not exist" or the "method does not exist" errors, those would happen if you tried to call/reference a class (or method within the class) that does not exist. You might want to confirm that you do not have a typo, as class names and method names are case sensitive (i.e. Filename versus FileName)
Hope that helps on your Cache journey!
If there are specific questions or issues you are having, feel free to post more details to the Dev Community and there are lots of Cache Devs willing to help.
Best Regards.