InterSystems Caché is a multi-model DBMS and application server. See more details here.
I would like to get current date and time in this format : YYYYMMDDHHMMSS (eg: 20220126155704)
Simplest way to do that I found so far is this :
$translate($zdatetime($horolog,8,1), " :", "")It works, but it's not that great (I would like to avoid string manipulation) Is there a better, cleaner way ?
I am working with a client database that is growing exceptionally fast ( about 15G/day). As I understand it, the usage of the global ^STMONITS to gather statistics can consume a large amount of database space. This client in question is using this global. I would like to determine of the 1.7T size of the database, how much is being consumed with statistics data by the usage of the ^STMONITS global. Is there a method to get this value whether a size or percentage of the database overall size.
Hello,
I have been tinkering with FHIR recently and tried to update the FHIR servers Capability Statement after I made some changes. I updated an OAuth2.Issuer Service Registry entrys URL and needed to update the metadata which the FHIR server sends to the client so they can get the updated URL for the authorization server we use.
However, when I run the Console Setup tool with
do ##class(HS.FHIRServer.ConsoleSetup).Setup()I'm trying to send an HTTP POST request with form-data from an Angular app to a Cache backend, but my request fails with a 406 Not Acceptable error.
httpRequestHeaders = new HttpHeaders({
Authorization: 'Bearer ' + sessionStorage.getItem('access_token'),
Accept: ''
});
uploadFile(file: File) {
const formData: FormData = new FormData();
formData.append("file", file);
const req = new HttpRequest("POST", this.postURL, formData, {
reportProgress: true,
responseType: "json",
headers: this.httpRequestHeaders,
});
return this.http.request(req);
}I have a PDF ZEN report module that I'm using XslFoXslt to highlight the table cell.
What I need is for a particular value to add a background image to the <item> that is calling the XSLFoXslt
The code I have is the following but all that happens is the color.
XData XslFoXslt
{
<xsl:template name="HighLight">
<xsl:param name="Value"/>
<xsl:if test="$Value = 400">
<xsl:attribute name='background-image'>url("images/trash-icon.png")</xsl:attribute>
<xsl:attribute name='background-repeat'>no-repeat</xsl:attribute>
<xsl:attribute name='color'>#ffffff</xsl:attribute></xsl:if>
</xsl:template>
}
Hi Developers,
I need to construct a string as xml which consists of "" in it. As example below
set teststr ="<book id="bk105"><author type="old">Corets, Eva</author><title>The Sundered Grail</title><genre>Fantasy</genre></book>"
giving error in the area where " in middle of the string (highlighted in bold)
Could anybody suggest to me, how to construct a static string in object scripts with " in it?
Hello To all my fellow Cache Developers,
Astronomers’ tools
5 years ago, on December 19, 2013, the ESA launched an orbital telescope called Gaia. Learn more about the Gaia mission on the official website of the European Space Agency or in the article by Vitaly Egorov (Billion pixels for a billion stars).

