I would like to know the workflow of $za . If you explain me with example that will help.
InterSystems Caché is a multi-model DBMS and application server. See more details here.
InterSystems Caché is a multi-model DBMS and application server. See more details here.
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 %Persistent
Test.Chapter %Persistent
then in terminal I am running these commands:
USER>set c1 = ##class(Test.Chapter).%New() USER>set c1.Name = "Introduction" USER>set c1.Page = 10 USER>set c2 = ##class(Test.Chapter).%New() USER>set c2.Name = "Development of DB" USER>set c2.Page = 13 USER>set b = ##class(Test.Book).%OpenId(1) USER>do b.Chapters.Insert(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 all,
I've created a method to calculate the age of a person, or the age of a process, contract or other stuff as you want.
/// Calculate the age from date of birth and other date (by default shoud be today).
/// <b>dateOfBird</b> Date of birth in cache format. ie. $ZDH("1972-01-01",3)
/// <b>day</b> Date to calculate to. ie: $H
ClassMethod AgeAt(dateOfBirth, day) As %Integer{
quit:dateOfBirth=""
quit:day=""
set yeardob=$SYSTEM.SQL.DATEPART("year",dateOfBirth)
set yearday=$SYSTEM.SQL.DATEPART("year",day)
set years=yearday-yeardob
kill yeardob, yearday
set monthdob=$SYSTEM.SQL.DATEPART("month",dateOfBirth)
set monthday=$SYSTEM.SQL.DATEPART("month",day)
if (monthday-monthdob)<0 set years=years-1
if (monthdob-monthday)=0
{
if ($SYSTEM.SQL.DATEPART("day",day) - $SYSTEM.SQL.DATEPART("day",dateOfBirth)) < 0
{
set years=years-1
}
}
kill monthdob, monthday
quit years
}
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).
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.
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:
Is there a better way to run these scripts?
Currently I have two problems:
As for 1 there are two solutions I found:
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
Caché prints to printers in a manner somewhat different from other Windows applications. Caché sends the data directly to the GDI Printer, without the usual interface. This is because the GUI interface can only be shown on a system desktop session and not in web browser and terminal sessions. Some printer drivers have problems with this method of printing.
Is this the problem you are having?
Hi.. I have an issue where we are using OAuth2.0 with the ZAUTHENTICATE routine. Once our token is validated we are using a users lan id (passed on the ID token) to find a software defined username in a Cache Global.
That is all working fine in ZAUTHENTICATE.. I am setting the software defined username in the Properties("Comment") array and wanting to reference it in the Rest Service Dispatch class.
What are the best steps for troubleshooting printing to a Windows printer from Cache. The printer has been configured in the Windows Printer Manager and has been able to print a test page (from the windows print manager).
The device has been configured in Cache -> Sys Admin -> Config -> Device Settings -> Devices with properly formatted |PRN|printer device name and "W" for open parameters and 101 for Alias.
From a command prompt, O 101 U 101 write something U 0 C 101 doesnt output anything to the printer, but does create a document in the Windows print spooler.
I noticed that the subscript of the index map is actually the collated field (%SQLUPPER).
Is String the only data type going through this transformation? Any other data type would also go through this transformation?
Thanks.
I'm sending data via ajax to my REST service, and while retrieving any information sent in the url parameter is easy when they're defined in the route, I can't get anything if I store information in the data parameter. For example:
$.ajax({
url: "ServerURL",
data: { "some": "json" } //How do I get this information?
...I've looked at many common solutions such as here:
https://community.intersystems.com/post/lets-write-angular-1x-app-cach%C3%A9-rest-backend-part-9
Hi,
I need list all available Windows AD groups .
How I do it?
I need to change the attributes of Windows Users of AD, adding and remove groups.
Note: I was able to make the connection to LDAP, and I listed the groups that a user.
I was curious if application partners were developing their own task managers for scheduling background tasks, or using the built in task schedule that is part of the Cache platform.
For those that are using the Cache task manager, what has been your method for distributing default tasks that your application needs during initial install as well as upgrades? Are you distributing an export of the %SYS.Task object, or perhaps you are distributing an installation script that adds a task to the task scheduler when it is first run?
I'm trying to learn how To use SQL in CACHE, so I hope I don't bore you with "Dumb" questions....
I'm getting "ERROR #6022: Gateway failed" message following this line of code.
s sc=gc.Prepare(hstmt,pQuery)
This line of code comes from an example I found in the documentation. pQuery is the "Select" statement setting up the variables and tables I'm trying to pull information from.
What does that error indicate?
Thank you.
Hi-
Does anyone have an example of manipulating Zen tablePane columns programmatically?
Specifically, clearing out the columns and adding a new set of columns.
It would be helpful if you had both a server side and client side example.
Thanks
Documentation here lists the kinds of members a class definition may contain. In summary:
Later in the same document, a section headed "Class Member Names" contains this warning:

So I'm interested to hear how other DC members handle this.
Cache for Windows (x86-64) 2015.1 (Build 429U) Fri Feb 13 2015 14:37:23 EST [HealthShare Modules:Core:12.07.3703 + Linkage Engine:13.04.3703]
Use case: Search an LDAP database from Caché over TLS using Mutual Authentication.
Extract from the %SYS.LDAP documentation:
Hi community ,
i work actually on the access token generation method , i want know where the generated access token are saved ?
My [OAuth2.AccessToken] tabe is empty , it's logical?
thank's for helping .
Best regards