Skip to end of metadata
Go to start of metadata
Description

Returns a reference to the sample definition object with a matching ID. The ID is generated by the database when the sample definition was first saved.

Syntax

system.quality.definition.getSampleDefinition(sampleDefID)


  • Parameters

Integer sampleDefID - Database created ID for the sample definition.

  • Returns

Sample Definition object

  • Scope

All

Code Examples
Code Snippet
defId = '1' 
sampleDef = system.quality.definition.getSampleDefinition(defId)



 system.quality.definition.getSampleDefinition(sampleDefName)
Description

Returns a reference to the sample definition object with a matching name. The name is generated by the database when the sample definition was first saved.

Syntax

system.quality.definition.getSampleDefinition(sampleDefName)


  • Parameters

String sampleDefName - The name given to the sample definition when it was created.

  • Returns

Sample Definition object

  • Scope

All

Code Examples
Code Snippet
defName = 'Dimension Sample A' 
sampleDef = system.quality.definition.getSampleDefinition(defName)