Question Evgeny Shvarov · May 17, 2020 How to quickly obtain the number of records in a persistent class? Hi! Is there a method in a persistent class that can return the current number of records/persistent objects in it? #ObjectScript #SQL #InterSystems IRIS 2 15 1 1K
Question Evgeny Shvarov · May 17, 2020 How to open IRIS terminal with docker in a particular NAMESPACE Hi folks! When I start IRIS in docker every time I do the following: $ docker-compose up -d --build $ docker-compose exec iris iris session iris USER>zn "NAMESPACEINEED" Is it possible to have an open terminal command connect to a particular namespace? #Docker #Namespace #Terminal #InterSystems IRIS 1 2 0 439
Question Evgeny Shvarov · Mar 20, 2020 How to add a role to a web applicaiton programmatically? Hi developers! I have an existing CSP app and I want to add a role to it. How can I make it programmatically? #CSP #Deployment #ObjectScript #System Administration #InterSystems IRIS 1 4 0 461
Question Evgeny Shvarov · Dec 26, 2019 How to Make One Docker Container See The Web Service of Another One? Hi Developers! I stuck with one interesting problem. For example, let's use this template repo. If you build this container A using docker-compose and then run the container it exposes REST-API which is available on: localhost:52773/person/all The question is how to make this REST-API accessible from another docker container B running on the same machine? E.g. with IRIS 2019.4 Community from this repo? The problem is that for the second container localhost it's something which belongs to container B. I think I need to set up a network between containers somehow. E.g. using docker-compose. But is there any simpler way? #Containerization #Docker #REST API #InterSystems IRIS 0 2 0 324
Question Evgeny Shvarov · Sep 6, 2019 How to have 2 versions of dockerfile for one repository? Hi Developers!Suppose I have a project where I want to build an IRIS container with two different dockerfiles depending on goals. How can I make it?The issue is that docker-compose is looking for the file with name 'dockerfile'Are there any #IF constrations in a dockerfile syntax? Commenting works but sometimes it's more than one line. #Beginner #Containerization #Docker #InterSystems IRIS 1 2 0 298
Question Evgeny Shvarov · Aug 27, 2019 How to Export ObjectScript From IRIS Server With VSCode? Hi Developers!A question to those who use VSCode to code InterSystems ObjectScript.Suppose you have the ObjectScript code on IRIS server and you want to export it into the desired folder.And you have VSCode connected to the server.What is the way to tell VSCode that I want to export classes into some particular folder in /package/class.cls way?E.g. into: /project_folder/src/cls/Package/class.cls and project_folder is opened in VSCode as the folder of the project. #Change Management #ObjectScript #VSCode #InterSystems IRIS 1 8 0 1.1K
Question Evgeny Shvarov · Aug 3, 2019 Keyboard shortcuts for VSCode terminal and IRIS Hi developers!Every day coding with IRIS and docker I call the following 3 commands in VSCode terminal. Always the same for any projects: docker-compose build ; to build the container docker-compose up -d ; to run the IRIS in container docker-compose exec iris iris session iris ; to open the IRIS terminal Is there any way to map the key sequence which will type me the rest? e.g. #Development Environment #Docker #Terminal #VSCode #InterSystems IRIS 0 2 0 532
Question Evgeny Shvarov · Jul 23, 2019 What do You do With Your InterSystems IRIS Fork Repository if Your PR is accepted? Hi developers! Just want to check with you on best practices for that. You collaborate for InterSystems IRIS repository. You fork it, then make changes, commit, push, pull request, discuss(if any), your PR is accepted. What's next? Do you delete the repository you forked in? #Change Management #Git #ObjectScript #InterSystems IRIS 0 6 0 351
Question Evgeny Shvarov · Jul 23, 2019 Cannot Find Ensemble.INC Analog in InterSystems IRIS Hi guys!What is the IRIS analog for Ensemble.INC? #ObjectScript #Ensemble #InterSystems IRIS 0 4 0 371
Question Evgeny Shvarov · Jul 20, 2019 How to know the Port of IRIS Management Portal Programmatically Hi Community!How can I know the port of management portal e.g. from terminal?The one which looks like localhost:port/csp/sys/exp/%25CSP.Portal.Home.zen in browser? #Beginner #System Administration #Terminal #Caché #InterSystems IRIS 1 16 1 2.1K
Question Evgeny Shvarov · Jun 28, 2019 Getting The Value of The Property of Instance or Getting The Value for the Column of The Record Hi guys!As you know there are two (at least) ways to get the stored value of the property of InterSystems IRIS class if you know the ID of an instance (or a record).1. Get it by as a property of an instance with "Object access": ClassMethod GetPropertyForID(stId As %Integer) As %String { set obj=..%OpenId(stId) return obj.StringData } 2. Get it as a value of a column of the record with "SQL access": #Beginner #Data Model #Object Data Model #ObjectScript #SQL #Caché #InterSystems IRIS 0 18 0 1.2K
Question Evgeny Shvarov · May 5, 2019 How to Create SSL Configuration Programmatically? Hi Community!How do you create SSL Configuration for InterSystems IRIS programmatically? E.g. for installation or deployment case?E.g. if I need to create a very simple "default" SSL client configuration to let HTPPS Get requests to an arbitrary server? #Deployment #SSL #InterSystems IRIS 1 5 1 897
Question Evgeny Shvarov · Mar 8, 2019 How to enable IRIS Text Analytics programmatically? Hi Community!How can I enable IRIS Text Analytics (formerly known as iKnow) in a given Namespace programmatically? #Deployment #Namespace #InterSystems Natural Language Processing (NLP, iKnow) #InterSystems IRIS 0 4 0 780
Question Evgeny Shvarov · Mar 1, 2019 How to Setup InterSystems IRIS Container to Use OS-Level Authentication Programmatically Hi Community! When you run IRIS container out-of-the-box and connect to it via terminal e.g. with: docker-compose exec iris bash You see something like: root@7b19f545187b:/opt/app# irissession IRIS Node: 7b19f545187b, Instance: IRIS Username: *** Password: *** USER> And you enter login and password every time. How to programmatically setup docker-compose file to have IRIS container with OS authentication enabled? And have the following while entering the terminal: root@7b19f545187b:/opt/app# irissession IRIS Node: 7b19f545187b, Instance: IRIS USER> #Containerization #Terminal #InterSystems IRIS 0 3 0 481
Question Evgeny Shvarov · Feb 13, 2019 How to return JSON Array in SQL request for a List Property? Hi Community!Suppose I have a property in a ObjectScript class: Property values As list Of %String What an SQL query can help to return the values of the property as JSON array via SQL access (JDBC)? #JSON #SQL #Caché #InterSystems IRIS 0 12 1 1.1K
Question Evgeny Shvarov · Feb 12, 2019 How many namespaces and databases could be in one InterSystems IRIS installation? Hi Community!What's the limit for Namespaces and Databases for one InterSystems IRIS installation?Yes, I checked with documentation but cannot find it at once. #Databases #Namespace #Caché #InterSystems IRIS 0 1 0 317
Question Evgeny Shvarov · Nov 27, 2018 How do You Convert 8-bit Database to Unicode? Hi Community!Suppose you have a working system on 8-bit Caché database and need to transfer the solution to Unicode database.How do you manage that? #Databases #Deployment #System Administration #Tools #Caché 2 18 0 1.5K
Question Evgeny Shvarov · Nov 15, 2018 Async mirror server as server for analytics in the cloud Hi All!I asked previously about the DR server in the cloud but actually, I'm curious about the backup server to use as analytics server more than for recovery in DR case.There is a recommended practice to use an async mirror as a server for BI (InterSystems Analytics, DeepSee)The question is if I have PRIMARY in the cloud (AWS, Google, Azure, etc) "how far" should async mirror member be placed? Same cloud, same private cloud or it doesn't matter at all for analytics purposes? #Analytics #Backup #Mirroring #System Administration #InterSystems IRIS 0 3 0 374
Question Evgeny Shvarov · Nov 13, 2018 Disaster recovery server in a cloud Hi Community!Consider I have InterSystems IRIS server in a cloud and want to introduce a DR server for it.Are there any requirements for DR server for InterSystems IRIS if it is in a cloud?Should it be the same subnet? One private cloud?Can DR server be placed on another cloud, say Primary on Google Cloud and DR on Azure? Are there any caveats/concerns? #Cloud #Backup #InterSystems IRIS 0 3 0 430
Question Evgeny Shvarov · Sep 4, 2018 Do we need a new type of posts - Discussion? Hi, Community!Today we have Announcements, Articles, and Questions. But sometimes we want to raise a discussion on the topic which is not a question, but also this post is not an article.What do you think? #DC Feedback 0 1 0 283