Nueva publicación

Encontrar

Pregunta
· 19 jul, 2024

How to make a custom studio document work correctly with $System.OBJ.Load() ?

Hi all,

I have some .vm (Velocity Templating Language) files that I'd like to be able to load into IRIS with the $System.OBJ.Load(filename) command, but it seems that only accepts XML files.

I've tried adding import/export logic in my custom studio document that will wrap the velocity content inside an XML document and vice versa, I've changed the existing Velocity files to have the extension .xml and be wrapped in XML, and I've included a .dtd file for them to reference. However, this doesn't seem to work.

Does anyone have suggestions for how can I make my custom studio document work correctly with $System.OBJ.Load()?

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

[Vidéo] Renforcer la coordination Ville-Hôpital et la consolidation de services numériques

Salut la Communauté!

Profitez de regarder la nouvelle vidéo sur la chaîne Youtube d'InterSystems France :

📺 Renforcer la coordination Ville-Hôpital et la consolidation de services numériques

🗣 Intervenant : @Florence Cureau, Solution Architect InterSystems

Entre la crise de l'hôpital et un patient qui veut être acteur de son parcours de santé, une révolution est en marche. Florence présente HealthShare, qui apporte une réponse rapide et éclairée, en reliant le monde de la médecine libérale et l'hôpital pour une prise en charge globale. Découvrez comment HealthShare vise à créer un cercle vertueux au bénéfice du patient.

Abonnez-vous à notre chaîne youtube pour plus de vidéos et restez à l'écoute !

1 Comentario
Comentarios (1)2
Inicie sesión o regístrese para continuar
Artículo
· 18 jul, 2024 Lectura de 2 min

InterSystems 常见问题系列--如何使用命令获得应用错误 (^ERRORS)

InterSystems 常见问题系列

使用 ErrorList 查询 SYS.ApplicationError 类.

  • 注 1: 在 %SYS 命名空间中运行.
  • 注 2: 这是个非存储的utility, 所以我们用 %ResultSet 类而不用 %SQL.Statement.

执行命令的例子如下.

USER>set $namespace="%SYS"   //equal to zn "%SYS"
%SYS>set rset=##class(%ResultSet).%New()

%SYS>set rset.ClassName="SYS.ApplicationError"
%SYS>set rset.QueryName="ErrorList"
// The first argument of the query is the namespace name, the second argument is the date (in MM/DD/YYYY format).
%SYS>do rset.Execute("USER","08/17/2020")

// To display the results on the screen, execute the %Display() method.
%SYS>do rset.%Display()
Error # Error message   Time    Process DisplayPID      Username        Code line
1 <DIVIDE> 02:43:10 2536 2536 irisowner

1 Rows(s) Affected

%SYS>do rset.Close()

以下显示如何获得在浏览行时获取SELECT的列值The following shows how to get column values ​​of a SELECT while navigating through rows.

使用Next()方法来移动到一行(如果行存在的话返回1)

获取一列的话使用 Get("column name"). 具体列名,请参考类文档里面的ErrorList 查询描述。

关于ErrorList 查询的列名.

%SYS>do rset.Execute("USER","08/17/2020")

%SYS>while rset.Next() { write rset.Get("Error #"),"-",rset.Get("Error message"),"-",rset.Get("Time"),"-",rset.Get("Code line"),!}
1-<DIVIDE>-02:43:10-

For terminal viewing, you can also use the ^%ER routine.

Execute the following while in the namespace you want to reference (the example is executed in the USER namespace).

The green bold underlined text indicates the input area.

USER>do ^%ER
 
For Date: ?L
Thu 09/17/2020  (T)   2 Errors
Mon 09/07/2020  (T-10) 3 Errors
Mon 08/31/2020  (T-17) 1 Error
Mon 08/24/2020  (T-24) 1 Error

For Date: 09/17/2020  17 Sep 2020   2 Errors

Error: ?L
 1. " *a"  at  9:05 am.   $I=|TRM|:|13484   ($X=0  $Y=15)
     $J=13484  $ZA=0   $ZB=$c(13)   $ZS=262144 ($S=268271680) 
 2. "^%ETN"  at  9:05 am.   $I=|TRM|:|13484   ($X=0  $Y=17)
     $J=13484  $ZA=0   $ZB=$c(13)   $ZS=262144 ($S=268263368)
     %ETN     ;%STACK-related error log

 Error: 1
 1. " *a"  at  9:05 am.   $I=|TRM|:|13484   ($X=0  $Y=15)
     $J=13484  $ZA=0   $ZB=$c(13)   $ZS=262144 ($S=268271680)
Variable:

Error:
 
For Date:
USER>

日期: 错误发生的日期格式为 mm/dd/yyyy

错误: 明确错误编号.

看完之后,回车即可退出。

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

InterSystems 常见问题系列--如何在global ^ERRORS 里面加入应用日志

InterSystems 常见问题系列

可以通过 TRY-CATCH 来完成:

 #dim ex As %Exception.AbstractException
 TRY {
    //Code that causes an error
  }
  CATCH ex {
     do ex.Log()
  }

如果用了 ^%ETN, 从BACK 接入点 (BACK^%ETN)处调用.

请参考另外一篇文章: 如何使用命令获得应用错误 (^ERRORS)

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

Would like some clarification on Class Markdown in https://ideas.intersystems.com/ideas/DPI-I-542

I am a first time Python Contest participant and am interested in potentially implementing the community idea found in https://ideas.intersystems.com/ideas/DPI-I-542 if it is something relevant to Python.

Would anyone be able to shed a bit of light on what the desired outcome of that idea being implemented is? There were a lot of upvotes on that idea but there wasn't very much information in it. Thanks!

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