Question

Under Intersystems Property Keywords documentation Aliases is not listed as a keyword. However, in studio if I type

Property Tst As %String [

the drop-down pops up with Aliases and fills it with

Property Tst As %String [ Aliases =

The only way I got it to compile is

Aliases = { "some value?" } ];

So, how is Aliases used?

UPDATE: I know I did this backwards, found a feature then looked for a problem, but I found a use-case. If you are an ensemble user, the message viewer only displays the message if its "valid"ish xml, i.e. no spaces in the xml tag names. However your object has to have space in the property name,

Property "Due Date?" As %String;

you can do the following

Property "DueDate" As %String [ Aliases = {Due Date} ];

and still reference the property by the old name obj."Due Date?", allowing the message to show up in the viewer and keeping the old "vernacular'.

Was it helpful?

Solution

EDIT: it actually does work, but the syntax is

Property Name As %String [ Aliases = {name2} ];

So, no quotes.

What are you trying to achieve here?

OTHER TIPS

I think it is not used at all. Because have no any reference in documentation or in code about it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top