Table of Contents

Table "Qlty. Inspection Header"

ID 20405
Namespace: Microsoft.QualityManagement.Document

Properties

Name Value
Caption Quality Inspection Header
DrillDownPageId Page Microsoft.QualityManagement.Document."Qlty. Inspection List"
LookupPageId Page Microsoft.QualityManagement.Document."Qlty. Inspection List"
DataClassification CustomerContent
Permissions tabledata "Qlty. Inspection Line" = d, tabledata "Qlty. I. Result Condit. Conf." = d

Fields

Name Type Description
"No." Code[20]

Specifies the quality inspection document number.

"Re-inspection No." Integer

Specifies the re-inspection counter.

"Most Recent Re-inspection" Boolean

Specifies if this is the most recent re-inspection for the same inspection.

"Template Code" Code[20]

Specifies which template this inspection was created from.

Description Text[250]

Specifies a description of the Quality Inspection itself.

Status Enum Microsoft.QualityManagement.Document."Qlty. Inspection Status"

Specifies the status of the inspection. No additional changes can be made to a finished Quality Inspection.

"Source Quantity (Base)" Decimal

Specifies a reference to the quantity involved.

"Pass Quantity" Decimal

Specifies the quantity that passed inspection. A manually entered quantity for non-sampling inspections, or derived from the quantity of passed sampling lines for sampling inspections.

"Fail Quantity" Decimal

Specifies the quantity that failed inspection. A manually entered quantity for non-sampling inspections, or derived from the quantity of failed sampling lines for sampling inspections.

"Sample Size" Integer

Specifies the number of units that must be inspected. This will be used to fill out the sample size field on a Quality Inspection when possible based on the other characteristics that were applied.

"Assigned User ID" Code[50]

Specifies the user this inspection is assigned to.

"Planned Start Date" DateTime

Specifies the last planned start time of the inspection.

"Finished Date" DateTime

Specifies the date that the inspection was finished.

"Finished By User ID" Code[50]

Specifies the user that finished the inspection.

"Result Code" Code[20]

Specifies the result is automatically determined based on the test value and result configuration.

"Result Description" Text[100]

Specifies the result description for this test result. The result is automatically determined based on the test value and result configuration.

"Evaluation Sequence" Integer

Specifies the associated evaluation sequence for this test result. The result is automatically determined based on the test value and result configuration.

"Location Code" Code[10]

Specifies the location of the inspection.

"Most Recent Picture" Media

Specifies the most recent picture. Additionally, pictures can be uploaded to document attachments and OneDrive automatically.

"Existing Inspections This Rec." Integer

Specifies whether or not there are existing quality inspections for this same record.

"Existing Inspections This Item" Integer

Specifies whether or not there are existing existing inspections for this same item.

"Source Table No." Integer

Specifies a reference to the table that the quality inspection is for.

"Source Table Name" Text[249]

Specifies the target table. If a table is referenced, the name of the table.

"Source Type" Integer

Specifies an optional field used to track the source type for the source record.

"Source Sub Type" Integer

Specifies an optional field used to track the source sub type for the source record.

"Source Document No." Code[20]

Specifies a reference to the document that this Quality Inspection is referring to. This typically refers to a production order document number.

"Source Document Line No." Integer

Specifies a reference to the source document line no. that this Quality Inspection is referring to. This typically refers to a production order line no.

"Source Task No." Code[20]

Specifies a reference to the source task no. that this Quality Inspection is referring to. This typically refers to an operation.

"Source Item No." Code[20]

Specifies the item that the Quality Inspection is for. When used with production orders this typically refers to the item being produced.

"Source Variant Code" Code[10]

Specifies the item variant that the Quality Inspection is for. When used with production orders this typically refers to the item being produced.

"Source Serial No." Code[50]

Specifies the serial number that the quality inspection is for. This is only used for serial tracked items.

"Source Lot No." Code[50]

Specifies the lot number that the quality inspection is for. This is only used for lot tracked items.

"Source Package No." Code[50]

Specifies the package number that the quality inspection is for. This is only used for package tracked items.

"Trigger Record Table No." Integer

Specifies the table no. of the triggering record that caused this Quality Inspection to be created.

"Trigger RecordId" RecordId

Specifies the triggering record that caused this Quality Inspection to be created.

