发布新帖

查找

文章
· 三月 25, 2021 阅读大约需 8 分钟

将 Python ODBC 连接到 IRIS 数据库 - 第 2 条快速笔记

关键字:PyODBC,unixODBC,IRIS,IntegratedML,Jupyter Notebook,Python 3

目的

几个月前,我简单谈到了关于“将 Python JDBC 连接到 IRIS”的话题。我后来频繁提起它, 因此决定再写一篇 5 分钟的笔记,说明如何“将 Python ODBC 连接到 IRIS”。

在 Windows 客户端中通常很容易设置 ODBC 和 PyODBC,不过我每次在 Linux/Unix 风格的服务器中设置 unixODBC 和 PyODBC 客户端时,都会遇到一些麻烦。

有没有一种简单连贯的方法,可以不安装任何 IRIS,在原版 Linux 客户端中让 PyODBC/unixODBC 针对远程 IRIS 服务器运行?

1 Comment
讨论 (1)2
登录或注册以继续
InterSystems 官方
· 三月 23, 2021

March 23, 2021 - Alert: HS2021-03: Potential Data Integrity Issue with Mirror Dejournaling (HealthShare)

Dear HealthShare Customer:

This post is part of the HealthShare HS2021-03 Alert communications process.  The same information is also distributed:

Alert Products & Versions Affected Risk Category & Score
HS2021-03 -01: Potential Data Integrity Issue with Mirror Dejournaling

This issue affects all HealthShare Products and Versions that support mirroring:

  • HealthShare Unified Care Record/Information Exchange, Health Insight, and Patient Index version 15.02 and newer
  • HealthShare Personal Community version 12.0 and newer
  • HealthShare Provider Directory 2019.2, 2020.1 and 2020.2
  • HealthShare Health Connect and HSAP versions that support mirroring

2-Low Risk (Clinical Safety)

1-Very Low Risk (Privacy)

1-Very Low Risk (Security)

2-Low Risk (Operations)

 

If you have any questions regarding this advisory, please contact the support@intersystems.com, and reference “HealthShare Alert HS2021-03”.

讨论 (0)0
登录或注册以继续
讨论 (5)1
登录或注册以继续
文章
· 三月 18, 2021 阅读大约需 2 分钟

VSCode Tips & Tricks - SOAP Wizard

Another VSCode "Tips & Tricks" entry -

Do you want to see this option in VSCode?

This time we'll focus on how to get the SOAP Wizard as was available in Studio (to define a WSDL-based SOAP Web Service client (and Business Operation), or service).

If you work with Web Services you most probably used the SOAP Wizard in Studio. You would open it via Tools -> Add-Ins

And this opened a "Server Template" -

In VSCode you might be wondering how you can access this.

Well the basic fact you need to understand is that truly this Add-In or Wizard is simply a web page, displayed within Studio per above, and as such can also be accessed in a simple browser. VSCode facilitates the opening of such a browser with the desired content (ultimately constructing the correct URL with the right server name, port, web application, etc.).

The result would be the same as you see an option to open the Management Portal or the Class Reference (with relevant URLs) when you click on the Server Connection on the bottom Status Bar of VSCode, for example:

You will also see an entry for the SOAP Wizard.

You can achieve this by adding a 'links' entry in to your 'conn' object in your Settings JSON of your ObjectScript Extension, and specifying the desired URL (using the relevant variables).

This is mentioned in the VSCode ObjectScript's GitHub Issues discussion under a "SOAP Wizard" issue, with comments by @John Murray and @Ondřej Hoferek, and also referred to in this comment on a Community post by @Timothy Leavitt 
 

The JSON value would be:

"SOAP Wizard": "${serverUrl}/isc/studio/templates/%25ZEN.Template.AddInWizard.SOAPWizard.cls?Namespace=${namespace}${serverAuth}"

 

And this part would look like this:

Once you have this you will see an extra option when you click on the Connection -

And choosing that option will take you to the desired Wizard (opened in a Browser):

Here's a short GIF demonstrating this process (starting from the regular menu when clicking the Connection, and ending with the menu including the SOAP Wizard).

 

Note there are other Wizards (or Templates) you can add this way (like the XSD Wizard for example).

4 Comments
讨论 (4)3
登录或注册以继续
文章
· 三月 10, 2021 阅读大约需 3 分钟

RESTでセッション共有化する方法

これは InterSystems FAQ サイトの記事です。

REST アプリケーションはステートレスであることが想定されています。

しかし、複数の REST 呼び出し間でデータを保持したい場合などの理由で、Webセッションを使用したい場合は、UseSession パラメータを使用することができます。

以下のように、Web アプリケーションのディスパッチクラスとして定義された %CSP.REST のサブクラスでUseSession パラメータを指定することで、CSPと同じようにWebセッションを使用することが可能となります。

Class REST.MyServices Extends %CSP.REST
{
 Parameter UseSession As Integer = 1;


詳細は以下のドキュメントをご覧ください。

REST での Web セッションの使用


以下は、UseSession パラメータを使用した簡単なサンプルになります。最初に、2つのクラスを作成してください。


REST.SessionTest.cls

Class REST.SessionTest Extends %CSP.REST
{

Parameter UseSession As Integer = 1;

XData UrlMap
  {
    <Routes>
      <Route Url="/test/" Method="GET" Call="test"/>
    </Routes>
  }

ClassMethod test() As %Status
  {
    write "{""SessionId"":"""_%session.SessionId_"""}"
    quit $$$OK
  }
}


REST.test.cls

Class REST.test Extends %CSP.Page
{
ClassMethod OnPage() As %Status
  {
  &html<
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> 
<script type="text/javascript" src="http://code.jquery.com/jquery-2.2.4.js"></script>
<script type="text/javascript">
function go() {
   $.ajax({
     type:'GET',
     dataType:'json',
     url:'/csp/user/rest/test/',
     success:function(data) {
       ans = '';
       for(var i in data) {
           ans = ans + '\n' + JSON.stringify(data[i]);
       }
       alert(ans);
     }
   });
  return;
  }
  </script>

      </head>
      <body>
        <form name="xxx" method="post" action="">
          <input type="button" name="test" onclick="go();" value="push" /></p>
        </form>
        Session ID: #(%session.SessionId)#<br>
      </body>
    </html>


サンプルの使用方法は以下になります。

1. 上記2つのクラスをUSERネームスペースに作成し、コンパイルする

2. ウェブアプリケーション /csp/user/rest を作成、
     ディスパッチクラスに REST.SessionTest を設定、
     セッションCookieパスを /csp/user に変更して保存

 

3. ブラウザで /csp/user/REST.test.cls を開いて、push ボタンを押す

 

讨论 (0)0
登录或注册以继续