Skip to content

Scripting API / inspection/subinspections/SubInspectionApi / External

External

Classes

SubInspectionAfterEndScriptEvent

Extends

Properties

Property Modifier Type Description Inherited from
data public SubInspectionAfterEndEventData Data with information about the end of the sub-inspection ScriptEvent.data

Accessors

isPropagationStopped
Get Signature

get isPropagationStopped(): boolean

Returns

boolean

Inherited from

ScriptEvent.isPropagationStopped

Methods

stopPropagation()

stopPropagation(): void

Stop this event from continuing to the next event handler. This does not prevent any default behaviors from occurring

Returns

void

Inherited from

ScriptEvent.stopPropagation


SubInspectionAfterStartScriptEvent

Extends

Properties

Property Modifier Type Inherited from
data public SubInspectionEventData ScriptEvent.data

Accessors

isPropagationStopped
Get Signature

get isPropagationStopped(): boolean

Returns

boolean

Inherited from

ScriptEvent.isPropagationStopped

Methods

stopPropagation()

stopPropagation(): void

Stop this event from continuing to the next event handler. This does not prevent any default behaviors from occurring

Returns

void

Inherited from

ScriptEvent.stopPropagation


SubInspectionBeforeEndScriptEvent

Extends

Properties

Property Modifier Type Inherited from
data public SubInspectionEndEventData PreventDefaultScriptEvent.data

Accessors

isDefaultPrevented
Get Signature

get isDefaultPrevented(): boolean

Returns

boolean

Inherited from

PreventDefaultScriptEvent.isDefaultPrevented

isPropagationStopped
Get Signature

get isPropagationStopped(): boolean

Returns

boolean

Inherited from

PreventDefaultScriptEvent.isPropagationStopped

Methods

preventDefault()

preventDefault(): void

Stop this event from taking the action that it normally would. This does not prevent future event handlers from executing on this event

Returns

void

Inherited from

PreventDefaultScriptEvent.preventDefault

stopPropagation()

stopPropagation(): void

Stop this event from continuing to the next event handler. This does not prevent any default behaviors from occurring

Returns

void

Inherited from

PreventDefaultScriptEvent.stopPropagation


SubInspectionDataSubmitScriptEvent

Extends

Properties

Property Modifier Type Inherited from
data public SubInspectionDataSubmitEventData ScriptEvent.data

Accessors

isPropagationStopped
Get Signature

get isPropagationStopped(): boolean

Returns

boolean

Inherited from

ScriptEvent.isPropagationStopped

Methods

stopPropagation()

stopPropagation(): void

Stop this event from continuing to the next event handler. This does not prevent any default behaviors from occurring

Returns

void

Inherited from

ScriptEvent.stopPropagation

Type Aliases

AccountabilityDataPointToInsert

AccountabilityDataPointToInsert = object

Properties

Property Type Description
completedDate? Date -
lateDate Date -
ownerId number -
scheduledDate Date -
scheduleId number Doc ID of the schedule related to this record
startedDate? Date -
status AccountabilityDataRecordStatusType -

AvailabilityDataToInsert

AvailabilityDataToInsert = object

Properties

Property Type Description
availableTime number Doc Available time, usually in minutes.
defects? DMSDataValueToInsert[] -
partId? number -
processStandardId? number Doc Override the process base standard ID for the availability defect record. If not set, the process standard ID from the test data record is used.
scheduledTime number Doc Scheduled time, usually in minutes.

DefectCostOverride

DefectCostOverride = object

Properties

Property Type
cost number
defectId number

DMSDataPointToInsert

DMSDataPointToInsert = object

Properties

Property Type Description
alertId? number Doc ID of the alert to send if there were any real-time failures in this data point.
defectCostOverrides? DefectCostOverride[] Doc Specified costs for defects in the defects array. This overrides the cost set on the defect entity.
defects DMSDataValueToInsert[] -
label? string Doc Rating label of the data point, usually set by an inspection.
ncu number -
ncuCostOverride? number -
rtfReport? RTFList -
sampleSize? number -

DMSDataValueToInsert

DMSDataValueToInsert = object

Properties

Property Type Description
count? number -
defectId number -
traceability? RequiredTraceRecord[] Doc Traceability values.

IndividualRealTimeFailures

IndividualRealTimeFailures = object

Properties

Property Type Description
failures string[] Doc The list of failures for this subgroup.
index number Doc The index of this subgroup, beginning at 0.

InspectionLocation

InspectionLocation = object

Properties

Property Type Description
location InspectionLocationType The type of location that the object represents.
subInspectionId? string The Id of the sub-inspection, only if the location is 'subInspection'

InspectionLocationType

InspectionLocationType = "subInspectionList" | "inspectionList" | "subInspection"


InspectionTest

InspectionTest = "dateTime" | "trace" | "spc" | "passFail" | "task" | "defectList" | "process" | "button" | "rating" | "oee" | "file" | "label" | "input" | "chart" | "dataCanvas" | "group" | "part"


OEEDataPointToInsert

OEEDataPointToInsert = object

Properties

Property Type Description
alertId? number Doc ID of the alert to send if there were any real-time failures in this data point.
availability? AvailabilityDataToInsert -
defectCostOverrides? DefectCostOverride[] -
performance? PerformanceDataToInsert -
quality? QualityDataToInsert -
rtfReport? RTFList -

PerformanceDataToInsert

PerformanceDataToInsert = object

Properties

Property Type Description
availableTime number -
idealCycleTime number Doc Ideal time to create a single part, usually in minutes.
totalParts number -

QualityDataToInsert

QualityDataToInsert = object

Properties

Property Type Description
defects? DMSDataValueToInsert[] -
goodParts number -
partId? number -
processStandardId? number Doc Override the process base standard ID for the quality defect record. If not set, the process standard ID from the test data record is used.
totalParts number -

