- Created by Bao TRINH, last modified by Cam Mackay on Apr 17, 2024
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 5 Next »
Overview
Provides access to Datasheet related data.
Endpoints
The resources available in this module.
DatasheetListApi
Provides API access to the Datasheets List (#/Datasheets/List.aspx) Web Workbench screen.
/api/DatasheetListApi | |||||
---|---|---|---|---|---|
Method | Description | Performed As | Request Query | Request Body | Response |
POST | Retrieve a filtered list of datasheets. | Logged in User | - | ||
PUT | Create a new Datasheet | Logged in User | - |
DatasheetTemplateListApi
[Description]
/api/DatasheetTemplateListApi | |||||
---|---|---|---|---|---|
Method | Description | Performed As | Request Query | Request Body | Response |
GET | - | ||||
POST |
GET parameters.
Parameter | Value | Description | Parameter Type | Data Type |
---|---|---|---|---|
keyTable | One of these: Jobs | query | string | |
keyString | query | string | ||
keyInt | query | integer |
DatasheetDetailApi
[Description]
/url | |||||
---|---|---|---|---|---|
Method | Description | Performed As | Request Query | Request Body | Response |
DELETE | - | ||||
GET | |||||
POST |
GET Parameter
Parameter | Description | Parameter Type | Data Type |
---|---|---|---|
datasheetId | query | integer | |
datasheetTemplateId | query | integer | |
keyStr | query | string | |
keyInt | query | integer |
Models
The definitions of models specific to endpoints in this module.
DatasheetDialogFields
Field | Type | Description |
---|---|---|
Date | ||
Template | ||
Assignee | ||
Job | ||
Plant | ||
Company | ||
Person | ||
SubContract | ||
SubContractClaim | ||
Log | ||
Subject | ||
Comments | ||
Docket |
DatasheetApiModel
Field | Type | Description |
---|---|---|
Key | DatasheetsDatasheetKey | |
Completed | Boolean | |
Questions | Array [QuestionViewData] | |
Headers | HeaderViewData | |
Fields | Array [FieldViewData] |
DatasheetsDatasheetKey
Field | Type | Description |
---|---|---|
DatasheetId | Integer | |
DatasheetTemplateId | Integer | |
KeyStr | String | |
KeyInt | Integer |
DatasheetsDatasheetModelLine
Field | Type | Description |
---|---|---|
Datasheet | ||
Template | The template was used for the datasheet. | |
Date | String | Date of datasheet. |
Name | String | Name of datasheet |
KeyTable | String | The area the datasheet relates to |
Subject | String | |
Rating | Number | |
Complete | Boolean | Completed or not. |
JSON | String | |
Status | String | |
ReadonlyFlag | Integer | |
OriginalKey | DatasheetsDatasheetKey | |
CurrentKey | DatasheetsDatasheetKey | |
Key | DatasheetsDatasheetKey | |
Index | Integer |
DatasheetsTemplateKey
Field | Type | Description |
---|---|---|
DatasheetTemplateId | Integer |
DatasheetsTemplateLine
Field | Type | Description |
---|---|---|
Description | ||
Header | ||
Deactivated | Boolean | |
DeactivatedValue | ||
Details | String | |
KeyTable | String | The area the datasheet relates to |
DatasheetType | String | |
DatasheetTemplateTypeId | Integer | |
JSON | String | |
Select | ||
Status | String | |
ReadonlyFlag | Integer | |
ReadonlyMessage | String | |
OriginalKey | DatasheetsTemplateKey | |
CurrentKey | DatasheetsTemplateKey | |
Key | DatasheetsTemplateKey | |
Index | Integer |
QuestionViewData
Field | Type | Description |
---|---|---|
DatasheetLineId | Integer | |
QuestionId | Integer | Code of the datasheets question |
Text | String | |
Title | String | |
HasNotes | Boolean | |
Notes | String | |
BoolValue | Boolean | |
StringValue | String | |
DateValue | String | |
TimeValue | String | |
IntValue | Integer | |
DecimalValue | Number | |
DisplayText | String | Text that displayed for users. |
SelectList | Array [string] | Values of answers. |
Type | String | Type of the question.
|
GetClass | String | |
TemplateLineId | Integer | Line id. |
Id | String | |
JsAttrName | String | |
JsAttrValue | String | |
Name | String | |
Visible | Boolean | |
Disabled | Boolean | |
Required | Boolean | |
InfoText | String |
Examples
%name
Request
Response
Response sample
Get the list of datasheets template.
Request
Response
{ "total": 0, "page": 0, "records": 0, "rows": [ { "Description": { "CellId": "string", "CellValue": "string", "CellNumValue": 0, "CellBoolValue": true, "CellTag": "string", "CellValueDate": "2024-04-07T21:55:49.386Z", "CellValueInt": 0 }, "Header": { "CellId": "string", "CellValue": "string", "CellNumValue": 0, "CellBoolValue": true, "CellTag": "string", "CellValueDate": "2024-04-07T21:55:49.386Z", "CellValueInt": 0 }, "Deactivated": true, "DeactivatedValue": { "CellId": "string", "CellValue": "string", "CellNumValue": 0, "CellBoolValue": true, "CellTag": "string", "CellValueDate": "2024-04-07T21:55:49.386Z", "CellValueInt": 0 }, "Details": "string", "KeyTable": "string", "DatasheetType": "string", "DatasheetTemplateTypeId": 0, "JSON": "string", "Select": { "CellId": "string", "CellValue": "string", "CellNumValue": 0, "CellBoolValue": true, "CellTag": "string", "CellValueDate": "2024-04-07T21:55:49.386Z", "CellValueInt": 0 }, "Status": "string", "ReadonlyFlag": 0, "ReadonlyMessage": "string", "OriginalKey": { "DatasheetTemplateId": 0 }, "CurrentKey": { "DatasheetTemplateId": 0 }, "Key": { "DatasheetTemplateId": 0 }, "Index": 0 } ], "form": {}, "widgets": [ { "WidgetId": 0, "LayoutCode": "string", "Name": "string", "Colour": "string", "BGColour": "string", "Icon": "string", "Type": "string", "Visible": true, "Order": 0, "Count": 0, "WidgetLines": [ { "WidgetLineId": 0, "WidgetId": 0, "Name": "string", "Predicate": "string", "Order": 0, "Count": 0 } ] } ] }
Response sample
{ "total": 0, "page": 0, "records": 0, "rows": [ { "Details": "Incident Report", "OriginalKey": { "DatasheetTemplateId": 1 }, "CurrentKey": { "DatasheetTemplateId": 1 }, "Key": { "DatasheetTemplateId": 1 }, "Index": 0 }, { "Details": "Project Handover Checklist", "OriginalKey": { "DatasheetTemplateId": 3 }, "CurrentKey": { "DatasheetTemplateId": 3 }, "Key": { "DatasheetTemplateId": 3 }, "Index": 0 }, { "Details": "Daily Job Sheet", "OriginalKey": { "DatasheetTemplateId": 9 }, "CurrentKey": { "DatasheetTemplateId": 9 }, "Key": { "DatasheetTemplateId": 9 }, "Index": 0 }, { "Details": "Electrical Safety JSA", "OriginalKey": { "DatasheetTemplateId": 75 }, "CurrentKey": { "DatasheetTemplateId": 75 }, "Key": { "DatasheetTemplateId": 75 }, "Index": 0 }, { "Details": "Risk form", "OriginalKey": { "DatasheetTemplateId": 164 }, "CurrentKey": { "DatasheetTemplateId": 164 }, "Key": { "DatasheetTemplateId": 164 }, "Index": 0 }, { "Details": "Edridge Prestart", "OriginalKey": { "DatasheetTemplateId": 165 }, "CurrentKey": { "DatasheetTemplateId": 165 }, "Key": { "DatasheetTemplateId": 165 }, "Index": 0 }, { "Details": "Daily Job Sheet", "OriginalKey": { "DatasheetTemplateId": 222 }, "CurrentKey": { "DatasheetTemplateId": 222 }, "Key": { "DatasheetTemplateId": 222 }, "Index": 0 }, { "Details": "Training form", "OriginalKey": { "DatasheetTemplateId": 335 }, "CurrentKey": { "DatasheetTemplateId": 335 }, "Key": { "DatasheetTemplateId": 335 }, "Index": 0 }, { "Details": "Daily Diary - Job", "OriginalKey": { "DatasheetTemplateId": 355 }, "CurrentKey": { "DatasheetTemplateId": 355 }, "Key": { "DatasheetTemplateId": 355 }, "Index": 0 } ], "form": { "relatedDatasheetsCount": 0 } }
⬆️ Back to top
On this page
- No labels