Nova postagem

Pesquisar

Pergunta
· Abr. 17

MAXSTRING %ToJSON()

I have see this discussed on the community but I'm not quite finding an answer. 

I have a method that is called in the OnPreHttp() method of a CSP page.  That method returns a dynamic object and a set a new variable to the %ToJSON method of the object so I can use it in my JavaScript code later to init a table of data (using the #(variable)# syntax).  This creates a MAXSTRING error.  So I changed it to return a %Stream.TmpCharacter.  But if I call Read($$$MaxStringLenght) I only get part of the data.  I loop over it and read it in chunks to the end, that kind of work, but I can't set the chunks to a variable because then I'll run into MAXSTRING.  I can't use Javascript to iterate over it because Javascript and COS don't mix like that.

I can't be the first person ever to have JSON data that big.  What have people come up with?

The only alternate solution I've come to think of is to write the data to a temp file on the server and then read the data from the file using a Javascript fetch or something like that.

5 Comments
Discussão (5)3
Entre ou crie uma conta para continuar
Anúncio
· Abr. 17

Codez pour atteindre InterSystems READY 2025

Bonjour la Communauté !

Nous savons que chaque développeur a de petits projets annexes : des applications qui lui permettent d’expérimenter de nouvelles technologies, de tester des idées avant de les implémenter dans des solutions plus vastes, ou simplement de créer quelque chose d’amusant par curiosité. Et si l’un de ces projets pouvait vous mener jusqu’à l’InterSystems READY 2025 ?

Nous vous proposons une opportunité unique : partagez votre créativité et votre passion pour IRIS et gagnez un pass gratuit pour l’InterSystems READY + hébergement !

Le règlement est simple : publiez votre projet annexe basé sur IRIS sur Open Exchange et enregistrez une courte vidéo inspirante expliquant pourquoi vous devriez être celui qui obtiendra l’entrée pour l’événement de l’année et gagner !

Durée : du 21 avril au 4 mai 2025

Prix : hébergement et entrées gratuites pour l’InterSystems READY 2025 !

🛠 Que devez-vous faire ?

  1. Téléchargez un projet basé sur IRIS sur Open Exchange (Comment publier une application sur Open Exchange). Soyez créatif : il peut être utile, original, amusant ou simplement quelque chose que vous avez toujours voulu essayer.
  2. Enregistrez une courte vidéo inspirante (5 minutes maximum) :
    • Expliquez-nous comment les technologies InterSystems ou la communauté des développeurs ont influencé votre projet ou votre carrière.
    • Expliquez pourquoi VOUS devriez obtenir un ticket pour l'InterSystems READY 2025.
  3. Envoyez votre vidéo et le lien vers votre application via ce formulaire.

🧠 Conditions générales pour les candidatures

  1. Une application ou une bibliothèque doit être entièrement fonctionnelle. Il ne doit pas s'agir d'une importation ou d'une interface directe avec une bibliothèque existante dans un autre langage (à l'exception de C++). Il ne doit pas s'agir d'un copier-coller d'une application ou d'une bibliothèque existante.
  2. Applications acceptées : nouvelles sur Open Exchange. Notre équipe examinera toutes les candidatures avant de les approuver.
  3. L'application doit fonctionner sur IRIS, IRIS for Health ou IRIS Cloud SQL. 
  4. L'application doit être Open Source et publiée sur GitHub ou GitLab.
  5. Le fichier README de l'application doit être en anglais, contenir les étapes d'installation, ainsi que la vidéo de démonstration et/ou une description du fonctionnement de l'application.
  6. Une application ne peut avoir qu'un seul auteur.

NB : Nos experts auront le dernier mot quant à l'approbation de la candidature pour cette initiative, sur la base de critères de créativité et d'originalité de l'approche. Leur décision est définitive et sans appel.

👨‍💻 Qui peut participer ?

Tout membre de la communauté des développeurs, à l'exception des employés et sous-traitants d'InterSystems. Créez un compte !

🏆 Prix

🥇 1re place : entrée gratuite pour InterSystems READY 2025 + hébergement

🥈 2e et 3e places : entrée gratuite pour InterSystems READY 2025

❗️Ce prix n'est pas échangeable contre de l'argent ni contre toute autre contrepartie.

✨ Points bonus

Vous pouvez augmenter vos chances de gagner en proposant des activités supplémentaires :

  • Publiez un article technique sur votre projet
  • Créez une vidéo de démonstration supplémentaire de votre projet
  • Partagez votre vidéo inspirante sur les réseaux sociaux avec le hashtag #Ready2025 et mentionnez @InterSystems et @InterSystemsDev

Laissez-vous inspirer. Créez quelque chose d'amusant. Partagez votre histoire.

C'est votre moment de briller - CODEZ pour atteindre InterSystems READY 2025 !

Discussão (0)1
Entre ou crie uma conta para continuar
Anúncio
· Abr. 17

Early Access Program: OAuth2 improvements

InterSystems IRIS 2025.2.0 introduces several features to improve the user experience of configuring OAuth2.

- OAuth2 is now a native authentication type and can be easily enabled for your services and web applications. Previously, OAuth2 was a type of delegated authentication.

- You can now create resource servers with the new OAuth2.ResourceServer class, which simplifies resource server configuration significantly. Previously, resource servers were instances of OAuth2.Client.

- The OAuth2.ResourceServer class and provides a sample authenticator for determining user permissions which, for simple configurations, requires no custom code (this previously required a custom ZAUTHENTICATE implementation). This simple authenticator can be extended and customized to suit your environment. The OAuth2.ResourceServer supports multiple audiences.

- You can now use JDBC and ODBC to authenticate to InterSystems IRIS with access tokens.

We are interested in your feedback on these new changes and if they function as expected. 

You can download software and the new documentation for those new features, by using this Linkhttps://evaluation.intersystems.com/Eval/early-access/OAuth2

For feedback, please use this address as the primary communication by going to the EAP page and select using the feedback button on the right. 

Discussão (0)2
Entre ou crie uma conta para continuar
Anúncio
· Abr. 17

[Video] What is InterSystems OMOP?

Hi, Community!

Looking to get actionable insights from your healthcare research? See how InterSystems OMOP can help:

👨‍🔬What is InterSystems OMOP? 

With InterSystems OMOP—a cloud-based software-as-a-service—you can transform clinical data into the OMOP format and get faster insights.

Benefits include:

  • Create research data repositories efficiently.
  • Easily ingest, transform, and store data.

🎬Watch the video to learn more!

Discussão (0)1
Entre ou crie uma conta para continuar
Pergunta
· Abr. 17

how can i escape the "<",">" symbols in *.scr script

i have a line in my *.scr file like this:

send: s rlt=##class(%SYS.Namespace).ListAll(.rlt)<CR>
wait for:USER>
send: S A="" F  S A=$O(rlt(A)) q:A=""  I A["USER"!(A["CLIE")  F I=1:1:$L(L,",")  S G="^["""_A_"""]"_$P(L,",",I)  S B="" F  S B=$O(@G@(B)) Q:B=""  F J=1:1:$L(B)  S V=$A($E(B,J,J))  I (V<48!(V>57))&&(V<65!(V>90))&&(V<97!(V>122))  W A,?10,G,?30,B,!<CR>
wait for:USER>
 

it errors out with this <SYNTAX> error where the "<" or ">" are not accepted.

 I (V057))&&(VA90))&&(Va122))  W A,?10,G,?30,B,!

 

How do I escape these characters so that my script works??

 

Thanks

3 Comments
Discussão (3)1
Entre ou crie uma conta para continuar