Article David Hockenbroch · 22 hr ago 3m read Making A Variable Watch Itself I came up with a challenge for myself to come up with a way to make a variable watch itself for a certain value and do something when it hits that value without having to check it every time something touches it. Basically, a way to say "if at any point during the execution of this code, if x = 0 (or whatever the condition is) do this thing." The class I ended up with watches a %Status: #Code Snippet #Error Handling #ObjectScript #Tips & Tricks #InterSystems IRIS 0 0 0 28
Article David Hockenbroch · Apr 2 9m read Emailing with Office 365 and ObjectScript One of the most common kinds of integration we are asked to do is emailing. One of the most typical email services our customers use is Microsoft’s Office 365. After setting up the right configuration on the Microsoft side, we can email from IRIS with two HTTP requests. #API #Authentication #Code Snippet #JSON #OAuth2 #ObjectScript #REST API #InterSystems IRIS 9 6 5 299
Article David Hockenbroch · Feb 19 7m read Reserving a License “I have been waiting for thirty seconds for service. This is outrageous! #Access control #Authentication #ObjectScript #Security #System Administration #Tips & Tricks #InterSystems IRIS 4 0 0 319
Article David Hockenbroch · Jan 24 7m read Securing xDBC Connections with ServerInitCode The ideal number of table permissions to assign for your users is zero. Permissions should be granted upon sign-in based on the application used for access. For web applications, we have a simple way of doing this by appointing application roles, matching roles, and required resources in the System Management Portal. ODBC and JDBC connections present a different problem, however, especially when third-party applications are involved. As providers of an ERP system, our customers often wish to be able to employ various software packages to integrate with or report on their data. Many of these programs are capable of running any kind of query. Yet, letting them do that can be devastating to a customer’s data. #Access control #Code Snippet #JDBC #ODBC #Security #System Administration #InterSystems IRIS 3 0 2 190
Article David Hockenbroch · Jan 4 22m read The Security Package - REST API Considerations So far, we have covered how to use ObjectScript to manage users, roles, resources, and applications. There are a few other classes in this package that work similarly to the ones mentioned above. However, these four classes are the ones everyone will have to use to manage their application security. #Access control #API #ObjectScript #REST API #Security #InterSystems IRIS 5 2 3 305
Article David Hockenbroch · Nov 2, 2023 9m read The Security Package - Managing Applications Programatically Here in %SYS, we have already examined users, resources, and roles. Now that we know how to set all of that up, we should give it a purpose. Next we will talk about applications! As you may expect, we will see various identical class methods defined here that we have seen in the previous classes. However, some of them will have some tiny yet significant differences. #Access control #Authentication #ObjectScript #System Administration #InterSystems IRIS 5 1 2 302
Article David Hockenbroch · Oct 4, 2023 8m read The Security Package - Managing Roles Programmatically We are back to %SYS once again! Since we covered managing users and resources in the last two articles, we can finally move on to roles. As you may have guessed, there are a lot of methods of managing them that you have already seen in our previous writings. #Security #System Administration #Tips & Tricks #InterSystems IRIS 4 3 4 419
Article David Hockenbroch · Sep 27, 2023 7m read The Security Package - Managing Resources Programmatically Welcome back to %SYS! If you read the first article in this series, you must have already seen how to manage your users through the Security.Users class programmatically. Today, we will move on to Resources! Many of the classes in this package use a very similar set of methods. #InterSystems IRIS 4 0 1 242
Article David Hockenbroch · Sep 14, 2023 9m read The Security Package - Editing Users Programmatically Have you ever thought of creating your own systems for editing users or, perhaps, even an API that you can call? #Access control #Authentication #Coding Guidelines #Security #System Administration #InterSystems IRIS 4 1 3 335
Article David Hockenbroch · Jun 2, 2023 5m read InterSystems Reports Migration - Generate Report to Stream We are looking at what we need to do to migrate from our current usage of Zen reports to InterSystems Reports. One of the hurdles for us is figuring out ways to interact with InterSystems reports programmatically from ObjectScript routines. There is a Java API for it, but it is possible to generate a report from InterSystems reports to a stream object in ObjectScript without diving into Java by using a %Net.HttpRequest. Here is a code example, followed by an explanation: #InterSystems Reports #ObjectScript #Tips & Tricks #Caché #InterSystems IRIS 1 0 0 131
Article David Hockenbroch · Nov 12, 2021 7m read Basic Automation: The IRIS/Cache Task Manager Pouring The Coffee: Creating and scheduling a task Don't you wish a fresh, hot cup of coffee could be waiting for you right when you get into the office? Let's automate that! Cache and IRIS come with a built-in Task Manager, which should have a familiar feel to those used to using the Windows task scheduler or using cron on Linux. Your user account will need access to the %Admin_Task resource to use it, and you can access it in the management portal under System Operation -> Task Manager. When first installed, there are roughly 20 types of task that you can schedule. #System Administration #Tips & Tricks #Tools #Tutorial #Caché #InterSystems IRIS 10 7 5 1.3K