查找

问题
· 二月 3

Load ObjectScript external file and run code

Hi,

I have Objectscript routine stored in an external Linux file which I've called /my/home/DisplayDB.int

This file does not include any Class definitions and is simply a set a Object script routines. I think this is called INT objectscript

The file looks like this:

set db=##class(Config.Databases).DatabasesByServer("",.dbList)
for i=1:1:$LENGTH(dbList,",") {
  set dbName= $PIECE(dbList,",",i)
  write dbName,!
}

How do I load and compile the Objectscript code?
Do $system.OBJ.Load("/my/home/DisplayDB.int", "ck")

How would I run the code?
do ^DisplayDB

Thanks in advance for any help

3 Comments
讨论 (3)1
登录或注册以继续
摘要
· 二月 3

InterSystems 开发者出版物,一月 27 - 二月 02, 2025,摘要

一月 27 - 二月 02, 2025Week at a GlanceInterSystems Developer Community
InterSystems 官方
· 二月 2

InterSystems IRIS、IRIS for Health 和 HealthShare HealthConnect 的维护版本 2024.1.3 现已发布

InterSystems IRISInterSystems IRIS for HealthHealthShare Health Connect 的最新扩展维护版本现已发布。

✅ 2024.1.3

版本 2024.1.3 修复了 2024.1.x 上一版中的 bug,包括针对最近发布的以下提醒的修复 – 提醒:在执行特定的操作时,数据库和日志文件中引入了无效数据…

您可以在以下页面上找到详细的变更列表和升级核对清单:

讨论 (0)0
登录或注册以继续
公告
· 二月 2

InterSystems Open Exchange Applications Digest, January 2025

Hello and welcome to the January 2025 Open Exchange Recap.
General Stats:
3 new apps in January
390 downloads in January
1,031 applications all time
38,603 downloads all time
3,010 developers joined
New Applications
demo-dbs-iris
By Andreas Schneider
iris-iop-dtl-demo
By Guillaume Rongier
iris-salesforce
By Yuri Marx
New Releases
Jupyter Server Proxy for VS Code by John Murray
v0.1.1
  • Simplify connection workflow
Samples-Aviation by Evgeny Shvarov
v1.0.5
iKnow modules deprecated
IRIS apiPub by Claudio Devecchi
v1.1.80
bug fixes & improvements
v1.1.81
improvements
Git for Shared Development Environments by Timothy Leavitt
v2.9.0

[2.9.0] - 2025-01-09

Added

  • Menu option to export production to support migrating to production decomposition (#665)

Fixed

  • Fixed errors on production page when item settings need to be XML escaped (#667)
  • Fixed push button not appearing after commit (#654)
  • Fixed merge conflict resolution on stash popping (#531)
  • Improvements to the performance of the instance-wide uncommitted check (#674)
  • Fix "Max $ZF String" error when committing lots of files (#617)
iris-datapipe by Alberto Fuentes
v2.0.5
  • Error search added
isc-ipm-js by Timothy Leavitt
v1.1.4

[1.1.4] - 2025-01-23

Fixed

  • Now compatible with IPM 0.9.x versions
DeepSeeWeb by Anton Gnibeda
v4.0.17
  • added missing "Singapore" to default GeoJSON
Intersystems-Monitoring by Teunis Stolker
v1.0.21
Made error filtering more robust.
Most downloaded
MDX2JSON
By Eduard Lebedyuk
DeepSeeWeb
By Anton Gnibeda
ObjectScript-Math
By Peter Steiwer
ssl-client
By Evgeny Shvarov
WebTerminal
By Nikita Savchenko
Intersystems-Monitoring
By Teunis Stolker
passwordless
By Sergey Mikhailenko
isc-json
By Timothy Leavitt
isc-ipm-js
By Timothy Leavitt
January, 2025Month at a GlanceInterSystems Open Exchange
讨论 (0)1
登录或注册以继续