system.mes.analysis.deleteMESAnalysisSettings

Sepasoft MES Module Suite

Description

Deletes the specified stored analysis settings.

Syntax

system.mes.analysis.deleteMESAnalysisSettings(savedSettingsName)


  • Parameters

String savedSettingsName - The name of the saved analysis settings to delete.

  • Returns

None

  • Scope

All

Code Examples

Code Snippet

Code
sasName = 'SAS Test'
list = system.mes.analysis.getMESAnalysisSettingsList()
print list

system.mes.analysis.deleteMESAnalysisSettings('SAS Test')	
list = system.mes.analysis.getMESAnalysisSettingsList()
print list

Output

Code
[SAS Test]
[] 

Syntax

system.mes.analysis.deleteMESAnalysisSettings(savedSettingsName, user)


  • Parameters

String savedSettingsName - The name of the saved analysis settings to delete.

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

None

  • Scope

All

Code Examples

Code Snippet

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

system.mes.analysis.deleteMESAnalysisSettings('SAS Test', user)	
list = system.mes.analysis.getMESAnalysisSettingsList(user)
print list

Output

Code
[SAS Test]
[] 

Sepasoft MES Module Suite