I need connect to cache2016 database by python to get some data, but I don' t know how to connect by python, did anyone know how to create connection?
If you can provide any python code, that will be better!
InterSystems Caché is a multi-model DBMS and application server. See more details here.
I need connect to cache2016 database by python to get some data, but I don' t know how to connect by python, did anyone know how to create connection?
If you can provide any python code, that will be better!
Hi,
is there a way to know where IRIS or CACHE current instance is installed from objectscript?
Something like "iris list"
It will be easy to make a $ZF, iris qlist, and get the info, but i hope that there's something less complex than that.
Thanks
Pietro
Hi,
Question about ZMIRROR routine.
I analyze a problem with the label NotifyBecomePrimary. It seems not performed after a switch.
After installing ZMIRROR routine in %SYS, is a restart required?
If It's required, It could be explain my problem.
Thank you.
The following code snippet uses GZIP to compress/decompress a file. Choose a file by specifying a file path in the "filename" variable.
Class objectscript.GZIP Extends %RegisteredObject
{
classmethod test() {
//Export Global(s) uncompressed
set filename="C:\Temp\myglobal.xml"
do $System.OBJ.Export("^oddEXTR.gbl",filename)
//Open exported Globals
set uncompressed = ##class(%FileBinaryStream).%New()
set uncompressed.Filename=filename
Set compressed = "C:\temp\mycomglobal.xml"
//Open File Device over Gzip and Copy Uncompressed information to it
Open compressed:("WUNK":::/GZIP=1:/NOXY=1:/OBUFSIZE=32768):0
Use compressed
do uncompressed.OutputToDevice()
close compressed
//Create New File
Hello Everyone!
Following the example below i can download file only txt format, in other format(pdf,xls,rar) i have errors(can't open file),
So, how i will change code for download file in other format?
Thanks!
ClassMethod GetFile(file) As %String
{
#dim %request As %CSP.Request
set filename="E:\Rest\"_file
set %response.ContentType=..GetFileContentType($p(filename,".",*))
do %response.SetHeader("Content-Disposition","attachment;filename="""_$p(filename,"\",*)_"""")
Set %response.NoCharSetConvert=1
Set %response.Expires=50
set file=##class(%File).%New(filename)
do file
The Art of Mapping Globals to Classes 1 of 3
Looking to breathe new life into an old MUMPS application? Follow these steps to map your existing globals to classes and expose all that beautiful data to Objects and SQL.
By following the simple steps in this article and the next two you will be able to map all but the craziest globals to Caché classes. For the crazy ones I will put up a zip file of different mappings I have collected over the years. This is NOT for new data; if you don’t already have existing global please just use the default storage.
Over the years, I have found myself needing to create multiple HL7 messages based on a single inbound message. Usually these take the form of an order or result from a lab. Each time I have approached it, I have tried to start from scratch under the belief that the previous attempt could have been done better.
Recently, the need arose again and I was able to create a solution that I wasn't ashamed of. My main concern was that I would always either find myself getting buried in a BPL, or use ObjectScript and attempt to edit messages using the SetValueAt Method for the HL7 Message Class.
Hello,
Comming back to Cache after some long gap. Is it possible to use UUID as primary key while creing a Persistant class (Not using the default numerical ID)?
and creating the relationships also using UUID?
Hey Developers,
Enjoy watching the new video on InterSystems Developers YouTube:
Hello, I am writing some cache code that will pick up a PDF file, Base64 encode the contents and then send on to a third party system within a Long String (via their API). I have been testing this and discovered that the PDFs do not open within the supplier system (I get an error saying that it hasn't been decoded correctly). I wanted to prove that the issue does not lie with the way that I have Base64 encoded it within Ensemble, and therefore as a test wanted to Encode the PDF stream, then decode the stream and write out to a new file.
InterSystems periodically updates our software release policies and practices to adjust to customer needs.
We're now changing our maintenance release cadence in order to be more predictable for customers and partners, and tweaking a few other areas.
This article summarizes the release cadence for our Data Platforms products and recent changes to it, and announces a few new updates.
InterSystems Supported Platforms Update Feb-2023
Welcome to the very first Supported Platforms Update! We often get questions about recent and upcoming changes to the list of platforms and frameworks that are supported by the InterSystems IRIS data platform. This update aims to share recent changes as well as our best current knowledge on upcoming changes, but predicting the future is tricky business and this shouldn’t be considered a committed roadmap.
We’re planning to publish this kind of update approximately every 3 months and then re-evaluate in a year. If you find this update useful, let us know! We’d also appreciate suggestions for how to make it better.
With that said, on to the update…
Where are the SQL Show History entries for each user stored?
InterSystems has corrected an issue that can cause InterSystems IRIS® and Caché to not take advantage of large pages for shared memory on Windows, even though these products report that large pages are allocated. This can have detrimental effects on system performance.
The issue results from a change in Windows 10 that requires modification of InterSystems IRIS® and Caché. Note that this issue also affects all InterSystems products that are based on InterSystems IRIS® or Caché.
Out of curiosity, I was looking in ^ROUTINE global to see how routines are stored internally.
I found out that lot of nodes are displaying "~pointer" as associated value (eg: instead of a string).
What are those pointers ? My guess is that it references some cache internal structure (eg: some nodes inside a B-Tree).
Is there a easily way to see what is behind ? Are pointers useful for user globals or is this something purely internal to Cache database ?
Have a iris.dat file that was zipped in axis but , now I unzipped it and can see the file in my c drive but when I go to iris management console to perform a new db to pull in the current iris.dat file , in the wizard I do not see the iris.dat file listed.
Need some help with getting it restore the Cache backup in my iris community edition.
thank you,
XData blocks in Caché classes has a MimeType property, and dcoumentation says
MimeType — The MIME type (more formally, the internet media type) of the contents of the XData block. The default is text/xml
But unfortunately I can't set any other values, such as text/html or application/javascript, because XData still expect only XML.
So, question is, for what reasons this property was appeared?
It would be very usefull to set in this property anything other then text/xml, and Studio would highlighted it as developer expected.
Hi,
Can anyone please help me how to use regular expression/wild character on a sql query for a pattern like C00.0 to C00.9, C01.0 to C01.9 and so on until C77.0 to C77.9 .
Thanks for your help
Thanks
Jude
I'm not sure why on some message you cannot edit/resend and change the inforatmation in the message
i.e.
Property property1As Messages.MesaageType1;
Property property2 As Messages.MesaageType2;
Property property3 As list Of Messages.MesaageType3;
All extend Extends (Ens.Request, %XML.Adaptor)
is there anything we are missing?
I would like to know how I can make a utility to retrieve all the names of properties of a class. Any idea?
Checked on Cache 2018.1.7 and IRIS 2022.2
write$zconvert"abc/def"Why isn't it "abc\/def" ?
Listen to CEO George James chat with Derek Robinson, host of the InterSystems DataPoints podcast talk about source control, developer tools and how our solutions are beneficial for InterSystems IRIS users.
In this short 17 minute episode, George and Derek discuss our work with developer tools, and how choosing the right source control can provide users with a seamless solution - which is why Deltanji is seen as the go-to source control for InterSystems IRIS users.
Listen now on the InterSystems website > https://bit.ly/3Jp5py5
or wherever you get your podcasts - just search for 'InterSystems DataPoints'.
Caché mirroring is a reliable, inexpensive, and easy to implement high availability and disaster recovery solution for Caché and Ensemble-based applications. Mirroring provides automatic failover under a broad range of planned and unplanned outage scenarios, with application recovery time typically limited to seconds. Logical data replication eliminates storage as a single point of failure and a source of data corruption. Upgrades can be executed with little or no downtime.
I need Caché 2012.1 to restore a backup for a customer to export the data to another sytem.
Anay URL for download?
In general Global Streams are data objects embedded in Classes / Tables.
Using and viewing them with SQL is normally a part of the access to the containing tables.
SO WHAT?
During debugging or searching for strange or unexpected behavior there could be the need to
get closer to the stored stream. No big problem with direct access to Globals with SMP or Terminal.
But with SQL you are lost.
So my tool provides dynamic access to Global Streams wherever you may need this
Special thanks to @Oliver Wilms for the inspiration for this tool.
Hi Community,
I am configuring new SSL Configuration for Gmail (For sending errors to gmail in ensemble production) by following the below steps.
Step1:
.png)
Step2:Giving the server address smtp.gmail.com
Step3:Giving the port number , I have tried giving 465,587,25 as port number still is not connecting
Can anyone please tell me where i am doing wrong on configuration?
Thanks,
Saroja.A
Hi All,
I want to run an SQL like below
Select ID,Rollno,Marks,Name,Section,Teacher from Marks left outer join Student on Marks.StudentID=Student.ID
Now, the Student.ID is having the encrypted value which is not matching with Marks.StudentID (as this is clear value).
I can get the clear value using encrypted value as follow
^StoreValue("EncryptStudentID",Student.ID)=$LB("123"). That 123 is the clear Student.ID which I need to match in SQL query (ON clause).
Now I Need to fetch the data from sql query matching both clear values.
Hi All,
I have a below query for which I need help.
I have a persistent class User.Cars.cls. The properties of this class is mapped through Global mapping with global (^CAR(Date,CarSerialno,Seq)).
Property CarNumber as %String (TRUNCATE=1) [SqlFieldName= CAR_Number];
Mapping of 5th Piece of ^CAR global to CarNumber property.
For e.g.^CAR(Date,CarSerialno,Seq)=1^2^3^4^BMW 4567^6^7
To increase the security we have encrypted the database. 5th Piece is also encrypted in global (New value after encryption: 'ASAD=4367' through some tool technique).
I have a system that is sending Line Breaks\Carriage Returns within the text of a field that is breaking the parsing of the message. Does anyone have a way to get around this?
here is what I receive...
ZPR|29|937952|UH|Physician Assistant - Certified|Primary Privileges: Physician Assistant|Care of simple fractures including extremity, rib and clavicle; including skeletal immobilization||
as EnsLib.HL7.Service.
Hi All,
I am currently using D $SYSTEM.SQL.Shell() command or management portal to retrieve the data from database. I just learned we can also run cache table sql queries in MS access. MS access already installed on my machine.
I need to ask how I can connect my database of USER or sample namespace in MS access to run these SQL queries.
Thanks in advance!!