Sample Approval Updated Event

Sepasoft MES Module Suite

After the sample approval state has been updated, any script in this event is run. This includes samples that are set for automatic approval. It is provided to allow for the performance of other actions when sample approval state changes.

Event Methods

 

getSample()


Description

Returns the sample for which the approval state changed. (See Sample section more information).


Syntax

getSample()

 

  • Parameters

None

  • Returns

The sample for which the approval state changed.




isApproval()


Description

Returns true if the sample has been approved.


Syntax

isApproval()

 

  • Parameters

None

  • Returns

boolean - True if the sample has been approved.




isUnApproval()


Description

Returns true if the sample has been unapproved.


Syntax

isUnApproval()

 

  • Parameters

None

  • Returns

boolean - True if the sample has been unapproved.



 

 

Code Example

Code
#Add 1 to an unrelated SQLTag value
val = system.tag.getTagValue('[Default]Quality\Test\Sample Approval Updated')
val = val + 1
system.tag.writeToTag('[Default]Quality\Test\Sample Approval Updated', val, 1)

 

 

 

 

 

 

Sepasoft MES Module Suite