That looks good. But I can not use the index in SQL
. . . WHERE FOR SOME %ELEMENTS(Sample.Person1.AR) (%value......) works as expected. But how can I force the new index ?
. . . WHERE FOR SOME %ELEMENTS(Sample.Person1.AR.State) is not accepted . . . WHERE FOR SOME %ELEMENTS(Sample.Person1.AR_State) is not accepted .... ??? what else ??
Thank you @Benjamin De Boe ! As you described it: I followed the doc not being aware that it does not apply to Array! Using a calculated property as you describe is excellent!
works, but it holds the complete serial object. not just the state. tried: ClassMethod ARBuildValueArray(value, ByRef valueArray As %Library.String) As %Status { ..... quit $$$OK}
But it refuses compilation: ERROR #5272: Can't change final 'Method' : 'BuildValueArray'
What happens to old code as - all kind of $ZU() funktions ? Some well documented, some poor, some not - self written System Commands and Functions ? Rewrite it ? or are they the same for Iris ? Documentation that I found was not so detailed. Any article available ?
go to post
Agree! 馃憦
Why spending money for something I can do by own hands.
go to post
At my wedding all cost were covered by my parents.
And I was very grateful for that.
go to post
5 connections only is a real pain !
go to post
looks more like JSON than XML
go to post
You may try to apply $ZSTRIP(yourSegment,"*C") to remove all non-ASCII characters.
Or just trailing $ZSTRIP(yourSegment,">C")
https://cedocs.intersystems.com/latest/csp/docbook/Doc.View.cls?KEY=RCOS_fzstrip
go to post
That looks good.
But I can not use the index in SQL
. . . WHERE FOR SOME %ELEMENTS(Sample.Person1.AR) (%value......) works as expected.
But
how can I force the new index ?
. . . WHERE FOR SOME %ELEMENTS(Sample.Person1.AR.State) is not accepted
. . . WHERE FOR SOME %ELEMENTS(Sample.Person1.AR_State) is not accepted
.... ??? what else ??
go to post
Thank you @Timothy Leavitt !
A child object gives more flexibility and is easier to understand for people doing support in 1 year or 2
go to post
Thank you @Benjamin De Boe !
As you described it: I followed the doc not being aware that it does not apply to Array!
Using a calculated property as you describe is excellent!
go to post
Thanks!
Index arc On AR(ELEMENTS);
works, but it holds the complete serial object. not just the state.
ClassMethod ARBuildValueArray(value, ByRef valueArray As %Library.String) As %Status { ..... quit $$$OK}
tried:
But it refuses compilation:
ERROR #5272: Can't change final 'Method' : 'BuildValueArray'
go to post
thanks !
go to post
What happens to old code as
- all kind of $ZU() funktions ? Some well documented, some poor, some not
- self written System Commands and Functions ?
Rewrite it ? or are they the same for Iris ?
Documentation that I found was not so detailed. Any article available ?