Leave a comment at the end of this page or email contact@krishagni.com
How to configure the default fields on the query list page?
Note: This feature has been discontinued as of v12.X.
To optimize performance and reduce unnecessary server load, users are now required to configure fields manually for each request. Since data requirements vary by query, this ensures that only the necessary columns are processed and retrieved.
Prior to v12.x:
The query results view initially displays a default list of fields. However, some centers might want to configure this default results view as per local needs. Starting v4.2, this can be achieved at the system level by changing the values in the JSON file by a super administrator user.
Download current settings
Login to OpenSpecimen and navigate 'Settings'
Type 'Default Result View Fields' in the search box.
Click on the value 'default-result-view.json' to download the JSON file.
Remove default view setting
Follow steps 1 and 2 from above
Click on the property row so that you are navigated to the below page
Click on 'Update' so that the existing value is removed. In the list view, 'Not Specified' will be displayed instead of the file name
On executing the queries, all the participant fields will be displayed in the result view by default.
Setting new values
The file will have values like "Participant.ppid", "Participant.regDate", etc. These are unique internal names of the fields.
Remove the fields you don't need.
To add new fields, you will need to know these internal names.
To get the names, go to the queries results view, select the desired columns to be displayed and check the box 'Display Field Names'.
See the column headers now.
Use these column header values to update the JSON file
To upload the JSON, go to the "Settings" page, click on 'Default Result View Fields' and upload the file.
Test the default results view is displayed by running a new query.