go to post Matjaz Murko · Jul 24, 2022 I did some research... Relationship properties with cardinality one or parent are not included by default in JSON serialization. If property is included with parameter %JSONINCLUDE is not enough, because serialization causes infinitive recursion. XData Mapping or %JSONINCLUDE="NONE" in related class should be used to avoid infinitive recursion. Regards,Matjaž
go to post Matjaz Murko · May 17, 2022 Hi.You are getting pure html, not a JSON serialized string. You need the correct URL/port where the REST server is listening. Regards,Matjaž
go to post Matjaz Murko · May 16, 2022 Hi. Set request=##class(%Net.HttpRequest).%New()Set request.Server="something.com"Set request.Port="some_port"Set request.Username="some_username"Set request.Password="some_password" Set status=request.Get("some_url") Do request.HttpResponse.Data.Rewind()Set jsonString=request.HttpResponse.Data.Read(request.HttpResponse.Data.Size,.sc) Set jsonObject={}.%FromJSON(jsonString)Write jsonObject."some_property" ... Something like that... Regards,Matjaž
go to post Matjaz Murko · Jan 9, 2022 Hi.I've used Cache/IRIS Native Provider, but recently I'm moving all my apps to REST. It is OS/IDE independent and commonly used. Cache/IRIS REST API services are very efficient and very easy to use. Recommended. Regards, Matjaž.
go to post Matjaz Murko · Jan 4, 2022 Hi. Have you tried: Property radiusmean As %Numeric(SCALE = 5); Regards, Matjaž
go to post Matjaz Murko · Dec 23, 2021 Hi. I'm using IRISProviderCore21.dll in my .NET 5 apps and it's working fine. Regards,Matjaž
go to post Matjaz Murko · Nov 2, 2021 Hi.Have you tried: Set time15min=$SYSTEM.SQL.Functions.DATEADD("mi",-15,$ZDateTime(now,3)) Regards,Matjaž
go to post Matjaz Murko · Aug 5, 2021 Hi. Try this: set RNumber="100" set RowResult=0,Power=1 for i=$LENGTH(RNumber):-1:1 { set RowResult = RowResult + ($EXTRACT(RNumber,i)* Power) set Power = Power * 2 } Regards, Matjaž