Can anyone guide me where is the documentation for $zt?
The google seems suggest it may be "$ztime" or "$ztrap".
Thanks.
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Can anyone guide me where is the documentation for $zt?
The google seems suggest it may be "$ztime" or "$ztrap".
Thanks.
Set httprequest=##class(%Net.HttpRequest).%New()
Set httprequest.Server="www.intersystems.com"
Do httprequest.Get("/")
Do httprequest.HttpResponse.OutputToDevice()
Do httprequest.Get("/cache/")
Do httprequest.HttpResponse.OutputToDevice()The above is the code which i found in this link http://docs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?…
How do the above code works and can i be able to run this?
Thanks in advance.
In our last lesson, we implemented a new REST Service to allow us to perform CRU operations on Widgets, and refactored our Controllers to allow the page setup to be decouple from the content.
When we created our Widget Services, we did not implement a Deletion operation, which the HTTP Delete verb provides. As this is a base table for other parts of the Widgets Direct empire, we don't want to be able to do a hard Delete of the WIdget values, as this could cause issues with our ordering and billing modules.
I keep seeing <INVALID OREF>zMypropertyGetSwizzled+3^myClass.2 in the error log. In my case, Myproperty is a property of myClass. And Myproperty points to the the object of other class in the system. This error happens to 2 properties in the same class, and they are both object properties. This error pops up occasionally, and make the debugging harder.
Anyone knows what the issues are?
TIA
Hi Guys,
I'm looking to Remove file from a location to another similar to CUT & Past function, I'm using this :
s file=##class(%File).%New() d file.CopyFile(File,ArchivePath) d file.Delete(File)
and the copying is happening but not the Deleting, and help pls?
Thanks
Hi, iam newbie on caché database.
Iam trying, export data from query.
I read in some article that is not so simple.
So I create a view then a execute a query insert into select statement.
I have problem to know the job progress. I execute an hour ago and nothing happened.
Iam using intersystems web IDE.
Thanks for help!
I am setting up a new Caché instance and I have managed to configure it where Caché username/password is required to initiate the Caché session:
csdfalsdkfjf@fra23e234sco:/opt/labmed/test/test81/proc$ csession cache1
Node: frxxco, Instance: CACHE1
Username:
I cannot find the setting in the management console that allows for unauthenticated login to a Caché session. Any help is much appreciated.
Anyone have any suggestions where to spin up small Cache/IRIS/Ensemble test DBs? Hopefully very low cost (or free) reliable hosting? Obviously AWS has some options but wondering if anyone has had 12 month+ experience with very low cost Cache cloud with AWS, Azure, Google, etc?
Thanks,
Tom Fitzgibbon | gototomATG...l | 3474648531
Hi,
I am getting below error while executing query, This is newly installed cache instance whereas query running fine on old server.
ZWRITE ^rINC("WebServices","PreComp","systeminclude")
^
<NETWORK>
Q00QUASAR:TEST2>ZWRITE ^rINC("WebServices","PreComp")
^rINC("WebServices","PreComp")="61801,57106"
^rINC("WebServices","PreComp","Depends","WebServices")="61801,57106"
^rINC("WebServices","PreComp","Expansion","INIT")="0"_$c(1)_"arg"_$c(1)_"0"_$c(1)_"S wsFault=$$Init^LU090000(%arg,..%ClassName(1),.ET,.Error) S ET="""" $$$WSERROR(Error) I ET'="""" N $ES,$ET S $ET=ET"_$c(1)_"3^WebServices"
^rINC("WebServices
Hi,
Getting below error on newly installed cache version 2017.2. This is running fine on another instance.
Q00QUASAR:TEST1>D $system.OBJ.CompileAll()
Detected 1229 errors during compilation in 145.4s.
Instance name:TEST2>D $system.OBJ.CompileAll()
Detected 202 errors during compilation in 211.7s.
Instance name:TEST3>D $system.OBJ.CompileAll()
Detected 784 errors during compilation in 186.6s.
TEST2>do $System.OBJ.CompilePackage("Calendar")
Compilation started on 02/25/18 17:21:33 with qualifiers ''
Compiling 6 classes, using 4 worker jobs
Compiling class Calendar.Country
Compiling class Calendar.Day
Compili
I was running the %File:FileSet class query, with my development user, but I am unable to run this query for an application user. Does anyone know what resource or service is needed to run this query? Assume the user has access to a certain directory on the file system needed for the query.
On second though, having tried almost all the available resources and services, perhaps the user doesn't have access to the directory. How to tell when the error is this:
set ok=st.%PrepareClassQuery("%File","FileSet")
d $system.Status.DisplayError(ok)
ERROR #5540: SQLCODE: -99 Message: UserI would like to know the workflow of macro $$$Fza . If you explain me with example that will help.
I have a 2GB CSP.log file that I need to investigate.
I'm using a %Stream.FileCharacter() object to open the file and then using the .FindAt() to search for a particular string.
I'm seeing the FindAt() stop after processing 49m characters?
Here is my code:
k
s stream=##class(%Stream.FileCharacter).%New()
d stream.LinkToFile("d:\csp.log")
s x=""
s i=0
s j=0
w stream.Rewind()
w stream.AtEnd
w stream.SizeGet()
while(stream.AtEnd=0){set i=stream.FindAt(-1,"Invalid password",x)+i set j=j+1}
w stream.AtEnd
w i
w j
Which gives the following output:
USER>k USER>s
I would like to know the workflow of $za . If you explain me with example that will help.
Developers,
I am working with a CSP page with among other fields a checkbox.
Based on the checkbox I want to populate a drop-down box with specific options with a server side method using &html<....>.
I have the status of the checkbox in a javascript var.
Can I access this var or maybe the checkbox setting in the server side method?
Basically how do I know the status of the checkbox to populate the drop-down box correctly?
Any suggestions are appreciated!
Jacques
I am working my way through some SQL documentation.
The documentation follows and my question comes after.
A query supplied to %Prepare() can contain input host variables, as shown in the following example:
SET minage = 80 SET myquery = 3 SET myquery(1) = "SELECT %ID AS id, Name, DOB, Home_State" SET myquery(2) = "FROM Person WHERE Age > :minage" SET myquery(3) = "ORDER BY 2" SET qStatus = tStatement.%Prepare(.myquery)
This talks about input host variables
I thought that input host variables only work with Embedded SQL, not Dynamic SQL
Thank you
Hi. I am newby in Cache. My source code at below. I have problem in Relationship property. Could you please help?
/// Class Test.Book Extends %Persistent{Property Name As %String;Property Author As %String;Property ISBN As %String;Relationship Chapters As Test.Chapter [ Cardinality = children, Inverse = bookid ];}Class Test.Chapter Extends %Persistent{Property Name As %String;Property Page As %Integer;Relationship bookid As Test.Book [ Cardinality = parent, Inverse = Chapters ];}then in terminal I am running these commands:
USER>set c1 =
Hi
Is it possible to change the input format of the date filter for a zen tablepane component column when setting the filterType="date"? It only seems to accept odic format.
Cheers
Iain
I don't quite understand the %NOMERGE mentioned in the documentation.
http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=RSQL_from#RSQL_from_nomerge
Is there any specific example provided to illustrate the idea?
Thanks.
Several $System.OBJ methods have ByRef errorlog argument:
Compile(ByRef classes As %String = "", qspec As %String = "", ByRef errorlog As %String, recurse As %Boolean = 0) ImportDir(dir As %String = "", wildcards As %String, qspec As %String = "", ByRef errorlog As %String, recurse As %Boolean = 0, ByRef imported As %String, listonly As %Boolean, ByRef selectedlist As %String)
What's the best approach of working with errorlog?
Do you convert it to status? If so - how? Manual iteration over local?
Is there some system method to convert it into %Status?
Hi Guys,
I would like to develop a login page in Zen mojo application with Desktop and mobile application. It should be adopt with desktop, android and iOS application.
If any lead would be appreciated.
Thanks,
Arun Kumar D.
Howdy Developers of InterSystems Ensemble,
Has anyone experienced an alert generated from a business operation (BO), which uses EnsLib.SQL.OutboundAdapter? That comes with an error message as below:
ERROR #6022: Gateway failed: Execute. + ERROR <Ens>ErrGeneral: SQLState: (HY000) NativeError: [10054] Message: [Cache ODBC][State : HY000][Native Code 10054] [d:\cachesys\bin\cache.exe] [write_all: send() returned SOCKET_ERROR. Reason: (10054, 0x2746) An existing connection was forcibly closed by the remote host. ] (alert request ID=710761).
This error occurs from time to time in our Ensemble ODBC
Hi!
It is often necessary to run some external command such as a python program or a shell script from inside Caché/Ensemble. There are three ways of doing this:
$ZF(-1) is normally more interesting because it allows you to recover the return code of the program you are calling.If that is important to you, that is the way to go.
I'm experimenting with sending large amounts of data in a POST payload to be stored as a stream. However I've noticed that no matter how many characters are in the message, Cache only gets about 32k of them, cutting off the rest. Conversely as expected it can only send about 32k worth of characters in a payload.
Before I get creative, is there a REST message size limit that can be changed? Or is there something else going on here?
Thank you!
I want to disable / turn off the visible cursor and then re-enable from with a Cache MUMPS (COS) routine.
Can anyone advise please ?
I am using the free Intersystems Cache installation (CachePCkit V2017.1) on Windows 10 for my own use & personal development.
I am trying to use the automated unittest class for a %CSP.Rest service.
So my Unittest code set's %request and %response from %CSP.Req/resp respectively
I build a tProxy with the fields I need for the post and set it %ToJson... I have tried seting %request.Content = tProxy (and not)
I call the method for the post url directly...
When that method calls %fromJson to set an object with the info. I passed...
- when I don't set %request.content.. I get a error '5035 - premature end of data code 12'
- when I set %request.content=tProxy.. I get an errror Method Does not exist
Any tips on
Let's say I want to execute this cache script (saved as test.txt) from OS terminal:
zn "USER" write 1 zn "%SYS" write 2 halt
Executing the following command in a terminal:
csession cache < test.txt
Would yield this output:
$ csession cache < script.txt Node: gitlab-test, Instance: CACHE USER> USER> 1 USER> %SYS> 2 %SYS> Job succeeded
Is there a better way to run these scripts?
Currently I have two problems:
As for 1 there are
I have a dataListBox in ZEN which has an OnDrawItem method associated with it. The DrawItem method never seems to be called and I cannot see why. I am using IE11. Can anyone suggest a reason? The attached code runs in a namespace called CODE and can be run using view webpage on the TheLabsApp.BioAnal class. Please note that the data is in a global called ^%ANAL that resides in %SYS.
How can get the data stored in the JSON object? I try StringObject but doesn't work.
Does anyone have a function they built to change a name from all lower case, or all upper case to mix case?
Thanks
Scott Roth