Question Semion Makarov · Oct 22, 2017 How to set property parameters from COS? #Object Data Model #ObjectScript #Caché Example : set property.Name = element.LocalNameset property.Type = "%Library.String"set property. Parameters = ???
Robert Cemper · Oct 22, 2017 You may define properties by writing to ##class(%Dictionary.PropertyDefinition)as part of a ##class(%Dictionary.ClassDefinition) http://docs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?P...Parameters is then defined as array of %CacheString; And you set it just as any other array. [SetAt() ..... ]and then compile the class to use that property inside the class This is nothing you may do on the fly.
Robert Cemper Oct 22, 2017 to Robert Cemper It might be tricky to feed PARAMETERS that are accepted by class compiler.
You may define properties by writing to ##class(%Dictionary.PropertyDefinition)
as part of a ##class(%Dictionary.ClassDefinition)
http://docs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?P...
Parameters is then defined as array of %CacheString;
And you set it just as any other array. [SetAt() ..... ]
and then compile the class to use that property inside the class
This is nothing you may do on the fly.
It might be tricky to feed PARAMETERS that are accepted by class compiler.
Many thanks!!!
What do you want to do?