"Source Record Table No." Integer

Specifies the table no. of the source record this Quality Inspection is for.

"Source RecordId" RecordId

Specifies the source record this Quality Inspection is for.

"Source RecordId 2" RecordId

Specifies the secondary source record this Quality Inspection is for.

"Source RecordId 3" RecordId

Specifies the tertiary source record this Quality Inspection is for.

"Source RecordId 4" RecordId

Specifies the fourth source record this Quality Inspection is for.

"Source Custom 1" Text[60]

Specifies additional information from a source record.

"Source Custom 2" Text[60]

Specifies additional information from a source record.

"Source Custom 3" Text[60]

Specifies additional information from a source record.

"Source Custom 4" Text[60]

Specifies additional information from a source record.

"Source Custom 5" Text[60]

Specifies additional information from a source record.

"Source Custom 6" Text[60]

Specifies additional information from a source record.

"Source Custom 7" Integer

Specifies additional information from a source record.

"Source Custom 8" Integer

Specifies additional information from a source record.

"Source Custom 9" Decimal

Specifies additional information from a source record.

"Source Custom 10" Decimal

Specifies additional information from a source record.

SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

SetTestValue

Helper function to set an inspection line value.

procedure SetTestValue(NumberOrNameOfTestCode: Text; NumberOrNameOfTestValue: Text)

Parameters

Name Type Description
NumberOrNameOfTestCode Text
NumberOrNameOfTestValue Text

AssistEditTest

Use this to invoke the assist-edit for the given measurement test on the inspection. This presumes that the given measurement test is only used once on the inspection.

procedure AssistEditTest(NumberOrNameOfTestCode: Text)

Parameters

Name Type Description
NumberOrNameOfTestCode Text

UpdateResultFromLines

This will update the result on the inspection based on the results from the line.

procedure UpdateResultFromLines()

AssignToSelf

Assigns the inspection to the current user.

procedure AssignToSelf()

ReopenInspection

Reopens an inspection

procedure ReopenInspection()

FinishInspection

Finishes the inspection.

procedure FinishInspection()

CreateReinspection

Creates a Re-inspection

procedure CreateReinspection()

AssistEditLotNo

procedure AssistEditLotNo()

AssistEditPackageNo

procedure AssistEditPackageNo()

AssistEditSerialNo

procedure AssistEditSerialNo()

SetRecordFiltersToFindInspectionFor

Sets record filters based on the supplied variant and flags on whether it should be finding related inspections for the item, document, or something else.

procedure SetRecordFiltersToFindInspectionFor(ErrorIfMissingFilter: Boolean; RecordVariant: Variant; UseItem: Boolean; UseTracking: Boolean; UseDocument: Boolean)

Parameters

Name Type Description
ErrorIfMissingFilter Boolean
RecordVariant Variant
UseItem Boolean
UseTracking Boolean
UseDocument Boolean

GetPreventAutoAssignment

Use GetPreventAutoAssignment to determine if you should prevent automatically assigning.

procedure GetPreventAutoAssignment(): Boolean

Returns

Type Description
Boolean

GetRelatedItem

procedure GetRelatedItem(Item: __MissingTypeSymbol__): Boolean

Parameters

Name Type Description
Item __MissingTypeSymbol__

Returns

Type Description
Boolean

GetItemAttributeValue

Gets an item attribute value by the specified item attribute name.

procedure GetItemAttributeValue(ItemAttributeName: Text): Text

Parameters

Name Type Description
ItemAttributeName Text

Returns

Type Description
Text

GetFriendlyIdentifier

Returns the Inspection No. and Re-inspection No. (if not 0) in the format No.,Re-inspection No.

procedure GetFriendlyIdentifier(): Text

Returns

Type Description
Text

Text of No.,Re-inspection No.

GetStatusStyleExpression

procedure GetStatusStyleExpression(): Text

Returns

Type Description
Text

Events

OnBeforeSetRecordFiltersToFindInspectionFor

Use to supplement or replace default system behavior of finding related inspections.

[IntegrationEvent(False,False)]
local procedure OnBeforeSetRecordFiltersToFindInspectionFor(var QltyInspectionHeader: Record "Qlty. Inspection Header"; ErrorIfMissingFilter: Boolean; RecordVariant: Variant; UseItem: Boolean; UseTracking: Boolean; var UseDocument: Boolean; var IsHandled: Boolean)

