Hi Community,
What is Defination of XData which we use using in Object script
we are using XData
How can we use XData for different functionalities
Thanks,
Joe
InterSystems Caché is a multi-model DBMS and application server. See more details here.
Hi Community,
What is Defination of XData which we use using in Object script
we are using XData
How can we use XData for different functionalities
Thanks,
Joe
I want to create a datatype that Extends from String and in its set and get it will parse the string or do whatever - my GET works, my SET doesn't.
A deeper explanation of what i am trying to do: Basically none of the usual LogicalToStorage and other functions listed in Datatype creation in the manual is helpful to me, So i wanted to write the Get and Set functions in the Datatype so when compiled each property in other class that is of that type would get its PropertySet() and PropertyGet() overridden, That way i can implement any behaviour of that datatype as i please - "behind the scenes".
Hello everyone!
I need to transform a String, which is a numerical value, to an Integer.
The value gets returned in my Rest service as "testingID": "1234567", but I need it to be "testingID": 1234567
Thanks beforehand! Appreciate all the help I can get! :)
Does the GetValueAt method of an EnsLib.HL7.message object change the contents of the HL7 message?
We want to do two things, given an incoming HL7 message, in our production:
set sc = message.OutputToLibraryStream(xmlstream,"","","TNHS.Utils.HL7toXML")
Set ReportId = message.GetValueAt("PIDgrpgrp(1).ORCgrp(1).ORC:3.The $ZF(-100) command is used in the following format.
$ZF(-100, flags, command name, command arguments)The "/shell" flag is required when running OS commands.
For example, use mkdir like this:
// mkdir C:\temp\newdir
Write $ZF(-100, "/shell", "mkdir", "C:\temp\newdir")
If a command has multiple arguments, enclose them in double quotes and separate them with commas, as in the example below.
// move C:\temp\a.txt C:\temp\a2.txt
Write $ZF(-100, "/shell", "move", "C:\temp\a.txt", "C:\ temp\a2.Hi, I need to make a prompt for a password and to not display what the user is typing in a CMD. I want to use the read command but i'm not sure if it is possible with it.
InterSystems announces the Maintenance Release (MR) of Caché, Ensemble and Health Connect HSAP 2018.1.9. This is a maintenance release with many updates across a wide variety of areas.
Full product installation kits can be downloaded from the WRC Software Distribution website:
For information about the corrections in this release, refer to the Release Changes Notes. The documentation for Caché and Ensemble includes these as well as the Supported Platforms document, the Class Reference, and a full set of guides, references, tutorials, and articles.
Hi Community,
We're pleased to invite you to the upcoming webinar in Hebrew:
👉VS Code - Beyond the Basics 👈
I have some databases in my cache instance that were created from an online backup file (.cbk). I would like to see the information for these databases in the Databases and SQL sections of Management Portal, but they only appear in the Classes section. I can navigate to the files in my cache instance terminal and see the CACHE.DAT files, and a check in the terminal shows that they are mounted.
This is what I see in the terminal for each database when I check to see if the databases are mounted:
%SYS>set db="/path/for/mydatabase"
%SYS>w ##class(SYS.Database).%OpenId(db).
My name is Malcolm King and I’m an experienced IT Professional seeking full time employment.
I have 25 years of experience in the software development industry, with a wide variety of skills and knowledge. I have been involved in writing both front and back end code, along with interfacing to multiple systems, using multiple languages such as Cache Objectscript, C#, Java, Javascript and SQL.
I have experience with SOAP services and RESTful APIs as well as database design, implementation and administration.
Good afternoon! 👋 We would be very grateful if you are kind enough to read and respond to our request 😊.
We need given an Authentication request issued towards our OAuth 2.0 authorization server; that in case of error, the responded message is customized.
Currently if we point from POSTMAN to:
https://[IP]:[Port]/oauth2/token?grant_type=client_credentials&scope=my/scope
Username: Erroneous
Password: Erroneous
We get:
{
"error": "server_error",
"error_description": "ERROR #5002: Cache error: <INVALID OREF>zAuthorize+28^OAuth2.Server.Token.
Hello,
I want to parse large JSON object and store data into persistent tables. Is there any other way besides pre-defining persistent classes including typing each property name? Maybe parse it and store properties into a global so that I know what properties need to be defined for each class...
Thanks in advance for your thoughts
I am exporting data from Cache using the SQL export wizard. This is on a docker image of Cache hosted on a Linux server.
I select my database, schema, and table, make sure that all columns are being exported, check other settings, and then finish the export.
All server settings look correct and permissions are rwe on the directory. I have tried various directories, including a system level directory. I tried creating the file before I do the export in case there was an issue with creating the files, and I also made sure the created files had rwe permisisons.
Hello,
As Intersystems Cache for Windows comes with a custom Apache version (2.4.52) and has some security risks, so not advised to be used for Production servers/environments. I want to install the new version of Apache (2.4.58) and replace it with the built-in version of it. Is there an easy and convenient way to perform this upgrade? My target is to completely replace the built-in version and replace it with a new version so that it passes the security scan.
Here is the link to the security risk mentioned by Intersystems:
Hi,
we need to take backup from alpha to dev environment on daily basis by automatic. Anyone please help?
When defining a server connection in Atelier we are required to enter a username and password because these are mandatory fields in the dialog. However, if the /api/atelier web application definition on that server has only the "Unauthenticated" checkbox set in the section titled "Allowed Authentication Methods", then our Atelier connection will succeed even if we supply an invalid username and/or password.
Hi Community!
Coding guidelines discussion. Consider you have For with one command in the cycle. Here are the options:
One
For i=1:1:1000 set ^Test(i)=""Two
For i=1:1:1000 {
set ^Test(i)=""
}Same for the "If":
if a set b=aor
if a {
set b=a
}
Your choice? Or maybe even other options?
Is there an ObjectScript analog of Find with Match Element Type option? I know there is an ObjectScript analog of Find in Files, Studio.Project.FindInFiles and Studio.Project.FindInProject, but I failed to locate so far an analog of Edit/Find. I am specifically interested in Match Element Type option so I could search across selected files for globals. Somehow Studio.Project.FindInFiles does not offer this option natively.
.png)
If the system does not stop for 24 hours, old journal files will be deleted at 0:30 according to the "Journal file deletion settings".
A possible cause of journal files remaining that are older than the "Journal file deletion settings" is that there are transactions that remain open.
In that case, you will be able to delete the journal file by searching for processes executing transactions and finalizing the transactions.
The sample below checks for the existence of open transactions, and if they exist, outputs the target file name and journal record information.
Dear Fellow Cache Developers and Cache Experts,
The company I work for has a Cache Web Application that is built on the Cache ZEN framework. The application has run very well for almost 2 decades across many versions of MS Internet Explorer ranging from IE5 all the way through IE11.
However, when Microsoft finally phased out support for IE11, our company was forced to upgrade to MS Edge. While many of the old Cache ZEN features still work well, there are several, four specific scenarios listed below, that do not work as expected with MS Edge.
Hello, I am writing to you because I am receiving a strange error on our Integration server after restoring a Production copy.
On other occasions we had restored the Production copy on this server without problems (in fact it was done weekly)
After restoring the copy when entering the Studio this error appears:
I am inspecting our DB globals in order to reduce sizes of the worst offenders if possible. When I come to a large global, I am interested which of its nodes are the largest. Hence code below with unexpected different results. Any explanations why are results different?
d partialGlobalsSize(dirName,globalName)
partialGlobalsSize(dir,global)
S sub="",path="C:\Cachesys\mgr\"_dir_"\",searchGlobal="^"_global
S x=##Class(%GlobalEdit).GetGlobalSize(path, global,.Alloc,.Size)
W global,",",Size,! ; Got
S x=##Class(%GlobalEdit).GetGlobalSizeBySubscript(path,global,global,.
Wondering what version the Information.Schema schema was introduced, so that I can decide how to query the metadata for user defined tables.
Thank you!
Hello!
Trying to delete txt file in folder:
ret=-13
How I can delete file in Lunix system?
This error occurs when an instance of the class is already open at compile time.
There are two ways to deal with this issue:
If you want to determine which process is using the class, try the sample routine below.
/// Test.Hello Guys,
Our cache application uses REST web services and handles single API request perfectly with response (response status and related data). But sometimes user sends multiple requests to the same API simultaneously ( ie, without waiting for the first to respond ), where one request will succeed (not necessarily the first) and the others will fail.
So, I need to handle the requests one by one after completing and sending the response for first request in the queue then process the next request and so on.
Is there any appropriate way of handling this problem?
I am trying to get data out of a cache backup. I am completely new to Intersystems Cache.
I got a docker image of Cache from this post:
I want to get the data from my backup into this docker image. First, I need access to a gui and a cli, then I need some instructions or documentation for actually pulling in the backup data.
Thanks! This is all new, so pardon my lack of knowledge here. If I can provide any more information let me know.
Hi all,
Does anyone have experience with obtaining logs from Caché databases and parsing them now? Please leave me a message.
I ask because my project involves some hospitals that used Caché when creating databases over 10 years ago. Currently, we cannot replace the database, but we need to check and parse the database logs from the Caché.
Thanks.
Dear experts,
I'm trying exported a project from version '2012.5' to '2018.1.4' but is returning ERROR #7602.
Please, could you help me. How can I do it?
Below is steps that I did:
| ACB>D $System.OBJ.Load("C:\GlobalPatch.xml") Load started on 01/07/2024 00:06:51 Loading file C:\GlobalPatch.xml as xml Imported global: ^GlobalPatch Load finished successfully. ACB>Set sc = ##class(%Studio.Project).InstallFromGbl("^GlobalPatch","fv") ERROR #7602: Exported on version '2012.5' but this machine on version '2018.1.4' so unable to import |
Thank you.
Hello, How are you doing?
I'm currently developing a proyect in wich I want to use %SYSTEM.Event to process queues. I realized that if a queue has events pending to be sent to the listeners, when I restart the cube the queue with all its events are deleted.
Is there a way to store the queue with their messages in a Global?
I've checked the documentation but I can't find any option for this prupose.
https://docs.intersystems.com/supplychainlatest/csp/documatic/%25CSP.Do…
Thank you!