Rechercher

質問
· 2025年11月25日

Regarding best practices for integration between different datasets and namespaces.

In some cases, it's necessary to manipulate data from one namespace to another. For example, a routine in the "N1" namespace needs data from the "N2" namespace. In legacy systems (using only globals), it's common to make the global universal, but what about persistent classes? Is this type of globalization also possible?

In the same context, how could I make a persistent class global for all namespaces? The only way I know is by putting it in %SYS. For example, to build a class from the "N1" namespace in the "N2" namespace, I need to use the pipe or the ZN function, but this somewhat reduces the productivity of the IDE (VS Code, Studio...), because the class doesn't exist in the namespace I'm working in, and this affects the autocomplete of methods, attributes, etc.

What would be the best practices for these use cases? Can I build this type of class in %SYS?

7 Comments
ディスカッション (7)3
続けるにはログインするか新規登録を行ってください
お知らせ
· 2025年11月25日

Nos vemos en Madrid: InterSystems READY 2026 - una oportunidad para hablar de IA

Hola, Comunidad:

📆 El 19 de febrero tenéis una cita muy especial en el Espacio Covarrubias The One, en Madrid.

Llega InterSystems READY 2026. Una oportunidad de compartir conocimiento sobre IA generativa, analítica en tiempo real y conocer partners muy potentes del sector. Tendremos invitados muy especiales, muchas sorpresas y detalles que os iremos revelando.

¿Queréis saber más? Reservad vuestra plaza aquí https://bit.ly/43Gp8T9 y guardaos la fecha en vuestro calendario. 

Estad atentos...

ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
質問
· 2025年11月25日

Problem by using String Var in embedded SQL where criteria

Hallo, I am new on programming Object Script.

My problem: How can I use a String variable in embedded SQL?

The below example does not work by using: namevar with ' ' 

set namevar = 'Ali'

&sql(DECLARE C2 CURSOR FOR SELECT name INTO :name FROM person where name = 'namevar')

Only below will work: person where name = 'Ali' 

Thanks in advance

8 Comments
ディスカッション (8)5
続けるにはログインするか新規登録を行ってください
お知らせ
· 2025年11月25日

[Video] Generative AI in InterSystems Data Studio

Hey Developers,

Enjoy the new video on InterSystems Developers YouTube

⏯ Generative AI in InterSystems Data Studio @ READY 2025

Learn how InterSystems Data Studio (IDS) helps organizations unify data from diverse sources, including relational databases, files, PDFs, Salesforce, SAP, and more, to support reporting, analytics, and operational decision-making. Now, with the addition of an embedded generative AI-powered Assistant, business users such as executives, managers, analysts, and clinicians can ask questions in natural language to explore data, uncover insights, and automate tasks. Teams across the organization can even deploy customized Assistants with tailored names, personalities, and domain-specific knowledge. All interactions are governed by robust access controls, ensuring users only access the data they’re authorized to see enabling secure, effective, and user-friendly data-driven decision-making at every level.

Presenters:
🗣 @Amir Samary, Director, Solution Architecture at InterSystems
🗣  @Phillip Booth, Lead Solutions Developer at InterSystems

Want to learn best practices? Watch this video and subscribe to learn more!

ディスカッション (0)1
続けるにはログインするか新規登録を行ってください
記事
· 2025年11月24日 5m read

Pythonでの仮想環境入門

img

この記事では、Pythonでの仮想環境の概念を紹介します。仮想環境は、依存関係を管理してプロジェクトをOSから分離するために不可欠です。

仮想環境とは?

仮想環境とは、次が含まれているフォルダのことです。

  • 特定のバージョンのPython
  • 最初は空のsite-packagesディレクトリ

仮想環境により、OSのPythonインストールとその他のプロジェクトからプロジェクトを分離できるようになります。

使用方法

仮想環境を使用するには、これらの手順に従います。

  1. 仮想環境を作成する:Pythonに標準搭載されている venv モジュールを使用すると、仮想環境を作成できます。 ターミナルを開いて、以下を実行します。

ディスカッション (0)0
続けるにはログインするか新規登録を行ってください