Parameters

Name Type Description
QltyInspectionHeader Table Microsoft.QualityManagement.Document."Qlty. Inspection Header"
ErrorIfMissingFilter Boolean
RecordVariant Variant
UseItem Boolean
UseTracking Boolean
UseDocument Boolean
IsHandled Boolean

OnAfterSetRecordFiltersToFindInspectionFor

Use to supplement existing behavior of finding related inspections.

[IntegrationEvent(False,False)]
local procedure OnAfterSetRecordFiltersToFindInspectionFor(var QltyInspectionHeader: Record "Qlty. Inspection Header"; ErrorIfMissingFilter: Boolean; RecordVariant: Variant; UseItem: Boolean; UseTracking: Boolean; var UseDocument: Boolean)

Parameters

Name Type Description
QltyInspectionHeader Table Microsoft.QualityManagement.Document."Qlty. Inspection Header"
ErrorIfMissingFilter Boolean
RecordVariant Variant
UseItem Boolean
UseTracking Boolean
UseDocument Boolean

OnInspectionFinished

Triggers when the inspection has finished.

[IntegrationEvent(False,False)]
local procedure OnInspectionFinished(var QltyInspectionHeader: Record "Qlty. Inspection Header")

Parameters

Name Type Description
QltyInspectionHeader Table Microsoft.QualityManagement.Document."Qlty. Inspection Header"

OnInspectionReopen

Triggers when an inspection re-opens.

[IntegrationEvent(False,False)]
local procedure OnInspectionReopen(var QltyInspectionHeader: Record "Qlty. Inspection Header")

Parameters

Name Type Description
QltyInspectionHeader Table Microsoft.QualityManagement.Document."Qlty. Inspection Header"

OnBeforeReopenInspection

OnBeforeReopenInspection is called before an inspection is Reopened.

[IntegrationEvent(False,False)]
local procedure OnBeforeReopenInspection(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var IsHandled: Boolean)

Parameters

Name Type Description
QltyInspectionHeader Table Microsoft.QualityManagement.Document."Qlty. Inspection Header"

The quality Inspection involved

IsHandled Boolean

Set to true to replace the default behavior

OnBeforeFinishInspection

OnBeforeFinishInspection is called before an inspection is finished.

[IntegrationEvent(False,False)]
local procedure OnBeforeFinishInspection(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var IsHandled: Boolean)

Parameters

Name Type Description
QltyInspectionHeader Table Microsoft.QualityManagement.Document."Qlty. Inspection Header"

The quality Inspection involved

IsHandled Boolean

Set to true to replace the default behavior

OnAfterFindLineUpdateResultFromLines

This is called when the Quality Inspection header is being updated automatically based on the inspection lines. Use this to inspect or adjust the result that the system automatically chose.

[IntegrationEvent(False,False)]
local procedure OnAfterFindLineUpdateResultFromLines(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var QltyInspectionLine: Record "Qlty. Inspection Line")

Parameters

Name Type Description
QltyInspectionHeader Table Microsoft.QualityManagement.Document."Qlty. Inspection Header"

The quality Inspection involved

QltyInspectionLine Table Microsoft.QualityManagement.Document."Qlty. Inspection Line"

OnBeforeFindLineUpdateResultFromLines

This is called when the Quality Inspection header is being updated automatically based on the inspection lines. Use this to optionally alter the filters on the inspection line before the inspection has been found. This can be used to influence how the inspection header automatically changes. You can also avoid the inspection header changing by implementing this and just setting Handled to 'true' causing it to exit immediately.

[IntegrationEvent(False,False)]
local procedure OnBeforeFindLineUpdateResultFromLines(var QltyInspectionHeader: Record "Qlty. Inspection Header"; var QltyInspectionLine: Record "Qlty. Inspection Line"; var IsHandled: Boolean)

Parameters

Name Type Description
QltyInspectionHeader Table Microsoft.QualityManagement.Document."Qlty. Inspection Header"

The quality Inspection involved

QltyInspectionLine Table Microsoft.QualityManagement.Document."Qlty. Inspection Line"
IsHandled Boolean

Set to true to replace the default behavior

See also