Hi.

Before JSON importing just clear the list with:
Do r.oazisCode.Clear()

Regards,
Matjaž

Matjaz Murko · Jun 16, 2025 go to post

Hi.

I just restarted the Intersystems ObjectScript extension from InterSystems ObjectScript Extension Pack to activate the updates (restart was proposed by VS Code) and now it is working without any error.

Tnx all for your replies.

Regards, 
Matjaž

Matjaz Murko · Feb 7, 2025 go to post

Hi.

We are using REST interface to run RFC with JSON serialization.

Regards,
Matjaž

Matjaz Murko · May 9, 2024 go to post
  1. Hi.

Maybe you should use calculated property - something like this:

Class User.CExampleJSON Extends (%RegisteredObject, %JSON.Adaptor, %XML.Adaptor)
{
Property something As %Integer(%JSONINCLUDE = "NONE", DISPLAYLIST = ",OK,Error,Warning", VALUELIST = ",0,1,2") [ InitialExpression = ];
ClassMethod RunMe()
{
      set obj = ..%New()
      set obj.something = 2       
      do obj.%JSONExportToString(.string)
      write "JSON : " _ string,!!!
      write "Content : " _ ..somethingLogicalToDisplay(obj.something),!
}
Property somethingDisplay As %String(%JSONFIELDNAME = "something") [ Calculated ]; Method somethingDisplayGet() As %String [ ServerOnly = ]
{
Quit ..somethingLogicalToDisplay(..something)
}

}

Matjaz Murko · Feb 1, 2024 go to post

I'm trying to pass JSON serialized parameter to native .NET API method ClassMethodIRISList, but Stream type is not possible.

Matjaz Murko · Nov 26, 2023 go to post

But I want just to SEND data to external system every 60s to update it, why should I use Service? Isn't Service used for incomming calls?

Matjaz Murko · Nov 2, 2023 go to post

From IRIS launcher it doesn't work, because it wants to open DocBook.UI.Page.cls localy, but it does not exists.

Matjaz Murko · Nov 2, 2023 go to post

Hi.

WebSocket protocol was not enabled. After enabled it, it works fine. Tnx!

Matjaz Murko · Apr 4, 2023 go to post

Hi.

No difference, but it should work also with Material->Sifra, shouldn't it?

Regards,
Matjaž

Matjaz Murko · Mar 21, 2023 go to post

Hi.

I'm using modem on COM port and appropriate AT commands.

Regards,
Matjaž

Matjaz Murko · Aug 29, 2022 go to post

I did some upgrade to newer version of IRIS and it looks like it working now as expected.

Tnx!

Regards,
Matjaž.

Matjaz Murko · Jul 24, 2022 go to post

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ž

Matjaz Murko · Jul 24, 2022 go to post

Hi.

I tried to include both of paramaters, but with no success. It looks like %JSON.Adaptor has some limitations...

Regards,
Matjaž

Matjaz Murko · Jul 19, 2022 go to post

Are you testing from same machine? Maybe the firewall is causing the problem?

Matjaz Murko · May 30, 2022 go to post

Hi.

Line=""
While ('File.AtEnd{
    Line=Line_File.Read(1000)_$char(10)
  }

You need to declare variable Line before you concatenate it (or use $Get(Line,"")).

Regards,
Matjaž 

P.S.
It is better way to use stream as Crisitano suggested...

Matjaz Murko · May 28, 2022 go to post

I was just trying to point out the cause of the problem. There are many ways to do the same job :)...