Creating ParticipantGroups using the JS API | rsautera | 2015-05-18 16:07 |
Status: Closed | ||
Hi, I am trying to create participant groups programmatically. The use case is to automatically create participants groups for demographics after importing data (via an ETL) into a new study. I was looking at the JavaScript API but it looks like there is a single function to update existing groups. Am I reading this correctly and all groups have to be created through the UI? Even with the update, how can I get a list of the rowId of existing participant groups? I looked for them in the study schema (the subject table view can be customized to show participant groups) but I could not display the Id. I tried a few random Ids just to test the API but could not get a natch: "Could not find participant group with rowId 1" Here is the doc I used: https://www.labkey.org/download/clientapi_docs/javascript-api/symbols/LABKEY.ParticipantGroup.html#constructor and https://www.labkey.org/download/clientapi_docs/javascript-api/symbols/src/api_webapp_clientapi_core_ParticipantGroup.js.html |
||