Determine currently used service
I want to determine what service (eg. %Service_Console) is used for current process.
I can probably use some workarounds, i.e.
- Is %request object present
- Does $Device contain |TRM|
- etc
But is there any centralised way to get current service?
One solution would be to look at the audit database. It's not pretty, but there might not be any other way.
Note: if your application is using Caché security correctly, you'd probably need to define a privileged routine application to allow access to Security.Events and the audit database.
Thank you!
Hi Ed.
May I ask why do you need to do it?
Hi.
I want to create LOGIN^%ZSTART routine that works only for terminal connections. Here's the code.
And you need to do this why? I mean what is the end goal?
To show user some menu when they open Terminal?
You can specify "Startup Tag^Routine" for this purpose:
http://docs.intersystems.com/cache201513/csp/docbook/DocBook.UI.Page.cls...
Yes.
Awesome. Didn't knew that it aplied only to terminal devices.
The subject made me smile :) "service"
Shouldn't we wrap the above method and expose these services via a RESTful "service" API and even encapsulate the inside system Caché ObjectScript API we have with such "service"?
So the above would look something like:
GET /server/system/v1/services
and then of course you'd have all the other methods implemented...
Social networks
InterSystems resources
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue
Log in or sign up
Log in or create a new account to continue