Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Overview
APIs regarding the Datasheet in Workbench.
Endpoints
The resources available in this module.
DatasheetListApi
[Description]
/api/DatasheetListApi
Method
Description
Performed As
Request Query
Request Body
Response
POST
-
PUT
DatasheetTemplateListApi
[Description]
/api/DatasheetTemplateListApi
Method
Description
Performed As
Request Query
Request Body
Response
GET
Parameter
-
POST
DatasheetDetailApi
[Description]
/url
Method
Description
Performed As
Request Query
Request Body
Response
GET
-
POST
Models
The definitions of models specific to endpoints in this module.
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
Examples
%name
title | Click to view |
---|
Request
language | json |
---|
Response
language | json |
---|
Response sample
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
Provides API access to the Datasheet Templates List (#/Datasheets/TemplateList.aspx) Web Workbench screen.
/api/DatasheetTemplateListApi | |||||
---|---|---|---|---|---|
Method | Description | Performed As | Request Query | Request Body | Response |
GET | Retrieve a list of datasheet templates. | Logged in User | - | ||
POST | Retrieve a filtered list of datasheet templates. | Logged in User | - |
DatasheetDetailApi
Provides API access to the Datasheet Entry (#/Datasheets/MyList.aspx/Edit) Web Workbench screen.
/api/DatasheetDetailApi | |||||
---|---|---|---|---|---|
Method | Description | Performed As | Request Query | Request Body | Response |
GET | Retrieve a specific Datasheet | Logged in User | - | ||
POST | Update a Datasheet | Logged in User | - |
Models
The definitions of models specific to endpoints in this module.
DatasheetKey
Field | Type | Description |
---|---|---|
DatasheetID | Integer | The unique Datasheet ID of the Datasheet |
⬆️ Back to top
DatasheetModelLine
Field | Type | Description |
---|---|---|
Key | The unique key for the line. | |
Template | The Datasheet Template for the Datasheet. | |
Date | String | The Datasheet date. |
Name | String | The name of the assignee. |
KeyTable | String | The type of document the Datasheet is for. |
Subject | String | The subject of the Datasheet. |
Rating | Number | The rating of the Datasheet. |
Complete | Boolean | Completed or not. |
JSON | String | A JSON representation of the Datasheet, including questions. |
⬆️ Back to top
DatasheetDialogFields
Field | Type | Description |
---|---|---|
Date | The Datasheet Date on the new Datasheet. | |
Template | The Datasheet Template for the new Datasheet. | |
Assignee | The Assignee on the new Datasheet. If null then Assignee will be the Logged in User. | |
Subject | The subject on the new Datasheet. | |
Comments | The Comments on the new Datasheet. | |
Job | The document which the new Datasheet is for. Only one of these fields should be specified (based on the Key Table on the Datasheet Template). | |
Plant | ||
Company | ||
Person | ||
SubContract | ||
SubContractClaim | ||
Log | ||
Docket |
⬆️ Back to top
DatasheetTemplateFilter
Field | Type | Description |
---|---|---|
KeyTable | string | Filters the templates. Must be one of the following: Jobs, PlantItems, Companies, People, SubContracts, All, Logs, SubContractClaims, Docket |
KeyString | string | If specified, the response will include relatedDatasheetsCount. |
KeyInt | int | If specified, the response will include relatedDatasheetsCount. |
⬆️ Back to top
DatasheetTemplateKey
Field | Type | Description |
---|---|---|
DatasheetTemplateID | Integer | The unique ID of the Datasheet Template |
⬆️ Back to top
DatasheetTemplateLine
Field | Type | Description |
---|---|---|
Key | The unique key for the line. | |
Description | The description of the Datasheet Template. | |
Details | String | The details of the Datasheet Template. |
KeyTable | String | The type of document the Datasheet Template is for. |
DatasheetType | String | The name of the Datasheet Type of the Datasheet Template. |
DatasheetTemplateTypeId | Integer | The ID of the Datasheet Type of the Datasheet Template. |
Header | The number of Headers on the Datasheet Template. | |
Deactivated | Boolean | The Deactivated flag on the Datasheet Template. |
DeactivatedValue | The Deactivated flag on the Datasheet Template. | |
JSON | String | A JSON representation of the Datasheet Template, including the template lines. |
⬆️ Back to top
DatasheetApiModel
Field | Type | Description |
---|---|---|
Key | The unique key for the Datasheet. | |
Completed | The completed flag on the Datasheet. | |
Headers | The header information on the Datasheet. | |
Fields | Array<FieldViewData> | All fields on the Datasheet. |
Questions | Array<QuestionViewData> | The question fields on the Datasheet. |
⬆️ Back to top
HeaderViewData
Field | Type | Description |
---|---|---|
Headers | Array<FieldViewData> | The header fields without a column. |
Columns | Array<HeaderColumnViewData> | The columns of header fields. |
⬆️ Back to top
HeaderColumnViewData
Field | Type | Description |
---|---|---|
ColumnNo | Integer | The column number for these header fields. |
Headers | Array<FieldViewData> | The header fields in this column. |
⬆️ Back to top
QuestionViewData
Field | Type | Description |
---|---|---|
QuestionId | Integer | The ID of the Question for this line. |
DatasheetLineId | Integer | The ID of the Datasheet Template for this line. |
TemplateLineId | Integer | The unique ID for this Datasheet line. |
Text | String | The text from the Datasheet Template line. |
Title | String | The instructions from the Datasheet Template line. |
HasNotes | Boolean | The Has Notes flag on the Datasheet Template line. |
Required | Boolean | The Required flag on the Datasheet Template line. |
Notes | String | The Notes on the Datasheet line. |
Type | String | Type of the question.
|
BoolValue | Boolean | These fields contain the response on the Datasheet line. Based on the type of the Datasheet Question on the Datasheet line. |
StringValue | String | |
DateValue | String | |
TimeValue | String | |
IntValue | Integer | |
DecimalValue | Number | |
DisplayText | String | |
SelectList | Array<string> |
⬆️ Back to top
Examples
Get the list of datasheets template.
Expand | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||
Request
Response
Response sample
|
⬆️ Back to top
On this page
Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Include Page | ||||
---|---|---|---|---|
|