- Log in to post comments
- Stop Caché.
- Start Caché in emergency mode.
- Modify admin password.
- Stop Caché.
- Start Caché normally.
- Log in to post comments
You can add Ens.ProductionMonitorService service to your production, which provides a monitor service for the production status
The default behavior of this service is to call UpdateProduction once it notices the production is not up-to-date. Users can override the OnProcessInput method to customize the behavior. It would be enough to automatically restart relevant items and keep production up to date.
Generally to access/manipulate info about Ensemble and it's hosts use Ens.Director class, i.e. UpdateProduction method.
- Log in to post comments
Pool size 4 would be better.
Adding 4 same processes would only make production configuration more complicated.
- Log in to post comments
Maybe %NOFLATTEN can help, if we're sure that inner query returns few results.
Also you can try to use IN.
- Log in to post comments
Also possible to use $$$NULL macro:
do $$$AssertEquals(myObj, $$$NULL, "myObj is null")
- Log in to post comments
For example, Java Gateway Wizard is at:
http:://host/csp/reg/%25ZEN.Template.ObjectGatewayWizard.JavaHome.cls
I usually use "find in files" and search for page title to find where it is.
[@Jeffrey Drumm]'s answer is way better.
- Log in to post comments


in my sample, it should be like P.id = P1.id and P1.id = P2.id.
It would work like that too.
Also, you self join on the identical fields "ID", so I guess the engine could infer p1.id = p2.id by "P.id = P1.id and P.id = P2.id" , this would interfere my intention.
Please consider posting:
- sample classes
- sample data
- description of data you want to get
- what data you want to get
- query
- Log in to post comments
Yes.
SELECT p.id, p1.id, p2.id FROM Sample.Person p LEFT JOIN Sample.Person p1 ON p1.id=p.id INNER JOIN Sample.Person p2 ON p2.id=p.id
- Log in to post comments
You can just open Addon url in browser.
- Log in to post comments
SSH is more secure. Open telnet port can cause security problems.
Alternatively you can use WebTerminal.
- 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.
- Log in to post comments
If you can, always invoke code directly:
do ##class(circle).radius()
Use classmethod only if you can't invoke method directly.
- Log in to post comments
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).
- Log in to post comments
Interesting,
Sorry, that I didn't specify it earlier, but I can't modify Parent.inc too.
- Log in to post comments
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.
- Log in to post comments
What's your Caché locale?
- Log in to post comments
Have you tried d format flag
d - output Caché numeric properties that have value "" as null
- Log in to post comments
Missed that.
- Log in to post comments
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?
- Log in to post comments
Got "Connection refused". Shouldn't I specify 1972 port? Tried both 'telnet' and 1972 ports, still 'connection refused'.
- Log in to post comments
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.
- Log in to post comments
Kind of. Turns out it's just bash.
- Log in to post comments
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
- Log in to post comments
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.
- Log in to post comments
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.
- Log in to post comments
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.
- Log in to post comments
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.
- Log in to post comments
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
- Log in to post comments