Sepasoft MES Module Suite
system.mes.spc.sample.setCause(sample, attributeName, cause, userName)
Set an assignable cause to the specified sample and attribute.
Syntax
system.mes.spc.sample.setCause(sample, attributeName, cause, userName)
- Parameters
Sample sample - The sample object to add the assignable cause to.
String attributeName - The attribute of the sample to associate the assignable cause to.
String cause - The assignable cause. This can be an existing assignable cause or a new assignable cause. Use the getCauseList() function to return the assignable causes that have previously been used.
String userName - The user name that is adding the assignable cause.
- Returns
Nothing
- Scope
All
Code Example
Python |
#The following script will set a note and cause for a sample. sampleUUID = '8e117278-a7bc-454e-b3a7-0d5fe17e38ac' sampleUUID = '8e117278-a7bc-454e-b3a7-0d5fe17e38ac' sample = system.mes.spc.sample.getSample(sampleUUID) cause = 'overfill' userName = 'admin' attributeName = 'att1' note = 'issue with filler relay' system.mes.spc.sample.setNote(sample, attributeName, note, userName) system.mes.spc.sample.setCause(sample, attributeName, cause, userName) |
Sepasoft MES Module Suite