system.mes.analysis.getMESAnalysisSettingsList

Sepasoft MES Module Suite

Description

Return a list of names of stored analysis settings.

Syntax

system.mes.analysis.getMESAnalysisSettingsList()


  • Parameters

None

  • Returns

List<String> - A list object containing strings of the stored analysis names.

  • Scope

All

Code Examples

Code Snippet

Code
print system.mes.analysis.getMESAnalysisSettingsList()

Output

Code
 [Dashboard_ProductionAnalysis, Dashboard_LineAnalysis, Report_Daily_Production_Data, Report_RRT]

Syntax

system.mes.analysis.getMESAnalysisSettingsList(user)


  • Parameters

PyUser user - User object obtained by calling system.user.getUser(). This is optional and only available if calling this script from a Gateway Context, such as when doing analysis in a tag change event script or similar. If a user is passed in, their security settings will be used. If a user is not passed in and the script is executing from a Gateway Event script, analysis security settings will not be applied.

  • Returns

List<String> - A list object containing strings of the stored analysis names that are valid for the passed user.

  • Scope

All

Code Examples

Code Snippet

Code
user = system.user.getUser('UserSource', 'UserName')
print system.mes.analysis.getMESAnalysisSettingsList(user)

Output

Code
[Dashboard_ProductionAnalysis, Dashboard_LineAnalysis, Report_Daily_Production_Data, Report_RRT] 

Sepasoft MES Module Suite