Programmatically setting QC states

LabKey Support Forum (Inactive)
Programmatically setting QC states Jon (LabKey DevOps)  2016-10-26 22:41
Status: Closed
 
Hi Ariel,

The XML in question is tied to the study.xml file that gets exported out of the system with a study archive. If you actually download the importable study from our demo study tutorial (https://www.labkey.org/home/Documentation/wiki-page.view?name=setupDemoStudy), you will see something like this:

  <qcStates file="quality_control_states.xml"/>

And the study will show you a "quality_control_states.xml" file with the following:

<?xml version="1.0" encoding="UTF-8"?>
<studyqc xmlns="http://labkey.org/study/xml/qcStates">
  <showPrivateDataByDefault>true</showPrivateDataByDefault>
  <blankQCStatePublic>true</blankQCStatePublic>
  <insertUpdateDefault>Not Yet Reviewed</insertUpdateDefault>
  <qcstates>
    <qcstate name="Not Yet Reviewed" description="Data that has not been reviewed by the committee." public="true"/>
    <qcstate name="Reviewed - Passed" description="Data that has cleared the qc committee criteria." public="true"/>
    <qcstate name="Reviewed - Rejected" description="Data that has failed the qc committee criteria." public="true"/>
  </qcstates>
</studyqc>

This however wouldn't be a GUI setting (except for the standard GUI for the QCStates as described here: https://www.labkey.org/home/Documentation/wiki-page.view?name=manageQC).

Does that make sense?

Regards,

Jon