Creating ParticipantGroups using the JS API

LabKey Support Forum (Inactive)
Creating ParticipantGroups using the JS API Jon (LabKey DevOps)  2015-05-19 17:01
Status: Closed
 
Hello,

Although you can get the RowIds by viewing the table, then customizing the view to Show Hidden Fields, then adding the RowId to your view, the system appears to prevent someone from doing an insert into the ParticipantCategory table and the ParticipantGroup table. So doing an insertRows or saveRows Javascript API call wouldn't work in this case.

The entire page that controls adding and managing participant groups is done by ParticipantGroup.js file that is under the Study server module, but I'm not seeing anything within it that could allow a Javascript API to insert in new groups (which it would have to first start by inserting into the ParticipantCategory table first, then use the RowId number from the ParticipantCategory table and use it in the ParticipantGroup table.

I'll confirm with our developers if there is a way to do this without having to use the UI to be certain.

Regards,

Jon