Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

subsystem

AP_9587236
17-Peridot

subsystem

Can we call the services of subsystem in our javascript code?

3 REPLIES 3

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();

From this code, we can access only services, alerts and properties. But how to access Events, Subscriptions, Permissions, Change History ?

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 */
});
Announcements


Top Tags