Question Evgeny Shvarov · Oct 20, 2022 How Can I Call %SYSTEM class methods from Embedded Python? Hi, devs! What's the way to call the methods of %SYSTEM class from python? I tried this way: print(iris.cls('_SYSTEM.OBJ').Version()) and getting an error: Traceback (most recent call last): File "<input>", line 1, in <module> RuntimeError: iris.class: error finding class Here is how it works in ObjectScript: #Embedded Python #InterSystems IRIS 0 4 0 259
Question Evgeny Shvarov · Oct 8, 2022 How to Print Out an Arbitrary Global via Embedded Python ? Hi, devs! Consider you have an arbitrary global with an unknown amount of indexes. How to print all the values to the terminal with Embedded Python? #Embedded Python #Globals #ObjectScript #InterSystems IRIS 0 3 0 213
Question Evgeny Shvarov · Oct 8, 2022 How to Debug Embedded Python? Folks! Could you please share any best practices on how to debug Embedded Python code? Given I have the following class method: #Debugging #Embedded Python #InterSystems IRIS #VSCode 0 5 0 650
Question Evgeny Shvarov · Oct 6, 2022 What is the Analog of $DATA for Embedded Python? Hi folks! I'm working with a global via Embedded Python as a class method. I init the handler for a global via: gl=iris.gref("^Global") What is the way to check the value at index ^Global("x","y")? E.g.: In ObjectScript I'd do the following: #Embedded Python #Globals #ObjectScript #InterSystems IRIS 2 4 0 217
Question Evgeny Shvarov · Oct 2, 2022 Are there auto-generated getter methods for class parameters in ObjectScript? Hi, ObjectScript experts! I know that there are auto-generated getter and setter methods for class properties in ObjectScript. Are there auto-generated getter methods for class parameters? #ObjectScript #InterSystems IRIS 0 7 0 177
Question Evgeny Shvarov · Oct 2, 2022 How to Refer to a Class Parameter in Embedded Python? Hi, devs! In ObjectScript I can refer to a class parameter as: write ..#ParameterName How do I do the same in Embedded Python? #Embedded Python #Key Question #ObjectScript #InterSystems IRIS 1 11 1 445
Question Evgeny Shvarov · Oct 2, 2022 How to refer to a Classmethod of the same Class using Embedded Python? Hi folks! How can I refer to a classmethod of the same class while coding another classmethod with Embedded python? I know that I can call it with iris.cls(classname).MethodName(), but it's more cumbersome even comparing with ObjectScript, where I can call ..MethodName(). Compare ObjectScript: do ..SetupGame() and the same call in EmbeddedPython: iris.cls('eshvarov.sample.SeaBattle.GamePython').SetupGame() Thoughts? #Embedded Python #ObjectScript #Python #InterSystems IRIS 0 6 0 254
Question Evgeny Shvarov · Sep 10, 2022 How to Export Interoperability Production Components to Source Control Folder Programmatically? Hi folks! Suppose I have a production in which I added a few components and I want to export its components into files for source control. How do I do that? I know that there is an option for manual export in VSCode. But how can I make it programmatically? Thanks! #Development Environment #Git #Interoperability #InterSystems IRIS 0 3 1 281
Question Evgeny Shvarov · May 24, 2022 What are the Available Images at containers.intersystems.com Hi developers! What is the easy way to know what are the images available at containers.intersystems.com? #Docker #InterSystems IRIS 0 3 1 289
Question Evgeny Shvarov · Feb 18, 2022 If $ListBuild is Supported in Embedded Python? Hi! Trying to create a string with $LB using Embedded Python. Don't see the way to do it. If Embedded Python supports list builds? #Embedded Python #InterSystems IRIS 0 4 0 355
Question Evgeny Shvarov · Jan 31, 2022 Getting SQL Table Name For a Given Class Hi folks! Consider I have a class "X.Y.Z" What is the SQL table name for it? How can I obtain it via ObjectScript? A quick search doesn't show any methods and properties. Documentation is a bit "wrong" here saying that the SQL table name is the same. It will be at least 'x_y.z'. Any help is very appreciated!) #ObjectScript #SQL #InterSystems IRIS 0 9 0 661
Question Evgeny Shvarov · Dec 22, 2021 Is There a Handy way to Open a Related Class For a Table? Hi folks! While browsing tables in Management Portal is there an easy way to open a related class (e.g. to see its documentation)? There is a Documentation dropdown but the Class Documentation button is disabled. Thanks! #Management Portal #Documentation #InterSystems IRIS 0 2 0 214
Question Evgeny Shvarov · Dec 10, 2021 Is it possible to change the code of a class programmatically? Hi folks! I'm curious if it is possible to change the class method to another class? I call a method of a system class to generate another class. But there is a bug/feature in a library class, so I need to tweak a bit the generated method, e.g. add additional parameter and change the line to "if" the parameter. I hope to do this programmatically after class generation and change the code in a way I like. What are the options? #ObjectScript #InterSystems IRIS 2 7 2 409
Question Evgeny Shvarov · Nov 10, 2021 Is there a way to turn on DEBUG MODE for a web application? Ladies and gentlemen! Is there a way (some secret call? ) to turn on a debug mode for a particular IRIS web app? The reason is to log debug information in REST-API dispatch methods if the app is in debug mode. Of course, I could use "a global", but if there is any standard way? #Debugging #REST API #InterSystems IRIS 1 2 0 313
Question Evgeny Shvarov · Nov 10, 2021 How to Implement Bearer Authentication with InterSystems IRIS REST API? Hi folks! Could you please share your experience on how do you create REST API with InterSystems IRIS that uses bearer authentication? How do you generate tokens? How do you maintain it (how much time tokens exist?). Thanks in advance! #Authentication #REST API #InterSystems IRIS 0 4 1 500
Question Evgeny Shvarov · Nov 9, 2021 How Can One Logout From REST API Hi folks! Consider you are logged in to a REST API in InterSystems IRIS with user A. What is the way to log out in a browser? E.g. to login with another user B? #REST API #InterSystems IRIS 0 4 0 241
Question Evgeny Shvarov · Aug 8, 2021 How can I get the name of the data database in the current namespace? Hi folks! Is there a way (function) to know the name of the database for data of the current namespace? I take the case where we have one database for data and another database for code in a namespace. Thanks! #Databases #Namespace #ObjectScript #InterSystems IRIS 0 4 0 480
Question Evgeny Shvarov · Jul 27, 2021 How to Turn Off Journalling Programmatically I need to turn off Journalling for a particular database programmatically. How can I make it happen? #Journaling #InterSystems IRIS 2 12 0 583
Question Evgeny Shvarov · Jun 10, 2021 Is it possible to grant sql access to schema? Hi folks! Here is how I grant SQL access of user to a particular class/table: GRANT SELECT, UPDATE ON Packacge_X.Table_Y TO UserZ How can I grant SQL access of a certain user to a whole schema? #Security #SQL #InterSystems IRIS 1 3 0 311
Question Evgeny Shvarov · Jun 8, 2021 Is there a way to export globals in XML via Management Portal? Hi colleagues! Is there a way to export globals in XML if I have the access to Management Portal or any other web app? Currently, it gives the option to export into gof format only. #Data Import and Export #Globals #Management Portal #InterSystems IRIS 0 5 0 330