Pesquisar

Artigo
· Ago. 21 3min de leitura

Migrating InterSystems Studio/Caché and Visual Studio Code Setup to a new Windows PC

Recently, I replaced my old laptop with a new one and had to migrate all my data. I was looking for a guide but couldn’t find anything that explained in detail how to migrate server connections from InterSystems Studio and Visual Studio Code from one PC to another. Simply reinstalling the tools is not enough, and migrating all the connections manually seemed like a waste of time. In the end, I managed to solve the problem, and this article explains how.

InterSystems Studio

Exporting Server Connections

Migrating Studio connections was the most challenging part. Server connections are stored in the Windows Registry, which can be opened from PowerShell by running:

regedit

This allows you to explore all registry keys through a graphical interface.

Depending on the version installed, Studio connections can be found in one of the following locations:

  • HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Intersystems
  • HKEY_CURRENT_USER\Software\InterSystems\Cache\Servers

In my case, most connections were stored in the second path.

If you browse the Registry Editor, you will find connection information under the Servers folder, with one entry for each connection.

To export all the connections directly from the registry into a file, run this command in PowerShell:

reg export "HKCU\Software\InterSystems\Cache\Servers" "$env:USERPROFILE\Desktop\IRIS_Studio_Connections.reg" /y
  • This creates a .reg file containing all your Studio connections.
  • The file is saved to your Desktop.
  • The /y flag overwrites the file if it already exists.

Importing on the New PC

To import the connections, copy the .reg file to the new PC and run this command in PowerShell:

reg import "C:\Path\To\IRIS_Studio_Connections.reg" 

Alternatively, double-click the .reg file to import it manually.

At this point, InterSystems Studio on your new PC will contain the same server connections you had on the old one.

Note: passwords are not migrated, so you will need to re-enter them the first time you connect.

Visual Studio Code

Exporting Server Connections

Migrating server connections in Visual Studio Code is more straightforward than in Studio since connections are all stored in the settings.json file.

To open it:

  • Click on the InterSystems extension icon in the sidebar
  • Click the three dots icon (“More Actions...”), and select Edit Settings.

  •  Click now on settings.json:

  • All connections are stored under the "intersystems.servers" property of the JSON:

  • Copy these entries and paste them into the settings.json file on the new PC.

Exporting the Whole Profile

Another option is to export your entire VS Code profile.

  • Click on the gear icon in the bottom-left corner.
  • Navigate to Profiles → Profiles.

  • Select the desired profile and choose Export.

  • A code profile file will be generated. 
  • You can copy this file to the new PC and import it into VS Code. From the same Profiles screen, click the arrow next to New Profile, then select Import Profile. This will restore all settings, including server connections.

Discussão (0)2
Entre ou crie uma conta para continuar
Pergunta
· Ago. 21

custom operation on patient type that will receive a business identifier and will search them and for each paient it will return a $everything for all the found patients

Hi,

I need a custom operation on patient type that will receive a business identifier and will search them and for each paient it will return a $everything for all the found patients written with object script

1 Comment
Discussão (1)2
Entre ou crie uma conta para continuar
Resumo
· Ago. 21

New Demos Added — Keep Voting in the InterSystems Demo Games!

Dear Community Member,

A fresh batch of demo videos has just been released as part of the InterSystems Demo Games! This contest is your chance to explore how our Sales Engineers use InterSystems technologies to solve real-world problems — and to help choose the winners by voting for your favorites.

👉 To cast your vote

🔗 Full details here

New demos are added throughout the contest — don’t miss your chance to discover and support your favorites.

The Demo Games are on – and may the best demo win!

Artigo
· Ago. 21 3min de leitura

Dejad un rastro de migas de pan en el código en ObjectScript

ObjectScript puede parecer solo otro lenguaje de programación, pero aquí está el giro:

Vuestro código aquí puede vivir para siempre (sí, incluso después de que os hayáis pasado a otro proyecto). Por eso es importante mantenerlo ordenado, fácil de leer y a salvo de errores misteriosos.

(Una guía para principiantes para mantener vuestro código ordenado, amigable y preparado para el futuro)

Bienvenidos a la jungla de ObjectScript, donde vuestro código puede tener un alcance global y ser persistente por naturaleza.
Mantengamos las cosas limpias, legibles y resistentes a errores.

1️⃣ Nombra como si lo dijeras en serio

Las variables y globales deberían tener nombres como si tuvieran un perfil en LinkedIn.
Saltad las x, y, z; id por patientID, invoiceTotal, ^MyApp("Users",...).

Set patientID = 1023
Set ^Hospital("Patients",patientID,"Name") = "Marshmallow"

