You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self::returnResultMessage(['No public survey link found. Is the template project configured properly? NOTE: The reserved project (PID: ' . $reservedPID . ') was still updated.'], null);
365
+
self::returnResultMessage(['No public survey link found.'], null);
324
366
}
325
367
326
368
}
@@ -332,7 +374,8 @@ public function generateProject() {
Copy file name to clipboardExpand all lines: README.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,33 @@
1
1
## Quick Projects
2
2
3
3
### Description
4
-
The Quick Projects module allows for the quick creation or modification of REDCap projects (including the process of adding users and assigning rights) via a simple user interface or POST request. Project creations are achieved through a series of REDCap API calls, while project modifications are performed against a pool of pre-configured "reserve" projects, allowing for more complicated project setups to be duplicated quickly. After the project is created/modified, a link to the project/public survey will be returned.
4
+
The Quick Projects module allows for the quick creation or modification of REDCap projects (including the process of adding users and assigning rights) via a single POST request. Project creations are achieved through a series of REDCap API calls, while project modifications are performed against a pool of pre-configured "reserve" projects. After the project is created/modified, a link to the project/public survey will be returned.
5
5
6
6
### Basic Usage
7
-
After downloading and enabling this module on your REDCap instance, a link to Quick Projects will appear at the bottom of the Control Center sidebar. This interface will allow you to configure your create/modify request via a graphical interface and execute immediately or copy the URL as a template for automation in another system.
7
+
After downloading and enabling this module on your REDCap instance, a link to Quick Projects will appear at the bottom of the Control Center sidebar. This page will allow you to configure your create/modify request via a graphical interface and execute immediately or copy the URL as a template for automation in another system.
8
8
9
9
If the Quick Permissions module is also installed, any custom user rights presets configured will be available for use in Quick Projects as well.
10
10
11
+
### Create Project Method
12
+
A Super API token is required to create projects.
13
+
14
+
Another project can be used as a template by either specifying a "Source project API token" or using a "stored project XML template". If an API token is specified, the source project's design will automatically be imported into the newly created project. If the XML template is used, the module will import the stored XML file (uploaded via module config) into the newly created project.
15
+
16
+
NOTE: REDCap v8.10.0 allows a number of additional project components (such as survey settings and reports) to be optionally included when downloading a project's metadata in XML format. However, none of these additional components will be included when using the "Source project API token" method. Please keep this in mind when deciding which of these features to use.
17
+
11
18
### Modify Project Method
12
19
No additional configuration is required to create projects with this module, but performing a modify operation requires a bit of setup before use.
13
20
14
21
To use the modify project feature, you must have a "reserve" of template projects. These projects are designated by a specific project note (defined in module configuration) and every time a project is modified via Quick Projects, the project note will be erased (or replaced), removing it from the reserve. Additionally, the user requesting the modification must have an API token attached to the reserved project.
15
22
23
+
NOTE: This feature was originally implemented as a workaround for the lack of a "deep copy" method in REDCap. With the new functionality added in REDCap v8.10.0 (see note under "Create Project Method" section), this feature may no longer be necessary.
24
+
16
25
### Configuration Options
17
26
***Prepopulate Super API Token based on currently logged in user:** Check this option to automatically populate the Super API Token field if the current user has one.
18
27
***Prepopulate Super API Token with specified value:** If this field is not blank, the value entered will automatically populate the Super API Token field (regardless of the above option)
28
+
***Automatically use above token if not specified in request parameter:** If no super API token is passed with a request, the module will assume the token in the field above is to be used. WARNING: Enable at your own risk, as this allows anyone to create projects without authentication by submitting a request. It is recommended that the IP whitelisting feature is used in conjunction with this option for additional security.
19
29
***Only allow requests from whitelisted IP addresses:** If this option is enabled, Quick Projects will immediately return an error message to requests from IP addresses that are not explicitly whitelisted.
30
+
***Stored project metadata file:** An XML file containing project metadata (in CDISC ODM format) can be uploaded and optionally imported into projects created with this module.
0 commit comments