Manipulating Specimens using R API

LabKey Support Forum (Inactive)
Manipulating Specimens using R API Jon (LabKey DevOps)  2016-07-29 13:02
Status: Closed
 
Hi Eva,

Just curious, what kind of Specimen Repository do you have? Is it the Standard Specimen Repository or is it the Advanced (External) Specimen Repository?

I have the advanced version running on my test and I was able to insert into my SpecimenDetail table without any trouble via JavaScript:

<button onclick="buttonClick()">Click Me</button>


<script type="text/javascript">

function buttonClick(){

LABKEY.Query.insertRows({
    requiredVersion: 9.1,
    schemaName: 'study',
    queryName: 'SpecimenDetail',
    rows: [{
                "ParticipantId": '00003',
        "SequenceNum": '1.0',
        "GlobalUniqueId": '23452345234523452345',
                "Volume": '123'
             }],
             successCallback: function(data){
            alert('Successful!');
             },
});

}
</script>

Can you go into your Study under the Manage tab and click on "Change Repository Type" and tell me what you see there?

Regards,

Jon