Quick question about the port. Is it the standard port the IRIS instance is running on? I do not need an external language server connection on the host?
Fair point but I do find it odd. Using e.g the Native SDK for Python I can have multiple applications on different servers all communicate directly with the IRIS kernel. But I cannot do the same with IRIS to IRIS. There are some benefits: No added complexity. Easy separation of applications. Easier development management. Easier deployment of application updates.
try{
Set jsonob = ##class(%DynamicObject).%FromJSON(httprequest.HttpResponse.Data)
w !,"statusCodes: "_jsonob.%Get("statusCode"),!
Set iter = jsonob.value.labReports.%GetIterator()
While iter.%GetNext(.key, .labReport) {
w !,"reportName: "_labReport.%Get("reportName")
Set pdf=labReport.%Get("pdf",,"stream<base64")
w !,"pdf: "_pdf.Read(20),!
}
} catch(tException) {
w !,tException.DisplayString(),!
}
ObjectScript
ObjectScript
JSON looks like this( pdf the offending big string):
In regards to check if a file is out of date, doing it on save is fine, however that's where the inconsistency problem is. Using a private development server is not really an option in our environment where we have to test with data coming from external sources e.g via HL7 TCP integrations.
It does not support the <fault> element. That is, if you include a <fault> element within the <operation> element of the binding, the <fault> element is ignored.
go to post
Thank you very much.
Quick question about the port.
Is it the standard port the IRIS instance is running on?
I do not need an external language server connection on the host?
go to post
Fair point but I do find it odd.
Using e.g the Native SDK for Python I can have multiple applications on different servers all communicate directly with the IRIS kernel.
But I cannot do the same with IRIS to IRIS.
There are some benefits:
No added complexity.
Easy separation of applications.
Easier development management.
Easier deployment of application updates.
go to post
Do you perhaps have a script that can restore a database whilst the image is built?
go to post
Redacted
go to post
Thanks, the .%Get("pdf",,"stream<base64") works.
It is super frustrating though.
This produces an error: <PARAMETER> 127 %GetNext^%Iterator.Array.1
Set iter = jsonob.value.labReports.%GetIterator() While iter.%GetNext(.key,.labReport,.type) { w !,"type: "_type }
I do not know if it a bug on my side or the documentation:
go to post
My code:
try{ Set jsonob = ##class(%DynamicObject).%FromJSON(httprequest.HttpResponse.Data) w !,"statusCodes: "_jsonob.%Get("statusCode"),! Set iter = jsonob.value.labReports.%GetIterator() While iter.%GetNext(.key, .labReport) { w !,"reportName: "_labReport.%Get("reportName") Set pdf=labReport.%Get("pdf",,"stream<base64") w !,"pdf: "_pdf.Read(20),! } } catch(tException) { w !,tException.DisplayString(),! }
JSON looks like this( pdf the offending big string):
Output:
ztestpdf+36 = Set pdf=labReport.%Get("pdf",,"stream<base64")
go to post
Good info!
What happens if the particular task takes longer than a minute and the busines sservice is invoked again?
go to post
Thanks for the response Brett.
In regards to check if a file is out of date, doing it on save is fine, however that's where the inconsistency problem is. Using a private development server is not really an option in our environment where we have to test with data coming from external sources e.g via HL7 TCP integrations.
go to post
Answering incase someone has the same issue.
docs
go to post
Nope, does not seem to work.
Creating the async goes fine but as soon as I promote it, primary ensemble sees it as down.
You can also not revert back to an async afterwards.
go to post
Did you ever get a resulotion to this?
go to post
I do not know what you use to "process a request from the app server"?
1. Do you have Long String support turned on in, System > Configuration > Memory and Startup?
2. If you are using webservices you can modify the generated classes and change payload to type %GlobalCharacterStream
https://cedocs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=GSOAP_webclients#GSOAP_clie%20nt_the_long_string_problem
go to post
The query plan is the same in this instance, however the relative cost is vastly different.
Without TOP 1 = 72497300 (which should give you some idea of the table size)
With TOP 1 = 11
go to post
How do you parse the parameters in option 2?
go to post
I think he was referring to the excel xml format: wiki link
I've used it previously:
Create an example file in excel and save it in the xml format.
View the source in a text editor to see what it looks like.
Write out similar code to a file via COS.
Save as .xls
Ugly example:
go to post
That will not work.
I am not in control of the software on a client pc, but most pc's will have a built in zip handler.
So zip would be more useful.
go to post
What would be nice though is if IS creates an in memory stream version of the zip classes.
That would be useful for generating files and zipping the stream for email etc, without hitting the disk.
go to post
I might be misunderstanding you, but I do not agree.
Class is in A and mapped to B.
{
w $NAMESPACE,!
q 1
}
A>d ##class(Test.PopNicki).t1()
A
A>zn "B"
B>d ##class(Test.PopNicki).t1()
B
B>
go to post
Just map the class from namespace A to B and you can use it.
go to post
Classes all the way.
I have yet to see a compelling argument to use routines the later versions of cache.