Article Ashok Kumar · 23 hr ago 6m read IRIS %Status and Exceptions Part-2 In this article, exceptions are covered. Working with Exceptions Instead of returning a %Status response, you can raise and throw an Exception. You are then responsible for catching the exception and validating it. IRIS provides five main classes to handle exceptions effectively. Additionally, you can create custom exception class definition based on your needs. #Error Handling #Languages #Localization #ObjectScript #Python #SQL #HealthShare #InterSystems IRIS #InterSystems IRIS for Health 1 0 0 16
Article Ashok Kumar · Feb 7 4m read IRIS %Status and Exceptions You may encounter errors during any point of program execution, and there are several ways to raise and handle these exceptions. In this article, we'll explore how exceptions are handled efficiently in IRIS. One of the most commonly used return types is %Status, which is used by methods to indicate success or failure. Let's begin by discussing %Status values. Working with %Status #Error Handling #Health Connect #HealthShare #InterSystems IRIS #InterSystems IRIS for Health 2 0 0 14
Question Ashok Kumar · Feb 6 Track the global set location Hello Community, Is it possible to track or determine where the global variable was set (routine or class) in a form of like label+offset^routine? Regards, Ashok #Globals #InterSystems IRIS #InterSystems IRIS for Health 1 9 0 56
Question Ashok Kumar · Jan 8 <MAXSTRING>CompileRtns+295^%occRoutine in SQL execution I tried executing the SQL JSON_TABLE query with large JSON string(more than 200000 characters) and I got the below error. I'm curious about this under the hood workflow and how does it reach reaches MAXSTRING. #JSON #ObjectScript #SQL #InterSystems IRIS #InterSystems IRIS for Health 0 2 0 61
Question Ashok Kumar · Dec 16, 2024 Identify who terminated the process Hello Community, Is there any option or log is available to identify who killed/terminated the running process? Thanks! #InterSystems IRIS #InterSystems IRIS for Health 2 5 0 81
Question Ashok Kumar · Dec 12, 2024 Permanently Deletes all the commands shows inline recall History (:h[istory] ) Hello Community, Is there any way to permanently clear all the commands displayed in the line recall History. The :clear deletes all the commands in that particular process/recall buffer. Thanks! #Terminal #InterSystems IRIS #InterSystems IRIS for Health 1 4 1 61
Question Ashok Kumar · Dec 11, 2024 HTTP Message format from %Net.HttpRequest Hello Community, Is there any built in methods available to generate the both HTTP message format(request/response) from %Net.HttpRequest and it's response. Thanks! #API #Key Question #REST API #Caché #Ensemble #InterSystems IRIS #InterSystems IRIS for Health 0 9 0 137
Question Ashok Kumar · Nov 6, 2024 Stream Compression Not Applied to Some Text Hello Community, I have a stream property which uses %Stream.GlobalCharacter and I set some dummy texts like "a1a2a3a4a5a6a7...."(more than 1024 characters) in to that stream and the stream values are not compressed. However, The streams are compressed If I use the Lorem ipsum is a dummy or placeholder text or other text "This is part four of a long memo." which length is greater than 1024 #InterSystems IRIS #InterSystems IRIS for Health 1 3 0 64
Question Ashok Kumar · Oct 16, 2024 File generation issues while using $ZF(-100 asynchronously Hello Community, We use $ZF(-1 synchronous call to generate the pdf files. Now I want to change to asynchronously. So, I use $ZF(-100 with "/ASYNC" function. I use "/ASYNC" directly write $ZF(-100,"/ASYNC","notepad.exe") in windows/linux it throws the <NOTOPEN> error, However If I use $ZF(-100,"/ASYNC /SHELL","notepad.exe") it opens the notepad without issues. #InterSystems IRIS for Health 0 0 0 53
Article Ashok Kumar · Sep 13, 2024 7m read Embedded python in InterSystems IRIS Part-2 In the previous article. Practices of class members and their execution within embedded Python. We will now turn our attention to the process of switching namespaces, accessing global variables , traversing and routine executions within embedded Python. #Embedded Python #ObjectScript #Python #InterSystems IRIS #InterSystems IRIS for Health 5 6 0 233
Article Ashok Kumar · Sep 12, 2024 7m read Embedded python in InterSystems IRIS Hello Community, In this article, I will outline and illustrate the process of implementing ObjectScript within embedded Python. This discussion will also reference other articles related to embedded Python, as well as address questions that have been beneficial to my learning journey. As you may know, the integration of Python features within IRIS has been possible for quite some time. This article will focus on how to seamlessly incorporate ObjectScript with embedded Python. #Embedded Python #ObjectScript #Python #InterSystems IRIS #InterSystems IRIS for Health 4 1 1 241
Article Ashok Kumar · Sep 2, 2024 4m read IRIS Native Python Part-2 In the preceding section, we explored the installation process and initiated the writing of the IRIS in native Python. We will now proceed to examine global traversal and engage with IRIS class objects. get: this function is used to get values from the traversal node. #ObjectScript #Python #InterSystems IRIS #InterSystems IRIS for Health 3 0 1 162
Article Ashok Kumar · Sep 2, 2024 2m read configuration of Flexible Python Runtime Feature in IRIS 2024.2 Hello Community, This article aims to walk you through the process of setting up and utilizing the Flexible Python Runtime Feature for embedded Python. Prior to version 2024.2, Intersystems IRIS installer included a preinstalled version of Python, You can find the Python libraries and application files located in the \lib\python directory within your IRIS installation folder (for example, C:\InterSystems\IRIS20242\lib\python). #Embedded Python #InterSystems IRIS for Health 2 5 0 212
Question Ashok Kumar · Sep 2, 2024 <PROTECT> *Function not allowed in IRIS Native python Hello Community, I got the PROTECT error while running functions. But, I could able to call the classmethods and methods in class definition with classMethodObject, classMethodValue etc.. from python. without any errorspython code #Embedded Python #Python #InterSystems IRIS for Health 1 0 0 105
Article Ashok Kumar · Aug 30, 2024 3m read IRIS Native Python Hello Community #Python #InterSystems IRIS #InterSystems IRIS for Health 6 0 3 247
Question Ashok Kumar · Aug 28, 2024 PIP install iris to use in python source file Hello community, How to install the iris package installer for Python (pip) in python and import iris package in python source code. import iris class Solution(): iris.connection() thanks! #Embedded Python #Key Question #ObjectScript #ODBC #Python #InterSystems IRIS for Health 1 13 0 270
Question Ashok Kumar · Aug 4, 2024 Convert IRIS DynamicArray to Python list Hello Community, How to convert the IRIS %DynamicArray into python list. I got " <THROW>TestDyncArray+1^MyLearn.Pyth.NewClass1.1 *%Exception.PythonException <PYTHON EXCEPTION> 246 <class 'AttributeError'>: <unknown exception data>" error when passing array values to python class. #Python #InterSystems IRIS for Health 0 3 0 144
Question Ashok Kumar · Jul 20, 2024 Index Build uses SetMapSelectability Hello Community, #Databases #Indexing #Performance #SQL #InterSystems IRIS for Health 0 3 0 92
Question Ashok Kumar · Jul 14, 2024 Additional Cached Query generation while execution Hello Community, I've seen two cached queries are generated while executing a query. So, Why the additional query is generated and what is the use of it. #SQL #InterSystems IRIS #InterSystems IRIS for Health 0 3 0 85
Question Ashok Kumar · Jul 13, 2024 FHIR SQL Builder Access Issues Hello Community, I'm unable see the FHIR SQL builder /csp/fhirsql and /csp/fhirsql/api/ui endpoints in web application to access the FHIR SQL builder. I'm using community edition 2024.1 and it contains the "FHIR SQL Builder". #FHIR #REST API #SQL #HealthShare #InterSystems IRIS for Health #Health Connect 0 8 0 141