Gets assay designs available in a folder. Optionally, filter the results based on criteria.
function successHandler(assayArray){ var html = ''; for (var defIndex = 0; defIndex < assayArray.length; defIndex ++){ var definition = assayArray[defIndex ]; html += '<b>' + definition.type + '</b>: ' + definition.name + '<br>'; for (var domain in definition.domains){ html += ' ' + domain + '<br>'; var properties = definition.domains[domain]; for (var propertyIndex = 0; propertyIndex < properties.length; propertyIndex++){ var property = properties[propertyIndex]; html += ' ' + property.name + ' - ' + property.typeName + '<br>'; } } } document.getElementById('testDiv').innerHTML = html;}function errorHandler(error){ alert('An error occurred retrieving data.');}// Get all assay design of type "General"LABKEY.Assay.getAssays({ success: successHandler, failure: errorHandler, type: 'General' }); Copy
function successHandler(assayArray){ var html = ''; for (var defIndex = 0; defIndex < assayArray.length; defIndex ++){ var definition = assayArray[defIndex ]; html += '<b>' + definition.type + '</b>: ' + definition.name + '<br>'; for (var domain in definition.domains){ html += ' ' + domain + '<br>'; var properties = definition.domains[domain]; for (var propertyIndex = 0; propertyIndex < properties.length; propertyIndex++){ var property = properties[propertyIndex]; html += ' ' + property.name + ' - ' + property.typeName + '<br>'; } } } document.getElementById('testDiv').innerHTML = html;}function errorHandler(error){ alert('An error occurred retrieving data.');}// Get all assay design of type "General"LABKEY.Assay.getAssays({ success: successHandler, failure: errorHandler, type: 'General' });
AssayDesign
Gets assay designs available in a folder. Optionally, filter the results based on criteria.
Examples