Hello,
i've got a problem with the setter method of a property. Following code
showing my problem:
property User As System.User;
method UserSet(Arg As System.User) As %Status
{
set i%User = Arg
Quit $$$OK
}
If I use this the ..User is after that empty.
Setter methods seems to work only with property of datatypes like %String
and %Integer.
So I digging in Docu and this NG and found something called "signature
violation". So I tried:
method UserSet(isc As %CacheString, Arg As System.User) As %Status
{
set i%User = Arg
Quit $$$OK
}
Causing an error:
USER>set ses.User = ##class(System.User).%OpenId("dummy")
zUserSet(%this,isc,Arg) public { set $zobjval(,1,0,0,1) = Arg
^
<UNDEFINED>zUserSet^System.Session.1
KELVIN 2d1>
Tested with version 5.0.3 and 5.0.9. Any suggestions?
Regards,
Kristian.