RTFList

RTFList = object

Properties

Property Type Description
failures? string[] Doc The RTFs for the entire data record

SPCDataPointToInsert

SPCDataPointToInsert = object

Properties

Property Type Description
alertId? number Doc ID of the alert to send if there were any real-time failures in this data point.
anchorPoint boolean -
characteristicStandardId number Doc Base standard ID of the characteristic
lclR? number Doc Calculated lower control limit of the range when real-time failures were calculated. This is used to display historical control limits in control charts.
lclX? number Doc Calculated lower control limit of the data point when real-time failures were calculated. This is used to display historical control limits in control charts.
rtfReport? SPCRTFList -
uclR? number Doc Calculated upper control limit of the range when real-time failures were calculated. This is used to display historical control limits in control charts.
uclX? number Doc Calculated upper control limit of the data point when real-time failures were calculated. This is used to display historical control limits in control charts.
values SPCDataValueToInsert[] -

SPCDataValueToInsert

SPCDataValueToInsert = object

Properties

Property Type Description
traceability? RequiredTraceRecord[] Doc Traceability values.
value number | null Doc Use null to specify that the value could not be set (e.g. Not Applicable, a measurement device was malfunctioning, etc.)

SPCRTFList

SPCRTFList = RTFList & object

The RTFs for each data point in the subgroup

Type Declaration

Name Type Description
individualRealTimeFailures IndividualRealTimeFailures[] Doc The individual failures for this SPC test.

SubInspectionAfterEndEventData

SubInspectionAfterEndEventData = SubInspectionEndEventData & object

Type Declaration

Name Type Description
dataSet? SubInspectionDataSet The data set which was submitted.
nextLocation InspectionLocation The location that the inspection will navigate to next, unless another navigation event is called.

SubInspectionDataSet

SubInspectionDataSet = object

Properties

Property Type Description
accountabilityId? number Doc The ID of the accountability record to be associated with all other data records in the data set.
addContextualTraceability? boolean Doc Flag to add contextual trace. If omitted, contextual Traceability will be included in the request.
data TestDataRecord[] Doc List of test data records
dateTime Date Doc Date and time of the sub-inspection
devMode? boolean Doc Development mode flag
inspectionId? number Doc ID of the inspection
inspectionName? string Doc Name of the inspection
locationId? number Doc ID of the location
note? string Doc A note to apply to every data record in this data set.
partId? number Doc ID of the part
processStandardId? number Doc Base standard ID of the process
subInspectionName? string Doc Name of the sub-inspection
suppressRTFAlerts? boolean Doc Flag to suppress RTF alerts
traceability RequiredTraceRecord[] Doc Traceability values.
workstationId? number Doc ID of the workstation

SubInspectionDataSubmitEventData

SubInspectionDataSubmitEventData = SubInspectionEventData & object

Type Declaration

Name Type Description
dataSet SubInspectionDataSet The data set which is about to be submitted. Modifying this data set will change the data to be submitted.

SubInspectionEndActionType

SubInspectionEndActionType = "cancel" | "submit"


SubInspectionEndEventData

SubInspectionEndEventData = SubInspectionEventData & object

Type Declaration

Name Type Description
actionType SubInspectionEndActionType The action that triggered the sub-inspection end

SubInspectionEventData

SubInspectionEventData = object

Properties

Property Type Description
subInspectionId string The scriptId of the sub-inspection.

SubInspectionWorkerGet

SubInspectionWorkerGet = object

Properties

Property Type Description
cancelLabel string The text which will appear in the 'Cancel' button on the sub-inspection.
index number The index of the sub-inspection in the list. The first sub-inspection will have an index of 0.
name string The name of the sub-inspection.
note? string The sub-inspection note. If set, this note will be appended to all of the test notes in the sub-inspection when it is submitted.
noteType NoteFunctionalityType Determines when a note is required on the sub-inspection.
showCancelButton boolean Whether the cancel button will appear on the sub-inspection.
showSubmitButton boolean Whether the submit button will appear on the sub-inspection.
status SubInspectionStatusType | "inProgress" The status of the sub-inspection. When the Inspection is first loaded, the status of all sub-inspections is notStarted. When data is submitted for a sub-inspection, the status is changed to complete. The current sub-inspection will always return inProgress.
submitLabel string The text which will appear in the 'Submit' button on the sub-inspection.
tabBehavior TabBehaviorType The behavior for the tab key for the sub-inspection. nextSPC will cause spc tests to tab between each other.
tests TestsInInspectionWorkerGet[] The list of tests in this sub-inspection. This functions as an alias for getTests().
visibleInList boolean Whether or not the sub-inspection will show up in the list.

TaskDataPointToInsert

TaskDataPointToInsert = object

Properties

Property Type Description
guid? string Doc Sign-off GUID
textToStore string -

TestDataRecord

TestDataRecord = object

Properties

Property Type Description
charts? string[] Doc List of chart images to include in real-time failure alerts
data OEEDataPointToInsert | DMSDataPointToInsert | SPCDataPointToInsert | TaskDataPointToInsert | AccountabilityDataPointToInsert Doc Data point to insert
note? string Doc Note for the test
partId? number Doc ID of the part
processStandardId? number Doc Base standard ID of the process
recheckRTFs? boolean Doc Whether GS should recalculate real-time failures before storing the data point
testLabel? string Doc Label for the test
traceability RequiredTraceRecord[] Doc Traceability values.
type DataRecordType Doc The type of data

TestsInInspectionWorkerGet

TestsInInspectionWorkerGet = object

Properties

Property Type Description
scriptId string The id used to select this test in scripts.
type InspectionTest The type of this test.