Pesquisar

質問
· 2025年5月5日

cspで使うセッション変数の値を関数で変更して元の画面を表示するとアペンドする現象が生じる。

次のようなプログラムです。

<a href=# onclick='Js_StageCNG(3)'>ステージ3に進む</a>
・・・
    Set Stage=%session.Get("STAGE")
    if Stage="" set Stage=1
   ・・・
if Stage=3 {
  動かなかったので、すべてコメントに変えたがやはり動かなかった
}
<script language=javascript>
  function Js_StageCNG(key) {
       ans=#server(..StageCNG(key))#
       window.location.href="...csp"
}
</script>
<script language=cache method="StageCNG" arguments="key:%Library.String" returntype="%Boolean">
    do %session.Set("STAGE",key)
    quit 1
</script>

この現象は、最近、突然に起こるようになりました。

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

Adding an OBX segment to end of message

We are receiving an ORU message and the vendor is requesting that we append a new OBX segment at the end of the message and I wanted to reach out to see what options might be available. 

So far, I tried the append action in the DTL editor with a single OBX-3 field but it seems to be appending to the field directly instead of creating a new OBX. I've started looking into if whether I could use a function but wanted to first check with the experts on the Discussion here in case there's an easier way to accomplish this. Thank you. 

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

Key Questions of the Month: April 2025

Hey Community,

It's time for the new batch of #KeyQuestions from the previous month.

Here are the Key Questions of April chosen by InterSystems Experts within all Communities:

📌 How to convert persistent object to dynamic object by @Evgeny Shvarov (EN)

📌 Problem with ollama container in langchain-iris-tool by @Oliver Wilms (EN)

These questions will be highlighted with the #Key Question tag, and their authors will get the Key Question badge on Global Masters.

If you find the key question(s) from other communities interesting, just drop us a line in the comments and we will translate the question(s) and the accepted answer(s).

Congrats, and thank you all for your interesting questions. Keep them coming!

See you next month😉

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

Problem exporting %Library.DynamicObject to JSON with %JSON.Adaptor

Hello everyone,

I am using a class that inherits from %RegisteredObject and %JSON.Adaptor to generate a JSON string from its instances.

However, one of the properties in my class is of type %Library.DynamicObject, as in the example:

Class Faces.Option Extends (%RegisteredObject, %JSON.Adaptor)
{ 
Property legend As %String;
Property xAxis As %Library.DynamicObject; 
}

When calling %JSONExportToString() on an object of this class, the JSON generated for the xAxis property is incomplete or malformed. It seems the default %JSON.Adaptor doesn't correctly handle properties of type %Library.DynamicObject.

Example of the resulting JSON: {"legend":"test","xAxis": { ... (broken JSON) ...

Previously (in Caché 2018), I used %ZEN.proxyObject for similar situations, but I need a solution for the current versions during migration.

Does anyone know how I can configure %JSON.Adaptor to correctly serialize %Library.DynamicObject properties, or what the recommended approach for this would be?

Thanks!

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

Rule Editor Login Credentials Issue in Community Edition

Hi,

I've been working on a very basic Interoperability production in my computer. I followed one of the examples in the courses and created a TEST.FileRouterRoutingRule, but when trying to edit this rule, it takes me to the Rule Editor Login Page, where I can't get in (Not even with the _SYSTEM credentials) - Is this functionality unavailable in the community edition?

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