All time
Question
· Apr 15, 2018
Indexes in Cache Objects

Hi-

I have the following objects

Class A

Property P1 As B

Property P2 As %String

Property P3 As %String

Class B

Property P1 As %String

Can I create an index in Class A based on P1.P1. Basically I want an index of class A by property P1 in class B

I tried creating the following but got a compile error

Index I1 On P1.P1

Thanks

0 2
0 564
InterSystems Developer Community is a community of 25,522 amazing developers
We're a place where InterSystems IRIS programmers learn and share, stay up-to-date, grow together and have fun!

Hi, Community!

We have a new release here!

What has been introduced:

1. Better notifications

With this release I hope you will turn on back the email notifications because every new notification today in the beginning of itself will tell first, why did you get it describing the exact reason you got this particular notification. And if you don't want this type of notification to be delivered anymore click unsubscribe link in the notification and it will lead to the settings of this very type to alter.

1 6
0 446

Currently, namespace Alpha is configured to use database AlphaDB as its global database. How would we go about having namespace Alpha configured to use database AlphaDB for its global database except where global ^Customers(CustomerId) has a CustomerId greater than 10M, which we would like to have it redirected to database BetaDB.

In other words, ^|"AlphaDB"|Customers contains all customers between 1 and 10,000,000; and ^|"BetaDB"|Customers contains all customers greater than 10,000,000. Any help would be appreciated.

0 4
0 562

InterSystems FAQ rubric

Using the Config.Configuration class and SYS.Database class methods, you can create and register a namespace database from the terminal.

Below is a series of execution examples that create database file /CacheDB/AAA/cache.dat and register database AAA and namespace AAA in the configuration file (cache.cpf).
* Execute in the %SYS namespace. *

* Make sure that this script runs as the user that is used for all IRIS processes to ensure that the directory has appropriate ownership and permissions *

4 3
0 505
Question
· Mar 13, 2023
IRIS Production - What it is?

Hi,

In some of the trakCare screens there is term "Production" shown [Interoperability->Production Configuration]
What is a production?

The production I'm looking at, is related to a Gateway.

What is a definition of a Gateway? How is this different to an Interface?

Under Gateway Production, there are "Services", "Processes", "Operations".

How are these defined to be?

I have 3 services, each with a green dot.

I have 3 processes , each with a green dot.

I have 5 operations, 4 of which has a green dot and one red dot.

1 7
0 558

Hi Developers,

We're super excited to share with you the new awesome functionality of the Online Analytics Dashboard for every Community member 🔥

