Article Robert Cemper · Apr 4, 2020 1m read

In Caché you had an example of a WebSocket Server in namespace SAMPLES
With IRIS the samples are gone and require additional installation effort.

So I refurbished the code with some useful additions:

  • independent of namespace
  • timeout control from client
  • readable communication log

This contains 2 classes:

The server is essential for the 'native' WebSocket Client Demo

GitHub

0
0 734
Question KI Joon Keum · Apr 2, 2019

Does anyone have experience in creating a Business Routing Rule using Exists function?

 

I've used the comma delimited 'In' function, but I would like more manageability. Entering and remove items from a look up table would be much easier to manage then changing the comma delimited string.

Messages go to error state.

Any help would be appreciated.

This is my first post, so if I am doing anything wrong please let me know.

3
0 1747
Article Robert Cemper · Apr 3, 2020 1m read

A recent discussion made me aware that the documentation on DataType classes is excellent.
http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY…
I just miss the visualization of the methods for Data Format Conversions.

LogicalToDisplay() / DisplayToLogical()
LogicalToOdbc()    / OdbcToLogical()
LogicalToStorage() / StorageToLogical()
LogicalToXSD()     / XSDToLogical()

Graphic makes it much easier to understand for anyone beginning with Caché objects.


 

0
0 698
Announcement Evgeny Shvarov · Apr 2, 2020

Hi Developers!

This is the digest of new solutions and applications submitted to InterSystems OpenExchange in March 2020!

22 New applications in March 2020

isc-generate-db by Henrique Gonçalves Dias

Creating a new database, namespace, CSP/REST Application never been so easy.

cmPurgeBackup by @Alexey Maslov

 cmPurgeBackup is an utility that can be used to erase old Online Backup files.

1
0 246
Question Shivam Bhatele · Apr 3, 2020

Hello Everyone, I am new here and I am learning docker to crack my upcoming interviews. I am confused whats the steps in a deploy process for Dockerized Apps stored In A Git Repo? I am so confused about this, Can anyone know about docker programming. If yes then please suggest some more tips which are useful for my future point.
Thanks Inadvance

1
0 280
Article Daniel Kutac · Feb 11, 2019 4m read

Hi guys,

Couple days ago, a customer approached me with the wish to enhance their existing legacy application, that uses SOAP (Web)Services so it shares the same authorization with their new application API based on REST. As their new application uses OAuth2, the challenge was clear; how to pass access token with SOAP request to the server.

After spending some time on Google, it turned out, that one of possible ways of doing so was adding an extra header element to the SOAP envelope and then making sure the WebService implementation does what is needed to validate the access token.

1
3 12153
Article Jenna Makin · Nov 9, 2015 1m read

The attached code package provides a simple implementation of a web service client that utilizes the USPS Shipping API to normalize  an address.

This code requires the developer to obtain a USPS Shipping API user ID which can be obtained from the USPS shipping API website.  The assigned User Id can either be passed into the web service call as a parameter or can be coded as a parameter into the Request object.

1
0 494
InterSystems Official Jeff Fried · Mar 31, 2020

GA releases are now published for the 2020.1 version of InterSystems IRIS, IRIS for Health, and IRIS Studio!

A full set of kits and containers for these products are available from the WRC Software Distribution site, including community editions of InterSystems IRIS and IRIS for Health.

The build number for these releases is 2020.1.0.215.0.

InterSystems IRIS Data Platform 2020.1  makes it even easier to develop and deploy real-time, machine learning-enabled applications that bridge data and application silos.  It has many new capabilities including:

5
0 765
Question Augusto Estefan · Mar 30, 2020

Hi, 

I'm having a problem when I'm attempting to freeze the instance.

I have a pre-script and post-script to freeze and unfreeze the instance, but when the script execute: 

 csession INSTANCE_NAME -U '%SYS' "##Class(Backup.General).ExternalFreeze(\"$SNAPLOG\",,,,,,1800)"

 It's give me this error and fails the freeze: 

Backup.General.ExternalFreeze: Failed, Unable to switch local journal file, Error: -99,ERROR #1142: Error switching journal file: 0
vi

 

At cconsole.log file show this:

4
0 749
Announcement Anastasia Dyubaylo · Apr 2, 2020
0
0 177
Question Kevin Clancy · Mar 26, 2020

