I needed to do exactly that for LibreOffice to work.
do $zf(-2, "unset LD_LIBRARY_PATH && your_cmd")Here's an article about that.
- Log in to post comments
I needed to do exactly that for LibreOffice to work.
do $zf(-2, "unset LD_LIBRARY_PATH && your_cmd")Here's an article about that.
If you can, always invoke code directly:
do ##class(circle).radius()
Use classmethod only if you can't invoke method directly.
Class include is not required (and does not seem to affect anything) and can be omitted
Include Child
Why that happens, as methods generators are compiled before methods?
As for the second approach, I'd like to avoid duplicating code (in a real case I have about 20 methods 1-50 lines long).
Interesting,
Sorry, that I didn't specify it earlier, but I can't modify Parent.inc too.
There were many interesting articles and discussions this year. I'd like to thank all of you who participated and helped our community grow.
@Murray Oldfield series on InterSystems Data Platforms Capacity Planning and Performance was a highly informative read.
What's your Caché locale?
Have you tried d format flag
d - output Caché numeric properties that have value "" as null
Missed that.
Thank you, turns out Telnet was disabled.
I can have only one telnet terminal per windows server or is there an option to specify port?
Got "Connection refused". Shouldn't I specify 1972 port? Tried both 'telnet' and 1972 ports, still 'connection refused'.
Replacing "" with null seems like a better solution to me as " symbol is escaped to \", so "" should not be encountered in JSON, except for empty strings.
Kind of. Turns out it's just bash.
It seems to fail on second line of this code sample:
set prevspace="^"_$zu(96,12) u 0::"^%X364" ; Set mnemonic space u 0::prevspace
Additional JSON functionality, such as JSON (de)serialization for arbitrary classes was at one point available but currently under review. It may appear in one of future versions. I've posted a workaround.
You can also check RESTForms - REST API for your persistent classes, it does support JSON (de)serialization. Another article about RESTForms.
You can convert object to dynamic object and output it to JSON:
zn "samples" set per = ##class(Sample.Person).%OpenId(1) set obj = ##class(%ZEN.Auxiliary.altJSONProvider).%ObjectToAET(per) write obj.%ToJSON()
Also check %ObjectToJSON in %ZEN.Auxiliary.altJSONProvider class.
1. There's no need to instantiate tResponse, it would be reinstantiated later anyway.
2. Please post ConsultaPaciente method from your class specified in WebServiceClientClass setting.
2016.2 supports Atelier, so you need to either install new 2016.2 instance or update to 2016.2.
Install atelier by following these instructions.
UPD. Sandbox means you only need sample data? You can install new 2016.2 instance. It takes 10 minutes tops.
Another example - lets say you want to delete several files and check that all is fine:
ClassMethod MassDelete()
{
#dim sc As %Status = $$$OK
// Deletes the file. Returns true if it succeeds and false otherwise.
// Pass return by reference to obtain the low level return value in case of errors
#define del(%file,%return) ##class(%File).Delete(%file,%return)
set file1 = "file1.txt"
set file2 = "file2.txt"
if (('$$$del(file1, .return1)) | ('$$$del(file2, .return2))) {
set sc = $$$ERROR($$$GeneralError, "Files '%1', '%2' deletion failed with codes: %3, %4", file1, file2, $get(return1), $get(return2))
}
quit sc
}In case of "||" if the first delete was successful , the second delete would not be called. Use '|' to attempt both deletes
Please provide code sample.
Can you show us your code?
To use XML reader you need to call Correlate method, which correlates any specified XML element to class.
What second page?
Got the same problem, I use SELECT DISTINCT as a workaround.
Please reupload the images, they are unavailable.

This assures that all expressions are valid.
More importantly this assures that all expressions were executed.
Code sample maybe?
You shouldn't create TestCsv.Csv class. CSVTOCLASS method would create the class you specified as a last argument automatically. After that you need to open that new class, it would have an Import method. Call it with your file to actually import data.
Generally it goes like this:
<scope> Do stuff, maybe throw exceptions (or just set status variable to error status) <faulthandlers> <catchall> Process errors. context.%LastError contains your error </catchall> </faulthandlers> </scope>
Check docs for these elements, there are several examples available:
Also, check EnsLib.ebXML.Process.MessageSender for example.