After Sample Update Event

Sepasoft MES Module Suite

After a new sample is added or an existing sample is updated to the database, any script in this event is run. This includes samples that have been scheduled with no measurement data. It is provided to allow for the performance of other actions when sample information changes.

Event Methods

 

getSample()


Description

Returns the new or updated sample. (See Sample section for more information). 


Syntax

getSample()

 

  • Parameters

None

  • Returns

Sample sample - The new or updated sample.


 

 

Code Example

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



 

 

Sepasoft MES Module Suite