Oliver Wilms · May 22, 2020 go to post

Hello Paul,

I like to work on this problem. In preparation, I found a zen page in Samples namespace and added a file upload control. I define a CSP page to go to on submit. How do I attach a file to a CSP page? Then you want to manipulate the file when received by CSP page. Does the user see the attached file on the CSP page?  Our team has a CSP page that receives an incoming file and then it is passed along to a business service in HealthConnect production. Where do you want the modified file to go?

Oliver Wilms · May 28, 2020 go to post

Thanks for the suggestion. However I am afraid this is also not an approved tool in my work environment.

Oliver Wilms · May 28, 2020 go to post

Thanks for the suggestion. However I am afraid this is also not an approved tool in my work environment.

Oliver Wilms · May 28, 2020 go to post

Alex,

I looked at MX. I added one connection in the Configuration. I am not exactly sure what to do with this tool. However it sure looks interesting, I am working on a dashboard page where I want to frequently read the status of monitored components from an Excel spreadsheet. I think I should be able to collect the data from another file format.

Thanks

Oliver Wilms · May 28, 2020 go to post

Robert,

I added a DSN for an Excel Workbook ODBC 32-bit was my only option on my laptop. When I go to SQL Gateway Connection, I see other DSN but not my Excel DSN. Maybe I will try %Activate next

Oliver Wilms · May 28, 2020 go to post

Alex,

I installed MX on my personal desktop. I configured one connection to IRIS. I run mx.xlsb. I can click on "my connection" and I see four options. I cannot click Design button. Other buttons can be clicked and then I get errors. I am confused.

Thanks,

Oliver

Oliver Wilms · May 28, 2020 go to post

So I also tried Activate Wizard. Found it in my HealthShare but not in IRIS CE. Once in Activate Wizard, I do not see Excel.

Oliver Wilms · May 30, 2020 go to post

Alex,

I loaded the VMX programs in a different namespace. I see the picture when I run mx.xlsb. I read your instructions:

After opening first sheet, click button  []   ##class(SYS.Stats.Dashboard).Sample()

Then press button [design-mode]   (top of screen ).

I cannot tell what button to press first and the design button is not clickable.

Oliver Wilms · Jun 3, 2020 go to post

I like to export my project at certain times and later use winmerge to compare and see what has changed. I think to create a utility to automate the fiddle the xml files to compare like neutralizing creation time and compile time. Maybe remove storage from xml when possibly moving code from iris to cache. I just need to find the correct open to be able to read from the beginning of a file. I get error an end of stream error when I try to read from file.

Oliver Wilms · Jun 3, 2020 go to post

Good morning Eduard,

What are DM or AM instances?

Do you know if %Installer can setup ECP connection to a data server and also define a remote database to the same data server in code? By the way, the remote database is a mirror database.

Thanks,

Oliver

Oliver Wilms · Jun 3, 2020 go to post

Eduard,

Can you please provide a hint what class to look at for ECP setup to connect to a data server?

Thanks,

Oliver

Oliver Wilms · Jun 4, 2020 go to post

Good morning Eduard,

I have looked at class documentations. Config.* classes are persistant, but I did not see the data server in there. I would use the classes to edit iris.cpf? I think I should check for this before starting the application IRIS container. I will look more into this soon.

Oliver Wilms · Jun 4, 2020 go to post

This post is not really about the monitoring metrics, it is about trying to achieve certain look on the front end display.

Oliver Wilms · Jun 5, 2020 go to post

Conor,

I agree that each persistent instance needs to have unique ISC_DATA_DIRECTORY. Like you said, they maybe subdirectories under the same directory like /data/data_instA and /data/data_instB, etc.

If I want to deploy the same code in two or more containers, our application has file path for File Services. If I get access to ISC_DATA_DIRECTORY such as /data/data_instA or /data/data_instB, I can configure unique file path for each container. Otherwise, if more than one instance has File Service watching the same directory, they may conflict when processing and then moving the file. This can be avoided by having unique file path per container OR unique file spec so two containers do not try to access the same file.

I just searched and found $system.Util.GetEnviron(). I will test if this gives me ISC_DATA_DIRECTORY when container is starting or running.

Oliver Wilms · Jun 5, 2020 go to post

I just tested write $System.Util.GetEnviron("ISC_DATA_DIRECTORY") and it returned the ISC_DATA_DIRECTORY of the persistent instance.

Currently our application gets file path for file services and operations from System Default Settings. What is a good way to update the System Default Settings based on $System.Util.GetEnviron("ISC_DATA_DIRECTORY")? 