💡 Por qué: cuando volváis a esto en 6 meses, “Marshmallow” seguirá teniendo sentido, ^H(1,"N") no.

2️⃣ Conciencia sobre el "calentamiento global" 🌍

Los globales son potentes, pero no arrojéis datos ahí como si fuera un cesto de ropa sucia.

Poned un prefijo con el nombre de vuestra aplicación para evitar colisiones.
Mantened el orden de las claves lógico: la categoría más grande primero, los detalles al final.

Set ^PetStore("Cats","Persian",1,"Name") = "Luna"

💡 Consejo: si no etiquetaríais una caja como “Cosas”, no llaméis a un global ^DATA.

3️⃣ El tamaño de los métodos importa 🐹

Si vuestro método es más largo que la paciencia de un hámster, divididlo.
Los métodos pequeños y enfocados son más fáciles de probar, reutilizar y mantener.


ClassMethod GetPatientName(patientID As %Integer) As %String
{
    Quit ^Hospital("Patients",patientID,"Name")
}

4️⃣ Atrapad esos errores escurridizos 🎣

No dejéis que vuestro código tenga un problema en producción. Envolved las operaciones peligrosas en Try/Catch.

Try {
    Write ^Hospital("Patients",9999,"Name")
}
Catch ex {
    Write "Error: ", ex.DisplayString(), !
}

💡 Por qué: porque los fallos silenciosos son como los gatos, esconden el desastre hasta que es demasiado tarde.

5️⃣ Comentad como si os importara 💌

Los comentarios son cartas de amor para vuestro yo futuro. Mantenedlos cortos, relevantes y actualizados.

// Assign the patients therapy cat
Set ^Hospital("Patients",patientID,"Pet") = "Mittens"

Los buenos hábitos de programación van más allá de cualquier lenguaje; son universales.
Quizás sois campeones de los nombres claros para variables, maestros en el manejo de errores sólido, creyentes en el desarrollo guiado por tests, o tenéis algún truquito peculiar que hace que vuestro código brille.
Sea lo que sea, ¡compartidlo! Publicad vuestras mejores prácticas, lecciones aprendidas o sabiduría en pequeñas dosis en los comentarios, y creemos juntos un tesoro de consejos para ayudar tanto a principiantes como a desarrolladores experimentados a escribir código más limpio, inteligente y eficiente. 🚀

Discussão (0)1
Entre ou crie uma conta para continuar
Artigo
· Ago. 21 2min de leitura

Comment fusionner des comptes existants (mettre à jour l'e-mail) dans l'écosystème des développeurs InterSystems

Bonjour la Communauté,

Vous pouvez parfois avoir besoin de fusionner plusieurs comptes ou simplement de mettre à jour l'adresse e-mail que vous utilisez sur les différents portails de l'écosystème des développeurs InterSystems. Chaque portail fonctionnant différemment, voici un guide pour vous accompagner dans cette démarche.

Modifier votre adresse e-mail

Si vous souhaitez utiliser une adresse e-mail différente (par exemple, une adresse professionnelle plutôt qu'une adresse personnelle, ou inversement), voici comment la mettre à jour sur tous les portails :

1. Mettez à jour votre adresse e-mail dans InterSystems SSO. Pour cela :

  • Suivez les instructions à l'écran pour modifier votre adresse e-mail.

2. Avec votre nouvelle adresse e-mail, connectez-vous à la Communauté des développeurs et/ou à Open Exchange.

3. Ne vous connectez PAS au Portail d'idées. Commencez par envoyer un message direct à @Irène Mykhailova avec votre ancienne et votre nouvelle adresse e-mail. Une fois la modification confirmée, vous pourrez vous connecter au Portail d'idées. Sinon, vous créerez un nouvel utilisateur sur le Portail d'Idées.

4. Ne vous connectez PAS à Global Masters ; envoyez un message à @Olga Zavrazhnova avec votre ancienne et votre nouvelle adresse e-mail. Une fois la modification confirmée, vous pourrez vous connecter au portail Global Masters. Sinon, vous devrez fusionner vos comptes.

Fusionner vos comptes

Si vous avez déjà plusieurs comptes enregistrés sur l'Écosystème des Développeurs et souhaitez fusionner vos comptes, veuillez envoyer un message direct à @Iryna Mologa avec votre nouvelle et votre ancienne adresse e-mail. Les deux comptes doivent avoir été connectés au moins une fois sur les plateformes respectives. Veuillez noter que la fusion de comptes ou le transfert de données est impossible sur le Portail d'Idées.


Nous espérons que cet article vous aidera à gérer vos comptes sur l'Écosystème des Développeurs. Si vous avez des questions ou des suggestions, n'hésitez pas à les partager dans les commentaires de cet article.

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