system.mes.trace.getUserIDList

Sepasoft MES Module Suite

system.mes.trace.getUserIDList(operationName, equipmentPath, beginDateTime, endDateTime, exclusiveTimeRange, userIDPattern, includeDisabled)

Used to get the UserID from an already recorded Operation to be able to modify or delete it. 

Warning

Available in MES 3.81.10 SP2 and later

For version downloads, go to https://www.sepasoft.com/downloads/.

Syntax

system.mes.trace.getUserIDList(operationName, equipmentPath, beginDateTime, endDateTime, exclusiveTimeRange, userIDPattern, includeDisabled)

Parameters

Requires at least one optional parameter to be included, excluding exclusiveTimeRange and includeDisabled

Data Type
Name Description

String

operationName
[optional] The name of the OperationsResponse that the userID comes from. It is case sensitive and can accept wildcards (?, *). 

String

equipmentPath
[optional] The path of equipment that this operation was performed on.  Exception thrown if invalid path.
DateTime
beginDateTime
[optional] The begin datetime range for the operations. (see exclusiveTimeRange for more details).
DateTime
endDateTime
[optional] The ending datetime range for the operation.
Boolean
exclusiveTimeRange

[optional] Toggles the date range to only show results bounded by beginDateTime and endDateTime. Defaults to False. 


If false, any userIDs that had operations active between the time range are returned. 


If true, only userIDs bounded by (including equal to) the time range are returned, and beginDateTime and endDateTime are required.

String
userIDPattern
[optional] Filter for the userIDs that are returned.  Case sensitive and can accept wildcards (?, *).  Default to none.
Boolean
includeDisabled
[optional] False by default. If set true returns all records even if the MESOperationsResponse is disabled.

Returns

List <String> of all operation userIDs that match the filter parameters.

Scope

All

Script Example

Python
#Get the userIDList based on the operation name
eqPath = 'New Enterprise\New Site\New Area\New Line'
operationName = 'Oper 7-26-ID2'

userIDList = system.mes.trace.getUserIDList(operationName = operationName, equipmentPath = eqPath)

Python
[u'testid1']


Sepasoft MES Module Suite