Hi.
Before JSON importing just clear the list with:
Do r.oazisCode.Clear()
Regards,
Matjaž
- Log in to post comments
Hi.
Before JSON importing just clear the list with:
Do r.oazisCode.Clear()
Regards,
Matjaž
Hi.
Have you tried with $SEQUENCE or $INCREMENT?
Regards,
Matjaž
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ž
Hi.
We are using REST interface to run RFC with JSON serialization.
Regards,
Matjaž
Hi.
Try:
$SYSTEM.SQL.Functions.DATEADD("HH",-3,$H)
F x=1:1:$L(customString,",") dosomething($P(customString,",",x))
Maybe you should use calculated property - something like this:
{
Property something As %Integer(%JSONINCLUDE = "NONE", DISPLAYLIST = ",OK,Error,Warning", VALUELIST = ",0,1,2") [ InitialExpression = 0 ];
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 = 1 ]
{
Quit ..somethingLogicalToDisplay(..something)
}
}
I'm trying to pass JSON serialized parameter to native .NET API method ClassMethodIRISList, but Stream type is not possible.
Tnx to all, it's working.
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?
Tnx, it works now.
From IRIS launcher it doesn't work, because it wants to open DocBook.UI.Page.cls localy, but it does not exists.
Hi.
WebSocket protocol was not enabled. After enabled it, it works fine. Tnx!
http://10.40.1.32/iris/csp/docbook/DocBook.UI.PortalHelpPage.cls?KEY=Ho…
The requested URL /iris/csp/docbook/DocBook.UI.PortalHelpPage.cls was not found on this server.
It was upgraded from 2023.1.
From System Tray and also from Management Portal (Help link).
Hi.
I have used the same solution already. Tnx.
Regards, Matjaž.
Hi.
No difference, but it should work also with Material->Sifra, shouldn't it?
Regards,
Matjaž
Hi.
I'm using modem on COM port and appropriate AT commands.
Regards,
Matjaž
Hi.
You can find it in:
Regards,
Matjaž
I did some upgrade to newer version of IRIS and it looks like it working now as expected.
Tnx!
Regards,
Matjaž.
Isn't time format in JSON standardized?
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ž
Hi.
I tried to include both of paramaters, but with no success. It looks like %JSON.Adaptor has some limitations...
Regards,
Matjaž
Are you testing from same machine? Maybe the firewall is causing the problem?
WRITE $System.Status.GetOneStatusText(tSc,1),!
Hi.
What status (tSc) do you get?
Regards,
Matjaž
Which format do you use - DD/MM/YYYY?
Hi.
Just compare
w zdateh(x,8) > $zdateh(y,8)
Regards,
Matjaž
Hi.
s Line=""
While ('File.AtEnd) {
s 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...
I was just trying to point out the cause of the problem. There are many ways to do the same job :)...