... but let’s first look at error handling.
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.
... but let’s first look at error handling.
Hi folks!
Is there a one line command to map class package A to Namespace ASPACE?
In short, I wanted to react on CPUusage warnings and alerts with my own actions. It seemed that it was possible in my Caché version (2015.1):
http://docs.intersystems.com/cache201513/csp/docbook/DocBook.UI.Page.cl…
But all my attempts silently failed. Callback code was as simple as possible:
Class %z.Monitor.Health Extends SYS.Monitor.Health.AbstractCallback { /// This method is called for every Health Monitor sensor reading.<br> ///.
I am trying to find documentation on how Cache Studio locks a Routine/Class a developer is editing.
On the flip side, I am looking for documentation on how Atelier does the same.
Ultimately I am looking for the differences and what happens if both Studio and Atelier through different developers go after the same Routine/Class.
I am not asking for an answer (however that would be nice), I am looking for pointers to documentation.
Hi,All,
I did a small coding for the HTTP request and HTTP response. When i tried to use a server with ping i was able to get a response from the HTTP request. But when i tried the same with HTTP response i am getting a empty value in the response why is that?
Thanks in advance.
aa=$zwc(411,1,1,3)/*$bit(1,3,5)*/
bb=$zwc(403,1,0,2)/*$bit(1,3)*/
Is there a handy function to test wether one bit string is covered by another one bitstring? For example, "bb" is covered by "aa".
I currently implement this by one AND operation and then do a bitcount, I just want to know any default function is already out there.
Thanks.
Hello,
I was wondering if there is a way to maybe temporarily alter the [Private] tag dynamically or any other way to run a Unit test against class method, which has been labeled as [Private]?
I mean, I understand there is a workaround to create a non private class method inside this class, which will in turn call this private method and run a Unit test on the non private method, but I am looking for a way to do this without altering the original class.
Thank you,
Alex
Guys,
Can you please guide me to create a RESTful API in our cache with JSON response.
Caché will not change the cryptographic settings in an existing TLS configuration when you upgrade. This means that unless you've updated them yourself, you're still using the values from the very first version you started using SSL in.
If you've upgraded since creating your TLS configurations, take a moment to look at the enabled protocols and ciphersuites to make sure you've enabled all the versions you want, and disabled the old versions you don't want.
Dear community!
I'm currently working on MessagePack implementation by using Cache ObjectScript.
I try to choose suitable representation for binary array.
Should I use $lb or $c or smth else for it?
I have an application in Cache 2013 (No Ensemble) which need to consume a REST web API over internet.
Can somebody please help me by pointing out the documentation or provide me code sample for consuming the REST API from a routine/class.
I am using Cache 2008 (No Ensemble) .
Hello!
Suppose I have a package with classes which I want to rename. All these classes are persistent and they already have a lot of data stored.
The best I can think of to do is the following:
5. finishes successfully.Hello.
We're about to implement an application that could use WebSockets intensely so before we head to that direction we need to figure out about how some few things work. That being said, anyone care to give me some enlightenment?

This is (the end) of a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
This is the 25th and last challenge of the 2016 series of Advent of Code.
In this challenge, you have to send a signal out, using the assembunny code interpreter that we had to make in earlier challenges.
There is one extra instruction added to the assembunny language, which outputs a value (out x).
Using the instructions as input (see http://adventofcode.
Is there any way to specify in which order indices are built during:
So far I think they are built by name order.
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
Today, you need to find your way through a maze (again). There are 8 points of interest in the maze, and you have to visit them all, starting with point 0.
You may visit some points more than once, in random order. The challenge is to find the shortest path through the maze while visiting all points.
Dear community!
I have problem with index NULL value. Unique index doesn't work for this case. If I use insert and one of parameter is "NULL". Message of constraint doesn't appear and row is inserted into table successfully. How Can I use index with NULL?
{
Property name As %String [ Private ];
Property age As %String [ Private ];
Property country As %String [ Private ];
Index IndextestUniq On (name, age, country) [ Unique ];
}
INSERT INTO TestClassIndx (name,age,country) VALUES ('1','2',NULL)
Best Regards
Hi everyone!
I'm restoring big database (1.8 Tb) from full backup to another host.
This host is weak (4Cpu 4GB RAM), so ^DBREST already works for 50 hours.
Is it possible to view restore process progres? I would like to know what time it will take to complete?
Hi Guys,
Can you please guide me on how to develop the machine learning concepts like as Chatbots, voice recognition, etc...
If any lead would be appreciate.
Thanks in Advance.
Thanks and Regards,
Arun Kumar Durairaj.
I ran the below query in three different modes. Coordinated Universal Time is 5 hours ahead of Eastern Time so there is difference in value from column 1 and column 2 in ODBC, Display mode, but not in Logical Mode. By default the query executes in ODBC mode when we query the data from outside world(via ODBC connection).
I don't know why query 2 and query 3 outputs different from query 1.
Query 1. Ran in Logical mode, DATEPART() took in memory stored timestamp data(stored in UTC)
'Hour ' returned are same for both the columns
Query 2.
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
Remember the assembunny language we had to code on day 12 (https://community.intersystems.com/post/advent-code-2016-day12-leonardo…)?
There is a new instruction we have to implement which toggles an instruction x lines away (further or back).
inc becomes dec, and all other one-argument instructions become inc.Dear community!
What do you think about webinar "Declarative programming on COS"? I want to do such one.
I am going to tell about main points of declarative programming and how you can implement it in your real projects.
Please feel free to write your opinion here.
Please if you wish to become a member of such webinar write me a message to atygaev.mi@gmail.com with subject "webinar".
I am in Atelier editing a Class.
I want to look at the window or pane that shows my Properties,
I get to the tab that show Properties and their Value as shown below.
Now, how do I get the properties from my Class into the image below?

This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
The goal of today's challenge is to copy data from one disk to another, problem is that the disks are not directly connected. Luckily they are in a huge grid, and you have to find a way to copy the data through adjacents disks, while honoring the disk usage (you cannot copy to a disk where data is already stored).
The input is a df-like disk usage listing.
Hello, this is going to be a stupid question, yea I know, there are no stupid questions.
Say, I have an Object Property, Name or Count or Title, or whatever.
How can I get a list, or find out all the different ways it can be expressed?
Example:
-Property Name As %Name;
-Property Name As %String="me"
-Property Name As %String [ Required];
But what other parameters, keywords, restrictions, lists, etc. that I can apply to this Property?
I have been search the I/S documentation and so far at least, I cannot find that sort of information, or in one place.
This is a series of programming challenges for beginners and experienced Caché programmers.
For an introduction : go to article https://community.intersystems.com/post/advent-code-2016-day1-no-time-t…
The challenge of day 21 is about scrambling passwords.
There are a few functions you need to implement that will do operations on a string :
- swap position X with position Y : means that the letters at indexes X and Y (counting from 0) should be swapped. - swap letter X with letter Y : means that the letters X and Y should be swapped (regardless of where they appear in the string).
Hi there,
The problem is, that I need use the property value of datacombo in other datacombo with parameter.
The follow a example code:
<dataCombo id="Grupo_Producto" name="Grupo_Producto" dataBinding="bdGrupo" size="40"
label="(*) Grupo" dropdownWidth="400" dropdownHeight="100" loadingMessage="Cargando..."
columnHeaders="Codigo, Nombre"
queryClass="Innova.CL.Core.BD.Configuracion.Operacional.Grupo" queryName="obtieneGrupoProd"
sqlLookup="SELECT Nombre FROM Innova_CL_Core_BD_Configuracion_Operacional.
Hello Community,
I have a simple question but somehow hard to find the solution:
this is a property in my class:
this is my method to save:
{
set RelationMatrix=##class(ZenCrm.RelationMatrix).%New()
set RelationMatrix.RelationAID= tvar1
set RelationMatrix.RelationAType= tvar2
do RelationMatrix.%Save()
quit $$$OK
}
However the 'set' line does not work for the 'related properties.
I have tried: set RelationMatrix.Relationtypes.RelationAID but this failed.
Any suggestion? thanks!
Application Performance Monitoring
Back in August in preparation for Global Summit I published a brief explanation of Application Performance Management (APM). To follow up on that I have written and will be publishing over the coming weeks a series of articles on APM.
One major element of APM is the construction of a historic record of application activity, performance and resource usage. Crucially for APM the measurement starts with the application and what users are doing with the application.
We have an web application accessed using https, that uses CSP technology with frames.
The initial 'login' is via a single CSP page, which then redirects to another CSP page which creates the frames (4 in all) and loads a CSP page in each of those. For the most part the frames load without error, but sometimes when logging in and sometimes while using the system ' 5916 Illegal CSP Request ' errors occur.
I say 'login' in inverted commas as a Cache login is not performed just an application login, I don't know if that's relevant so thought I'd mention it.