InterSystems IRIS BI User Portal Artifacts into Container Classes
The InterSystems IRIS has a very nice container class to allows you have your Dashboards as classes source code. It is %DeepSee.UserLibrary.Container.
With this class is possible group all your dashboard and pivot table definitions.
This is useful to automatically create your dashboards when you build your docker project and other automation scenarios.
See:
So, you create your dashboards and pivot tables, connect to your instance using VSCode, go to other and get your dashboard and pivot definitions. Finally paste these definitions in your container class. Easy!
See:
This sample can be found in this the Open Exchange link.
Comments
My next step!
In fact this class is maybe good for deployment, but not that perfect for source-control.
You have ALL your DFI in the repo in one file. So when you have changes or will want to make changes you need to deal with this container class.
You can export DFI as files (using isc.dev) and import it then with %SYSTEM.OBJ.ImportDir or ZPM.
How to export DFI using isc.dev.
First you setup the folder you export it into:
do ##class(dev.code).workdir("/irisdev/app/src")Then when you need to export changes call in the terminal:
d ##class(dev.code).export("*.DFI")
I agree, if you have many dashboards isc dev is good.
I liked the container class, because I like to have all the work into classes, including the dashboards.
And you have the option to have one class by a dashboard, to have more control.
