Gets a domain design.
function successHandler(domainDesign){ var html = ''; html += '<b>' + domainDesign.name + ':</b><br> '; for (var i in domainDesign.fields){ html += ' ' + domainDesign.fields[i].name + '<br>'; } document.getElementById('testDiv').innerHTML = html; } function errorHandler(error){ alert('An error occurred retrieving data: ' + error); } LABKEY.Domain.getDomainDetails({ schemaName: 'study', queryName: 'StudyProperties', success: successHandler, failure: errorHandler }); Copy
function successHandler(domainDesign){ var html = ''; html += '<b>' + domainDesign.name + ':</b><br> '; for (var i in domainDesign.fields){ html += ' ' + domainDesign.fields[i].name + '<br>'; } document.getElementById('testDiv').innerHTML = html; } function errorHandler(error){ alert('An error occurred retrieving data: ' + error); } LABKEY.Domain.getDomainDetails({ schemaName: 'study', queryName: 'StudyProperties', success: successHandler, failure: errorHandler });
Gets a domain design.