Methods
-
Updates the changes to fields and any reviewer comments and approves the submitted form. Will not return anything unless an error occurs
-
Name Type Description requestAppearition.Job.AssessForm.JobAssignmentFormReviewViewModel Contains all the fields along with any changes and reviewer comments
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
-
Appearition.Job.AssessForm.FormIndex (jobAssignmentId, jobAssignmentFormId, requestOptions)Appearition.Job.AssessForm.JobAssignmentFormReviewViewModel static
This method will return all the data for a submitted form including audit information, field data and reviewers comments
-
Name Type Description jobAssignmentIdnumber The unique identifier of the job assignment
jobAssignmentFormIdnumber The unique identifier of the submitted form on the job assignment
requestOptionsAppearition.RequestOptions configure callbacks
Returns:
Type Description Appearition.Job.AssessForm.JobAssignmentFormReviewViewModel This is returned as part of the success callback function in the requestOptions param -
Retrieves the contents of a specific submitted file
-
Name Type Description jobAssignmentFormFileIdnumber The unique identifier of the file on the field on the submitted form on the job assignment
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Returns:
Type Description object File stream -
Updates the changes to fields and any reviewer comments and rejects the submitted form. Will not return anything unless an error occurs
-
Name Type Description requestAppearition.Job.AssessForm.JobAssignmentFormReviewViewModel Contains all the fields along with any changes and reviewer comments
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
-
Updates the changes to fields and any reviewer comments on the submitted form. Will not return anything unless an error occurs
-
Name Type Description requestAppearition.Job.AssessForm.JobAssignmentFormReviewViewModel Contains all the fields along with any changes and reviewer comments
requestOptionsAppearition.RequestOptions Contains the various callback methods for this request
Type Definitions
-
The various status values for a submitted form in a job assignment.
-
Properties:
Name Type Description ReadyForReviewnumber 801
ReviewInProgressnumber 802
Approvednumber 803
Rejectednumber 804
UnSubmittednumber 805
-
This is the data structure returned by to send as part of the Appearition.Job.AssessForm.ListForms method
-
Properties:
Name Type Description Activitystring The action that has been performed on the job
FirstNamestring The first name of the user who performed the activity
LastNamestring The last name of the user who performed the activity
CreatedUtcDateDateDisplaystring The date / time when the activity took place. The date is stored as UTC in the database but it is converted to the clients local timezone. Format "dd MMM yyyy h:mm tt"
-
A data structure that represents the details of a specific field on a submitted form on a job assignment
-
Properties:
Name Type Description JobAssignmentFormFieldIdnumber The unique identifier of the field on the job assignment form record. This is a system generated value
JobAssignmentFormIdnumber The unique identifier of the submitted form. This is a system generated value
FormFieldIdnumber The unique identifier of the original field on the original form. This is a system generated value
FormFieldValuestring The value of the field
FormFieldValueOriginalstring The original value as entered by the form submitter. Used to handle rollback actions when editing
Barcodestring If the field represents an asset, this holds the barcode that identifies the asset (i.e. part instance)
BarcodeOriginalstring The original value as entered by the form submitter. Used to handle rollback actions when editing
SerialNostring If the field represents an asset, this holds the serial no of the asset (i.e. part instance)
SerialNoOriginalstring The original value as entered by the form submitter. Used to handle rollback actions when editing
AssetActionAppearition.Job.AssetActionEnum If the field represents an asset, this holds the type of action being performed on the asset (i.e. part instance)
AssetActionOriginalAppearition.Job.AssetActionEnum The original value as entered by the form submitter. Used to handle rollback actions when editing
PartIdnumber If the field represents an asset, this holds the identifier of the part that the asset is.
PartIdOriginalnumber The original value as entered by the form submitter. Used to handle rollback actions when editing
PushChangeIntoDbboolean This applies to asset fields. Indicates to the server that the changes to the asset should or should not be saved to the asset database. The system will run validation rules over asset fields after form submission. If something is wrong, the system will automatically set this value to false. The reviewer is able to override this decision.
PushChangeIntoDbOriginalboolean The original value as decided by the system. Used to handle rollback actions when editing
PartNamestring If the field represents an asset, this holds the name of the part that the asset is.
PartNameOriginalstring The original value as entered by the form submitter. Used to handle rollback actions when editing
ModelIdnumber If the field represents an asset, this holds the unique identifier to the model of the asset
ModelNostring If the field represents an asset, this holds the identifier to the model of the asset
ModelNoOriginalstring The original value as entered by the form submitter. Used to handle rollback actions when editing
NewModelNostring If the field represents an asset and the action is to add a new asset into the system, this holds the identifier to a model that does not yet exist in the asset database
NewModelNoOriginalstring The original value as entered by the form submitter. Used to handle rollback actions when editing
ManufacturerIdnumber If the field represents an asset, this holds the unique identifier to the manufacturer of the asset
ManufacturerNamestring If the field represents an asset, this holds the name of the manufacturer of the asset
ManufacturerNameOriginalstring The original value as entered by the form submitter. Used to handle rollback actions when editing
NewManufacturerNamestring If the field represents an asset and the action is to add a new asset into the system, this holds the name of a manufacturer that does not yet exist in the asset database
NewManufacturerNameOriginalstring The original value as entered by the form submitter. Used to handle rollback actions when editing
SupplierIdnumber If the field represents an asset, this holds the unique identifier to the supplier of the asset
SupplierIdOriginalstring The original value as entered by the form submitter. Used to handle rollback actions when editing
SupplierNamestring If the field represents an asset, this holds the name of the supplier of the asset
SupplierNameOriginalstring The original value as entered by the form submitter. Used to handle rollback actions when editing
NewSupplierNamestring If the field represents an asset and the action is to add a new asset into the system, this holds the name of a supplier that does not yet exist in the asset database
NewSupplierNameOriginalstring The original value as entered by the form submitter. Used to handle rollback actions when editing
Commentstring Holds a comment about tje field.
JobAssignmentFormFieldForAsset_ParentIdnumber If the field represents an asset, and the field is a sub part, then this property represents the parent part instance
PartInstanceIdnumber If the field represents an asset, this property is the unique identifier to the asset record in the asset database (i.e. part instance)
CanEditSubPartboolean If the field represents an asset and sub part, this property indicates if the sub part can be changed by the reviewer
SubPartActionAppearition.Job.AssetActionEnum If the field represents an asset and sub part, this property holds the numeric value of the asset action being requested on the sub part
SubPartCurrentParentIdnumber This is applicable if the field represents an asset and sub part. Once of the asset actions is to move a sub part to another parent. This fields holds the value of the current parent as found in the asset database
SubPartCurrentParentPartNamestring This is applicable if the field represents an asset and sub part. It holds the name of the part of the parent
SubPartCurrentParentBarcodestring This is applicable if the field represents an asset and sub part. It holds the barcode of the part of the parent
PurchaseDatestring This is applicable if the field represents an asset. It holds the date when the part was purchased from the supplier
PurchaseDateOriginalstring The original value as entered by the form submitter. Used to handle rollback actions when editing
WarrantyExpiryDatestring This is applicable if the field represents an asset. It holds the date when the part will expire
WarrantyExpiryDateOriginalstring The original value as entered by the form submitter. Used to handle rollback actions when editing
InEditValueModebool Used for UI. Can be used to control data entry behaviour
FieldTypenumber This defines what kind of field is presented on the form. There are many values
FieldTypeNamestring the name of field type
FieldHasValuebool Indicates if the field type allows data entry on the form. Some field types only provide structure or read only capabilities on the form.
FieldHasFilesbool Indicates if the field type is associated with files. Some field types present or capture files on the form (e.g. Take Photo allows a user to attach a photo from their device).
FieldLabelstring The text presented to the form submitter as a prompt for entering a value or performing an action
Instructionsstring The detailed text presented to the form submitter as a guide for entering a value or performing an action
Ordinalnumber The position of the field on the form relative to other fields. Zero based index
ReviewerCommentsstring Text entered by reviewers
SubFormIdnumber If this field belongs to a sub form, this field unique identifies that sub form. Deprecated
SubFormsArray.<Appearition.Job.AssessForm.JobAssignmentFormReviewViewModel> If this field links to sub forms, this collection contains the sub forms. Deprecated
ExceptionsArray.<string> If the field represents an asset, this collection holds all errors the system has found as part of the asset validation rules process.
-
A data structure that represents a file linked to a specific field on a submitted form on a job assignment
-
Properties:
Name Type Description JobAssignmentFormFileIdnumber The unique identifier of the file that is linked to the field on the job assignment form record. This is a system generated value
FileNamestring The name of the linked file
ReviewerCommentsstring Text entered by reviewers
-
A data structure that represents the details of a job assignment
-
Properties:
Name Type Description JobAssignmentAppearition.Job.JobAssignmentForReviewViewModel The details of the job assignment this form is linked to.
JobFormAppearition.Job.Assess.JobAssignmentFormViewModel The details of the submitted form for the job assignment.
CanEditFormValuesboolean Indicates if the reviewer is allowed to change the submitted field values.
CanReviewboolean Indicates if the form is in a state that can be reviewed.
ReviewerCommentsstring Text entered by reviewers.
FieldsArray.<Appearition.Job.AssessForm.JobAssignmentFormFieldViewModel> The collection of all fields on the form with the values entered and any reviewer comments.
FieldSubpartArray.<Appearition.Job.AssessForm.JobAssignmentFormFieldViewModel> If the field represents an action to an asset, this holds a collection of sub part instances affected.
FilesArray.<Appearition.Job.AssessForm.JobAssignmentFormFileViewModel> All files submitted as part of the form are available in this collection.
PartManufacturersArray.<Appearition.Job.AssessForm.PartManufacturerViewModel> A collection of manufacturers for parts. Can be used on the UI if the field is an asset action and field values can be edited by the reviewer.
ManufacturerModelsArray.<Appearition.Job.AssessForm.ManufacturerModelViewModel> A collection of models that manufacturers have for parts. Can be used on the UI if the field is an asset action and field values can be edited by the reviewer.
SuppliersArray.<Appearition.Job.AssessForm.SupplierViewModel> A collection of supplier for parts. Can be used on the UI if the field is an asset action and field values can be edited by the reviewer.
PartsArray.<Appearition.Job.AssessForm.PartListViewModel> A collection of parts. Can be used on the UI if the field is an asset action and field values can be edited by the reviewer.
AssetActionsArray.<Appearition.SelectListItem> Refer to Appearition.Job.AssetActionEnum. A collection of actions that can be taken on an asset. Can be used on the UI if the field is an asset action and field values can be edited by the reviewer.
IsSelectedboolean Indicates if the form has been selected. This is mainly used in a UI and relates to a collection of forms in a list.
IsReadOnlyboolean Indicates if the form can be modified or read only.
PdfTemplatesArray.<Appearition.SelectListItem> A collection of templates that can be used to generate a custom formatted report for the submitted form.
-
Data model holds the details of a submitted form on a submitted job assignment
-
Properties:
Name Type Description JobAssignmentFormIdnumber The unique identifier of the job assignment form record. This is a system generated value
JobAssignmentIdnumber The unique identifier of the job assignment record. This is a system generated value
FormIdnumber The unique identifier of the original form that the submitted form is based on. This is a system generated value
EnteredUtcDateDisplaystring The date/time when the form was entered by the user (format dd MMM yyyy h:mm tt). Note, whilst the field name has UTC in it, the server side is actually converting the date time to Melbourne, Australia time (AEST)
CreatedUtcDateDateDisplaystring The date/time when the job assignment form record was created on the server. This value can differ from the EnteredUtcDateDisplay if the user was working on an offline client and submitted the form at a later date/time.Format dd MMM yyyy h:mm tt. Note, whilst the field name has UTC in it, the server side is actually converting the date time to Melbourne, Australia time (AEST).
FormStatusAppearition.Job.AssessForm.FormStatusEnum The numeric version of the status of the submitted form, refer to the FormStatusEnum for options
FormStatusNamestring The name of the status of the submitted form, refer to the FormStatusEnum for options
FormNamestring The original name of the form
DefaultPdfTemplateNamestring The selected template that will be used to generate a report for the submitted form
CanReviewboolean Indicates if the submitted form is in a state that can be reviewed
HasAssetsboolean Indicates if the submitted form has fields which impact the Assets in the system
-
This is the data structure returned by to send as part of the Appearition.Job.AssessForm.ListForms method
-
Properties:
Name Type Description JobAssignmentAppearition.Job.JobAssignmentForReviewViewModel The job assignment details
JobReviewAppearition.Job.JobReviewViewModel The data model that holds the review details for the job
CanReviewboolen Indicates if the job assignment is in a state which can be reviewed
FormsArray.<Appearition.Job.AssessForm.JobAssignmentFormViewModel> The collection of all of the submitted forms on this job assignment
ActivityArray.<Appearition.Job.AssessForm.JobActivityViewModel> All audit activity recorded against this job assignment
IsReadOnlyboolean Identifies job assignment review can be modified or read only
PdfTemplatesArray.<Appearition.SelectListItem> A collection of templates that can be used to generate a custom formatted report for the submitted job assignment
-
A data structure that represents the model of the part that the specific manufacturer has
-
Properties:
Name Type Description Idnumber The unique identifier to the Part/Manufacturer/Model record. This is a system generated value
PartIdnumber The unique identifier of the part. This is a system generated value
ManufacturerIdnumber The unique identifier of the manufacturer. This is a system generated value
ModelNostring The descriptive text for the model
-
A data structure that represents a part in the asset database
-
Properties:
Name Type Description PartIdnumber The unique identifier of the part. This is a system generated value
PartNamestring The name of the part
-
A data structure that represents the manufacturer of a specific part along with all of the models of the part that the manufacturer has
-
Properties:
Name Type Description Idnumber The unique identifier to the Part/Manufacturer record. This is a system generated value
PartIdnumber The unique identifier of the part. This is a system generated value
ManufacturerIdnumber The unique identifier of the manufacturer. This is a system generated value
ManufacturerNamestring The name of the manufacturer
ModelsArray.<Appearition.Job.AssessForm.ManufacturerModelViewModel> The collection of models that this manufacturer has for this part
-
A data structure that represents a supplier in the asset database
-
Properties:
Name Type Description Idnumber The unique identifier to the Part/Manufacturer/Model record. This is a system generated value
Namestring The name of the supplier