subsystem
‎Jul 28, 2021
04:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Jul 28, 2021
04:09 AM
subsystem
Can we call the services of subsystem in our javascript code?
3 REPLIES 3
‎Jul 28, 2021
08:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Jul 28, 2021
08:29 AM
Yes you can. In your service editor, under Me/Entities, select Other Entity and type in the subsystem. You should see all the available services for that subsystem. The code will look similar to this:
// result: INFOTABLE dataShape: "EntityList"
var result = Subsystems["LoggingSubsystem"].GetConfigurationTables();
‎Aug 04, 2021
09:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Aug 04, 2021
09:06 AM
From this code, we can access only services, alerts and properties. But how to access Events, Subscriptions, Permissions, Change History ?
‎Aug 04, 2021
10:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
‎Aug 04, 2021
10:36 AM
You can use these services to access that (except for subscriptions, which I don't believe are available on Subsystems)
Subsystems["LoggingSubsystem"].GetConfigurationChangeHistory(); //Change history
Subsystems["LoggingSubsystem"].GetRunTimePermissions(); //Runtime permissions (you can also find design time permissions)
Subsystems["LoggingSubsystem"].GetEventDefinitions({ //event definitions
category: undefined /* STRING */,
dataShape: undefined /* DATASHAPENAME */
});