New post

Find

Question
· Nov 13, 2024

%CSP.Page.Include doesn't seem to work

I'm trying to rewrite a legacy portal created with all .csp files into a portal written in .cls files. The problem I have is that the old cap pages use "csp:include page='page.csp'> tags. I'm trying to use the Include method  that is in the %CSP.Page master page. It doesn't seem to insert the required file. Any suggestions?
 

<table width="100%">
<tr>
<script language="Cache" runat="server">
do ..Include("pubsub/portal/include/headLogoDXC.csp")
#; <!--csp:include page="/pubsub/portal/include/headLogoDXC.csp"-->
</script>
</tr>
</table>
1 Comment
Discussion (1)1
Log in or sign up to continue
Digest
· Nov 13, 2024

InterSystems Community Q&A Monthly Newsletter #42

Top new questions
Can you answer these questions?
#InterSystems IRIS
Error Executing Stored Procedure in InterSystems Cache using SQL
By Qais Azam
How to package a custom IPM resource processor?
By Jani Hurskainen
cannot connect to the management portal but can connect to the web gateway - "Server is currently unavailable"
By Fred Gustafsson
Production "Update" activation which prevents tasks from running
By Moussa SAMB
Can InterSystems IRIS Data Platform 2019 be Integrated with Snowflake?
By Pavan Kumar Rayudu
setting up ALB and Proxy container
By Jignesh Patel
Running a routine by name in a non-conventional way?
By omer
Existing protections against XSS attacks on CSP pages ?
By Norman W. Freeman
How to view the patch version
By Martin Weissenborn
How to search message details in LIVE based on MRN
By prashanth ponugoti
dynamic SQL in object script code
By Kaveh Kaviani
IRIS Docker template not copying files
By Nicki Vallentgoed
Load and compile error
By omer
How to get the native sql error in SQL outbound adapter?
By Kurro Lopez
VSCode auto complete and show class methods while typing
By Paul Hula
Python import Iris AccessDenied
By Herman Slagman
Is there some tricks to make $system.obj.load() faster ?
By Norman W. Freeman
How to handle a XML without Schema in a Business Rule?
By Nicky Zhu
Operation Email sender error #6034 connection with SMTP not successfull
By Jacopo Magliani
#Caché
#InterSystems IRIS BI (DeepSee)
#InterSystems IRIS for Health
Monitoring - Adding multiple labels to a custom metric
By Claude Mourzelas
how to get notification that a web client has disconnected when using EnsLib.SOAP.Service/EnsLib.REST.Service
By Elisha Gould
Production messages visualization
By Dmitrii Baranov
File generation issues while using $ZF(-100 asynchronously
By Ashok Kumar
zToQuickXML+11^HS.SDA3.NVPair
By Shashvati Dash
FHIR "Search selects more than maximum allowed number of results (1000)."
By Dmitrii Baranov
ForEach with Assign only returning the second looped aux value in foreach when sending from rule editor
By Mark OReilly
SourceControl of InterSystems health IRIS cloud
By Yuhong Snyder
Can you build an IRIS Container without a license?
By John McBride
Help Needed: How to Ensure BPL ????? for All Asynchronous Calls Before Proceeding?͓̽
By Yone Moreno Jimenez
I want to test if two fields are numeric and positive, do subtraction, and test if the result is positive.
By Jonathan Harris
#Health Connect
#Ensemble
#42Monthly Q&A fromInterSystems Developers
Article
· Nov 13, 2024 7m read

IRIS+WSGIでOAuth2クライアントを実行する方法

以前、Azure用にOAouth2クライアントをセットアップする記事を書いた時に思ったのですが、各IdPはサンプルコードとしてPythonコードや専用のモジュールを提供しているので、それがそのまま使用できれば効率が良いのにな、と思いました。

IRISが埋め込みPython機能としてWSGIをサポートしたことにより、これが簡単に実現しそうなので、その方法をご紹介したいと思います。

導入方法

今回は、IdPとしてOKTAを使用してAuthorization Codeフローを行います。

OKTAでの設定内容

参考までに、今回使用した環境を後半に記載しています。

アプリケーションの起動

コンテナ化してありますので、コンテナのビルド環境をお持ちの方は、下記を実行してください。

Discussion (0)1
Log in or sign up to continue
Announcement
· Nov 13, 2024

Developer Community AI: InterSystems IRIS Documentation added

Hey Community,

We’re excited to announce a new upgrade to Developer Community AI!

Now, in addition to Community posts and comments, Developer Community AI also pulls information from official InterSystems IRIS documentation to answer your questions. This new feature lets you customise your search sources so you get the most relevant answers tailored to your needs.

Just choose the sources and ask the question:

  • Community posts
  • InterSystems IRIS Documentation
  • or both! 

With the documentation now added to the knowledge base, feel free to ask your questions again – you might receive a different, more accurate answer.

Check it out and share your thoughts in the comments below!

Discussion (0)1
Log in or sign up to continue
Question
· Nov 13, 2024

Monitoring - Adding multiple labels to a custom metric

Hello,

I want to upload a "custom" metric in prometheus (queue).

For now, in version 2022, I have the impression that we cannot add multiple labels and yet the basic metrics know how to do it.

ex: standard metric

iris_interop_messages_per_sec{cluster="1", host="xxxx", id="API", instance="xxxx:80", job="SAM", production="xxxx"}

my current example: I would like to be able to at least add the production, just to have the source of the measurement.

my_iris_queue{cluster="1", id="xxxx", instance="xxx", job="SAM"}
Do you have any idea how to do this? I remind you that in version 2022, we don't have the SetSensorsLabel method!

Thanks in advance

2 Comments
Discussion (2)1
Log in or sign up to continue