The intersystems documentation gives the same description for both <MAXSTRING> and <NETWORK DATA UPDATE FAILED - MAXSTRING>. I suspect that the description for <MAXSTRING> is correct and the description for <NETWORK DATA UPDATE FAILED - MAXSTRING> was an accident. I would like to know what situation triggers the <NETWORK DATA UPDATE FAILED - MAXSTRING> error.

2
0 492
Question David Losiewicz · Apr 1, 2020

I want to create a CSP page that returns a pdf. The pdf is identified by a pdftoken parameter.

My goal is to validate the token and return the pdf (ContentType=”application/pdf”) if the token is good and return a text error message "Bad Token" (ContentType=”text/plain”) if the token is missing or bad.

My issue seems to be associated with ContentType. I can define one ContentType that works for the pdf or the error message. I am unable to change the ContentType.

Any assistance is appreciated.

2
1 447
Question Davi Massaru Teixeira Muta · Mar 29, 2020

Hello everyone!

I have an abstract class representing the possible inputs for an Enum field, in the following way: 

Class system.dto.sector.SectorStatusEnum  [ Abstract ]{Parameter Active = 1;Parameter Inactive = 2;Parameter Production = 3;Parameter Upkeep = 4;}

I need to create a persistent class referencing the abstract class in the status field, so that the result of the operation is the same as the example:

9
0 1477
Question Laura Cavanaugh · Mar 31, 2020

Hello; we are scanning 835 files, and need to validate segment types (such as ISA, ST, IEA, etc.)  before we give the file the "OK".  I see segment types in the management portal under Ensemble / Interoperate / ASC X12 / ASC X12 Schema Structures.  Are these segment types stored in an IS table anywhere?

Aside from EnsLib_EDI_X12.Document, are there any other tables that describe, or support, document segment types?

Thanks,

Laura

2
0 322
Question Jenna Makin · Mar 30, 2020

Hi-

I have a class that specifies that streams should be stored in SSA.DocumentCacheS, however, they are getting stored in CacheStream instead.

How can I get streams to properly store in SSA.DocumentCacheS?

Here's the section from my storage definition that shows the StreamLocation

<DataLocation>^SSA.DocumentCacheD</DataLocation>
<DefaultData>DocumentCacheDefaultData</DefaultData>
<IdLocation>^SSA.DocumentCacheD</IdLocation>
<IndexLocation>^SSA.DocumentCacheI</IndexLocation>
<StreamLocation>^SSA.DocumentCacheS</StreamLocation>
<Type>%Storage.Persistent</Type>
6
0 506
Question Florian Hansmann · Mar 31, 2020

Hi Caché-Developers!

My Caché Version: 2014.1 and the CSP-Gateway Version ( + Apache) also. I can't upgrade now. 

I want create a Web-Socket for my Chat  like in that Tutorial:

https://community.intersystems.com/post/tutorial-websockets

And there's my problem. When I set SharedConnection like:

set ..SharedConnection = 1

I get on init connection with the server that message:

First i think everything is okay but here i also didn't get the Messages on init from Server-Side:

When I now send a message to the WebSocket, I got following error:

Without SharedConnection = 1, everything works fine for me.

1
0 361
Announcement Anastasia Dyubaylo · Mar 30, 2020

Hey Developers!

Want to beat the COVID-19 pandemic with InterSystems and MIT? Please take part in the MIT COVID19 Challenge!

It's a 48-hour virtual hackathon with the goal to develop solutions that address the most pressing technical, social, and financial issues caused by the COVID-19 outbreak.

And it's your chance to build a solution on InterSystems IRIS for the COVID-19 crisis! 

1
0 599
Announcement Dmitry Maslennikov · Mar 27, 2020

I am glad to say that VSCode-ObjectScript reached 4000 installs. Thanks to all of you who use it in their work.

VSCode-ObjectScript is an extension for VSCode which allows you to develop InterSystems based applications on ObjectScript using the modern code editor developed by Microsoft. Choice #1 editor amongst all developers worldwide by Stackoverflow survey 2019.

Some short notes about how to install and configure it you can find here.

If you need any help with a migration process of your development team to VSCode, please contact us by info@caretdev.com.

3
0 368
Article Henrique Dias · Mar 29, 2020 1m read

Hi Developers!

Create Database, Namespace, REST Applications using Portal Management is an easy task. You just need a few clicks or maybe more clicks than you expect.

But, what if you traded all those clicks for a simple command-line ?!

IRISAPP>do ##class(diashenrique.Utils.GenerateDB).CreateNew

You just need to answer a few questions: 

0
0 338