However, few people know what technology the agency chose for storing and processing the data collected by Gaia. Two years before the launch, in 2011, the developers were considering a number of candidates (see “Astrostatistics and Data Mining” by Luis Manuel Sarro, Laurent Eyer, William O’Mullane, Joris De Ridder, pp. 111-112):
- IBM DB2,
- PostgreSQL,
- Apache Hadoop,
- Apache Cassandra and
- InterSystems Caché (to be more precise, the Caché eXTreme Event Persistence technology).
Comparing the technologies side-by-side produced the following results (source):
| Technology | Time |
|---|---|
| DB2 | 13min55s |
| PostgreSQL 8 | 14min50s |
| PostgreSQL 9 | 6min50s |
| Hadoop | 3min37s |
| Cassandra | 3min37s |
| Caché | 2min25s |
The first four will probably sound familiar even to schoolchildren. But what is Caché XEP?
I would like to create a toolbar button in Cache Studio. After clicking on it, it would run a custom command (eg: to execute a routine that will clean a global).
I took a look at dialog that is shown after right clicking on a toolbar in Studio, then choosing "Customize" but AFAIK there is nothing there that allow such a thing.
I know it's possible to customize menu items by extending %Studio.SourceControl.Base class, is there something similar for toolbars ?
Here is some base code example (based on Danny Wijnschenk answer) :
Does anyone know of a relatively quick and straightforward way of converting code written in the old dot scoping syntax with argumentless do (see here for reference: https://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=RCOS_cdo_legacy) to the modern parentheses scoping syntax? It's not too bad to do it by hand, but it's also easy to make a mistake and leave a "quit" in an if statement by accident for example.
E.g.
do:someCondition
.set value = do ##class(ExampleClass).ExampleFunctionThatReturnsValue() quit:'value
.do ##class(ExampleClass).ExampleOtherFunction()
I am trying to emulate a behavior we used to have on an older Cache' system, namely the ability to call "csession cache" from inside of .bash_profile.
On the older system, passwordless users were allowed, now password is required.
The desired behavior is to have user log into linux and go directly into our cache application, which is character-based.
I have tried this technique, without success:
csession cache < myfile.txt. where myfile.txt contains two lines, username on first line, password on second line.
(user is define to have a startup namespace and routine)
I am looking for experience of people running Veeam with Caché databases.
Tips/Tricks/General questions like; what Veeam features are you using, what your backup cycle looks like, where does your data end up, what recovery/integrity checks you do, what sort of compression/dedupe you get.
Also what questions _you_ have and what problems you might be trying to solve.
Hello everyone,
I want to see all properties from a %Net.HttpRequest, I tried to use:
zw objHttpRequest
It's show all the properties, but I want something more easy to analyse like a curl command, is it possible?
Thanks.
Hi Everyone,
Has anyone tried to write down a function in a routine that list all of possible function inside the routine? I can only think of iterating through the routine line one by one and differentiate between function and function definition. Is there any existing function that can be utilised? I think it should work similar to how
do function^routineName
works. I could not find the source for how "do" works, but I believe do will look at the list of function in the routine, and if it finds it, it will call the function, but if it does not find it, it will give an error?
Hi, everyone!
I want to share a personal project that started with a simple request at work:
Is it's possible to know how many Caché licenses we are using?
Reading other articles here in the community, I found this excellent article by David Loveluck
APM - Using the Caché History Monitor
https://community.intersystems.com/post/apm-using-cach%C3%A9-history-monitor
So, using David's article, I started using Caché History Monitor and to show all that information.
When facing the question: Which cool tech should I use?
Hi Developers,
I have created SOAP webservice cls and configured as business service in ensemble. Now I have started the production.
Where can I find the wsdl for this new soap_service?
Thanks,
Prashanth
Hello developers, I'm a newbie to Intersystems technologies and I started to work with Caché and Ensemble, and to be more specific I'm working with systems integration. In a scenario where I need to develop new software from scratch, would it be better to develop this new software using REST APIs? Does anyone have any recommendations about courses?
or "So you just got yelled at by your boss, for sending him an unformatted Hello World webpage"
Our previous lesson ended with us serving a Message value obtained from a Caché REST service to the client, using Angular as a runtime. While there is a lot of moving parts involved in this process, the page is not especially exciting at the moment. Before we can start adding new features, we should take a step back and review our tools.
Hi Friends ,
We have requirement to convert source hl7 message to target json message using dtl.
Currently I have created persistent cls for json and completed the dtl.
DTL giving output as json equivalent xml.
Now how to convert DTL result xml object to json?
Is there some generic way to output a %SQL.StatementResult to CSV?
Hi
How to get shadow status with command line, to monitoring ?
I am trying to connect to an external SFTP. They have our public key and I have the private key which is password protected. I have the credentials set to the sftp username and the password to the private key.
If I set the private key only, I get a username/password error connecting. If I set both the public and private key files, I get the error below:
ERROR #7510: SSH Error '-19': SSH Error [80101013]: Callback returned error [80101013] at Session.cpp:418,0
For those of you who might be new to IRIS, and even those who have used Cache or IRIS for some time but want to explore beyond its usually-assumed boundaries and practices, you might want to dive into this detailed exploration of the database engine that is at its heart, and discover just what you can really do with it, going way beyond what InterSystems have done with it for you.
The "Download Caché Evaluation" at the top of this forum takes the user to a page that only allows her to download versions of IRIS. What am I missing here? Does IRIS encompass Caché? I've wandered around both on the main website and in the Developer Community site looking for a way to only get Caché... Very frustrating.
I appreciate any help you all can provide. Thanks!
So I've been reviewing a lot of questions posted in the InterSystems community regarding NULL properties in JSON. I've also been reviewing the JSON documentation. None of these things have been able to help me so far.
1. We don't seem to have the %JSON.Adaptor class available for us to use in our system.
2. I'm not really confident enough to create JSON Type classes or backporting code, etc.
I Have a problem with a Signature validator to XML file, when this file have more than one Signature tag.
Like This
Where can I download the ODBC35 driver version 2018.1.4 64 bit?
Hello.
I want to store a mailbox in Caché, persistently.
Does anyone have some code for downloading all messages from mailbox into Caché? And maybe automatic syncing after download? I know, there is %Net.POP3 but maybe someone has already done that.
Thank you.
Does someone knows if any Studio version or, if in its new versions, it will be able to recognize new Javascript statements like arrow function, let, const etc ?
