Methods
-
Appearition.Asset.Exception.GetExceptionItems (request, requestOptions)Array.<Appearition.Asset.Exception.ExceptionItemViewModel> static
This method will return a collection of exception items as filtered by the configuration in the request
-
Name Type Description requestAppearition.Asset.Exception.GetExceptionItemsRequest Contains the details required to complete this action
requestOptionsAppearition.RequestOptions configure callbacks
Returns:
Type Description Array.<Appearition.Asset.Exception.ExceptionItemViewModel> This is returned as part of the success callback function in the requestOptions param -
Will toggle the read state of a specific exception item record.
-
Name Type Description requestAppearition.Asset.Exception.MarkReadRequest Contains the details required to complete this action
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description number Echos back the identifier to the exception item record. This is returned as part of the success callback function in the requestOptions param
Type Definitions
-
This data model represents an asset related exception event
-
Properties:
Name Type Description Idnumber Uniquely identifies the exception record
IsAssetExceptionboolean Indicates if the exception relates to an asset action event
IsReminderExceptionboolean Indicates if the exception relates to an issue with an asset reminder event
PartEquipementIdentifierstring A property of the asset part
JobNostring An identifier of the submitted job where the exception was picked up from
FormNamestring The name of the submitted form where the exception was picked up from
Messagestring The details of the exception
CreatedUtcDatestring The date and time in UTC when the exception was picked up.
CreatedLocalDatestring The date and time in the AEST timezone, when the exception was picked up.
IsTodayboolean Indicates of the date in CreatedLocalDate is today
SiteNamestring The name of the site where the job was submitted for and where the exception was triggered from
PartInstanceReminderPartNamestring The name of a part. This relates to Part reminders which have been configured to raise exception item records. Refer to Appearition.Asset.PartInstanceReminderViewModel.
PartInstanceReminderSiteNamestring The name of a site. This relates to Part reminders which have been configured to raise exception item records. Refer to Appearition.Asset.PartInstanceReminderViewModel.
PartInstanceBarcodestring Identifier of an asset. This relates to Part reminders which have been configured to raise exception item records. Refer to Appearition.Asset.PartInstanceReminderViewModel.
HasBeenReadboolean Indicates if the exception item has been marked as read by a user
TotalRecordsnumber The total number of exceptions found in the search that this specific record came from.
-
This data structure is used to search and filter exception items on the server
-
Properties:
Name Type Description JobAssignmentFormIdnumber Uniquely identifies a submitted job form which would have asset action fields
PartInstanceIdnumber Uniquely identifies an asset in the database
HasBeenReadboolean Indicates if the results should include records that have been marked as read
Pagenumber Used for paging of results. Zero based index.
PageSizenumber Used for paging of results. The number of records per page.
-
This data structure is posted to the server when marking an exception item as read or not.
-
Properties:
Name Type Description ExceptionIdnumber Uniquely identifies the exception item record in the database. Required.
MarkAsReadbool Indicates what state to set the read field of the exceptio item record. Required.