查找

文章
· 6 hr 前 阅读大约需 3 分钟

No More Local Limits: Exposing InterSystems IRIS with ngrok

At hackathons that InterSystems participated and I supported, many students were asking how all their teammates could use the same IRIS database that they spun up in a container. I suggested using ngrok to expose their localhost IRIS and realized we don't have documentation on that. Hence, I thought this would be great to let more people knwo about this powerful technique for enhancing collaboration during development and testing.

讨论 (0)1
登录或注册以继续
问题
· 7 hr 前

Creating Json Array for API Call

Hello Community!

We have this json payload for an api request we are making.
 

{

    "fromDirectAddress" : "john@meda.com",

    "toDirectAddress" : "smith@domain.com",

    "emailAttachmentList" : [

        {

            "attachmentClass" : "application/xml",

            "attachmentContent" : "PHRlc3Q+TWVkQWxsaWVzPC90ZXN0Pg==",

            "attachmentTitle" : "MR-Lumbar Spine without contrast_1",

            "attachmentFileName" : "ClinicalDocument"

        },

"messageId" : "urn:uuid:a2d59543-91f4-45a4-99ef-72d70da1e454"

}

I created two classes (see below) but I am having issues with setting the emailAttachmentList as an array.
 

Class Request.SendDirectMessageRequest Extends (%Persistent, %XML.Adaptor, %JSON.Adaptor)
{

Parameter %JSONNULL = 1;

Property fromDirectAddress As %String(%JSONFIELDNAME = "fromDirectAddress", MAXLEN = "");

Property toDirectAddress As %String(%JSONFIELDNAME = "toDirectAddress", MAXLEN = "");

Attempt 1 // Property emailAttachmentList As Request.EmailAttachment(%JSONFIELDNAME = "emailAttachmentList");

Attempt 2 // Property emailAttachmentList As List of Request.EmailAttachment(%JSONFIELDNAME = "emailAttachmentList");
Property messageId As %String(%JSONFIELDNAME = "messageId", MAXLEN = "");

Property xdm As %Boolean(%JSONFIELDNAME = "xdm");

}

 

 

Class Request.EmailAttachment Extends (Ens.Request, %JSON.Adaptor)
{

Parameter %JSONIGNOREINVALIDFIELD = 1;

Property attachmentFileName As %String(%JSONFIELDNAME = "attachmentFileName", MAXLEN = "");

Property attachmentTitle As %String(%JSONFIELDNAME = "attachmentTitle", MAXLEN = "");

Property attachmentClass As %String(%JSONFIELDNAME = "attachmentClass", MAXLEN = "");

Property attachmentContent As %String(%JSONFIELDNAME = "attachmentContent", MAXLEN = "");

}

 

Attempt 1 (highlighted in yellow in the Request.SendDirectMessageRequest class) gives us the error below but at least that’s a response back as the message does leave IRIS.

Error HttpResponse: {"error":"/emailAttachmentList expected type: JSONArray, found: JSONObject"}

 

Attempt 2 gives us this error and the message doesn’t make it past the router.
ERROR <Ens>ErrBPTerminated: Terminating BP APIRouter1 # due to error: ERROR <Ens>ErrException: <PROPERTY DOES NOT EXIST>zS4+9^FAIS.BPL.APIBPL.Thread1.1 *attachmentClass,%Collection.ListOfObj -- logged as '-' number - @' Set status=1,callrequest.emailAttachmentList.attachmentClass="application/xml"'
> ERROR <Ens>ErrException: <PROPERTY DOES NOT EXIST>zS4+9^FAIS.BPL.APIBPL
.Thread1.1 *attachmentClass,%Collection.ListOfObj -- logged as '-' number - @' Set status=1,callrequest.emailAttachmentList.attachmentClass="application/xml"'

 

Please assist us to figure out what we need to change the code to. Thank you!

2 条新评论
讨论 (2)2
登录或注册以继续
问题
· 8 hr 前

IRIS 2024.1 Community License Renewal

Hello Community

The InterSystems IRIS Community License for Iris version 2024.1 is about to expire. I would like to know if there’s a way to extend this license, or if I need to upgrade to the latest version of Iris.

Thanks!

3 条新评论
讨论 (3)3
登录或注册以继续
文章
· 8 hr 前 阅读大约需 5 分钟

Introduction to Python Programming in an IRIS context

img

This will be an introduction to Python programming in the context of IRIS.

Before anything I will cover an important topic: How python works, this will help you understand some issues and limitations you may encounter when working with Python in IRIS.

All the articles and examples can be found in this git repository: iris-python-article

讨论 (0)2
登录或注册以继续
公告
· 23 hr 前

Reminder: Beta Testers Needed for Our Upcoming InterSystems IRIS SQL Professional Certification Exam

Hello Again,

InterSystems Certification is still looking for people to beta test the InterSystems IRIS SQL Professional Certification exam. This is a great way to earn the certification for free! We have extended the deadline of the beta test to August 31, 2025.

Please note, only candidates with the pre-existing InterSystems IRIS SQL Specialist certification are eligible to take the beta.  For details, see the original announcement.

Thank you!

讨论 (0)1
登录或注册以继续