From now on, you can see your own detailed statistics for the current week, month, and all time, including:

  • number of views, likes, comments, followers
  • timeline graphics of views, likes, actions with your posts, comments
  • a table containing info about views, comments, and likes for your every post

      11 1
      0 545
      Question
      · Nov 5, 2021
      ERROR #9406

      I'm trying to send a POST request to my REST API and I'm getting this error and most likely due the lack of experience, I have no idea how to fix this issue:

      "error": "ERROR #9406: Unexpected format for value of field, AlertText, using class base mapping",

      "id": "JSONImportError",

      "params": [

      "AlertText",

      "class base"

      ]

      Am I missing something from my string definition?

      Defined below as:

      0 4
      0 561

      I've created a scheduled task that dumps HL7 messages to flat files. It uses the OutputToLibraryStream() method of EnsLib.HL7.Message. I'd like to be able to run it on a mirror member host whether it's primary or backup.

      When run against a database that's mounted read-only, it works fine. However, when I attempt to run it against a mirror backup database, I get the following error:

      #5002: Cache error: <PROTECT>%LoadData+7^EnsLib.HL7.Message.1

      Tracing that back to the source, I find:

      0 9
      0 556

      Hi all,

      Do you know if there is a way to create a Lock that is related to an existing transaction, in the sense that if transaction is finished (commit or rollback) Lock is removed. I ask this because in the following example Lock is there until process is killed.

      Example :

      TSTART

      Lock +^MyLock

      TROLLBACK

      I know, that, Caché itself is locking internally a table register when doing an OpenId with exclusive flag during the transaction life. For example :

      TSTART

      0 4
      0 561
      Question
      · Mar 4, 2017
      Calculated Fields
      1. How can I create a calculated field to give the previous date. For example, I need to create a pivot table that shows total payments posted for the prior day.

      2. How to create a calculated field to show average daily collections divided by the number of the days passed in a month. So, for today, it would be the average daily collections divided by 4days.

      Thanks!

      0 3
      0 562

      Hi

      I have been experimenting with the creation of a set of REST services for an app. The basic GET operation is set to create a %ZEN.proxyObject instance, and then set an instance of a Persistant class as a property, which gives me all of the values I want to return. However, it also gives me some values that I don't want to return over REST (because they are both private, and large registered objects which will bog down performance)

      2 3
      0 562
      InterSystems Official
      · Jan 27, 2016 1m read
      OpenSSL 1.0.2

      At the end of this year support for OpenSSL 1.0.1 will end. InterSystems has started the process to move to OpenSSL 1.0.2 and use the 1/28/2016 release (1.0.2f) for verification and product inclusion. I will update this post once InterSystems decided which versions will receive support for OpenSSL 1.0.2.

      0 1
      0 545

      As we keep updating our software, we often realize that we require more and more modern solutions. So far, only one major piece of our software relies on reading barcodes in documents and images. Since Cache did not have a means of reading barcodes in the past, we have always achieved our goals by using a Visual Basic 6 application. However, it is no longer an ideal solution because it is currently complicated to maintain it. IRIS also lacks this capability, but it has recently got an option that makes up for it: embedded Python!

      9 2
      1 524
      Article
      · Oct 17, 2024 2m read
      ORU to MDM with large HL7 v2 messages.

      I was working on a DTL but kept getting ERROR #5002... MAXSTRING errors. The problem was that most of the DTL GUI action steps only support the string data type when working with the segments. A %String has a limit of 3,641,144 characters and my OBX5.1 was 5,242,952 characters long as the example provided. Of course PACS admin stated ultra high quality up to and including 4K resolution files were needed, so we could not get the vendor to compress or reformat these files to compressed jpg or something similar.

      3 7
      1 424
      Article
      · Mar 29, 2023 1m read
      Named Parameter In SQL with Python

      Quick Tips: Total Productive Maintenance

      Named parameters can be achieved with SQLAlchemy :

      from sqlalchemy import create_engine, text,types,engine
      
      _engine = create_engine('iris+emb:///')
      
      with _engine.connect() as conn:
          rs = conn.execute(text("select :some_private_name"), {"some_private_name": 1})
          print(rs.all())
      

      or with native api

      from sqlalchemy import create_engine, text,types,engine
      
      # set URL for SQLAlchemy
      url = engine.url.URL.create('iris', username='SuperUser', password='SYS', host='localhost', port=33782, database='FHIRSERVER')
      
      _engine = create_engine(url)
      
      with _engine.connect() as conn:
          rs = conn.execute(text("select :some_private_name"), {"some_private_name": 1})
          print(rs.all())
      

      6 0
      0 564

      Does anyone have experience with CircleCI or really any automation tool using %UnitTest?

      I have built my app and ran my unit test in a Docker container automated by CircleCI. However, after many of the tests failed I see:

      How do you halt out of the IRIS session and return an exit code to the shell?

      I have a script in my repo that I pass into IRIS after CircleCI does the code checkout

      iris session IRIS < inFile

      0 8
      0 556

      GA releases are now available for the first version (v1.0) of InterSystems System Alerting and Monitoring (InterSystems SAM for short)

      InterSystems SAM v1.0 provides a modern monitoring solution for InterSystems IRIS based products. It allows high-level views of clusters and single-node drilled down metrics-visualization together with alerts notifications. This first version provides visualization for more than one hundred InterSystems IRIS kernel metrics, and users can extend the default-supplied Grafana template to their liking.

      5 2
      0 524
      Question
      · Aug 15, 2019
      Error on Trakcare Report

      Hi,

      I am trying to create a new report on Trakcare. I created a class file and corresponding crystal report . It works fine and data is populating when I try to run on crystal environment. But when I make a setup on Trakcare and click on print option, I am getting an error on print history " VB error in tkCrystalJob] Error number[-2147417848] Method '~' of object '~' failed [at line 421]". If I click on print preview option its going to empty browser. Inorder to setup new report, already made set up on report manager and menu manager.

      0 1
      0 563

      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.

      0 2
      0 562

      Hey Developers!

      Do you want to reap the benefits of the advances in the fields of artificial intelligence and machine learning? With InterSystems IRIS and the Machine Learning (ML) Toolkit it’s easier than ever.

      Join InterSystems Sales Engineers, @Sergey Lukyanchikov and @Eduard Lebedyuk, for the Machine Learning Toolkit for InterSystems IRIS webinar on Tuesday, April 23rd at 11 a.m. EDT to find out how InterSystems IRIS can be used as both a standalone development platform and an orchestration tool for predictive modelling that helps stitch together Python and other external tools.

      3 1
      0 544