Oliver Wilms · Jun 5, 2020 go to post

Class Ens.Config.DefaultSettings Extends (%Persistent, %XML.Adaptor). So it is fairly easy to write a class method to update the Default Settings based on Environment var ISC_DATA_DIRECTORY. Next question is, when to call this class method. On Container start? How does this work? On Production start might work but it really only needs to run once. I guess I could check if it already ran, and do not go through all settings each time production starts. If you read this, thanks for your attention and have a good weekend

Oliver Wilms · Jun 5, 2020 go to post

I have uploaded part of the block diagram our boss likes a lot because he can see messages flow (arrows), message types (lines), and points of contact (on the right) on one page. The green check marks indicate everything is okay. If something goes wrong, the numbers refer to the points of contact on the right so support knows who to contact. I envision there will be drill down to more details. I do not want to represent the diagram pixel by pixel, but I look for ways to draw lines and arrows.

Oliver Wilms · Jun 11, 2020 go to post

Hello,

I created a new role in my Installer class. How can I add the new role to Unknown User in Installer class?

Thanks,

Oliver

Oliver Wilms · Jun 12, 2020 go to post

Set user = "UnknownUser"
Set role = "Services_Role"
Set tSC = ##class(Security.Users).AddRoles(user,role)
 

Oliver Wilms · Jun 12, 2020 go to post

Good morning Vic,

Yes, we want to be able to have multiple productions in containers pulling files from one location. I do not want to use different FileSpecs, because if one container goes away because of scaling down or error, I want the remaining container to continue processing.

I agree that work path helps, because when one container processes the file, it is moved to work path, and not visible to others monitoring the file path.

When we tested the file lock option with two containers processing 56 files, it appeared to avoid collisions. The other option appears to be more complex especially with variable number of containers. 

Oliver Wilms · Jun 12, 2020 go to post

Hello,

I hesitate to use any libraries as I work for Department of Veterans Affairs and they are very picky what is allowed. I see that Ens Portal Production Configuration has dot indicators for status green is okay or red is error and it also draws lines between connected components.

It is SVG. I was able to draw rectangles, circles, and lines. The code creates rect elements for boxes and text elements for text. My question is how can I force text to wrap and stay inside a rectangle?

Oliver Wilms · Jun 29, 2020 go to post

To force text to stay inside the width of a rectangle, use this:

text-anchor="start" textLength="#(wbw-1)#lengthAdjust="spacingAndGlyphs" 

Oliver Wilms · Aug 20, 2020 go to post

Good morning Vic,

I had not filled in the Message Bank Link, but it was prefilled already. However, when I try to click on Go button, it links to:

http://aa.bbb.ccc.ddd:52773/csp/dmlss_db/Ens.Enterprise.Portal.MonitorStatus.zen
 

The correct link on the Message Bank server is:

http://aa.bbb.ccc.ddd:52773/csp/healthshare/dmlss_db/Ens.Enterprise.Portal.MonitorStatus.zen?$NAMESPACE=DMLSS_DB&$NAMESPACE=DMLSS_DB&

The URL on the server is /csp/healthshare/dmlss_db instead of /csp/dmlss_db

Is this the reason why the Message Bank does not receive any messages?

I created a new web application /csp/dmlss_db on the Message Bank server. The Go button now works from Configure Message Bank Link. However, still nothing going into the Message Bank.

Oliver Wilms · Jul 29, 2020 go to post

I had overlooked when I configured Message Bank operation its name must be the Message Bank operation class name.

I have eight IRIS instances running in containers on four EC2 instances. I encounter some connection issues at the moment.

Oliver Wilms · Jul 29, 2020 go to post

Connection did not work because I had incorrect IP in settings. Now it works.

Oliver Wilms · Aug 18, 2020 go to post

I was able to define ECP connection in Installer class that I run when I build docker image for my Docker IRIS application. Now I start to use Amazon ECS and Autoscaling. When a new instance is created and it runs the IRIS container, I want it to "register" as an Application server on the remote database server. What code can I execute to add an ip address as an Application Server?

Oliver Wilms · Oct 9, 2020 go to post

Hello,

The Feeder app uses %UnitTest.TestProduction class to run a test (TestControl)  that has intention to test another production via test messages being sent from File Passthrough Service to CSP Operation. I feel it should qualify for Unit Test bonus. Please reconsider. Reading your comments here, I see you do not encourage using legacy CSP approach. What is suggested to replace CSP? Is it Angular front end? Do you have tutorial for using Angular? Does it offer native API use in Angular?