Nueva publicación

Encontrar

Artículo
· 24 jul, 2024 Lectura de 2 min

XML export of Studio project unexpectedly omits webapp (CSP) files when webapp name doesn't contain any slashes

I encountered this quirk when investigating an unrelated issue affecting how Studio projects are handled in VS Code.

When you add the top level of the webapp to a %Studio.Project this inserts a %Studio.ProjectItem with a .DIR suffix. For example, if Studio or VS Code is connected to the USER namespace and you add the /csp/user webapp to a project the new ProjectItem name is "csp/user.DIR".

When you export this project to XML from the project's context menu in Studio, or by calling the %Studio.Project.Export classmethod, the file contains the project definition plus all of the files in the /csp/user webapp's physical path subtree (i.e. all your CSP, JavaScript, CSS etc files). Importing this to a namespace on another server on which a webapp of the same name exists is a convenient way of transferring the webapp's code.

The quirk/bug is that if your webapp name doesn't contain any slashes (ignoring the leading one that begins all webapp names), then the Export classmethod fails to put the webapp's files into its XML output file.

For example, if the namespace MYAPP hosts a webapp named /myapp and you create a Studio project consisting of "myapp.DIR" as its ProjectItem, an export of this project doesn't contain your webapp's files.

Here's why this happens:

Line 871 calls the Exists method of %Library.RoutineMgr with the argument "myapp.DIR"

The code at line 653 above is apparently there to ensure that names of webapp files or directories have a "/" prefix before being used in calls to $$GetFilename^%apiCSP on line 661 (for .DIR items) or to ..IsCSPName on line 664 (everything else).

But for a .DIR item without a slash within it (e.g. "myapp.DIR" as opposed to "csp/user.DIR", line 653 is ineffective and Exists("myapp.DIR") returns 0.

This could be fixed by moving line 657 ahead of line 653, then amending that line (now 654) to add ext="dir" to the existing OR conditions. However the entire %Studio package no longer appears in the latest Class Reference (aka Documatic), so I reckon the chances of this getting fixed are low, and of being backported even lower. I'm posting the information here in case it's useful to anyone else. A workaround is not to use webapp names that have a single path component.

2 comentarios
Comentarios (2)2
Inicie sesión o regístrese para continuar
Anuncio
· 24 jul, 2024

InterSystems Ideas News #15

Hi Developers!

Welcome to the 15th edition of the InterSystems Ideas news! We dedicate this news bulletin to:

​​​​✓ Idea Leaders of 2024

✓ Voting for ideas on Open Exchange

✓ Recently posted ideas waiting to be implemented by the Developer Community

 
   In a bit more than half a year, quite a few of Community members have submitted their ideas to the Ideas Portal. We extend our heartfelt thanks to all contributors and want to give a special shout-out to the authors who have shared numerous ideas on the portal this year.

Your creativity and dedication are truly inspiring! 👏

 You can now vote for ideas that can be implemented by Developer Community members not only on the Ideas Portal but also on the Open Exchange. In the special window (look below for an example screenshot), you can click on the "Vote" button to support the idea. You will see a random Community Opportunity idea whenever you visit Open Exchange.

👏 Many thanks to the authors of these ideas👏

💡 Thank you for reading InterSystems Ideas news. Post your innovative ideas, vote for ideas to support them and implement Community Opportunity ideas to join our Hall of Fame 💡

Comentarios (0)1
Inicie sesión o regístrese para continuar
Artículo
· 24 jul, 2024 Lectura de 6 min

Connexion à Cloud SQL à partir de Microsoft Power BI en utilisant un ODBC et TLS/SSL

Nous sommes ravis de continuer à déployer de nouvelles fonctionnalités dans InterSystems IRIS Cloud SQLInterSystems IRIS Cloud SQL, telles que la nouvelle capacité de recherche vectorielle Vector Search qui a été lancée pour la première fois avec InterSystems IRIS 2024.1. Le service Cloud SQL est un service en nuage qui offre précisément ce qui suit: l'accès SQL dans le cloud. Cela signifie que vous utiliserez des technologies de pilote standard telles que JDBC, ODBC et DB-API pour vous connecter à ce service et accéder à vos données. La documentation décrit en détail comment configurer les paramètres importants au niveau du pilote, mais ne présente pas les outils tiers spécifiques car, comme vous pouvez l'imaginer, il en existe un nombre infini.

Dans cet article, nous allons compléter cette documentation de référence avec des étapes plus détaillées pour un outil de visualisation de données tiers populaire que plusieurs de nos clients utilisent pour accéder aux données basées sur IRIS : Microsoft Power BI.

Comentarios (0)1
Inicie sesión o regístrese para continuar
Anuncio
· 24 jul, 2024

[Video] Optimizing Supply Chains with InterSystems Supply Chain Orchestrator

Hey Community,

Play the new video on InterSystems Developers YouTube:

⏯ Optimizing Supply Chains with InterSystems Supply Chain Orchestrator @ Global Summit 2023

Learn how InterSystems Supply Chain Orchestrator addresses business challenges horizontally across vertical segments to enable accelerated time-to-value for supply chain digital transformation. We'll show you how one of our partners is using it in use cases across several industry sectors.

Presenters:
🗣 @Ming Zhou, Head of Supply Chain Strategy, InterSystems 
🗣 Mark Holmes, Senior Supply Chain Advisor, InterSystems

Enjoy watching and look out for more video content! 👍

Comentarios (0)1
Inicie sesión o regístrese para continuar
Pregunta
· 24 jul, 2024

Looking for Download link to Iris Studio.

Good morning. Can someone provide some advice? We know it is no longer supported or in development but it worked for the testing we were doing. We have several new people who need a copy. Does someone have a link to Iris Studio downloads? 

If it's not available here are there other ways to test mumps code? Links? thank you!

3 comentarios
Comentarios (3)2
Inicie sesión o regístrese para continuar