eLabSDK.SampleLink

Classes

NameDescription
eLabSDK

Functions

NameDescription
getSampleList(callback)Retrieve the list of sample that can be linked to the current sample
getSampleLink(linkedSampleID, callback)Retrieve the current linked sample name
getSampleInfo(linkedSampleID, callback)Retrieve the current linked sample info
sendErrorMessage(message, callback)Send an error message
copyLinkedSampleMetaFields(linkedSampleID, :)Copy meta field from specified linked sample
updateField(fieldLabel, fieldType, value)Update the specified fields with their new value

eLabSDK

Kind: global class

new eLabSDK()

This is the description for my class.

getSampleList(callback)

Retrieve the list of sample that can be linked to the current sample

Kind: global function

ParamTypeDescription
callbackfunction: function to execute once the list has been retrieved

getSampleLink(linkedSampleID, callback)

Retrieve the current linked sample name

Kind: global function

ParamTypeDescription
linkedSampleIDint: ID of the linked sample to retrieve
callbackfunction: function to execute once the sample has been retrieved

getSampleInfo(linkedSampleID, callback)

Retrieve the current linked sample info

Kind: global function

ParamTypeDescription
linkedSampleIDint: ID of the linked sample to retrieve
callbackfunction: function to execute once the sample has been retrieved

sendErrorMessage(message, callback)

Send an error message

Kind: global function

ParamTypeDescription
messagestring: error message
callbackfunction: function to send the error message to

copyLinkedSampleMetaFields(linkedSampleID, :)

Copy meta field from specified linked sample

Kind: global function

ParamTypeDescription
linkedSampleIDint: Linked sample ID to copy the fields from
:arrayArray of meta fields to copy

updateField(fieldLabel, fieldType, value)

Update the specified fields with their new value

Kind: global function

ParamTypeDescription
fieldLabelstring: Field label to copy the new value to
fieldTypestring: Field type to copy to (for now, only COMBO and TEXT supported)
valuestring: New field value

© 2023 eLabNext