Skip to content

Quality Inspector · Developer

Events defined in Quality Inspector – codeunit 23067635 IWX QI Hooks

Last updated April 7, 2026

Codeunit “IWX QI Permission Mgmt”

ID 23067641Namespace: InsightWorks.QualityInspection.AccessControl

Permission management methods to help with functional permissions.

Properties

Name Value
InherentPermissions X

Methods

CanReadTestResults

CanReadTestResults returns true if the current user can has permission to read test results in general.

procedure CanReadTestResults(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean, true if the current user can has permission to read test results in general

TestCanCreateManualTest

TestCanCreateManualTest will determine if the current user can create a manual test.
If they can, nothing happens.
If they cannot then an error will be thrown.

procedure TestCanCreateManualTest()

CanCreateManualTest

CanCreateManualTest. True if the user can create a manual test

procedure CanCreateManualTest(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

TestCanCreateAutoTest

TestCanCreateAutoTest will determine if the current user can create an automatic test.
If they can, nothing happens.
If they cannot then an error will be thrown.

procedure TestCanCreateAutoTest()

CanCreateAutoTest

CanCreateAutoTest. True if the user can create a manual test

procedure CanCreateAutoTest(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

TestCanCreateReTest

TestCanCreateReTest will determine if the current user can create a retest.
If they can, nothing happens.
If they cannot then an error will be thrown.

procedure TestCanCreateReTest()

CanCreateReTest

CanCreateReTest. True if the user can create a retest.

procedure CanCreateReTest(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

TestCanDeleteOpenTest

TestCanDeleteOpenTest will determine if the current user can delete an open test.
If they can, nothing happens.
If they cannot then an error will be thrown.

procedure TestCanDeleteOpenTest()

CanDeleteOpenTest

CanDeleteOpenTest. True if the user can delete an open test.

procedure CanDeleteOpenTest(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

TestCanDeleteFinishedTest

TestCanDeleteFinishedTest will determine if the current user can delete a finished test.
If they can, nothing happens.
If they cannot then an error will be thrown.

procedure TestCanDeleteFinishedTest()

CanDeleteFinishedTest

CanDeleteFinishedTest. True if the user can delete a finished test.

procedure CanDeleteFinishedTest(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

TestCanChangeOthersTests

TestCanChangeOthersTests will determine if the current user can change someone else’s tests.
If they can, nothing happens.
If they cannot then an error will be thrown.

procedure TestCanChangeOthersTests()

CanChangeOthersTests

CanChangeOthersTests. True if the user can change someone else’s tests.

procedure CanChangeOthersTests(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

TestCanReOpenTest

TestCanReOpenTest will determine if the current user can re-open a test.
If they can, nothing happens.
If they cannot then an error will be thrown.

procedure TestCanReOpenTest()

CanReOpenTest

CanReOpenTest. True if the user can re-open a test.

procedure CanReOpenTest(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

TestCanFinishTest

TestCanFinishTest will determine if the current user can finish a test.
If they can, nothing happens.
If they cannot then an error will be thrown.

procedure TestCanFinishTest()

CanFinishTest

CanFinishTest. True if the user can can finish a test.

procedure CanFinishTest(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

TestCanChangeTrackingNo

TestCanChangeTrackingNo will determine if the current user can change the tracking on a test.
If they can, nothing happens.
If they cannot then an error will be thrown.

procedure TestCanChangeTrackingNo()

CanChangeTrackingNo

CanChangeTrackingNo. True if the user can change the tracking on a test.

procedure CanChangeTrackingNo(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

GetShouldAutoAssign

Returns whether or not auto assignment should occur based on the permissions records.

procedure GetShouldAutoAssign(var pbOutShouldPrompt: Boolean): Boolean
Parameters
Name Type Description
pbOutShouldPrompt Boolean

Only set with interaction ability is available ( GuiAllowed() is true ) and also prompt when possible is chosen.

Returns
Type Description
Boolean

Whether or not auto-assignment should occur.

GetSuggestedAllowedValueForFunction

For the given function, this gives the suggested allowed state.

procedure GetSuggestedAllowedValueForFunction(ptxtFunctionalPermission: Text): Boolean
Parameters
Name Type Description
ptxtFunctionalPermission Text
Returns
Type Description
Boolean

TestCanChangeSampling

TestCanChangeSampling will determine if the current user can change sampling characteristics on a specific test.
If they can, nothing happens.
If they cannot then an error will be thrown.

procedure TestCanChangeSampling()

CanChangeSamplingCharacteristics

CanChangeSamplingCharacteristics. True if the user can change sampling characteristics a test.

procedure CanChangeSamplingCharacteristics(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

TestCanChangeSourceQuantity

TestCanChangeQuantity will determine if the current user can change the source quantity.
If they can, nothing happens.
If they cannot then an error will be thrown.

procedure TestCanChangeSourceQuantity()

CanChangeSourceQuantity

CanChangeSourceQuantity. True if the user can change source quantities

procedure CanChangeSourceQuantity(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

TestCanEditLineComments

TestCanEditLineComments will determine if the current user can edit line comments.
If they can, nothing happens.
If they cannot then an error will be thrown.

procedure TestCanEditLineComments()

CanEditLineComments

CanChangeTestLineComments. True if the user can add line notes/comments.

procedure CanEditLineComments(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

CanReadLineComments

CanReadLineComments. True if the user can read or write line comments.

procedure CanReadLineComments(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

TestCanChangeSkipLot

TestCanChangeSkipLot will determine if the current user can change skip lot details.
If they can, nothing happens.
If they cannot then an error will be thrown.

procedure TestCanChangeSkipLot()

CanChangeSkipLot

CanChangeSkipLot. True if the user can change skip lot details..

procedure CanChangeSkipLot(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

CanCreateNonconformance

CanCreateNonconformance returns true if the user can create a nonconformance test.

procedure CanCreateNonconformance(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

Events

OnBeforeGetUserPermissionRecord

Use OnBeforeGetUserPermissionRecord to override which user permission record is used when checking permissions.

[IntegrationEvent(False,False)]
procedure OnBeforeGetUserPermissionRecord(ptxtFunctionalPermission: Text, var ptxtUserId: Text, var precUserPermission: Record "IWX QI Permission", var rbOut: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
ptxtFunctionalPermission Text

The context of the request

ptxtUserId Text

Input is the UserId() of the active session.

precUserPermission Table InsightWorks.QualityInspection.AccessControl.”IWX QI Permission”

Supply if setting rbOut to be true.

rbOut Boolean

True if found, false if not found

pbHandled Boolean

Set to true to replace the default behavior

OnAfterGetUserPermissionRecord

Use OnAfterGetUserPermissionRecord to extend which user permission record is used when checking permissions.
This is called after the everyone check has performed.

[IntegrationEvent(False,False)]
procedure OnAfterGetUserPermissionRecord(ptxtFunctionalPermission: Text, var ptxtUserId: Text, var precUserPermission: Record "IWX QI Permission", var rbOut: Boolean)
Parameters
Name Type Description
ptxtFunctionalPermission Text

The context of the request

ptxtUserId Text

Input is the UserId() of the active session.

precUserPermission Table InsightWorks.QualityInspection.AccessControl.”IWX QI Permission”

It’s possible this is not a user specific permission, this could be a permission representing multiple people.

rbOut Boolean

True if found, false if not found


Codeunit “IWX QI Analysis Helper”

ID 23067698Namespace: InsightWorks.QualityInspection.Analysis

Intended to help with analysis of tests that have failed.

Properties

Name Value
InherentPermissions X
Permissions tabledata “IWX QI Grade” = R,
tabledata “IWX QI Test” = R,
tabledata “IWX QI Test Line” = R,
tabledata “IWX QI Grade Condition Config” = R,
tabledata Vendor = R,
tabledata “Prod. Order Routing Line” = R,
tabledata “Production BOM Header” = R,
tabledata “Production BOM Line” = R,
tabledata “Item Attribute” = R,
tabledata “Item Attribute Value” = R,
tabledata “Work Center” = R,
tabledata “Shop Calendar Working Days” = R,
tabledata Item = R

Methods

PerformFailureAnalysis

Performs a deep analysis of quality inspection failures based on provided parameters.

procedure PerformFailureAnalysis(pdictAnalyzePatterns: Dictionary of [Enum "IWX QI Analysis Category", Boolean], pbDefaultFlag: Boolean, piFailureThreshold: Integer, ptxtTestViewFilter: Text, var ptrecAnalysisBuffer: Record "IWX QI Analysis Buffer" temporary, var ptrecAnalysisDetailBuffer: Record "IWX QI Analysis Detail Buffer" temporary)
Parameters
Name Type Description
pdictAnalyzePatterns Dictionary of [Enum InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Category”, Boolean]

A dictionary specifying which categories to analyze.

pbDefaultFlag Boolean

When a flag is not explicitly set in pdictAnalyzePatterns then this defines the default settin .

piFailureThreshold Integer

The minimum number of failures required to include a pattern in the results.

ptxtTestViewFilter Text

A filter string to apply to the IWX QI Test records before analysis.

ptrecAnalysisBuffer Table InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Buffer”

Temporary record buffer to store the analysis summary results.

ptrecAnalysisDetailBuffer Table InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Detail Buffer”

Temporary record buffer to store the detailed analysis results.

Events

OnBeforePerformFailureAnalysis

Occurs before the failure analysis is performed. Use this event to override the standard analysis logic or to initialize buffers.

[IntegrationEvent(False,False)]
local procedure OnBeforePerformFailureAnalysis(var pdictAnalyzePatterns: Dictionary of [Enum "IWX QI Analysis Category", Boolean], var pbDefaultFlag: Boolean, var piFailureThreshold: Integer, var ptxtTestViewFilter: Text, var ptrecAnalysisBuffer: Record "IWX QI Analysis Buffer" temporary, var ptrecAnalysisDetailBuffer: Record "IWX QI Analysis Detail Buffer" temporary, var pbHandled: Boolean)
Parameters
Name Type Description
pdictAnalyzePatterns Dictionary of [Enum InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Category”, Boolean]

The dictionary of analysis categories to include.

pbDefaultFlag Boolean

When a flag is not explicitly set in pdictAnalyzePatterns then this defines the default settin .

piFailureThreshold Integer

The minimum number of failures required for a pattern to be included in the results.

ptxtTestViewFilter Text

The filter applied to the test records.

ptrecAnalysisBuffer Table InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Buffer”

The temporary record for analysis results.

ptrecAnalysisDetailBuffer Table InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Detail Buffer”

The temporary record for analysis details.

pbHandled Boolean

Set to true to skip the standard analysis logic.

OnAfterPerformFailureAnalysis

Occurs after the failure analysis has been performed. Use this event to modify the analysis results or perform additional calculations.

[IntegrationEvent(False,False)]
local procedure OnAfterPerformFailureAnalysis(pdictAnalyzePatterns: Dictionary of [Enum "IWX QI Analysis Category", Boolean], pbDefaultFlag: Boolean, piFailureThreshold: Integer, ptxtTestViewFilter: Text, var ptrecAnalysisBuffer: Record "IWX QI Analysis Buffer" temporary, var ptrecAnalysisDetailBuffer: Record "IWX QI Analysis Detail Buffer" temporary)
Parameters
Name Type Description
pdictAnalyzePatterns Dictionary of [Enum InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Category”, Boolean]

The dictionary of analysis categories included.

pbDefaultFlag Boolean

When a flag is not explicitly set in pdictAnalyzePatterns then this defines the default settin .

piFailureThreshold Integer

The minimum number of failures required for a pattern to be included in the results.

ptxtTestViewFilter Text

The filter applied to the test records.

ptrecAnalysisBuffer Table InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Buffer”

The temporary record for analysis results.

ptrecAnalysisDetailBuffer Table InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Detail Buffer”

The temporary record for analysis details.

OnPerformFailureAnalysisLoop

Occurs during the loop of failed tests in the analysis. Use this event to add custom analysis logic for each failed test.

[IntegrationEvent(False,False)]
local procedure OnPerformFailureAnalysisLoop(pdictAnalyzePatterns: Dictionary of [Enum "IWX QI Analysis Category", Boolean], var precTest: Record "IWX QI Test", var ptrecAnalysisBuffer: Record "IWX QI Analysis Buffer" temporary, var ptrecAnalysisDetailBuffer: Record "IWX QI Analysis Detail Buffer" temporary)
Parameters
Name Type Description
pdictAnalyzePatterns Dictionary of [Enum InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Category”, Boolean]

The dictionary of analysis categories included.

precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The current test record being analyzed.

ptrecAnalysisBuffer Table InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Buffer”

The temporary record for analysis results.

ptrecAnalysisDetailBuffer Table InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Detail Buffer”

The temporary record for analysis details.


Codeunit “IWX QI Start Workflow”

ID 23067661Namespace: InsightWorks.QualityInspection.Automation

This codeunit is intended to help with starting a Business Central workflow.

Properties

Name Value
Permissions tabledata “IWX QI Setup” = r,
tabledata “IWX QI Test” = rimd,
tabledata “IWX QI Test Line” = rimd,
tabledata “Workflow Step Instance” = r,
tabledata “Employee” = r,
tabledata “User Setup” = r,
tabledata “Approval Entry” = r,
tabledata “Notification Entry” = r,
tabledata “Salesperson/Purchaser” = r,
tabledata “Workflow Step Argument” = r

Codeunit “IWX QI Workflow Approvals”

ID 23067660Namespace: InsightWorks.QualityInspection.Automation

Functions to handle and integrate with Business Central’s approval mechanism.

Properties

Name Value
Permissions tabledata “IWX QI Setup” = r,
tabledata “IWX QI Test” = rimd,
tabledata “IWX QI Test Line” = rimd,
tabledata “Workflow Step Instance” = r,
tabledata “Employee” = r,
tabledata “User Setup” = r,
tabledata “Approval Entry” = r,
tabledata “Notification Entry” = r,
tabledata “Salesperson/Purchaser” = r,
tabledata “Workflow Step Argument” = r

Codeunit “IWX QI Workflow Response”

ID 23067659Namespace: InsightWorks.QualityInspection.Automation

This codeunit deals with the handling of workflow responses

Properties

Name Value
Permissions tabledata “Workflow Step Instance” = r

Methods

GetStepConfigurationValueAsDecimal

Gets the step configuration value as a decimal for the given key.

procedure GetStepConfigurationValueAsDecimal(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text): Decimal
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”
ptxtKey Text
Returns
Type Description
Decimal

GetStepConfigurationValueAsBoolean

Gets the step configuration value as a boolean for the given key.

procedure GetStepConfigurationValueAsBoolean(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text): Boolean
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”
ptxtKey Text
Returns
Type Description
Boolean

GetStepConfigurationValueAsCode10

Gets the step configuration value as code[10] for the given key.

procedure GetStepConfigurationValueAsCode10(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text): Code[10]
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”
ptxtKey Text
Returns
Type Description
Code[10]

GetStepConfigurationValueAsCode20

Gets the step configuration value as code[20] for the given key.

procedure GetStepConfigurationValueAsCode20(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text): Code[20]
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”
ptxtKey Text
Returns
Type Description
Code[20]

GetStepConfigurationValue

Returns the configuration value for a given key.

procedure GetStepConfigurationValue(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text): Text
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”
ptxtKey Text
Returns
Type Description
Text

SetStepConfigurationValueAsDecimal

Sets a decimal step argument configuration value.

procedure SetStepConfigurationValueAsDecimal(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text, pdValue: Decimal)
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”
ptxtKey Text
pdValue Decimal

SetStepConfigurationValueAsBoolean

Sets a boolean step argument configuration value.

procedure SetStepConfigurationValueAsBoolean(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text, pbValue: Boolean)
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”
ptxtKey Text
pbValue Boolean

SetStepConfigurationValue

Sets a step argument configuration value.

procedure SetStepConfigurationValue(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text, ptxtValue: Text)
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”
ptxtKey Text
ptxtValue Text

GetStepConfigurationValueAsCode50

Gets the step configuration value as a Code[50].

procedure GetStepConfigurationValueAsCode50(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text): Code[50]
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”

Workflow Step Argument

ptxtKey Text

Configuration Key

Returns
Type Description
Code[50]

Value as Code[50]

GetStepConfigurationValueAsDate

Gets the step configuration value as a date.

procedure GetStepConfigurationValueAsDate(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text): Date
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”

Workflow Step Argument

ptxtKey Text

Configuration Key

Returns
Type Description
Date

Value as Date

SetStepConfigurationValueAsDate

Sets the step configuration value as a date compatible text value.

procedure SetStepConfigurationValueAsDate(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text, pdtValue: Date)
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”

Workflow Step Argument

ptxtKey Text

Configuration Key

pdtValue Date

Workflow Step Argument

GetWellKnownKeyLocation

Returns the key for a location
Typically used for target location/destination location/new location

procedure GetWellKnownKeyLocation(): Text
Returns
Type Description
Text

GetWellKnownKeyBin

Returns the key for a bin
Typically used for target bin/destination bin/new bin.

procedure GetWellKnownKeyBin(): Text
Returns
Type Description
Text

GetWellKnownKeyQuantity

Returns the key for a quantity.

procedure GetWellKnownKeyQuantity(): Text
Returns
Type Description
Text

GetWellKnownPostImmediately

Returns the key for posting immediately or not.

procedure GetWellKnownPostImmediately(): Text
Returns
Type Description
Text

GetWellKnownMoveAll

Returns the key for a flag to move the entire lot/serial

procedure GetWellKnownMoveAll(): Text
Returns
Type Description
Text

GetWellKnownSourceLocationFilter

Returns the key for a source location filter

procedure GetWellKnownSourceLocationFilter(): Text
Returns
Type Description
Text

GetWellKnownSourceBinFilter

Returns the key for a source bin filter

procedure GetWellKnownSourceBinFilter(): Text
Returns
Type Description
Text

GetWellKnownCreatePutAway

Returns the key for a put-away choice.

procedure GetWellKnownCreatePutAway(): Text
Returns
Type Description
Text

GetWellKnownKeyField

Returns the key for a field

procedure GetWellKnownKeyField(): Text
Returns
Type Description
Text

GetWellKnownKeyValueExpression

Returns the key for a value expression

procedure GetWellKnownKeyValueExpression(): Text
Returns
Type Description
Text

GetWellKnownKeyDatabaseTable

Returns the key for a database table

procedure GetWellKnownKeyDatabaseTable(): Text
Returns
Type Description
Text

GetWellKnownKeyDatabaseTableFilter

Returns the key for a database table filter.

procedure GetWellKnownKeyDatabaseTableFilter(): Text
Returns
Type Description
Text

GetWellKnownAdjPostingBehavior

Returns the key value for adjustment posting behavior.

procedure GetWellKnownAdjPostingBehavior(): Text
Returns
Type Description
Text

GetWellKnownUseMoveSheet

Returns the key value for whether or not to use the movement worksheet

procedure GetWellKnownUseMoveSheet(): Text
Returns
Type Description
Text

GetWellKnownNewLotNo

Returns the key value for new lot no.

procedure GetWellKnownNewLotNo(): Text
Returns
Type Description
Text

GetWellKnownNewSerialNo

Returns the key value for new serial no.

procedure GetWellKnownNewSerialNo(): Text
Returns
Type Description
Text

GetWellKnownNewPackageNo

Returns the key value for new package no.

procedure GetWellKnownNewPackageNo(): Text
Returns
Type Description
Text

GetWellKnownNewExpDate

Returns the key value for new expiration date.

procedure GetWellKnownNewExpDate(): Text
Returns
Type Description
Text

GetWellKnownReasonCode

Returns the key value for reason code.

procedure GetWellKnownReasonCode(): Text
Returns
Type Description
Text

GetWellKnownDirectTransfer

Returns the key value for direct transfer.

procedure GetWellKnownDirectTransfer(): Text
Returns
Type Description
Text

GetWellKnownInTransit

Returns the key value for the in-transit code.

procedure GetWellKnownInTransit(): Text
Returns
Type Description
Text

GetWellKnownExternalDocNo

Returns the key value for the external doc. no.

procedure GetWellKnownExternalDocNo(): Text
Returns
Type Description
Text

GetWellKnownAttachmentReportSelection

Returns the key value for the preferred report selection attachment

procedure GetWellKnownAttachmentReportSelection(): Text
Returns
Type Description
Text

GetStepConfigurationValueAsMoveBehaviorEnum

Obsolete

This element will become obsolete from version 7.21. GetStepConfigurationValueAsQuantityBehaviorEnum

Obsolete, use GetStepConfigurationValueAsQuantityBehaviorEnum instead.

[Obsolete(GetStepConfigurationValueAsQuantityBehaviorEnum,7.21)]
procedure GetStepConfigurationValueAsMoveBehaviorEnum(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text): Enum "IWX QI Move Behavior"
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”

Workflow Step Argument

ptxtKey Text

Configuration Key

Returns
Type Description
Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Move Behavior”

IWX QI Move Behavior Enum

GetStepConfigurationValueAsQuantityBehaviorEnum

Gets the step configuration value as an IWX QI Move Behavior Enum.

procedure GetStepConfigurationValueAsQuantityBehaviorEnum(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text): Enum "IWX QI Quantity Behavior"
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”

Workflow Step Argument

ptxtKey Text

Configuration Key

Returns
Type Description
Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Quantity Behavior”

IWX QI Move Behavior Enum

SetStepConfigurationValueAsMoveBehaviorEnum

Obsolete

This element will become obsolete from version 7.21. Use SetStepConfigurationValueAsQuantityBehaviorEnum instead

[Obsolete(Use SetStepConfigurationValueAsQuantityBehaviorEnum instead ,7.21)]
procedure SetStepConfigurationValueAsMoveBehaviorEnum(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text, peEnum: Enum "IWX QI Move Behavior")
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”
ptxtKey Text
peEnum Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Move Behavior”

SetStepConfigurationValueAsQuantityBehaviorEnum

procedure SetStepConfigurationValueAsQuantityBehaviorEnum(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text, peQuantityBehavior: Enum "IWX QI Quantity Behavior")
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”
ptxtKey Text
peQuantityBehavior Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Quantity Behavior”

GetStepConfigurationValueAsAdjPostingEnum

ets the step configuration value as an IWX QI Item Adj. Post Behavior Enum.

procedure GetStepConfigurationValueAsAdjPostingEnum(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text): Enum "IWX QI Item Adj. Post Behavior"
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”

Workflow Step Argument

ptxtKey Text

Configuration Key

Returns
Type Description
Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Item Adj. Post Behavior”

IWX QI Item Adj. Post Behavior Enum

SetStepConfigurationValueAsAdjPostingEnum

Uses an IWX QI Item Adj. Post Behavior Enum to set a Workflow Step Argument key/value.

procedure SetStepConfigurationValueAsAdjPostingEnum(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text, peEnum: Enum "IWX QI Item Adj. Post Behavior")
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”

Workflow Step Argument

ptxtKey Text

Configuration Key

peEnum Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Item Adj. Post Behavior”

IWX QI Item Adj. Post Behavior Enum

GetStepConfigurationValueAsReportSelectionEnum

ets the step configuration value as an IWX QI Item Adj. Post Behavior Enum.

procedure GetStepConfigurationValueAsReportSelectionEnum(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text): Enum "IWX QI Report Selection Usage"
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”

Workflow Step Argument

ptxtKey Text

Configuration Key

Returns
Type Description
Enum InsightWorks.QualityInspection.Reporting.”IWX QI Report Selection Usage”

IWX QI Item Adj. Post Behavior Enum

SetStepConfigurationValueAReportSelectionEnum

Obsolete

This element will become obsolete from version 7.23. Use SetStepConfigurationValueAsReportSelectionEnum instead

[Obsolete(Use SetStepConfigurationValueAsReportSelectionEnum instead,7.23)]
procedure SetStepConfigurationValueAReportSelectionEnum(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text, peEnum: Enum "IWX QI Report Selection Usage")
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”
ptxtKey Text
peEnum Enum InsightWorks.QualityInspection.Reporting.”IWX QI Report Selection Usage”

SetStepConfigurationValueAsReportSelectionEnum

Uses an IWX QI Item Adj. Post Behavior Enum to set a Workflow Step Argument key/value.

procedure SetStepConfigurationValueAsReportSelectionEnum(precWorkflowStepArgument: Record "Workflow Step Argument", ptxtKey: Text, peEnum: Enum "IWX QI Report Selection Usage")
Parameters
Name Type Description
precWorkflowStepArgument Record “Workflow Step Argument”

Workflow Step Argument

ptxtKey Text

Configuration Key

peEnum Enum InsightWorks.QualityInspection.Reporting.”IWX QI Report Selection Usage”

IWX QI Item Adj. Post Behavior Enum


Codeunit “IWX QI Workflow Setup”

ID 23067658Namespace: InsightWorks.QualityInspection.Automation

This codeunit deals with setup integration events, and other setup related to
Business Central workflows.

No processing occurs in this codeunit, but anything related to the setup
and template of available events and responses will be here.

Methods

IsWorkflowIntegrationEnabledAndSufficientPermission

IsWorkflowIntegrationEnabledAndSufficientPermission returns true if workflow integration is enabled and the current user has sufficient permission to use it.

procedure IsWorkflowIntegrationEnabledAndSufficientPermission(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

ShouldLogWorkflowExecution

ShouldLogWorkflowExecution returns true if the system is configured to log workflow execution.

procedure ShouldLogWorkflowExecution(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

GetWorkflowResponseCreateTest

Returns the token for a workflow response to create a test.

procedure GetWorkflowResponseCreateTest(): Text
Returns
Type Description
Text

Return value of type Text.

GetWorkflowResponseFinishTest

Returns the token for a workflow response to finish a test

procedure GetWorkflowResponseFinishTest(): Text
Returns
Type Description
Text

Return value of type Text.

GetWorkflowResponseReOpenTest

Returns the token for a workflow response to re-open a test

procedure GetWorkflowResponseReOpenTest(): Text
Returns
Type Description
Text

Return value of type Text.

GetWorkflowResponseCreateRetest

procedure GetWorkflowResponseCreateRetest(): Text
Returns
Type Description
Text

GetWorkflowResponseBlockLot

Returns the token for a workflow response to block a lot

procedure GetWorkflowResponseBlockLot(): Text
Returns
Type Description
Text

Return value of type Text.

GetWorkflowResponseBlockSerial

Returns the token for a workflow response to block a serial

procedure GetWorkflowResponseBlockSerial(): Text
Returns
Type Description
Text

Return value of type Text.

GetWorkflowResponseBlockPackage

Returns the token for a workflow response to block a package

procedure GetWorkflowResponseBlockPackage(): Text
Returns
Type Description
Text

Return value of type Text.

GetWorkflowResponseUnBlockLot

Returns the token for a workflow response to unblock a lot

procedure GetWorkflowResponseUnBlockLot(): Text
Returns
Type Description
Text

Return value of type Text.

GetWorkflowResponseUnBlockSerial

Returns the token for a workflow response to unblock a serial

procedure GetWorkflowResponseUnBlockSerial(): Text
Returns
Type Description
Text

Return value of type Text.

GetWorkflowResponseUnBlockPackage

Returns the token for a workflow response to unblock a package

procedure GetWorkflowResponseUnBlockPackage(): Text
Returns
Type Description
Text

Return value of type Text.

GetWorkflowResponseMoveInventory

Returns the token for a workflow response to move inventory

procedure GetWorkflowResponseMoveInventory(): Text
Returns
Type Description
Text

Return value of type Text.

GetWorkflowResponseQuarantineLicensePlate

Returns the token for a workflow response to quarantine a license plate

procedure GetWorkflowResponseQuarantineLicensePlate(): Text
Returns
Type Description
Text

Return value of type Text.

GetWorkflowResponseUnQuarantineLicensePlate

Returns the token for a workflow response to un-quarantine a license plate.

procedure GetWorkflowResponseUnQuarantineLicensePlate(): Text
Returns
Type Description
Text

Return value of type Text.

GetWorkflowResponseInternalPutAway

Returns the token for a workflow response to create an internal put-away.

procedure GetWorkflowResponseInternalPutAway(): Text
Returns
Type Description
Text

Return value of type Text.

GetWorkflowResponseSetTestValue

Returns the token for a workflow response to set a test value

procedure GetWorkflowResponseSetTestValue(): Text
Returns
Type Description
Text

Return value of type Text.

GetWorkflowResponseSetDatabaseValue

Returns the token for a workflow response to set a database value

procedure GetWorkflowResponseSetDatabaseValue(): Text
Returns
Type Description
Text

Return value of type Text.

GetWorkflowResponseInventoryAdjustment

eturns the token for a workflow response to create a inventory adjustment

procedure GetWorkflowResponseInventoryAdjustment(): Text
Returns
Type Description
Text

GetWorkflowResponseChangeItemTracking

eturns the token for a workflow response to change item tracking

procedure GetWorkflowResponseChangeItemTracking(): Text
Returns
Type Description
Text

GetWorkflowResponseCreateTransfer

eturns the token for a workflow response to create a transfer

procedure GetWorkflowResponseCreateTransfer(): Text
Returns
Type Description
Text

GetWorkflowResponseCreatePurchaseReturn

eturns the token for a workflow response to create a purchase return

procedure GetWorkflowResponseCreatePurchaseReturn(): Text
Returns
Type Description
Text

GetWorkflowResponseCreateAttachment

Returns the token for a workflow response to create an attachment

procedure GetWorkflowResponseCreateAttachment(): Text
Returns
Type Description
Text

Return value of type Text.

GetQualityInspectionPrefix

Returns the generic quality inspection workflow prefix.

procedure GetQualityInspectionPrefix(): Text
Returns
Type Description
Text

Return value of type Text.

GetTestCreatedEvent

The token for the event when a test has been created.

procedure GetTestCreatedEvent(): Code[128]
Returns
Type Description
Code[128]

Return value of type code[128].

GetReTestCreatedEvent

The token for the event when a retest has been created.

procedure GetReTestCreatedEvent(): Code[128]
Returns
Type Description
Code[128]

Return value of type code[128].

GetTestHasChangedEvent

The token for the event when a test has been changed.

procedure GetTestHasChangedEvent(): Code[128]
Returns
Type Description
Code[128]

Return value of type code[128].

GetTestFinishedEvent

The token for the event when a test has been finished.

procedure GetTestFinishedEvent(): Code[128]
Returns
Type Description
Code[128]

Return value of type code[128].

GetTestReOpensEvent

The token for the event when a test has been re-opened.

procedure GetTestReOpensEvent(): Code[128]
Returns
Type Description
Code[128]

Return value of type code[128].

GetTestRejectEventTok

The token for the event when a test has been rejected in an approval.

procedure GetTestRejectEventTok(): Code[128]
Returns
Type Description
Code[128]

Return value of type code[128].

GetTestApproveEventTok

The token for the event when a test has been approved in an approval system.

procedure GetTestApproveEventTok(): Code[128]
Returns
Type Description
Code[128]

Return value of type code[128].

GetTestDelegateEventTok

The token for the event when a test has been delegated in an approval.

procedure GetTestDelegateEventTok(): Code[128]
Returns
Type Description
Code[128]

Return value of type code[128].


Codeunit “IWX QI Value Chart Mgmt”

ID 23067647Namespace: InsightWorks.QualityInspection.Charting

The OnRun is intended to be used as a background page task.
This codeunit is used to help work with the built-in charts in Business Central and specifically
with background data collection to work with the charts.

Methods

DrillDown

Drills down into the supplied measure.

procedure DrillDown(ptxtMeasureName: Text, ptxtXValue: Text, ptxtYValue: Text, var precBusinessChartBuffer: Record "Business Chart Buffer")
Parameters
Name Type Description
ptxtMeasureName Text
ptxtXValue Text
ptxtYValue Text
precBusinessChartBuffer Record “Business Chart Buffer”

RetrieveDataAndSerialize

Used to retrieve the dataset for the given inputs.
This is for use with background data collection.

procedure RetrieveDataAndSerialize(var ptxtOutDataset: Text, ptxtTemplateFilter: Text, ptxtFieldFilter: Text, ptxtItemFilter: Text, ptxtVariantFilter: Text, pdtFromDateTime: DateTime, pdtToDateTime: DateTime): Boolean
Parameters
Name Type Description
ptxtOutDataset Text
ptxtTemplateFilter Text
ptxtFieldFilter Text
ptxtItemFilter Text
ptxtVariantFilter Text
pdtFromDateTime DateTime
pdtToDateTime DateTime
Returns
Type Description
Boolean

plotResults

procedure plotResults(var pdict: Dictionary of [Text, Text], var ptrecBusinessChartBuffer: Record "Business Chart Buffer" temporary): Boolean
Parameters
Name Type Description
pdict Dictionary of [Text, Text]
ptrecBusinessChartBuffer Record “Business Chart Buffer” temporary
Returns
Type Description
Boolean

InitializeChart

Initializes the chart.

procedure InitializeChart(var ptrecBusinessChartBuffer: Record "Business Chart Buffer" temporary, pdtStart: Date, pdtEnd: Date)
Parameters
Name Type Description
ptrecBusinessChartBuffer Record “Business Chart Buffer” temporary
pdtStart Date
pdtEnd Date

InitializeChart

Initializes the chart with a specific chart type.

procedure InitializeChart(var ptrecBusinessChartBuffer: Record "Business Chart Buffer" temporary, pdtStart: Date, pdtEnd: Date, peChartType: Enum "Business Chart Type")
Parameters
Name Type Description
ptrecBusinessChartBuffer Record “Business Chart Buffer” temporary
pdtStart Date
pdtEnd Date
peChartType System.Visualization.”Business Chart Type”

Codeunit “IWX QI ACI Forms API”

ID 23067666Namespace: InsightWorks.QualityInspection.CognitiveServices

This is the main Azure Document Intelligence / Azure Form Recognizer integration codeunit.

Properties

Name Value
Description Insight Works Azure Cognitive Services – Document Intelligence

Methods

GetAzureFormsAPISelectedToken

Returns the selected token, this is used by azure document intelligence / azure form recognizer API

procedure GetAzureFormsAPISelectedToken(): Text
Returns
Type Description
Text

Return value of type Text.

GetAzureFormsAPIUnSelectedToken

Returns the un-selected token, used by the azure document intelligence / form recognizer API.

procedure GetAzureFormsAPIUnSelectedToken(): Text
Returns
Type Description
Text

Return value of type Text.

PromptForUploadImageAndAnalyze

Use this to prompt for an image to upload and then analyze. As a result of this you will get the selected fields.

procedure PromptForUploadImageAndAnalyze(var ptrecOutSuspectedFields: Record "IWX QI Field" temporary)
Parameters
Name Type Description
ptrecOutSuspectedFields Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”

TakePictureAndAnalyze

Takes a picture and analyzes it by sending it to Azure Document Intelligence/Form Recognizer for analysis on what
fields are contained in it.

procedure TakePictureAndAnalyze(var precTest: Record "IWX QI Test", var ptrecOutSuspectedFields: Record "IWX QI Field" temporary)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecOutSuspectedFields Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”

PromptForExistingAzureAIResponse

Use for troubleshooting, this is not a primary user scenario. This will allow you to import a Json results file from
azure dev studio for analysis.
Do not call this function intended for any users, this is intended for developers and highly technical skilled integrators.

procedure PromptForExistingAzureAIResponse(var ptrecOutSuspectedFields: Record "IWX QI Field" temporary)
Parameters
Name Type Description
ptrecOutSuspectedFields Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”

AnalyzeDocument

Analyzes the public facing image.

procedure AnalyzeDocument(ptxtPublicFacingUrl: Text, var ptrecOutSuspectedFields: Record "IWX QI Field" temporary)
Parameters
Name Type Description
ptxtPublicFacingUrl Text

URL of the image to analyze

ptrecOutSuspectedFields Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”

SetIsRunningFromTest

Sets that this is running from the context of a specific test.

procedure SetIsRunningFromTest(var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Codeunit “IWX QI AOAI Fill In Values”

ID 23067669Namespace: InsightWorks.QualityInspection.CognitiveServices

This codeunit is used for the Azure open AI feature of filling in values from text.

Methods

Generate

procedure Generate(precTest: Record "IWX QI Test", ptxtInputText: Text, var ptrecTestLineSample: Record "IWX QI Test Line Sample" temporary)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptxtInputText Text
ptrecTestLineSample Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”

Codeunit “IWX QI AOAI Suggest Fields Tpl”

ID 23067671Namespace: InsightWorks.QualityInspection.CognitiveServices

Implementation for azure open AI suggest fields.

Methods

Generate

procedure Generate(pcodTemplate: Code[20], var precFilteredItem: Record Item, ptxtInputText: Text, var ptrecSuggestedFields: Record "IWX QI Field" temporary)
Parameters
Name Type Description
pcodTemplate Code[20]
precFilteredItem Record Item
ptxtInputText Text
ptrecSuggestedFields Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”

GetItemDescriptiveText

Gets descriptive text to help for use with AI

procedure GetItemDescriptiveText(var precFilteredItem: Record Item, var ptxtOutItemCodesCSV: Text, var ptxtOutItemDescriptionsCSV: Text, var ptxtOutItemCategoryCSV: Text, var ptxtOutStepsCSV: Text, var ptxtOutMarketingText: Text, var ptxtOutReplenishmentSystemCSV: Text)
Parameters
Name Type Description
precFilteredItem Record Item
ptxtOutItemCodesCSV Text
ptxtOutItemDescriptionsCSV Text
ptxtOutItemCategoryCSV Text
ptxtOutStepsCSV Text
ptxtOutMarketingText Text
ptxtOutReplenishmentSystemCSV Text

Codeunit “IWX QI Azure Blob Storage Mgmt”

ID 23067667Namespace: InsightWorks.QualityInspection.CognitiveServices

@ExpressSkipFile
Responsible for working with ASzure Blob Storage

Methods

StoreStreamIntoBlob

StoreStreamIntoBlob. will store the contents of the specified stream in pinStream to the named azure storage blob ptxtBlobName.
This requires setup configured on the Quality Inspector Setup.

procedure StoreStreamIntoBlob(ptxtBlobName: Text, var pinStream: InStream, ptxtApplicationType: Text, var rtxtOutAzureBlobStorageUrl: Text): Boolean
Parameters
Name Type Description
ptxtBlobName Text

Text. The name of the azure blob storage to create.

pinStream InStream

VAR InStream. The stream with the contents to store in azure.

ptxtApplicationType Text

Text. The application type. This effectively sets the Content-Type variable.

rtxtOutAzureBlobStorageUrl Text

VAR Text. The azure storage URL.

Returns
Type Description
Boolean

Return variable rbSucceeded of type Boolean.

DeleteBlob

Delete’s the blob if it has permission.

procedure DeleteBlob(ptxtBlobName: Text, pbFailIfNoPermission: Boolean): Boolean
Parameters
Name Type Description
ptxtBlobName Text

The blob name to fail.

pbFailIfNoPermission Boolean

Set to true if you want to throw an error if the delete fails because of a 401 or 403 error.

Returns
Type Description
Boolean

Codeunit “IWX QI Token Counter”

ID 23067670Namespace: InsightWorks.QualityInspection.CognitiveServices

Methods

PreciseTokenCount

Obsolete

This element will become obsolete from version 7.18. azure-openai-tokeniz no longer exists

[Obsolete(azure-openai-tokeniz no longer exists,7.18)]
procedure PreciseTokenCount(Input: Text): Integer
Parameters
Name Type Description
Input Text
Returns
Type Description
Integer

Codeunit “IWX QI Application Area Mgmt”

ID 23067655Namespace: InsightWorks.QualityInspection.Configuration.ApplicationAreas


Codeunit “IWX QI Generation Rule Mgmt”

ID 23067640Namespace: InsightWorks.QualityInspection.Configuration.GenerationRule

Methods to assist with test generation rule management.
Codeunit IWX QI Assignment Mgmt”(ID 23067640).
Parts based on codeunit 23044160 “SFI Quality Insp. Management “

Methods

SetFilterToApplicableTemplates

Sets the filter on the target configuration to sources that could match the supplied template.
Use this to restrict which possible sources exist based on the input record.

procedure SetFilterToApplicableTemplates(pcodTemplateCode: Code[20], var precIWXQISourceConfig: Record "IWX QI Source Config")
Parameters
Name Type Description
pcodTemplateCode Code[20]
precIWXQISourceConfig Table InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config”

FindMatchingGenerationRule

For a given record id input, this will find the first matching generation rule, and provide as an output
a temporary recordset with matching generation rule.

procedure FindMatchingGenerationRule(pbErrorIfNoGenerationRule: Boolean, var prrefTargetRecordRef: RecordRef, pcodOptionalspecificTemplate: Code[20], var ptrecOutGenerationRule: Record "IWX QI Generation Rule" temporary): Boolean
Parameters
Name Type Description
pbErrorIfNoGenerationRule Boolean
prrefTargetRecordRef RecordRef

The target to find the matching generation rule for

pcodOptionalspecificTemplate Code[20]
ptrecOutGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”

Output, the matching generation rule

Returns
Type Description
Boolean

True if a generation rule is found

FindMatchingGenerationRule

Finds first matching Generation Rule

procedure FindMatchingGenerationRule(pbErrorIfNoGenerationRule: Boolean, var prrefTargetRecordRef: RecordRef, var precOptionalItem: Record Item, pcodOptionalspecificTemplate: Code[20], var ptrecOutGenerationRule: Record "IWX QI Generation Rule" temporary): Boolean
Parameters
Name Type Description
pbErrorIfNoGenerationRule Boolean

specifies whether an error should be thrown if no rule is found

prrefTargetRecordRef RecordRef

target recordref for rules search

precOptionalItem Record Item

optional item to filter rules search

pcodOptionalspecificTemplate Code[20]

Optional template to filter rules search

ptrecOutGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”

Returned Generation Rule

Returns
Type Description
Boolean

true if a matching Generation Rule was found

FindMatchingGenerationRule

Finds first matching Generation Rule, filtered by Generation Rule Activation Trigger

procedure FindMatchingGenerationRule(pbErrorIfNoGenerationRule: Boolean, pbIsManualCreation: Boolean, var prrefTargetRecordRef: RecordRef, var precOptionalItem: Record Item, pcodOptionalspecificTemplate: Code[20], var ptrecOutGenerationRule: Record "IWX QI Generation Rule" temporary): Boolean
Parameters
Name Type Description
pbErrorIfNoGenerationRule Boolean

specifies whether an error should be thrown if no rule is found

pbIsManualCreation Boolean

specifies whether to search for rules targeted at manual creation or automatic creation.

prrefTargetRecordRef RecordRef

target recordref for rules search

precOptionalItem Record Item

optional item to filter rules search

pcodOptionalspecificTemplate Code[20]

Optional template to filter rules search

ptrecOutGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”

Returned Generation Rule

Returns
Type Description
Boolean

true if a matching Generation Rule was found

DoesMatchItemAttributeFiltersOrNoFilter

If there is no item attribute filter, returns true.
If there is an item attribute filter, then it must match.

procedure DoesMatchItemAttributeFiltersOrNoFilter(var precGenerationRule: Record "IWX QI Generation Rule", var precItem: Record Item): Boolean
Parameters
Name Type Description
precGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”
precItem Record Item
Returns
Type Description
Boolean

FindAllCompatibleGenerationRules

Finds all compatible generation rules for a given template.

procedure FindAllCompatibleGenerationRules(pcodTemplateCode: Code[20], var ptrecGenerationRule: Record "IWX QI Generation Rule" temporary): Boolean
Parameters
Name Type Description
pcodTemplateCode Code[20]
ptrecGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”
Returns
Type Description
Boolean

FindMatchingNonconformanceGenerationRule

Finds a matching nonconformance generation rule for a given source test.

procedure FindMatchingNonconformanceGenerationRule(var precSourceTest: Record "IWX QI Test", var ptrecOutGenerationRule: Record "IWX QI Generation Rule" temporary): Boolean
Parameters
Name Type Description
precSourceTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The source test to find the matching generation rule for

ptrecOutGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”

The output generation rule

Returns
Type Description
Boolean

True if a matching generation rule is found


Codeunit “IWX QI Grade Condition Mgmt.”

ID 23067644Namespace: InsightWorks.QualityInspection.Configuration.Grade

Used to copy grade conditions from fields to templates, templates to tests,

Methods

CopyGradeConditionsFromFieldToTemplateLine

Used to copy grade conditions from the default configuration to the template line.

procedure CopyGradeConditionsFromFieldToTemplateLine(pcodTemplate: Code[20], piLineNo: Integer, pcodOptionalSpecificGrade: Code[20], pbOverwriteConditionIfExisting: Boolean)
Parameters
Name Type Description
pcodTemplate Code[20]

The template

piLineNo Integer

The template line

pcodOptionalSpecificGrade Code[20]

Leave empty to copy all applicable grades

pbOverwriteConditionIfExisting Boolean

The template

CopyGradeConditionsFromTemplateLineToTemplateLine

Used for cloning templates.

procedure CopyGradeConditionsFromTemplateLineToTemplateLine(precFromTemplateLine: Record "IWX QI Template Line", precTargetTemplateLine: Record "IWX QI Template Line")
Parameters
Name Type Description
precFromTemplateLine Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Line”
precTargetTemplateLine Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Line”

CopyGradeConditionsFromTemplateToTest

Copy grade conditions from a template to a test.

procedure CopyGradeConditionsFromTemplateToTest(precTemplateLine: Record "IWX QI Template Line", precIWXQITestLine: Record "IWX QI Test Line")
Parameters
Name Type Description
precTemplateLine Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Line”
precIWXQITestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

CopyGradeConditionsFromDefaultToField

Copies the default grade conditions into the specified field.

procedure CopyGradeConditionsFromDefaultToField(pcodFieldCode: Code[20])
Parameters
Name Type Description
pcodFieldCode Code[20]

GetPromotedGradesForField

Returns the promoted grades for a field

procedure GetPromotedGradesForField(precField: Record "IWX QI Field", var parridMATRIX_SourceRecord: array[10] of RecordId, var partxtMATRIX_ConditionCellData: array[10] of Text, var partxtMATRIX_ConditionDescriptionCellData: array[10] of Text, var partxtMATRIX_CaptionSet: array[10] of Text, var parbMATRIX_Visible: array[10] of Boolean)
Parameters
Name Type Description
precField Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
parridMATRIX_SourceRecord array[10] of RecordId
partxtMATRIX_ConditionCellData array[10] of Text
partxtMATRIX_ConditionDescriptionCellData array[10] of Text
partxtMATRIX_CaptionSet array[10] of Text
parbMATRIX_Visible array[10] of Boolean

GetPromotedGradesForTemplateLine

Sets the promoted grades for the template line. If the template line is being initialized then
it will return the default promoted grades with the default number condition for the grades.

procedure GetPromotedGradesForTemplateLine(precTemplateLine: Record "IWX QI Template Line", var parridMATRIX_SourceRecord: array[10] of RecordId, var partxtMATRIX_ConditionCellData: array[10] of Text, var partxtMATRIX_ConditionDescriptionCellData: array[10] of Text, var partxtMATRIX_CaptionSet: array[10] of Text, var parbMATRIX_Visible: array[10] of Boolean)
Parameters
Name Type Description
precTemplateLine Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Line”
parridMATRIX_SourceRecord array[10] of RecordId
partxtMATRIX_ConditionCellData array[10] of Text
partxtMATRIX_ConditionDescriptionCellData array[10] of Text
partxtMATRIX_CaptionSet array[10] of Text
parbMATRIX_Visible array[10] of Boolean

GetDefaultPromotedGrades

Gets the default promoted grades in general regardless of what is configured
for a specific field or a given field on a template (specification)
This can be used to help determine the overall promoted grades in the system.

procedure GetDefaultPromotedGrades(pbAllPromoted: Boolean, var parridMATRIX_SourceRecord: array[10] of RecordId, var partxtMATRIX_ConditionCellData: array[10] of Text, var partxtMATRIX_ConditionDescriptionCellData: array[10] of Text, var partxtMATRIX_CaptionSet: array[10] of Text, var parbMATRIX_Visible: array[10] of Boolean)
Parameters
Name Type Description
pbAllPromoted Boolean

If true this will return all promoted fields. If false, only those with autocopy.

parridMATRIX_SourceRecord array[10] of RecordId
partxtMATRIX_ConditionCellData array[10] of Text
partxtMATRIX_ConditionDescriptionCellData array[10] of Text
partxtMATRIX_CaptionSet array[10] of Text
parbMATRIX_Visible array[10] of Boolean

GetPromotedGradesForTestLine

procedure GetPromotedGradesForTestLine(precTestLine: Record "IWX QI Test Line", var parridMATRIX_SourceRecord: array[10] of RecordId, var partxtMATRIX_ConditionCellData: array[10] of Text, var partxtMATRIX_ConditionDescriptionCellData: array[10] of Text, var partxtMATRIX_CaptionSet: array[10] of Text, var parbMATRIX_Visible: array[10] of Boolean)
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
parridMATRIX_SourceRecord array[10] of RecordId
partxtMATRIX_ConditionCellData array[10] of Text
partxtMATRIX_ConditionDescriptionCellData array[10] of Text
partxtMATRIX_CaptionSet array[10] of Text
parbMATRIX_Visible array[10] of Boolean

Events

OnBeforeGetPromotedGradesForTemplateLine

This can be used to completely replace the behavior or extend of determining the promoted
grades for a specific template line.

[IntegrationEvent(False,False)]
procedure OnBeforeGetPromotedGradesForTemplateLine(var precTemplateLine: Record "IWX QI Template Line", var parridMATRIX_SourceRecord: array[10] of RecordId, var partxtMATRIX_ConditionCellData: array[10] of Text, var partxtMATRIX_ConditionDescriptionCellData: array[10] of Text, var partxtMATRIX_CaptionSet: array[10] of Text, var parbMATRIX_Visible: array[10] of Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
precTemplateLine Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Line”
parridMATRIX_SourceRecord array[10] of RecordId
partxtMATRIX_ConditionCellData array[10] of Text
partxtMATRIX_ConditionDescriptionCellData array[10] of Text
partxtMATRIX_CaptionSet array[10] of Text
parbMATRIX_Visible array[10] of Boolean
pbHandled Boolean

OnAfterGetPromotedGradesForTemplateLine

This can be used to alter the behavior or extend of determining the promoted
grades for a specific template line.
This occurs after the system has already determined the promoted grades.

[IntegrationEvent(False,False)]
procedure OnAfterGetPromotedGradesForTemplateLine(var precTemplateLine: Record "IWX QI Template Line", var parridMATRIX_SourceRecord: array[10] of RecordId, var partxtMATRIX_ConditionCellData: array[10] of Text, var partxtMATRIX_ConditionDescriptionCellData: array[10] of Text, var partxtMATRIX_CaptionSet: array[10] of Text, var parbMATRIX_Visible: array[10] of Boolean)
Parameters
Name Type Description
precTemplateLine Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Line”
parridMATRIX_SourceRecord array[10] of RecordId
partxtMATRIX_ConditionCellData array[10] of Text
partxtMATRIX_ConditionDescriptionCellData array[10] of Text
partxtMATRIX_CaptionSet array[10] of Text
parbMATRIX_Visible array[10] of Boolean

OnBeforeGetPromotedGradesForTestLine

This can be used to completely replace the behavior or extend of determining the promoted
grades for a specific test line.

[IntegrationEvent(False,False)]
procedure OnBeforeGetPromotedGradesForTestLine(var precTestLine: Record "IWX QI Test Line", var parridMATRIX_SourceRecord: array[10] of RecordId, var partxtMATRIX_ConditionCellData: array[10] of Text, var partxtMATRIX_ConditionDescriptionCellData: array[10] of Text, var partxtMATRIX_CaptionSet: array[10] of Text, var parbMATRIX_Visible: array[10] of Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
parridMATRIX_SourceRecord array[10] of RecordId
partxtMATRIX_ConditionCellData array[10] of Text
partxtMATRIX_ConditionDescriptionCellData array[10] of Text
partxtMATRIX_CaptionSet array[10] of Text
parbMATRIX_Visible array[10] of Boolean
pbHandled Boolean

OnAfterGetPromotedGradesForTestLine

This can be used to alter the results of a grade behavior for a test line after the results have been deterined.

[IntegrationEvent(False,False)]
procedure OnAfterGetPromotedGradesForTestLine(var precTestLine: Record "IWX QI Test Line", var parridMATRIX_SourceRecord: array[10] of RecordId, var partxtMATRIX_ConditionCellData: array[10] of Text, var partxtMATRIX_ConditionDescriptionCellData: array[10] of Text, var partxtMATRIX_CaptionSet: array[10] of Text, var parbMATRIX_Visible: array[10] of Boolean)
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
parridMATRIX_SourceRecord array[10] of RecordId
partxtMATRIX_ConditionCellData array[10] of Text
partxtMATRIX_ConditionDescriptionCellData array[10] of Text
partxtMATRIX_CaptionSet array[10] of Text
parbMATRIX_Visible array[10] of Boolean

OnBeforeGetPromotedGrades

This can be used to alter the behavior of determining which promoted grades
to show. This event occurs before the results are determined, allowing a complete
replacement of the behavior.

[IntegrationEvent(False,False)]
procedure OnBeforeGetPromotedGrades(var precGradeConditionConfig: Record "IWX QI Grade Condition Config", var parridMATRIX_SourceRecord: array[10] of RecordId, var partxtMATRIX_ConditionCellData: array[10] of Text, var partxtMATRIX_ConditionDescriptionCellData: array[10] of Text, var partxtMATRIX_CaptionSet: array[10] of Text, var parbMATRIX_Visible: array[10] of Boolean, var precOptionalTest: Record "IWX QI Test", var precOptionalTestLine: Record "IWX QI Test Line", var pbHandled: Boolean)
Parameters
Name Type Description
precGradeConditionConfig Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Config”
parridMATRIX_SourceRecord array[10] of RecordId
partxtMATRIX_ConditionCellData array[10] of Text
partxtMATRIX_ConditionDescriptionCellData array[10] of Text
partxtMATRIX_CaptionSet array[10] of Text
parbMATRIX_Visible array[10] of Boolean
precOptionalTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precOptionalTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
pbHandled Boolean

OnAfterGetPromotedGrades

This can be used to alter the behavior of determining which promoted grades
to show. This event occurs after the results are determined.

[IntegrationEvent(False,False)]
procedure OnAfterGetPromotedGrades(var precGradeConditionConfig: Record "IWX QI Grade Condition Config", var parridMATRIX_SourceRecord: array[10] of RecordId, var partxtMATRIX_ConditionCellData: array[10] of Text, var partxtMATRIX_ConditionDescriptionCellData: array[10] of Text, var partxtMATRIX_CaptionSet: array[10] of Text, var parbMATRIX_Visible: array[10] of Boolean, var precOptionalTest: Record "IWX QI Test", var precOptionalTestLine: Record "IWX QI Test Line")
Parameters
Name Type Description
precGradeConditionConfig Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Config”
parridMATRIX_SourceRecord array[10] of RecordId
partxtMATRIX_ConditionCellData array[10] of Text
partxtMATRIX_ConditionDescriptionCellData array[10] of Text
partxtMATRIX_CaptionSet array[10] of Text
parbMATRIX_Visible array[10] of Boolean
precOptionalTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precOptionalTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

Codeunit “IWX QI Grade Evaluation”

ID 23067645Namespace: InsightWorks.QualityInspection.Configuration.Grade

Methods to help with grade evaluation.

Properties

Name Value
TableNo Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

Methods

EvaluateGrade

Obsolete

This element will become obsolete from version 7.18. Use EvaluateGrade with a supplied test in the first parameter instead

Evaluates the grade conditions

[Obsolete(Use EvaluateGrade with a supplied test in the first parameter instead ,7.18)]
procedure EvaluateGrade(var precTestGradeConditionConfig: Record "IWX QI Grade Condition Config", peFieldType: Enum "IWX QI Field Type", ptxtTestValue: Text): Code[20]
Parameters
Name Type Description
precTestGradeConditionConfig Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Config”

Supply the filters. Do not supply a specific grade condition.

peFieldType Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Type”
ptxtTestValue Text
Returns
Type Description
Code[20]

EvaluateGrade

Obsolete

This element will become obsolete from version 7.18. Use EvaluateGrade with a supplied test in the first parameter instead

Evaluates the grade conditions

[Obsolete(Use EvaluateGrade with a supplied test in the first parameter instead ,7.18)]
procedure EvaluateGrade(var precTestGradeConditionConfig: Record "IWX QI Grade Condition Config", peFieldType: Enum "IWX QI Field Type", ptxtTestValue: Text, penumCaseOption: Enum "IWX QI Case Sensitive"): Code[20]
Parameters
Name Type Description
precTestGradeConditionConfig Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Config”

Supply the filters. Do not supply a specific grade condition.

peFieldType Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Type”
ptxtTestValue Text
penumCaseOption Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Case Sensitive”

Supply the filters. Do not supply a specific grade condition.

Returns
Type Description
Code[20]

EvaluateGrade

Evaluates a grade with an optional test.
The test is used to help with expression evaluation.

procedure EvaluateGrade(var precOptionalTest: Record "IWX QI Test", var precTestGradeConditionConfig: Record "IWX QI Grade Condition Config", peFieldType: Enum "IWX QI Field Type", ptxtTestValue: Text, penumCaseOption: Enum "IWX QI Case Sensitive"): Code[20]
Parameters
Name Type Description
precOptionalTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precTestGradeConditionConfig Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Config”
peFieldType Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Type”
ptxtTestValue Text
penumCaseOption Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Case Sensitive”
Returns
Type Description
Code[20]

EvaluateGrade

Evaluates a grade with an optional test and test line.
The test is used to help with expression evaluation.

procedure EvaluateGrade(var precOptionalTest: Record "IWX QI Test", var precOptionalTestLine: Record "IWX QI Test Line", var precTestGradeConditionConfig: Record "IWX QI Grade Condition Config", peFieldType: Enum "IWX QI Field Type", ptxtTestValue: Text, penumCaseOption: Enum "IWX QI Case Sensitive"): Code[20]
Parameters
Name Type Description
precOptionalTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precOptionalTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
precTestGradeConditionConfig Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Config”
peFieldType Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Type”
ptxtTestValue Text
penumCaseOption Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Case Sensitive”
Returns
Type Description
Code[20]

ValidateTestLine

Call this procedure to validate the test line.

procedure ValidateTestLine(var precTestLine: Record "IWX QI Test Line")
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

ValidateTestLineSample

Call this procedure to validate the test line sample.

procedure ValidateTestLineSample(var precTestLineSample: Record "IWX QI Test Line Sample")
Parameters
Name Type Description
precTestLineSample Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”

ValidateTestLineSample

Validates a test line sample.

procedure ValidateTestLineSample(var precTestLineSample: Record "IWX QI Test Line Sample", var precTestLine: Record "IWX QI Test Line", var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTestLineSample Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

TryValidateTestLine

This will not modify the test line.
This will only try and validate the test line itself.

[TryFunction]
procedure TryValidateTestLine(var precTestLine: Record "IWX QI Test Line", var precOptionalTest: Record "IWX QI Test"): Boolean
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
precOptionalTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
Returns
Type Description
Boolean

ValidateTestLine

Call this procedure to validate the test line for the given test.

procedure ValidateTestLine(var precTestLine: Record "IWX QI Test Line", var precOptionalTest: Record "IWX QI Test")
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
precOptionalTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

ValidateTestLine

Call this procedure to validate the test line for the given test.

procedure ValidateTestLine(var precTestLine: Record "IWX QI Test Line", var precOptionalTest: Record "IWX QI Test", pbModify: Boolean)
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
precOptionalTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbModify Boolean

Set to true to modify the grade(default), false to avoid modifying.

ValidateTestLineWithAllowableValues

Call this procedure to validate the test line for the given test.

procedure ValidateTestLineWithAllowableValues(var precTestLine: Record "IWX QI Test Line", var precOptionalTest: Record "IWX QI Test", pbCheckForAllowableValues: Boolean)
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
precOptionalTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbCheckForAllowableValues Boolean

set to true to check for allowable values.

GetTestLineConfigFilters

procedure GetTestLineConfigFilters(var precTestLine: Record "IWX QI Test Line", var precOutTemplateLineGradeConditionConfig: Record "IWX QI Grade Condition Config")
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
precOutTemplateLineGradeConditionConfig Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Config”

GetTemplateLineConfigFilters

procedure GetTemplateLineConfigFilters(var precTemplateLine: Record "IWX QI Template Line", var precOutTemplateLineGradeConditionConfig: Record "IWX QI Grade Condition Config")
Parameters
Name Type Description
precTemplateLine Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Line”
precOutTemplateLineGradeConditionConfig Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Config”

GetFieldConfigFilters

procedure GetFieldConfigFilters(var precField: Record "IWX QI Field", var precOutTemplateLineGradeConditionConfig: Record "IWX QI Grade Condition Config")
Parameters
Name Type Description
precField Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
precOutTemplateLineGradeConditionConfig Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Config”

ValidateAllowableValuesOnField

procedure ValidateAllowableValuesOnField(var precIWXField: Record "IWX QI Field")
Parameters
Name Type Description
precIWXField Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”

ValidateAllowableValuesOnField

procedure ValidateAllowableValuesOnField(var precIWXField: Record "IWX QI Field", var precOptionalContextTest: Record "IWX QI Test")
Parameters
Name Type Description
precIWXField Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
precOptionalContextTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

ValidateAllowableValuesOnField

procedure ValidateAllowableValuesOnField(var precIWXField: Record "IWX QI Field", var precOptionalContextTest: Record "IWX QI Test", var precOptionalContextTestLine: Record "IWX QI Test Line")
Parameters
Name Type Description
precIWXField Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
precOptionalContextTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precOptionalContextTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

TestValueDateTime

procedure TestValueDateTime(var ptxtTestValue: Text[250], ptxtAcceptableValue: Text, pbAdjustTestValueIfGood: Boolean): Boolean
Parameters
Name Type Description
ptxtTestValue Text[250]
ptxtAcceptableValue Text
pbAdjustTestValueIfGood Boolean
Returns
Type Description
Boolean

TestValueDate

procedure TestValueDate(var ptxtTestValue: Text[250], ptxtAcceptableValue: Text, pbAdjustTestValueIfGood: Boolean): Boolean
Parameters
Name Type Description
ptxtTestValue Text[250]
ptxtAcceptableValue Text
pbAdjustTestValueIfGood Boolean
Returns
Type Description
Boolean

GetAQLFailureGradeOfSamples

Determines the failing AQL grade of the test line.
If you do not have sufficient samples, the you do not get a grade.
If your samples test fine, this will also return blank.
This does not return the grades or some aggregate of grades on the individual test lines.
This only returns the grade configured on the AQL sampling plan.

procedure GetAQLFailureGradeOfSamples(var precTest: Record "IWX QI Test", var precTestLine: Record "IWX QI Test Line", var precOutAQLGrade: Record "IWX QI Grade"): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
precOutAQLGrade Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade”
Returns
Type Description
Boolean

Codeunit “IWX QI Auto Config”

ID 23067637Namespace: InsightWorks.QualityInspection.Configuration

Contains helper functions to use for automatic configuration.

Methods

GuessDoesAppearToBeSetup

GuessDoesAppearToBeSetup will guess if the system appears to be setup.
Use this if you need to not just make sure that Quality Inspector is installed but
some basic setup has been done.

procedure GuessDoesAppearToBeSetup(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

GuessDoesAppearToBeUsed

GuessDoesAppearToBeUsed will guess if it’s used.
Use this if you need to guess if the system is not just probably setup enough, but also appears to have actual usage.

procedure GuessDoesAppearToBeUsed(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

DownloadAndApplyAQLSampleDataFile

Requires a minimum of BC 14 (ImportExportPowertool only compiles down to BC14)

procedure DownloadAndApplyAQLSampleDataFile()

DownloadAndReadSystemPromptSetValuesFeature

procedure DownloadAndReadSystemPromptSetValuesFeature(): Text
Returns
Type Description
Text

DownloadAndReadSystemPromptSuggestFieldsFeature

procedure DownloadAndReadSystemPromptSuggestFieldsFeature(): Text
Returns
Type Description
Text

DownloadAndReadEndpointSetValuesFeature

procedure DownloadAndReadEndpointSetValuesFeature(): Text
Returns
Type Description
Text

DownloadAndReadKeySetValuesFeature

procedure DownloadAndReadKeySetValuesFeature(): Text
Returns
Type Description
Text

DownloadAndReadDeploymentSetValuesFeature

procedure DownloadAndReadDeploymentSetValuesFeature(): Text
Returns
Type Description
Text

DownloadAndApplySettingsFiles

DownloadAndApplySettingsFiles will download and apply any settings files from Insight Works public endpoint
Enable HTTP Requests for Insight Works applications is required..

procedure DownloadAndApplySettingsFiles(pbCommit: Boolean)
Parameters
Name Type Description
pbCommit Boolean

Boolean.

ApplyRapidStartFiles

ApplyRapidStartFiles will apply the download and apply the rapidstart files/configuration packages.

procedure ApplyRapidStartFiles()

ApplyRapidstartFromResource

ApplyRapidstartFromResource will download and apply the supplied rapidstart configuration package.

procedure ApplyRapidstartFromResource(ptxtResourcePath: Text)
Parameters
Name Type Description
ptxtResourcePath Text

reference to the internal resource location


Codeunit “IWX QI Install”

ID 23067656Namespace: InsightWorks.QualityInspection.Configuration

Install codeunit.

Properties

Name Value
Subtype Install

Codeunit “IWX QI Upgrade”

ID 23067657Namespace: InsightWorks.QualityInspection.Configuration

Upgrade codeunit.

Properties

Name Value
Subtype Upgrade

Codeunit “IWX QI Assisted Setup”

ID 23067636Namespace: InsightWorks.QualityInspection.Configuration.SetupWizard

Assisted setup functionality for the plus version.

Properties

Name Value
Permissions TableData “Assisted Company Setup Status” = rimd

Codeunit “IWX QI Traversal”

ID 23067643Namespace: InsightWorks.QualityInspection.Configuration.SourceConfiguration

Methods to assist with traversing records, connecting from one record to another.

Methods

ApplySourceFields

This will populate the source fields in the test record based on the target record reference.
The source table configuration will be used to traverse the parent records if necessary.

procedure ApplySourceFields(var prrefTargetRecordRef: RecordRef, var precTest: Record "IWX QI Test", pbErrorIfNoConfig: Boolean, pbForceSetValues: Boolean): Boolean
Parameters
Name Type Description
prrefTargetRecordRef RecordRef

The main target record that the test will be created against

precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The quality inspection test involved

pbErrorIfNoConfig Boolean

The main target record that the test will be created against

pbForceSetValues Boolean

The main target record that the test will be created against

Returns
Type Description
Boolean

FindSingleParentRecordWithVariant

Given a record, recordid, or recordref as a child record this fill finnd the single parent record
based on the source configuration.

procedure FindSingleParentRecordWithVariant(pvarChildRecord: Variant, var poutFoundParentRecordRef: RecordRef): Boolean
Parameters
Name Type Description
pvarChildRecord Variant
poutFoundParentRecordRef RecordRef
Returns
Type Description
Boolean

FindRelatedItem

Goes through each supplied recordref in order until it finds the item number.
If found it will supply precOutItem.

procedure FindRelatedItem(var precOutItem: Record Item, prrefTargetRecordRef: RecordRef, prrefOptional2Variant: Variant, prrefOptional3Variant: Variant, prrefOptional4Variant: Variant): Boolean
Parameters
Name Type Description
precOutItem Record Item
prrefTargetRecordRef RecordRef
prrefOptional2Variant Variant
prrefOptional3Variant Variant
prrefOptional4Variant Variant
Returns
Type Description
Boolean

FindRelatedItem

Goes through each supplied recordref in order until it finds the item number.
If found it will supply precOutItem.

procedure FindRelatedItem(var precOutItem: Record Item, prrefTargetRecordRef: RecordRef, prrefOptional2Variant: Variant, prrefOptional3Variant: Variant, prrefOptional4Variant: Variant, prrefOptional5Variant: Variant): Boolean
Parameters
Name Type Description
precOutItem Record Item
prrefTargetRecordRef RecordRef
prrefOptional2Variant Variant
prrefOptional3Variant Variant
prrefOptional4Variant Variant
prrefOptional5Variant Variant
Returns
Type Description
Boolean

FindRelatedItemIn

For the given record ref it will search through the available configurations and look for a matching item.

procedure FindRelatedItemIn(var precOutItem: Record Item, pvarVariant: Variant): Boolean
Parameters
Name Type Description
precOutItem Record Item

Input filters can also be set.

pvarVariant Variant
Returns
Type Description
Boolean

FindRelatedVendor

Goes through each supplied recordref in order until it finds a related vendor.
If found it will supply precOutVendor

procedure FindRelatedVendor(var precOutVendor: Record Vendor, prrefOptional1Variant: Variant, prrefOptional2Variant: Variant, prrefOptional3Variant: Variant, prrefOptional4Variant: Variant, prrefOptional5Variant: Variant): Boolean
Parameters
Name Type Description
precOutVendor Record Vendor
prrefOptional1Variant Variant
prrefOptional2Variant Variant
prrefOptional3Variant Variant
prrefOptional4Variant Variant
prrefOptional5Variant Variant
Returns
Type Description
Boolean

FindRelatedVendorIn

For the given record ref it will search through the available configurations and look for a matching item.

procedure FindRelatedVendorIn(var precOutVendor: Record Vendor, pvarVariant: Variant): Boolean
Parameters
Name Type Description
precOutVendor Record Vendor
pvarVariant Variant
Returns
Type Description
Boolean

FindRelatedCustomer

Goes through each supplied recordref in order until it finds a related customer.
If found it will supply precOutCustomer

procedure FindRelatedCustomer(var precOutCustomer: Record Customer, prrefOptional1Variant: Variant, prrefOptional2Variant: Variant, prrefOptional3Variant: Variant, prrefOptional4Variant: Variant, prrefOptional5Variant: Variant): Boolean
Parameters
Name Type Description
precOutCustomer Record Customer
prrefOptional1Variant Variant
prrefOptional2Variant Variant
prrefOptional3Variant Variant
prrefOptional4Variant Variant
prrefOptional5Variant Variant
Returns
Type Description
Boolean

FindRelatedCustomerIn

For the given record ref it will search through the available configurations and look for a matching customer.

procedure FindRelatedCustomerIn(var precOutCustomer: Record Customer, pvarVariant: Variant): Boolean
Parameters
Name Type Description
precOutCustomer Record Customer
pvarVariant Variant
Returns
Type Description
Boolean

FindRelatedRouting

Goes through each supplied recordref in order until it finds a related customer.
If found it will supply precOutCustomer

procedure FindRelatedRouting(var precOutRouting: Record "Routing Header", prrefOptional1Variant: Variant, prrefOptional2Variant: Variant, prrefOptional3Variant: Variant, prrefOptional4Variant: Variant, prrefOptional5Variant: Variant): Boolean
Parameters
Name Type Description
precOutRouting Record “Routing Header”
prrefOptional1Variant Variant
prrefOptional2Variant Variant
prrefOptional3Variant Variant
prrefOptional4Variant Variant
prrefOptional5Variant Variant
Returns
Type Description
Boolean

FindRelatedRoutingIn

For the given record ref it will search through the available configurations and look for a matching customer.

procedure FindRelatedRoutingIn(var precOutRouting: Record "Routing Header", pvarVariant: Variant): Boolean
Parameters
Name Type Description
precOutRouting Record “Routing Header”
pvarVariant Variant
Returns
Type Description
Boolean

FindRelatedBillOfMaterial

Goes through each supplied recordref in order until it finds a related customer.
If found it will supply precOutCustomer

procedure FindRelatedBillOfMaterial(var precProductionBOMHeader: Record "Production BOM Header", prrefOptional1Variant: Variant, prrefOptional2Variant: Variant, prrefOptional3Variant: Variant, prrefOptional4Variant: Variant, prrefOptional5Variant: Variant): Boolean
Parameters
Name Type Description
precProductionBOMHeader Record “Production BOM Header”
prrefOptional1Variant Variant
prrefOptional2Variant Variant
prrefOptional3Variant Variant
prrefOptional4Variant Variant
prrefOptional5Variant Variant
Returns
Type Description
Boolean

FindRelatedBillOfMaterialIn

For the given record ref it will search through the available configurations and look for a matching bom.

procedure FindRelatedBillOfMaterialIn(var precProductionBOMHeader: Record "Production BOM Header", pvarVariant: Variant): Boolean
Parameters
Name Type Description
precProductionBOMHeader Record “Production BOM Header”
pvarVariant Variant
Returns
Type Description
Boolean

FindRelatedProdOrderRoutingLine

Goes through each supplied recordref in order until it finds a related customer.
If found it will supply precOutCustomer

procedure FindRelatedProdOrderRoutingLine(var precProdOrderRoutingLine: Record "Prod. Order Routing Line", prrefOptional1Variant: Variant, prrefOptional2Variant: Variant, prrefOptional3Variant: Variant, prrefOptional4Variant: Variant, prrefOptional5Variant: Variant): Boolean
Parameters
Name Type Description
precProdOrderRoutingLine Record “Prod. Order Routing Line”
prrefOptional1Variant Variant
prrefOptional2Variant Variant
prrefOptional3Variant Variant
prrefOptional4Variant Variant
prrefOptional5Variant Variant
Returns
Type Description
Boolean

FindRelatedProdOrderQualityMeasure

Finds the related prod order quality measure.

procedure FindRelatedProdOrderQualityMeasure(var precRoutingQualityMeasure: Record "Prod. Order Rtng Qlty Meas.", pcodQltMeasureCode: Code[10], prrefOptional1Variant: Variant, prrefOptional2Variant: Variant, prrefOptional3Variant: Variant, prrefOptional4Variant: Variant, prrefOptional5Variant: Variant): Boolean
Parameters
Name Type Description
precRoutingQualityMeasure Record “Prod. Order Rtng Qlty Meas.”
pcodQltMeasureCode Code[10]
prrefOptional1Variant Variant
prrefOptional2Variant Variant
prrefOptional3Variant Variant
prrefOptional4Variant Variant
prrefOptional5Variant Variant
Returns
Type Description
Boolean

Codeunit “IWX QI Disp. Neg. Adjust Inv.”

ID 23067681Namespace: InsightWorks.QualityInspection.Dispositions.InventoryAdjustment

The purpose of this reaction is to do inventory adjustments such as negative adjustments for the purposes of disposing inventory.

Implements

Properties

Name Value
Description Negative Adjust inventory.

Methods

PerformDisposition

Creates a negative adjustment using the information from a given Quality Inspection Test.

procedure PerformDisposition(var precTest: Record "IWX QI Test", pdOptionalSpecificQuantity: Decimal, peQuantityBehavior: Enum "IWX QI Quantity Behavior", ptxtOptionalSourceLocationFilter: Text, ptxtOptionalSourceBinFilter: Text, pePostingBehavior: Enum "IWX QI Item Adj. Post Behavior", pcodReason: Code[10]): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pdOptionalSpecificQuantity Decimal
peQuantityBehavior Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Quantity Behavior”
ptxtOptionalSourceLocationFilter Text
ptxtOptionalSourceBinFilter Text
pePostingBehavior Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Item Adj. Post Behavior”
pcodReason Code[10]
Returns
Type Description
Boolean

PerformDisposition

Creates a negative adjustment using the information from a given Quality Inspection Test.

procedure PerformDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
Returns
Type Description
Boolean

Events

OnBeforeCreateNegativeItemAdjustmentLine

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateNegativeItemAdjustmentLine(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var pcodAdjustmentBatchName: Code[10], var precOutItemJournalLine: Record "Item Journal Line", var precOutReservationEntry: Record "Reservation Entry", var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
pcodAdjustmentBatchName Code[10]
precOutItemJournalLine Record “Item Journal Line”
precOutReservationEntry Record “Reservation Entry”
pbHandled Boolean

OnBeforeCreateNegativeWarehouseAdjustmentLine

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateNegativeWarehouseAdjustmentLine(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var pcodWarehouseNegativeAdjustmentBatch: Code[10], var precOutWarehouseJournalLine: Record "Warehouse Journal Line", var precOutWhseItemTrackingLine: Record "Whse. Item Tracking Line", var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
pcodWarehouseNegativeAdjustmentBatch Code[10]
precOutWarehouseJournalLine Record “Warehouse Journal Line”
precOutWhseItemTrackingLine Record “Whse. Item Tracking Line”
pbHandled Boolean

OnBeforeProcessDisposition

Occurs before the disposition has taken place, allowing the opportunity to extend or replace the functionality.

[IntegrationEvent(False,False)]
local procedure OnBeforeProcessDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var prbChanged: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
prbChanged Boolean
pbHandled Boolean

OnAfterProcessDisposition

Occurs after the disposition has taken place.

[IntegrationEvent(False,False)]
local procedure OnAfterProcessDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var prbChanged: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
prbChanged Boolean

Codeunit “IWX QI Disp. Change Tracking”

ID 23067678Namespace: InsightWorks.QualityInspection.Dispositions.ItemTracking

The purpose of this reaction is to change lot, change serial, change package, change expiration date.

Implements

Methods

PerformDisposition

Performs the change item tracking disposition.

procedure PerformDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
Returns
Type Description
Boolean

Events

OnBeforeProcessDisposition

Occurs before change tracking has taken place, allowing the opportunity to extend or replace the functionality.

[IntegrationEvent(False,False)]
local procedure OnBeforeProcessDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var prbChanged: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
prbChanged Boolean
pbHandled Boolean

OnAfterProcessDisposition

Occurs after change tracking has taken place.

[IntegrationEvent(False,False)]
local procedure OnAfterProcessDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var prbChanged: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
prbChanged Boolean

OnBeforeInsertCreateTrackingItemReclassLine

Provides an opportunity to adjust the item reclassification line created to change item tracking information before it is inserted.

[IntegrationEvent(False,False)]
procedure OnBeforeInsertCreateTrackingItemReclassLine(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var pcodReclassBatchName: Code[10], var precItemJournalLine: Record "Item Journal Line", var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”

Quality Inspection Test

pcodReclassBatchName Code[10]

Reclassification Batch Name

precItemJournalLine Record “Item Journal Line”

The reclassification line

pbHandled Boolean

OnAfterCreateTrackingItemReclassLine

Provides an opportunity to adjust the warehouse reclassification line and whse. tracking line created to change item tracking information.

[IntegrationEvent(False,False)]
procedure OnAfterCreateTrackingItemReclassLine(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var pcodReclassBatchName: Code[10], var precItemJournalLine: Record "Item Journal Line", var precReservationEntry: Record "Reservation Entry")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”

Quality Inspection Test

pcodReclassBatchName Code[10]

Reclassification Batch Name

precItemJournalLine Record “Item Journal Line”

The inserted reclassification line

precReservationEntry Record “Reservation Entry”

The associated Reservation Entry


Codeunit “IWX QI Disp. License Plate”

ID 23067683Namespace: InsightWorks.QualityInspection.Dispositions.LicensePlate

The purpose of this codeunit is to assist with license plate related reactions such as quarantinging and un-quarantinging a license plate.

Implements

Methods

PerformDisposition

Performs the disposition of either quarantining or un-quarantining a license plate.

procedure PerformDisposition(var precTest: Record "IWX QI Test", pbShouldQuarantine: Boolean): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbShouldQuarantine Boolean
Returns
Type Description
Boolean

PerformDisposition

Quarantine and Un-Quarantine a license plate

procedure PerformDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
Returns
Type Description
Boolean

ShowRelatedLicensePlates

Shows related license plates for that item and lot/serial.

procedure ShowRelatedLicensePlates(precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The quality inspection test involved

Events

OnBeforeSetQuarantineStateRelatedLicensePlates

This allows extensions to quarantine a license plate.

[IntegrationEvent(False,False)]
local procedure OnBeforeSetQuarantineStateRelatedLicensePlates(precTest: Record "IWX QI Test", var pbShouldQuarantine: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbShouldQuarantine Boolean
pbHandled Boolean

Codeunit “IWX QI Disp. Internal Move”

ID 23067685Namespace: InsightWorks.QualityInspection.Dispositions.Move

Creates an internal movement.
When the ‘post’ option is used, it will create a movement
document from the internal movement.

Implements

Methods

PerformDisposition

procedure PerformDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
Returns
Type Description
Boolean

Codeunit “IWX QI Disp. Move Auto Choose”

ID 23067677Namespace: InsightWorks.QualityInspection.Dispositions.Move

This codeunits responsability is to deal with a move reaction.
This is used to help automatically choose the kind of movement.
Consider using the movement dispositions directly if you know the kind of movement you need.
Item-reclass based move
Warehouse-reclass based move.
Movement worksheet.
Movement document.

Implements

Methods

PerformDisposition

Used as an interim shim to assist with obsoletions and refactoring.
Consider using the disposition method that you want directly instead.

procedure PerformDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
Returns
Type Description
Boolean

Events

OnBeforeProcessDisposition

Provides an opportunity to modify the instruction or replace it completely.

[IntegrationEvent(False,False)]
local procedure OnBeforeProcessDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var prbDidSomething: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”

The instruction

prbDidSomething Boolean

Provides an opportunity to replace the default boolean success/fail of if it worked.

pbHandled Boolean

Provides an opportunity to replace the default behavior

OnAfterProcessDisposition

Provides an opportunity to extend the processing

[IntegrationEvent(False,False)]
local procedure OnAfterProcessDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var prbDidSomething: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”

The instruction

prbDidSomething Boolean

Provides an opportunity to replace the default boolean success/fail of if it worked.


Codeunit “IWX QI Disp. Move Item Reclass”

ID 23067687Namespace: InsightWorks.QualityInspection.Dispositions.Move

Implements

Methods

PerformDisposition

procedure PerformDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
Returns
Type Description
Boolean

Events

OnBeforeCreateItemReclassificationLine

This allows extensions to override or replace the item reclassification event.

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateItemReclassificationLine(precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var pcodBatchName: Code[10], var precItemJournalLine: Record "Item Journal Line", var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
pcodBatchName Code[10]
precItemJournalLine Record “Item Journal Line”
pbHandled Boolean

OnBeforeProcessDisposition

Occurs before the disposition has taken place, allowing the opportunity to extend or replace the functionality.

[IntegrationEvent(False,False)]
local procedure OnBeforeProcessDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var prbChanged: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
prbChanged Boolean
pbHandled Boolean

OnAfterProcessDisposition

Occurs after the disposition has taken place.

[IntegrationEvent(False,False)]
local procedure OnAfterProcessDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var prbChanged: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
prbChanged Boolean

Codeunit “IWX QI Disp. Move Whse.Reclass”

ID 23067684Namespace: InsightWorks.QualityInspection.Dispositions.Move

Implements

Methods

PerformDisposition

procedure PerformDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
Returns
Type Description
Boolean

Events

OnBeforeCreateWarehouseReclassLine

This allows extensions to override or replace the warehouse reclass journal line insertion.

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateWarehouseReclassLine(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var pcodBatchName: Code[10], var precOutWarehouseJournalLine: Record "Warehouse Journal Line", var precOutWhseItemTrackingLine: Record "Whse. Item Tracking Line", var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
pcodBatchName Code[10]
precOutWarehouseJournalLine Record “Warehouse Journal Line”
precOutWhseItemTrackingLine Record “Whse. Item Tracking Line”
pbHandled Boolean

OnAfterCreateWarehouseReclassLine

This allows extensions to alter data after the reclass line has been made.

[IntegrationEvent(False,False)]
local procedure OnAfterCreateWarehouseReclassLine(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precOutWarehouseJournalLine: Record "Warehouse Journal Line", var precOutWhseItemTrackingLine: Record "Whse. Item Tracking Line")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
precOutWarehouseJournalLine Record “Warehouse Journal Line”
precOutWhseItemTrackingLine Record “Whse. Item Tracking Line”

Codeunit “IWX QI Disp. Move Worksheet”

ID 23067686Namespace: InsightWorks.QualityInspection.Dispositions.Move

Implements

Properties

Name Value
EventSubscriberInstance Manual

Methods

PerformDisposition

procedure PerformDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
Returns
Type Description
Boolean

Codeunit “IWX QI Disp. Purchase Return”

ID 23067676Namespace: InsightWorks.QualityInspection.Dispositions.Purchase

The purpose of this reaction is to create a purchase return as a reaction to a test result.

Implements

Methods

PerformDisposition

Creates a Purchase Return Order from a Quality Inspection Test

procedure PerformDisposition(var precTest: Record "IWX QI Test", peQuantityBehavior: Enum "IWX QI Quantity Behavior", pdOptionalSpecificQuantity: Decimal, ptxtOptionalSourceLocationFilter: Text, ptxtOptionalSourceBinFilter: Text, pcodOptionalReason: Code[10], pcodOptionalCreditMemo: Code[35]): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

peQuantityBehavior Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Quantity Behavior”

Use a specific quantity, tracked quantity, sample size, or pass/fail quantity

pdOptionalSpecificQuantity Decimal

The specific quantity(base) to use, if designated

ptxtOptionalSourceLocationFilter Text

Optional additional location filter for item on test

ptxtOptionalSourceBinFilter Text

Optional additional bin filter for item on test

pcodOptionalReason Code[10]

Optional Return Reason code

pcodOptionalCreditMemo Code[35]

Optional Vendor Credit Memo No.

Returns
Type Description
Boolean

PerformDisposition

procedure PerformDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
Returns
Type Description
Boolean

Events

OnBeforeProcessDisposition

Provides an opportunity to modify the create Purchase Return Order behavior or replace it completely.

[IntegrationEvent(False,False)]
procedure OnBeforeProcessDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var prbDidSomething: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”

The instruction

prbDidSomething Boolean

Provides an opportunity to replace the default boolean success/fail of if it worked.

pbHandled Boolean

Provides an opportunity to replace the default behavior

OnAfterProcessDisposition

Provides an opportunity to modify the create Purchase Return Order behavior or replace it completely.

[IntegrationEvent(False,False)]
procedure OnAfterProcessDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precCreatedPurchaseReturnOrder: Record "Purchase Header", var prbDidSomething: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”

The instruction

precCreatedPurchaseReturnOrder Record “Purchase Header”

The created purchase return order

prbDidSomething Boolean

Provides an opportunity to replace the default boolean success/fail of if it worked.

OnBeforeCreateOrUpdatePurchaseReturnOrderLine

Provies an ability to replace the handling of the creation or purchase return order lines.

[IntegrationEvent(False,False)]
procedure OnBeforeCreateOrUpdatePurchaseReturnOrderLine(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precPurchRcptLine: Record "Purch. Rcpt. Line", var precPurchaseReturnOrder: Record "Purchase Header", var precReturnOrderLine: Record "Purchase Line", var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”

Quality Inspection Test

precPurchRcptLine Record “Purch. Rcpt. Line”

The original purchase receipt line.

precPurchaseReturnOrder Record “Purchase Header”

The purchase return order

precReturnOrderLine Record “Purchase Line”

The new or existing purchase return order line.

pbHandled Boolean

OnAfterCreateOrUpdatePurchaseReturnOrderLine

Provides an ability to extend the handling of the creation or purchase return order lines.
after the system has processed the update.

[IntegrationEvent(False,False)]
procedure OnAfterCreateOrUpdatePurchaseReturnOrderLine(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precPurchRcptLine: Record "Purch. Rcpt. Line", var precPurchaseReturnOrder: Record "Purchase Header", var precReturnOrderLine: Record "Purchase Line")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”

Quality Inspection Test

precPurchRcptLine Record “Purch. Rcpt. Line”

The original purchase receipt line.

precPurchaseReturnOrder Record “Purchase Header”

The purchase return order

precReturnOrderLine Record “Purchase Line”

The new or existing purchase return order line.


Codeunit “IWX QI Disp. Internal PutAway”

ID 23067682Namespace: InsightWorks.QualityInspection.Dispositions.PutAway

This codeunit is responsible for the reaction of creating internal put-aways.

Implements

Methods

PerformDisposition

Create a warehouse internal put-away(s) from the supplied test.
It’s possible that multiple put-away’s could be created if the lot is in multiple bins, but the typical scenario would be
one internal put-away.
You must be in a directed pick and put location, and you must be using lot warehouse tracking to use this feature.

procedure PerformDisposition(precTest: Record "IWX QI Test", pdOptionalSpecificQuantity: Decimal, ptxtOptionalSourceLocationFilter: Text, ptxtOptionalSourceBinFilter: Text, pbReleaseImmediately: Boolean, peQuantityBehavior: Enum "IWX QI Quantity Behavior"): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The test to create the internal put-away from

pdOptionalSpecificQuantity Decimal

Optional quantity. Leave blank to use the entire lot or the quantity from the test.

ptxtOptionalSourceLocationFilter Text

Optional limitations on the source location.

ptxtOptionalSourceBinFilter Text

Optional limitations on the source bin.

pbReleaseImmediately Boolean

if true it will release the document, if false it will keep it open.

peQuantityBehavior Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Quantity Behavior”

The quantity behavior

Returns
Type Description
Boolean

confirming internal putaway lines created.

PerformDisposition

procedure PerformDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
Returns
Type Description
Boolean

Codeunit “IWX QI Disp. Warehouse PutAway”

ID 23067688Namespace: InsightWorks.QualityInspection.Dispositions.PutAway

This codeunit is responsible for the reaction of creating Warehouse put-aways.
This will create warehouse internal put-aways as an interim step.

Implements

Properties

Name Value
EventSubscriberInstance Manual

Methods

PerformDisposition

Create a warehouse put-away(s) from the supplied test.
It’s possible that multiple put-away’s could be created if the lot is in multiple bins, but the typical scenario would be
one internal put-away.
You must be in a directed pick and put location, and you must be using lot warehouse tracking to use this feature.

procedure PerformDisposition(precTest: Record "IWX QI Test", pdOptionalSpecificQuantity: Decimal, ptxtOptionalSourceLocationFilter: Text, ptxtOptionalSourceBinFilter: Text, peQuantityBehavior: Enum "IWX QI Quantity Behavior"): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The test to create the internal put-away from

pdOptionalSpecificQuantity Decimal

Optional quantity. Leave blank to use the entire lot or the quantity from the test.

ptxtOptionalSourceLocationFilter Text

Optional limitations on the source location.

ptxtOptionalSourceBinFilter Text

Optional limitations on the source bin.

peQuantityBehavior Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Quantity Behavior”

The quantity behavior

Returns
Type Description
Boolean

confirming internal putaway lines created.

PerformDisposition

Create a warehouse put-away(s) from the supplied test.
It’s possible that multiple put-away’s could be created if the lot is in multiple bins, but the typical scenario would be
one internal put-away.
You must be in a directed pick and put location, and you must be using lot warehouse tracking to use this feature.

procedure PerformDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
Returns
Type Description
Boolean

Codeunit “IWX QI Disp. Transfer”

ID 23067679Namespace: InsightWorks.QualityInspection.Dispositions.Transfer

The purpose of this disposition is to create a transfer document

Implements

Methods

PerformDisposition

Creates a Transfer Order from a Quality Inspection Test

procedure PerformDisposition(precTest: Record "IWX QI Test", pdOptionalSpecificQuantity: Decimal, peQuantityBehavior: Enum "IWX QI Quantity Behavior", ptxtOptionalSourceLocationFilter: Text, ptxtOptionalSourceBinFilter: Text, pcodDestinationLocationCode: Code[10], pcodOptionalInTransitLocationCode: Code[10]): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

pdOptionalSpecificQuantity Decimal

Optional specified quantity, updated based on chosen Move Behavior

peQuantityBehavior Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Quantity Behavior”

Transfer a specific quantity, tracked quantity, sample size, or sample pass/fail quantity

ptxtOptionalSourceLocationFilter Text

Optional additional location filter for item on test

ptxtOptionalSourceBinFilter Text

Optional additional bin filter for item on test

pcodDestinationLocationCode Code[10]

Quality Inspection Test

pcodOptionalInTransitLocationCode Code[10]

Quality Inspection Test

Returns
Type Description
Boolean

Returns true if a transfer line was created

PerformDisposition

Creates a Transfer Order from a Quality Inspection Test

procedure PerformDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
Returns
Type Description
Boolean

Events

OnBeforeProcessDisposition

Provides an opportunity to modify the create Purchase Return Order behavior or replace it completely.

[IntegrationEvent(False,False)]
local procedure OnBeforeProcessDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var prbDidSomething: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”

The instruction

prbDidSomething Boolean

Provides an opportunity to replace the default boolean success/fail of if it worked.

pbHandled Boolean

Provides an opportunity to replace the default behavior

OnAfterProcessDisposition

Provides an opportunity to modify the create Purchase Return Order behavior or replace it completely.

[IntegrationEvent(False,False)]
local procedure OnAfterProcessDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var prbDidSomething: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”

The instruction

prbDidSomething Boolean

Provides an opportunity to replace the default boolean success/fail of if it worked.

OnAfterCreateTransferLineWithOutboundTracking

Provides an opportunity to modify the created transfer header and transfer line after the line and optional outbound shipment tracking has been inserted.

[IntegrationEvent(False,False)]
local procedure OnAfterCreateTransferLineWithOutboundTracking(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precTransferHeader: Record "Transfer Header", var precTransferLine: Record "Transfer Line", var pbCreated: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”

Quality Inspection Test

precTransferHeader Record “Transfer Header”

Created Transfer Header

precTransferLine Record “Transfer Line”

Created Transfer Line

pbCreated Boolean

Indicator that a transfer was created


Codeunit “IWX QI Attachment Management”

ID 23067692Namespace: InsightWorks.QualityInspection.Document.Attachment

Attachment management includes event subscribers and tools to help deal with attachments to quality inspection tests.

Properties

Name Value
InherentPermissions X

Methods

PromptCreateAttachment

Prompts which attachment to make, and then adds that attachment to the test.

procedure PromptCreateAttachment(var precSingleTest: Record "IWX QI Test")
Parameters
Name Type Description
precSingleTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

CreateAttachment

procedure CreateAttachment(var precSingleTest: Record "IWX QI Test", peReportSelectionUsage: Enum "IWX QI Report Selection Usage", ptxtPreferredAttachmentName: Text)
Parameters
Name Type Description
precSingleTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
peReportSelectionUsage Enum InsightWorks.QualityInspection.Reporting.”IWX QI Report Selection Usage”
ptxtPreferredAttachmentName Text

Events

OnBeforeFilterDocumentAttachment

Occurs while filtering a document attachment
Provides an opportunity to extend or replace our handling of document attachments.

[IntegrationEvent(False,False)]
local procedure OnBeforeFilterDocumentAttachment(var precDocumentAttachment: Record "Document Attachment", var precRecordRef: RecordRef, var pbHandled: Boolean)
Parameters
Name Type Description
precDocumentAttachment Record “Document Attachment”
precRecordRef RecordRef
pbHandled Boolean

OnSaveAttachmentFromStream

Occurs while filtering a document attachment
Provides an opportunity to extend or replace our handling of document attachments.

[IntegrationEvent(False,False)]
local procedure OnSaveAttachmentFromStream(pinStreamOfPDF: InStream, var prrefReferenceToParentDocument: RecordRef, var ptxtFullFileNameWithExtension: Text, var pbHandled: Boolean)
Parameters
Name Type Description
pinStreamOfPDF InStream
prrefReferenceToParentDocument RecordRef
ptxtFullFileNameWithExtension Text
pbHandled Boolean

OnFindRelatedDocumentsBeforeFindTestsWithVariant

Used when adding attachments from related records

[IntegrationEvent(False,False)]
local procedure OnFindRelatedDocumentsBeforeFindTestsWithVariant(var prrefSourceRecordRef: RecordRef, var precRelatedTests: Record "IWX QI Test", var ptrecEmailRelatedAttachmentsBuffer: Record "Email Related Attachment" temporary, var pbHandled: Boolean)
Parameters
Name Type Description
prrefSourceRecordRef RecordRef
precRelatedTests Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecEmailRelatedAttachmentsBuffer Record “Email Related Attachment” temporary
pbHandled Boolean

OnFindRelatedDocumentsBeforeFindTestsWithReservationEntry

Used when adding attachments from related records from the associated reservation entries.

[IntegrationEvent(False,False)]
local procedure OnFindRelatedDocumentsBeforeFindTestsWithReservationEntry(var precReservationEntry: Record "Reservation Entry", var prrefSourceRecordRef: RecordRef, var precRelatedTests: Record "IWX QI Test", var ptrecEmailRelatedAttachmentsBuffer: Record "Email Related Attachment" temporary, var pbHandled: Boolean)
Parameters
Name Type Description
precReservationEntry Record “Reservation Entry”
prrefSourceRecordRef RecordRef
precRelatedTests Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecEmailRelatedAttachmentsBuffer Record “Email Related Attachment” temporary
pbHandled Boolean

OnBeforeAddEmailAttachmentFromRelatedTest

Provides an opportunity prior to adding an email attachment to inspect, analyze, and skip that specific attachment.

[IntegrationEvent(False,False)]
local procedure OnBeforeAddEmailAttachmentFromRelatedTest(var ptrecEmailRelatedAttachmentBuffer: Record "Email Related Attachment" temporary, var precDocumentsAttachedToTest: Record "Document Attachment", var precRelatedTests: Record "IWX QI Test", var plstOfAlreadyAddedTests: List of [RecordId], var pbSkip: Boolean)
Parameters
Name Type Description
ptrecEmailRelatedAttachmentBuffer Record “Email Related Attachment” temporary
precDocumentsAttachedToTest Record “Document Attachment”
precRelatedTests Table InsightWorks.QualityInspection.Document.”IWX QI Test”
plstOfAlreadyAddedTests List of [RecordId]
pbSkip Boolean

OnAddRelatedAttachmentsFromTests

This is used when adding attachments to related tests.
You can use this event to extend or replace the product functionality.
For example, to only considered finished tests, this would be a good event to integrate with.

[IntegrationEvent(False,False)]
local procedure OnAddRelatedAttachmentsFromTests(var precRelatedTests: Record "IWX QI Test", var ptrecEmailRelatedAttachments: Record "Email Related Attachment" temporary, var plstOfAlreadyAddedTests: List of [RecordId], var pbHandled: Boolean)
Parameters
Name Type Description
precRelatedTests Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecEmailRelatedAttachments Record “Email Related Attachment” temporary
plstOfAlreadyAddedTests List of [RecordId]
pbHandled Boolean

Codeunit “IWX QI Async Test Action”

ID 23067695Namespace: InsightWorks.QualityInspection.Document

This is used to queue an asynchronous status change for use with power automate flows.
This works around a scenario where an external business event starts a flow, which
then triggers an external business event. Business Central v27 as of 2025-11-25 will
silently just not trigger the external event. By moving the status change to another
session we work around that issue.

Properties

Name Value
InherentPermissions X
TableNo Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Methods

AsyncQueueStatusChange

Queues an asynchronous status change request.

procedure AsyncQueueStatusChange(var precTest: Record "IWX QI Test", peStatusToChangeTo: Enum "IWX QI Test Status")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
peStatusToChangeTo Enum InsightWorks.QualityInspection.Document.”IWX QI Test Status”

AsyncQueueCreateRetest

Queues an asynchronous status change request.

procedure AsyncQueueCreateRetest(var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Codeunit “IWX QI Create Test”

ID 23067639Namespace: InsightWorks.QualityInspection.Document

Codeunit “IWX QI Create Test” (ID 23067639).
Create test portions based on codeunit 23044160 “SFI Quality Insp. Management “

Properties

Name Value
EventSubscriberInstance Manual
InherentPermissions X
Permissions tabledata “IWX QI Test” = Rim, tabledata “IWX QI Test Line” = Rim, tabledata “IWX QI Test Line Sample” = Rim, tabledata “IWX QI Grade Condition Config” = RIM

Methods

CreateTestWithVariant

Create a test with a variant object.
The generation rules configuration will be used to find the most appropriate
test to create.

procedure CreateTestWithVariant(pvarReferenceVariant: Variant, pbIsManualCreation: Boolean): Boolean
Parameters
Name Type Description
pvarReferenceVariant Variant

This should be a record, record ref, or record id

pbIsManualCreation Boolean

True when the test is being manually created and not automatically triggered

Returns
Type Description
Boolean

CreateTestWithVariantAndTemplate

Create a test with a variant object using a specific template.

procedure CreateTestWithVariantAndTemplate(pvarReferenceVariant: Variant, pbIsManualCreation: Boolean, pcodOptionalspecificTemplate: Code[20]): Boolean
Parameters
Name Type Description
pvarReferenceVariant Variant
pbIsManualCreation Boolean

True when the test is being manually created and not automatically triggered

pcodOptionalspecificTemplate Code[20]
Returns
Type Description
Boolean

CreateTestWithMultiVariants

Attempts to create a test with the first variant.
If successful then it will apply source details from the second and third variant if supplied.

procedure CreateTestWithMultiVariants(pvarOptionalRec1Variant: Variant, pvarOptionalRec2Variant: Variant, pvarOptionalRec3Variant: Variant, pvarOptionalRec4Variant: Variant, pbIsManualCreation: Boolean): Boolean
Parameters
Name Type Description
pvarOptionalRec1Variant Variant
pvarOptionalRec2Variant Variant
pvarOptionalRec3Variant Variant
pvarOptionalRec4Variant Variant
pbIsManualCreation Boolean

True when the test is being manually created and not automatically triggered

Returns
Type Description
Boolean

CreateTestWithMultiVariants

Attempts to create a test with the first variant using generation rules. Uses the provided generation rule as an opportunity to
filter generation rules by auto test creation trigger.
If successful then it will apply source details from the second and third variant if supplied.

procedure CreateTestWithMultiVariants(pvarOptionalRec1Variant: Variant, pvarOptionalRec2Variant: Variant, pvarOptionalRec3Variant: Variant, pvarOptionalRec4Variant: Variant, pbIsManualCreation: Boolean, var ptrecOptionalFiltersGenerationRule: Record "IWX QI Generation Rule" temporary): Boolean
Parameters
Name Type Description
pvarOptionalRec1Variant Variant
pvarOptionalRec2Variant Variant
pvarOptionalRec3Variant Variant
pvarOptionalRec4Variant Variant
pbIsManualCreation Boolean
ptrecOptionalFiltersGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”

Provides opportunity to set auto test creation trigger filter

Returns
Type Description
Boolean

CreateTestWithMultiVariantsAndTemplate

procedure CreateTestWithMultiVariantsAndTemplate(pvarOptionalRec1Variant: Variant, pvarOptionalRec2Variant: Variant, pvarOptionalRec3Variant: Variant, pvarOptionalRec4Variant: Variant, pbIsManualCreation: Boolean, pcodOptionalspecificTemplate: Code[20]): Boolean
Parameters
Name Type Description
pvarOptionalRec1Variant Variant
pvarOptionalRec2Variant Variant
pvarOptionalRec3Variant Variant
pvarOptionalRec4Variant Variant
pbIsManualCreation Boolean
pcodOptionalspecificTemplate Code[20]
Returns
Type Description
Boolean

CreateTest

Use this to create a Quality Inspection Test for any given record.
The generatin rule configuration will be used to find the most appropriate
test to create.

procedure CreateTest(prrefTargetRecordRef: RecordRef, pbIsManualCreation: Boolean): Boolean
Parameters
Name Type Description
prrefTargetRecordRef RecordRef

The record to try and create a test from.

pbIsManualCreation Boolean

Explicitly set if this test is being manually created or not.

Returns
Type Description
Boolean

CreateTestWithSpecificTemplate

If you do not know which template you need, use CreateTest.
If you do know which template you need, then use this procedure.
The caller must know in advance that the template and configuration is correct.

procedure CreateTestWithSpecificTemplate(prrefTargetRecordRef: RecordRef, pbIsManualCreation: Boolean, pcodOptionalspecificTemplate: Code[20]): Boolean
Parameters
Name Type Description
prrefTargetRecordRef RecordRef

The record to try and create a test from.

pbIsManualCreation Boolean

Explicitly set if this test is being manually created or not.

pcodOptionalspecificTemplate Code[20]

The record to try and create a test from.

Returns
Type Description
Boolean

FindExistingTestsWithVariant

Finds an existing test based on the supplied variant, typically a record.

procedure FindExistingTestsWithVariant(pbErrorIfNoGenerationRule: Boolean, pvarReferenceVariant: Variant, var precOutTest: Record "IWX QI Test"): Boolean
Parameters
Name Type Description
pbErrorIfNoGenerationRule Boolean
pvarReferenceVariant Variant

This should be a record, record ref, or record id

precOutTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The created test

Returns
Type Description
Boolean

FindExistingTestWithVariant

Finds an existing test using optionally supplied variants of records/recordids/recordrefs

procedure FindExistingTestWithVariant(prrefTargetRecordRef: RecordRef, pvarOptionalVariant2: Variant, pvarOptionalVariant3: Variant, pvarOptionalVariant4: Variant, ptrecGenerationRule: Record "IWX QI Generation Rule" temporary, var precOutExistingQualityInspectionTest: Record "IWX QI Test", pbFindAll: Boolean): Boolean
Parameters
Name Type Description
prrefTargetRecordRef RecordRef
pvarOptionalVariant2 Variant

Must be a recordid,recordref,or record

pvarOptionalVariant3 Variant

Must be a recordid,recordref,or record

pvarOptionalVariant4 Variant

Must be a recordid,recordref,or record

ptrecGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”

Must be a recordid,recordref,or record

precOutExistingQualityInspectionTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbFindAll Boolean
Returns
Type Description
Boolean

FindExistingTest

Finds an existing test that matches the source criteria.
If there are multiple tests finds the retest.

procedure FindExistingTest(prrefTargetRecordRef: RecordRef, prrefOptional2RecordRef: RecordRef, prrefOptional3RecordRef: RecordRef, prrefOptional4RecordRef: RecordRef, ptrecGenerationRule: Record "IWX QI Generation Rule" temporary, var precOutExistingQualityInspectionTest: Record "IWX QI Test", pbFindAll: Boolean): Boolean
Parameters
Name Type Description
prrefTargetRecordRef RecordRef

The main target record that the test will be created against

prrefOptional2RecordRef RecordRef

The main target record that the test will be created against

prrefOptional3RecordRef RecordRef

The main target record that the test will be created against

prrefOptional4RecordRef RecordRef

The main target record that the test will be created against

ptrecGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”

The generation rule that helped determine which template to use.

precOutExistingQualityInspectionTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The test that was found.

pbFindAll Boolean

If true, finds all tests that match the criteria. If false, finds the last test that matches the criteria.

Returns
Type Description
Boolean

True if a test was found, false otherwise.

FindExistingTestWithConditionalLotFindBehavior

Finds an existing test based on the supplied conditional lot find behavior.

procedure FindExistingTestWithConditionalLotFindBehavior(var precTest: Record "IWX QI Test"): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
Returns
Type Description
Boolean

CreateRetest

Use this to create a Retest.

procedure CreateRetest(precFromThisTest: Record "IWX QI Test", var precOutCreatedRetest: Record "IWX QI Test")
Parameters
Name Type Description
precFromThisTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precOutCreatedRetest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

GetCreatedTest

Returns the last created test in the scope of the instance of this codeunit.
Only use if you just called one of the CreateTest() procedures.

procedure GetCreatedTest(var precOutLastCreatedTest: Record "IWX QI Test"): Boolean
Parameters
Name Type Description
precOutLastCreatedTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
Returns
Type Description
Boolean

True if the last created test is available and exists. Returns false if no test was created previously or is othewise no longer available.

GetLastCreatedStatus

Returns the last created status.

procedure GetLastCreatedStatus(): Enum "IWX QI Create Status"
Returns
Type Description
Enum InsightWorks.QualityInspection.Document.”IWX QI Create Status”

SetAvoidThrowingErrorWhenPossible

procedure SetAvoidThrowingErrorWhenPossible(pbAvoidThrowingError: Boolean)
Parameters
Name Type Description
pbAvoidThrowingError Boolean

SetIgnoreLotSerialWhenFindingExistingTests

procedure SetIgnoreLotSerialWhenFindingExistingTests(pbSetIgnoreLotSerialWhenFindingExistingTests: Boolean)
Parameters
Name Type Description
pbSetIgnoreLotSerialWhenFindingExistingTests Boolean

CreateNonconformanceTest

procedure CreateNonconformanceTest(var precSourceTest: Record "IWX QI Test", var precOptionalSourceTestLine: Record "IWX QI Test Line")
Parameters
Name Type Description
precSourceTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precOptionalSourceTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

Events

OnBeforeFindExistingTestWithStub

Provides an opportunity to extend or replace finding a test with a stub.

[IntegrationEvent(False,False)]
local procedure OnBeforeFindExistingTestWithStub(var ptrecGenerationRule: Record "IWX QI Generation Rule" temporary, var precOutExistingQualityInspectionTest: Record "IWX QI Test", var pbFindAll: Boolean, var prbHasTest: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
ptrecGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”
precOutExistingQualityInspectionTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbFindAll Boolean
prbHasTest Boolean
pbHandled Boolean

OnBeforeGetExistingOrCreateNewTestFor

Provides an opportunity to extend or replace the behavior of getting a new test before finding or creating has occurred.

[IntegrationEvent(False,False)]
local procedure OnBeforeGetExistingOrCreateNewTestFor(var prrefTargetRecordRef: RecordRef, var prrefOriginalTriggeringRecordRef: RecordRef, var ptrecGenerationRule: Record "IWX QI Generation Rule" temporary, var precOutTest: Record "IWX QI Test", var pbOutIsNewTest: Boolean, var prbHasTest: Boolean, var pbNeedNewTest: Boolean, var pbHasExistingTest: Boolean, var pbShouldCreateRetest: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
prrefTargetRecordRef RecordRef
prrefOriginalTriggeringRecordRef RecordRef
ptrecGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”
precOutTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbOutIsNewTest Boolean
prbHasTest Boolean
pbNeedNewTest Boolean
pbHasExistingTest Boolean
pbShouldCreateRetest Boolean
pbHandled Boolean

OnAfterGetExistingOrCreateNewTestFor

Provides an opportunity to extend or replace the behavior of getting a new test after finding or creating has occurred.

[IntegrationEvent(False,False)]
local procedure OnAfterGetExistingOrCreateNewTestFor(var prrefTargetRecordRef: RecordRef, var prrefOriginalTriggeringRecordRef: RecordRef, var ptrecGenerationRule: Record "IWX QI Generation Rule" temporary, var precOutTest: Record "IWX QI Test", var pbOutIsNewTest: Boolean, var prbHasTest: Boolean, var pbNeedNewTest: Boolean, var pbHasExistingTest: Boolean, var pbShouldCreateRetest: Boolean)
Parameters
Name Type Description
prrefTargetRecordRef RecordRef
prrefOriginalTriggeringRecordRef RecordRef
ptrecGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”
precOutTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbOutIsNewTest Boolean
prbHasTest Boolean
pbNeedNewTest Boolean
pbHasExistingTest Boolean
pbShouldCreateRetest Boolean

OnBeforeCreateNonconformanceTest

Provides an opportunity to extend or replace the behavior of creating a nonconformance test before the test is created.

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateNonconformanceTest(var precSourceTest: Record "IWX QI Test", var precOptionalSourceTestLine: Record "IWX QI Test Line", var lvarOptionalVariant2: Variant, var lvarOptionalVariant3: Variant, var lvarOptionalVariant4: Variant, var ltrecGenerationRule: Record "IWX QI Generation Rule" temporary, var lbHandled: Boolean)
Parameters
Name Type Description
precSourceTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precOptionalSourceTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
lvarOptionalVariant2 Variant
lvarOptionalVariant3 Variant
lvarOptionalVariant4 Variant
ltrecGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”
lbHandled Boolean

OnAfterCreateNonconformanceTest

Provides an opportunity to extend the behavior of creating a nonconformance test after the test is created.

[IntegrationEvent(False,False)]
local procedure OnAfterCreateNonconformanceTest(var precSourceTest: Record "IWX QI Test", var lvarOptionalVariant2: Variant, var lvarOptionalVariant3: Variant, var lvarOptionalVariant4: Variant, var ltrecGenerationRule: Record "IWX QI Generation Rule" temporary, var lrecCreatedTest: Record "IWX QI Test", var lbHasCreatedTest: Boolean)
Parameters
Name Type Description
precSourceTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
lvarOptionalVariant2 Variant
lvarOptionalVariant3 Variant
lvarOptionalVariant4 Variant
ltrecGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”
lrecCreatedTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
lbHasCreatedTest Boolean

Codeunit “IWX QI Test Matrix”

ID 23067652Namespace: InsightWorks.QualityInspection.Document

Methods

generateCellInRowDataForSamples

Used to generate row data for matrix development.

procedure generateCellInRowDataForSamples(precTestLineSample: Record "IWX QI Test Line Sample", piOneBasedColumnOrdinal: Integer, pbShowTestValue: Boolean, var partxtMATRIX_CaptionSet: array[32] of Text[1024], var parcodMATRIX_RawCellData: array[32] of Code[200], var parcodMATRIX_CellData: array[32] of Text[200], var parcodMATRIX_StyleData: array[32] of Text[200], var parbMATRIX_Editable: array[32] of Boolean)
Parameters
Name Type Description
precTestLineSample Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”
piOneBasedColumnOrdinal Integer
pbShowTestValue Boolean
partxtMATRIX_CaptionSet array[32] of Text[1024]
parcodMATRIX_RawCellData array[32] of Code[200]
parcodMATRIX_CellData array[32] of Text[200]
parcodMATRIX_StyleData array[32] of Text[200]
parbMATRIX_Editable array[32] of Boolean

getMatrixCaptions

Gets the matrix captions for the supplied template

procedure getMatrixCaptions(ptxtTemplateFilter: Text, var par32OutCodes: array[32] of Text[1024], var par32OutDesc: array[32] of Text[1024])
Parameters
Name Type Description
ptxtTemplateFilter Text
par32OutCodes array[32] of Text[1024]
par32OutDesc array[32] of Text[1024]

getMatrixCaptionsForSamples

Gets the matrix captions for templates for samples.

procedure getMatrixCaptionsForSamples(ptxtTemplateFilter: Text, var par32OutCodes: array[32] of Text[1024], var par32OutDesc: array[32] of Text[1024], pbForSamples: Boolean)
Parameters
Name Type Description
ptxtTemplateFilter Text
par32OutCodes array[32] of Text[1024]
par32OutDesc array[32] of Text[1024]
pbForSamples Boolean

getMatrixCaptionsForTest

Gets matrix captions for a specific test.

procedure getMatrixCaptionsForTest(precTest: Record "IWX QI Test", var par32OutCodes: array[32] of Text[1024], var par32OutDesc: array[32] of Text[1024])
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
par32OutCodes array[32] of Text[1024]
par32OutDesc array[32] of Text[1024]

getMatrixCaptionsForSamplesOnTest

Gets matrix captions for samples for a specific test

procedure getMatrixCaptionsForSamplesOnTest(precTest: Record "IWX QI Test", var par32OutCodes: array[32] of Text[1024], var par32OutDesc: array[32] of Text[1024], pbForSamples: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
par32OutCodes array[32] of Text[1024]
par32OutDesc array[32] of Text[1024]
pbForSamples Boolean

Codeunit “IWX QI Skip Lot Management”

ID 23067693Namespace: InsightWorks.QualityInspection.Document.Sampling.SkipLot

Skip lot management is used to control decisions on whether to test, skip, as well as logging the decisions that were made and why.

Properties

Name Value
InherentPermissions X

Methods

RegisterFinish

Register finish will record that a finish has occurred with skip lot.
The state of either passing or failing can then be used to help influence what happens next.

procedure RegisterFinish(precTestBeingFinished: Record "IWX QI Test")
Parameters
Name Type Description
precTestBeingFinished Table InsightWorks.QualityInspection.Document.”IWX QI Test”

ModifyWithLastCreatedTestDetails

Modifies the skip lot rule state and log entry with details on the last created test.

procedure ModifyWithLastCreatedTestDetails(var precTest: Record "IWX QI Test", var precSkipLotRuleState: Record "IWX QI Skip Lot State", var precSkipLotEntry: Record "IWX QI Skip Lot Entry")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precSkipLotRuleState Table InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot State”
precSkipLotEntry Table InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot Entry”

ShouldSkipCreation

Returns a yes or no if you should skip the test creation.

procedure ShouldSkipCreation(var ptrecSourceFieldsFilledStubTestBuffer: Record "IWX QI Test" temporary, pcodSkipLotRule: Code[20], var precOutSkipLotRuleState: Record "IWX QI Skip Lot State", var precOutSkipLotEntry: Record "IWX QI Skip Lot Entry"): Boolean
Parameters
Name Type Description
ptrecSourceFieldsFilledStubTestBuffer Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pcodSkipLotRule Code[20]
precOutSkipLotRuleState Table InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot State”
precOutSkipLotEntry Table InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot Entry”
Returns
Type Description
Boolean

Codeunit “IWX QI Event Lib. Integration”

ID 23067691Namespace: InsightWorks.QualityInspection.Integration

Used to integrate with event library related events.


Codeunit “IWX QI Hooks”

ID 23067635Namespace: InsightWorks.QualityInspection.Integration

This codeunit is the main event publisher for Quality Inspector specific events.

Properties

Name Value
Description Hooks for quality inspection events.

Events

OnBeforeCreateTest

OnBeforeCreateTest is called before a test is created.
Use this event to do additional checks before a test is created.

[IntegrationEvent(False,False)]
procedure OnBeforeCreateTest(var prrefTargetRecordRef: RecordRef, var pbIsManualCreation: Boolean, var pcodOptionalspecificTemplate: Code[20], var pbIsHandled: Boolean, var pvarOptionalRec2Variant: Variant, var pvarOptionalRec3Variant: Variant)
Parameters
Name Type Description
prrefTargetRecordRef RecordRef

The main target record that the test will be created against

pbIsManualCreation Boolean

True when the test is being manually created and not automatically triggered

pcodOptionalspecificTemplate Code[20]

When supplied refers to a specific desired template

pbIsHandled Boolean

Set to true to replace the default behavior, set to false to extend it and continue

pvarOptionalRec2Variant Variant

For complex automation can be additional source records

pvarOptionalRec3Variant Variant

For complex automation can be additional source records

OnAfterCreateTestBeforeDialog

OnAfterCreateTestBeforeDialog gets called after a Quality Inspection Test has been created and
before any interactive dialog is shown.

[IntegrationEvent(False,False)]
procedure OnAfterCreateTestBeforeDialog(var prrefTargetRecordRef: RecordRef, var prrefTriggeringRecordRef: RecordRef, var pbIsManualCreation: Boolean, var pcodOptionalspecificTemplate: Code[20], var ptrecGenerationRule: Record "IWX QI Generation Rule" temporary, var precQualityInspectionTest: Record "IWX QI Test", var pbIsHandled: Boolean, var pvarOptionalRec2Variant: Variant, var pvarOptionalRec3Variant: Variant)
Parameters
Name Type Description
prrefTargetRecordRef RecordRef

The main target record that the test will be created against

prrefTriggeringRecordRef RecordRef

Typically the same as the target record ref. Used in complex customizations.

pbIsManualCreation Boolean

True when the test is being manually created and not automatically triggered

pcodOptionalspecificTemplate Code[20]

When supplied refers to a specific desired template

ptrecGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”

The generation rule that helped determine which template to use.

precQualityInspectionTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The quality inspection test

pbIsHandled Boolean

Set to true to replace the default behavior, set to false to extend it and continue

pvarOptionalRec2Variant Variant

For complex automation can be additional source records

pvarOptionalRec3Variant Variant

For complex automation can be additional source records

OnAfterCreateTestAfterDialog

OnAfterCreateTestAfterDialog gets called after a Quality Inspection Test has been created after any interactive dialog is shown

[IntegrationEvent(False,False)]
procedure OnAfterCreateTestAfterDialog(var prrefTargetRecordRef: RecordRef, var prrefTriggeringRecordRef: RecordRef, var pbIsManualCreation: Boolean, var pcodOptionalspecificTemplate: Code[20], var ptrecGenerationRule: Record "IWX QI Generation Rule" temporary, var precQualityInspectionTest: Record "IWX QI Test", var pvarOptionalRec2Variant: Variant, var pvarOptionalRec3Variant: Variant)
Parameters
Name Type Description
prrefTargetRecordRef RecordRef

The main target record that the test will be created against

prrefTriggeringRecordRef RecordRef

Typically the same as the target record ref. Used in complex customizations.

pbIsManualCreation Boolean

True when the test is being manually created and not automatically triggered

pcodOptionalspecificTemplate Code[20]

When supplied refers to a specific desired template

ptrecGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”

The generation rule that helped determine which template to use.

precQualityInspectionTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The quality inspection test

pvarOptionalRec2Variant Variant

For complex automation can be additional source records

pvarOptionalRec3Variant Variant

For complex automation can be additional source records

OnCustomCreateTestBehavior

Implement OnCustomCreateTestBehavior if you have also extended enum 23067637 “IWX QI Create Test Behavior”
This is where you will provide any custom create test behaviors to match your enum extension.
Only set handled to true if you want to skip the remaining behavior.

[IntegrationEvent(False,False)]
procedure OnCustomCreateTestBehavior(var prrefTargetRecordRef: RecordRef, var prrefOriginalTriggeringRecordRef: RecordRef, var ptrecGenerationRule: Record "IWX QI Generation Rule" temporary, var pbHasExistingTest: Boolean, var precExistingTest: Record "IWX QI Test", var pbOutNeedNewTest: Boolean, var pbOutCreateRetest: Boolean)
Parameters
Name Type Description
prrefTargetRecordRef RecordRef

The record the test is being created against

prrefOriginalTriggeringRecordRef RecordRef

The record that triggered the test

ptrecGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”

The generation rule

pbHasExistingTest Boolean

Whether it has an existing test

precExistingTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Optionally an existing test that matches

pbOutNeedNewTest Boolean

Choose whether it should need a new test

pbOutCreateRetest Boolean

Choose whether it should create a Retest

OnSetCustomMatchExistingFilters

Obsolete

This element will become obsolete from version 7.23. Use OnBeforeFindExistingTestWithStub in “IWX QI Create Test” instead.

Implement OnSetCustomMatchExistingFilters is you have extended enum 23067638 “IWX QI Find Existing Behavior”
Use this to determine what filters to set for any custom behavior.
This would typically be just calling SetcurrentKey.
SetRecFilter() will be called after setting this.
Only set the handled flag to true if you want to skip the remaining behavior.

[Obsolete(Use OnBeforeFindExistingTestWithStub in "IWX QI Create Test" instead.,7.23)]
[IntegrationEvent(False,False)]
procedure OnSetCustomMatchExistingFilters(prrefTargetRecordRef: RecordRef, ptrecGenerationRule: Record "IWX QI Generation Rule" temporary, var precOutExistingQualityInspectionTest: Record "IWX QI Test", var pbHandled: Boolean)
Parameters
Name Type Description
prrefTargetRecordRef RecordRef

The main target record that the test will be created against

ptrecGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”

The generation rule that helped determine which template to use.

precOutExistingQualityInspectionTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbHandled Boolean

Set to true to replace the default behavior

OnBeforeGetUserPermissionRecord

Obsolete

This element will become obsolete from version 7.23. Use OnBeforeGetUserPermissionRecord in “IWX QI Permission Mgmt” instead.

Use OnBeforeGetUserPermissionRecord to override which user permission record is used when checking permissions.

[Obsolete(Use OnBeforeGetUserPermissionRecord in "IWX QI Permission Mgmt" instead.,7.23)]
[IntegrationEvent(False,False)]
procedure OnBeforeGetUserPermissionRecord(var ptxtUserId: Text, var precUserPermission: Record "IWX QI Permission", var rbOut: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
ptxtUserId Text

Input is the UserId() of the active session.

precUserPermission Table InsightWorks.QualityInspection.AccessControl.”IWX QI Permission”

Supply if setting rbOut to be true.

rbOut Boolean

True if found, false if not found

pbHandled Boolean

Set to true to replace the default behavior

OnAfterGetUserPermissionRecord

Obsolete

This element will become obsolete from version 7.23. Use OnAfterGetUserPermissionRecord in “IWX QI Permission Mgmt” instead.

Use OnAfterGetUserPermissionRecord to extend which user permission record is used when checking permissions.
This is called after the everyone check has performed.

[Obsolete(Use OnAfterGetUserPermissionRecord in "IWX QI Permission Mgmt" instead.,7.23)]
[IntegrationEvent(False,False)]
procedure OnAfterGetUserPermissionRecord(var ptxtUserId: Text, var precUserPermission: Record "IWX QI Permission", var rbOut: Boolean)
Parameters
Name Type Description
ptxtUserId Text

Input is the UserId() of the active session.

precUserPermission Table InsightWorks.QualityInspection.AccessControl.”IWX QI Permission”

It’s possible this is not a user specific permission, this could be a permission representing multiple people.

rbOut Boolean

True if found, false if not found

OnValidatePermissionUserId

Only available in BC 15 and newer
Use OnValidatePermissionUserId as an opportunity to validate the user ID in a user permission record.
You could use this if you have extended “IWX QI User Type”.
You can also use this to change the user reference if you have other ‘user’ records that you want to allow
to other user related tables.

[IntegrationEvent(False,False)]
procedure OnValidatePermissionUserId(var precUserPermission: Record "IWX QI Permission", var pbHandled: Boolean)
Parameters
Name Type Description
precUserPermission Table InsightWorks.QualityInspection.AccessControl.”IWX QI Permission”

The user permission record

pbHandled Boolean

Set to true to replace the default behavior

OnBeforeCreateRetest

OnBeforeCreateRetest supplies an opportunity to change how manual Retests are performed.

[IntegrationEvent(False,False)]
procedure OnBeforeCreateRetest(var precFromThisTest: Record "IWX QI Test", var precOutCreatedRetest: Record "IWX QI Test", var pbHandled: Boolean)
Parameters
Name Type Description
precFromThisTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Which test the retest is being requested to be created from

precOutCreatedRetest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

If you are setting pbHandled to true you must supply a valid retest record here.

pbHandled Boolean

Set to true to replace the default behavior

OnAfterCreateRetest

OnAfterCreateRetest gives an opportunity to integrate with the retest record after a manual retest is created.

[IntegrationEvent(False,False)]
procedure OnAfterCreateRetest(var precFromThisTest: Record "IWX QI Test", var precOutCreatedRetest: Record "IWX QI Test")
Parameters
Name Type Description
precFromThisTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Which test the retest is being requested to be created from

precOutCreatedRetest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The created retest

OnBeforeReOpenTest

OnBeforeReOpenTest is called before a test is Reopened.

[IntegrationEvent(False,False)]
procedure OnBeforeReOpenTest(var precTest: Record "IWX QI Test", var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The quality inspection test involved

pbHandled Boolean

Set to true to replace the default behavior

OnBeforeFinishTest

OnBeforeFinishTest is called before a test is finished.

[IntegrationEvent(False,False)]
procedure OnBeforeFinishTest(var precTest: Record "IWX QI Test", var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The quality inspection test involved

pbHandled Boolean

Set to true to replace the default behavior

OnBeforeProductionAttemptCreatePostAutomaticTest

OnBeforeProductionAttemptCreatePostAutomaticTest is called before attempting to automatically create a test for production related events prior to posting to posting.

[IntegrationEvent(False,False)]
procedure OnBeforeProductionAttemptCreatePostAutomaticTest(var precProdOrderRoutingLine: Record "Prod. Order Routing Line", var precItemLedgerEntry: Record "Item Ledger Entry", var precProdOrderLine: Record "Prod. Order Line", var precItemJournalLine: Record "Item Journal Line", var pbHandled: Boolean)
Parameters
Name Type Description
precProdOrderRoutingLine Record “Prod. Order Routing Line”

Typically the ‘main’ record the tests are associated against.

precItemLedgerEntry Record “Item Ledger Entry”

The item ledger entry related to this sequence of events

precProdOrderLine Record “Prod. Order Line”

The production order line involved in this sequence of events

precItemJournalLine Record “Item Journal Line”

The item journal line record involved in this transaction. Important: this record may no longer exist, and should not be altered.

pbHandled Boolean

Set to true to replace the default behavior

OnAfterProductionAttemptCreateAutomaticTest

OnAfterProductionAttemptCreateAutomaticTest is called after attempting to automatically create a test for production.

[IntegrationEvent(False,False)]
procedure OnAfterProductionAttemptCreateAutomaticTest(var precProdOrderRoutingLine: Record "Prod. Order Routing Line", var precItemLedgerEntry: Record "Item Ledger Entry", var precProdOrderLine: Record "Prod. Order Line", var precItemJournalLine: Record "Item Journal Line")
Parameters
Name Type Description
precProdOrderRoutingLine Record “Prod. Order Routing Line”

Typically the ‘main’ record the tests are associated against.

precItemLedgerEntry Record “Item Ledger Entry”

The item ledger entry related to this sequence of events

precProdOrderLine Record “Prod. Order Line”

The production order line involved in this sequence of events

precItemJournalLine Record “Item Journal Line”

The item journal line record involved in this transaction. Important: this record may no longer exist, and should not be altered.

OnBeforeProductionAttemptCreateReleaseAutomaticTest

OnBeforeProductionAttemptCreateReleaseAutomaticTest is called before attempting to automatically create a test for production related releasing.

[IntegrationEvent(False,False)]
procedure OnBeforeProductionAttemptCreateReleaseAutomaticTest(var precProductionOrder: Record "Production Order", var pbHandled: Boolean)
Parameters
Name Type Description
precProductionOrder Record “Production Order”

The production order

pbHandled Boolean

Set to true to replace the default behavior

OnAfterProductionAttemptCreateReleaseAutomaticTest

OnAfterProductionAttemptCreateReleaseAutomaticTest is called before attempting to automatically create a test for production related releasing.
Use this if you need to collect multiple tests that could be created as part of a posting sequence.

[IntegrationEvent(False,False)]
procedure OnAfterProductionAttemptCreateReleaseAutomaticTest(var precProductionOrder: Record "Production Order", pbCreatedAtLeastOneTestForRoutingLine: Boolean, pbCreatedAtLeastOneTestForOrderLine: Boolean, pbCreatedTestForProdOrder: Boolean, plstOfTests: List of [RecordId])
Parameters
Name Type Description
precProductionOrder Record “Production Order”

The production order

pbCreatedAtLeastOneTestForRoutingLine Boolean

A flag indicating if at least one test for the production order routing line was created

pbCreatedAtLeastOneTestForOrderLine Boolean

A flag indicating if at least one test for the production order line was created

pbCreatedTestForProdOrder Boolean

A flag indicating if at least one test for the production order was created

plstOfTests List of [RecordId]

A list of record ids of the tests that were created

OnBeforeFindExistingTests

OnBeforeFindExistingTests provides an opportunity to override how an existing test is found.

[IntegrationEvent(False,False)]
procedure OnBeforeFindExistingTests(prrefTargetRecordRef: RecordRef, prrefOptional2RecordRef: RecordRef, prrefOptional3RecordRef: RecordRef, prrefOptional4RecordRef: RecordRef, var precOutTest: Record "IWX QI Test", var rbOut: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
prrefTargetRecordRef RecordRef

The main target record that the test will be created against

prrefOptional2RecordRef RecordRef

Optional. Some events, typically automatic events, will have multiple records to assist with setting source details.

prrefOptional3RecordRef RecordRef

Optional. Some events, typically automatic events, will have multiple records to assist with setting source details.

prrefOptional4RecordRef RecordRef

Optional. Some events, typically automatic events, will have multiple records to assist with setting source details.

precOutTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The found test

rbOut Boolean

Set to true if you found the record. If you set to true you must also supply precOutTest

pbHandled Boolean

Set to true to replace the default behavior

OnBeforeProductionVerifyFinishedTestExistsForPosting

OnBeforeProductionVerifyFinishedTestExistsForPosting provides an opportunity to override verification logic if a finished test exists.

[IntegrationEvent(False,False)]
procedure OnBeforeProductionVerifyFinishedTestExistsForPosting(var precProdOrderRoutingLine: Record "Prod. Order Routing Line", var precItemLedgerEntry: Record "Item Ledger Entry", var precProdOrderLine: Record "Prod. Order Line", var precItemJournalLine: Record "Item Journal Line", var piMinimumExpectedTests: Integer, var pbHandled: Boolean)
Parameters
Name Type Description
precProdOrderRoutingLine Record “Prod. Order Routing Line”

Typically the ‘main’ record the tests are associated against.

precItemLedgerEntry Record “Item Ledger Entry”

The item ledger entry related to this sequence of events

precProdOrderLine Record “Prod. Order Line”

The production order line involved in this sequence of events

precItemJournalLine Record “Item Journal Line”

The item journal line record involved in this transaction. Important: this record may no longer exist, and should not be altered.

piMinimumExpectedTests Integer

The expected minimum number of tests. Change this number if you have custom logic that dictates how many tests should be created at this point.

pbHandled Boolean

Set to true to replace the default behavior

OnAfterProductionVerifyFinishedTestExistsForPosting

OnAfterProductionVerifyFinishedTestExistsForPosting provides an opportunity to override verification logic if a finished test exists.

[IntegrationEvent(False,False)]
procedure OnAfterProductionVerifyFinishedTestExistsForPosting(var precProdOrderRoutingLine: Record "Prod. Order Routing Line", var precItemLedgerEntry: Record "Item Ledger Entry", var precProdOrderLine: Record "Prod. Order Line", var precItemJournalLine: Record "Item Journal Line", var piMinimumExpectedTests: Integer)
Parameters
Name Type Description
precProdOrderRoutingLine Record “Prod. Order Routing Line”

Typically the ‘main’ record the tests are associated against.

precItemLedgerEntry Record “Item Ledger Entry”

The item ledger entry related to this sequence of events

precProdOrderLine Record “Prod. Order Line”

The production order line involved in this sequence of events

precItemJournalLine Record “Item Journal Line”

The item journal line record involved in this transaction. Important: this record may no longer exist, and should not be altered.

piMinimumExpectedTests Integer

This was the minimum expected tests calculated by the system.

OnBeforeProductionVerifyFinishedTestExistsForProdRoutingLine

OnBeforeProductionVerifyFinishedTestExistsForProdRoutingLine gives an opportunity to verify finished tests from the context of a production order routing line

[IntegrationEvent(False,False)]
procedure OnBeforeProductionVerifyFinishedTestExistsForProdRoutingLine(var precProdOrderLine: Record "Prod. Order Line", var precProdOrderRoutingLine: Record "Prod. Order Routing Line", var piMinimumExpectedTests: Integer, var pbHandled: Boolean)
Parameters
Name Type Description
precProdOrderLine Record “Prod. Order Line”

VAR Record “Prod. Order Line”.

precProdOrderRoutingLine Record “Prod. Order Routing Line”

The production order routing line

piMinimumExpectedTests Integer

VAR Integer.

pbHandled Boolean

Set to true to replace the default behavior.

OnBeforeReceivingVerifyFinishedTestExistsForPurchaseLine

OnBeforeReceivingVerifyFinishedTestExistsForPurchaseLine gives an opportunity to verify finished tests from the context of a purchase line.

[IntegrationEvent(False,False)]
procedure OnBeforeReceivingVerifyFinishedTestExistsForPurchaseLine(var precPurchaseLine: Record "Purchase Line", var precPurchaseHeader: Record "Purchase Header", var piMinimumExpectedTests: Integer, var pbHandled: Boolean)
Parameters
Name Type Description
precPurchaseLine Record “Purchase Line”

The purchase line

precPurchaseHeader Record “Purchase Header”

The purchase header

piMinimumExpectedTests Integer

The minimum expected tests

pbHandled Boolean

Set to true to replace the default behavior

OnBeforeReceivingVerifyFinishedTestExistsForWarehouseJournalLine

OnBeforeReceivingVerifyFinishedTestExistsForWarehouseJournalLine gives an opportunity to verify finished tests from the context of a warehouse journal line during a warehouse receipt post.

[IntegrationEvent(False,False)]
procedure OnBeforeReceivingVerifyFinishedTestExistsForWarehouseJournalLine(var precWarehouseJournalLine: Record "Warehouse Journal Line", precPostedWhseReceiptHeader: Record "Posted Whse. Receipt Header", var piMinimumExpectedTests: Integer, var pbHandled: Boolean)
Parameters
Name Type Description
precWarehouseJournalLine Record “Warehouse Journal Line”

The warehouse journal line

precPostedWhseReceiptHeader Record “Posted Whse. Receipt Header”

The posted warehouse receipt header. This might not yet be committed to the database.

piMinimumExpectedTests Integer

The minimum expected tests

pbHandled Boolean

Set to true to replace the default behavior

OnBeforeReceivingVerifyFinishedTestExistsForWarehouseReceiptLine

OnBeforeReceivingVerifyFinishedTestExistsForWarehouseJournalLineV2 gives an opportunity to verify finished tests from the context of a warehouse journal line during a warehouse receipt post.

[IntegrationEvent(False,False)]
procedure OnBeforeReceivingVerifyFinishedTestExistsForWarehouseReceiptLine(var precWarehouseReceiptLine: Record "Warehouse Receipt Line", var precWarehouseReceiptHeader: Record "Warehouse Receipt Header", var pvarOptionalSourceLineVariant: Variant, var piMinimumExpectedTests: Integer, var pbHandled: Boolean)
Parameters
Name Type Description
precWarehouseReceiptLine Record “Warehouse Receipt Line”

The warehouse receipt line

precWarehouseReceiptHeader Record “Warehouse Receipt Header”

The warehouse receipt header

pvarOptionalSourceLineVariant Variant

The warehouse receipt line

piMinimumExpectedTests Integer

The minimum expected tests

pbHandled Boolean

Set to true to replace the default behavior

OnProductionVerifyFinishedTestExistsBeforeError

Implement this to override handling of an error message for production.
For example to convert an error message into a confirm dialog or a message dialog or to bypass the errors entirely then you could implement this event

[IntegrationEvent(False,False)]
procedure OnProductionVerifyFinishedTestExistsBeforeError(var ptxtErrorMessage: Text, var precExistingTests: Record "IWX QI Test", var pbFoundTests: Boolean, var ptxtDocumentNoHint: Text, var ptxtItemNoHint: Text, var pvarOptionalRec1Variant: Variant, var pvarOptionalRec2Variant: Variant, var pvarOptionalRec3Variant: Variant, var piMinimumExpectedTests: Integer, var pbHandled: Boolean)
Parameters
Name Type Description
ptxtErrorMessage Text

The error message

precExistingTests Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The existing tests

pbFoundTests Boolean

If tests were found.

ptxtDocumentNoHint Text

A document number hint text

ptxtItemNoHint Text

Item number hint text

pvarOptionalRec1Variant Variant

Can vary depending on the posting details.

pvarOptionalRec2Variant Variant

Can vary depending on the posting details.

pvarOptionalRec3Variant Variant

Can vary depending on the posting details.

piMinimumExpectedTests Integer

The expected minimum number of tests

pbHandled Boolean

Set to true to replace the default behavior

OnReceivingVerifyFinishedTestExistsBeforeError

Implement this to override handling of an error message for purchase
For example to convert an error message into a confirm dialog or a message dialog or to bypass the errors entirely then you could implement this event

[IntegrationEvent(False,False)]
procedure OnReceivingVerifyFinishedTestExistsBeforeError(var ptxtErrorMessage: Text, var precExistingTests: Record "IWX QI Test", var pbFoundTests: Boolean, var ptxtDocumentNoHint: Text, var ptxtItemNoHint: Text, var pvarOptionalRec1Variant: Variant, var pvarOptionalRec2Variant: Variant, var pvarOptionalRec3Variant: Variant, var piMinimumExpectedTests: Integer, var pbHandled: Boolean)
Parameters
Name Type Description
ptxtErrorMessage Text

The error message

precExistingTests Table InsightWorks.QualityInspection.Document.”IWX QI Test”

VAR Record “IWX QI Test”.

pbFoundTests Boolean

Whether tests were found

ptxtDocumentNoHint Text

A single or multiple document references. Intended for humans, not systems.

ptxtItemNoHint Text

A single or multiple item references. Intended for humans, not systems.

pvarOptionalRec1Variant Variant

Can vary depending on the posting details.

pvarOptionalRec2Variant Variant

Can vary depending on the posting details.

pvarOptionalRec3Variant Variant

Can vary depending on the posting details.

piMinimumExpectedTests Integer

The minimum expected tests

pbHandled Boolean

Set to true to replace the default behavior

OnBeforeProductionHandleOnAfterPostOutput

Gives an opportunity to override any handle of onafterpostoutput.
Use this to completely replace any automatic test creation on output and/or any automatic test validation on output

[IntegrationEvent(False,False)]
procedure OnBeforeProductionHandleOnAfterPostOutput(var precItemLedgerEntry: Record "Item Ledger Entry", var ProdOrderLine: Record "Prod. Order Line", var ItemJournalLine: Record "Item Journal Line", var pbHandled: Boolean)
Parameters
Name Type Description
precItemLedgerEntry Record “Item Ledger Entry”

The item ledger entry related to this sequence of events

ProdOrderLine Record “Prod. Order Line”

The production order line involved in this sequence of events

ItemJournalLine Record “Item Journal Line”

The item journal line record involved in this transaction. Important: this record may no longer exist, and should not be altered.

pbHandled Boolean

Set to true to replace the default behavior

OnBeforeProductionHandleVerifyFinishedTestExistsEveryXUnits

Gives an opportunity to alter the behavior of validation of every x units validation.

[IntegrationEvent(False,False)]
procedure OnBeforeProductionHandleVerifyFinishedTestExistsEveryXUnits(var precProdOrderRoutingLine: Record "Prod. Order Routing Line", var precItemLedgerEntry: Record "Item Ledger Entry", var ProdOrderLine: Record "Prod. Order Line", var ItemJournalLine: Record "Item Journal Line", var pbHandled: Boolean)
Parameters
Name Type Description
precProdOrderRoutingLine Record “Prod. Order Routing Line”

The production order routing line

precItemLedgerEntry Record “Item Ledger Entry”

The item ledger entry related to this sequence of events

ProdOrderLine Record “Prod. Order Line”

The production order line

ItemJournalLine Record “Item Journal Line”

VAR Record “Item Journal Line”.

pbHandled Boolean

Set to true to replace the default behavior

OnBeforeProductionHandleVerifyFinishedTestExistsEveryXTime

Gives an opportunity to alter the behavior of validation of every x units of time

[IntegrationEvent(False,False)]
procedure OnBeforeProductionHandleVerifyFinishedTestExistsEveryXTime(var precProdOrderRoutingLine: Record "Prod. Order Routing Line", var precItemLedgerEntry: Record "Item Ledger Entry", var ProdOrderLine: Record "Prod. Order Line", var ItemJournalLine: Record "Item Journal Line", var pbHandled: Boolean)
Parameters
Name Type Description
precProdOrderRoutingLine Record “Prod. Order Routing Line”

The production order routing line

precItemLedgerEntry Record “Item Ledger Entry”

The item ledger entry related to this sequence of events

ProdOrderLine Record “Prod. Order Line”

The production order line

ItemJournalLine Record “Item Journal Line”

VAR Record “Item Journal Line”.

pbHandled Boolean

Set to true to replace the default behavior

OnBeforeProductionHandleFinishedTestVerification

Gives an opportunity to override finished test verification for production

[IntegrationEvent(False,False)]
procedure OnBeforeProductionHandleFinishedTestVerification(var precExistingTests: Record "IWX QI Test", var pbFoundTests: Boolean, var ptxtDocumentNoHint: Text, var ptxtItemNoHint: Text, var pvarOptionalRec1Variant: Variant, var pvarOptionalRec2Variant: Variant, var pvarOptionalRec3Variant: Variant, var piMinimumExpectedTests: Integer, var pbHandled: Boolean)
Parameters
Name Type Description
precExistingTests Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbFoundTests Boolean

Whether tests were found

ptxtDocumentNoHint Text

A single or multiple document references. Intended for humans, not systems.

ptxtItemNoHint Text

A single or multiple item references. Intended for humans, not systems.

pvarOptionalRec1Variant Variant
pvarOptionalRec2Variant Variant
pvarOptionalRec3Variant Variant
piMinimumExpectedTests Integer

The minimum expected tests

pbHandled Boolean

Set to true to replace the default behavior

OnBeforeReceivingHandleFinishedTestVerification

Gives an opportunity to override finished test verification for receiving

[IntegrationEvent(False,False)]
procedure OnBeforeReceivingHandleFinishedTestVerification(var precExistingTests: Record "IWX QI Test", var pbFoundTests: Boolean, var ptxtDocumentNoHint: Text, var ptxtItemNoHint: Text, var pvarOptionalRec1Variant: Variant, var pvarOptionalRec2Variant: Variant, var pvarOptionalRec3Variant: Variant, var piMinimumExpectedTests: Integer, var pbHandled: Boolean)
Parameters
Name Type Description
precExistingTests Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbFoundTests Boolean

Whether tests were found

ptxtDocumentNoHint Text

A single or multiple document references. Intended for humans, not systems.

ptxtItemNoHint Text

A single or multiple item references. Intended for humans, not systems.

pvarOptionalRec1Variant Variant
pvarOptionalRec2Variant Variant
pvarOptionalRec3Variant Variant
piMinimumExpectedTests Integer

The minimum expected tests

pbHandled Boolean

Set to true to replace the default behavior

OnBeforeProductionHandleOnAfterChangeStatusOnProdOrder

Gives an opportunity to supplement or replace automatic test creation on finish, and validation of tests on finish.

[IntegrationEvent(False,False)]
procedure OnBeforeProductionHandleOnAfterChangeStatusOnProdOrder(var precFromProductionOrder: Record "Production Order", var precToProductionOrder: Record "Production Order", var pbHandled: Boolean)
Parameters
Name Type Description
precFromProductionOrder Record “Production Order”
precToProductionOrder Record “Production Order”
pbHandled Boolean

Set to true to replace the default behavior

OnBeforeValidateQualityInspectorSettings

Occurs when changing settings on the quality inspector setup page.

[IntegrationEvent(False,False)]
procedure OnBeforeValidateQualityInspectorSettings(var precXOldSetup: Record "IWX QI Setup", var precNewSetup: Record "IWX QI Setup", var pbHandled: Boolean)
Parameters
Name Type Description
precXOldSetup Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”
precNewSetup Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”
pbHandled Boolean

Set to true to replace the default behavior

OnBeforePurchaseAttemptCreateTestWithReceiptLine

Obsolete

This element will become obsolete from version 7.13. Use OnBeforeAttemptCreateTestWithReceiptLine instead.

USe this to integrate with purchase auto tests before the tests are created.

[Obsolete(Use OnBeforeAttemptCreateTestWithReceiptLine instead.,7.13)]
[IntegrationEvent(False,False)]
procedure OnBeforePurchaseAttemptCreateTestWithReceiptLine(var precWarehouseReceiptLine: Record "Warehouse Receipt Line", var precWarehouseReceiptHeader: Record "Warehouse Receipt Header", var precPurchaseLine: Record "Purchase Line", var pbHandled: Boolean)
Parameters
Name Type Description
precWarehouseReceiptLine Record “Warehouse Receipt Line”
precWarehouseReceiptHeader Record “Warehouse Receipt Header”
precPurchaseLine Record “Purchase Line”

The purchase line

pbHandled Boolean

Set to true to replace the default behavior

OnBeforeAttemptCreateTestWithReceiptLine

USe this to integrate with auto tests before the tests are created from warehouse receipt lines.

[IntegrationEvent(False,False)]
procedure OnBeforeAttemptCreateTestWithReceiptLine(var precWarehouseReceiptLine: Record "Warehouse Receipt Line", var precWarehouseReceiptHeader: Record "Warehouse Receipt Header", var pvarOptionalSourceLineVariant: Variant, var pbHandled: Boolean)
Parameters
Name Type Description
precWarehouseReceiptLine Record “Warehouse Receipt Line”
precWarehouseReceiptHeader Record “Warehouse Receipt Header”
pvarOptionalSourceLineVariant Variant
pbHandled Boolean

Set to true to replace the default behavior

OnAfterPurchaseAttemptCreateTestWithReceiptLine

Obsolete

This element will become obsolete from version 7.13. Use OnAfterAttemptCreateTestWithReceiptLine instead.

Use this to integrate after a test has been automatically created

[Obsolete(Use OnAfterAttemptCreateTestWithReceiptLine instead.,7.13)]
[IntegrationEvent(False,False)]
procedure OnAfterPurchaseAttemptCreateTestWithReceiptLine(var pbHasTest: Boolean, var precTest: Record "IWX QI Test", var precWarehouseReceiptLine: Record "Warehouse Receipt Line", var precWarehouseReceiptHeader: Record "Warehouse Receipt Header", var precPurchaseLine: Record "Purchase Line", var pbHandled: Boolean)
Parameters
Name Type Description
pbHasTest Boolean
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The quality inspection test involved

precWarehouseReceiptLine Record “Warehouse Receipt Line”
precWarehouseReceiptHeader Record “Warehouse Receipt Header”
precPurchaseLine Record “Purchase Line”

The purchase line

pbHandled Boolean

Set to true to replace the default behavior

OnAfterAttemptCreateTestWithReceiptLine

Use this to integrate after a test has been automatically created

[IntegrationEvent(False,False)]
procedure OnAfterAttemptCreateTestWithReceiptLine(var pbHasTest: Boolean, var precTest: Record "IWX QI Test", var precWarehouseReceiptLine: Record "Warehouse Receipt Line", var precWarehouseReceiptHeader: Record "Warehouse Receipt Header", var pvarOptionalSourceLineVariant: Variant, var ptrecTrackingSpecification: Record "Tracking Specification" temporary, var pbHandled: Boolean)
Parameters
Name Type Description
pbHasTest Boolean
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The quality inspection test involved. When multiple item tracking lines are involved this is the last test.

precWarehouseReceiptLine Record “Warehouse Receipt Line”
precWarehouseReceiptHeader Record “Warehouse Receipt Header”
pvarOptionalSourceLineVariant Variant
ptrecTrackingSpecification Record “Tracking Specification” temporary

Optional. When set contains all of the related item tracking details involved. Could be multiple records

pbHandled Boolean

Set to true to replace the default behavior

OnBeforePurchaseAttemptCreateTestWithWhseJournalLine

USe this to integrate with purchase auto tests before the tests are created.

[IntegrationEvent(False,False)]
procedure OnBeforePurchaseAttemptCreateTestWithWhseJournalLine(var precWarehouseJournalLine: Record "Warehouse Journal Line", precPostedWhseReceiptHeader: Record "Posted Whse. Receipt Header", var pbHandled: Boolean)
Parameters
Name Type Description
precWarehouseJournalLine Record “Warehouse Journal Line”

VAR Record “Warehouse Journal Line”.

precPostedWhseReceiptHeader Record “Posted Whse. Receipt Header”

Record “Posted Whse. Receipt Header”.

pbHandled Boolean

Set to true to replace the default behavior

OnAfterPurchaseAttemptCreateTestWithWhseJournalLine

Use this to integrate after a test has been automatically created

[IntegrationEvent(False,False)]
procedure OnAfterPurchaseAttemptCreateTestWithWhseJournalLine(var pbHasTest: Boolean, var precTest: Record "IWX QI Test", var precWarehouseJournalLine: Record "Warehouse Journal Line", precPostedWhseReceiptHeader: Record "Posted Whse. Receipt Header", var pbHandled: Boolean)
Parameters
Name Type Description
pbHasTest Boolean
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The quality inspection test involved

precWarehouseJournalLine Record “Warehouse Journal Line”

VAR Record “Warehouse Journal Line”.

precPostedWhseReceiptHeader Record “Posted Whse. Receipt Header”

Record “Posted Whse. Receipt Header”.

pbHandled Boolean

Set to true to replace the default behavior

OnBeforePurchaseAttemptCreateTestWithPurchaseLine

Use this to integrate with purchase auto tests before the tests are created.

[IntegrationEvent(False,False)]
procedure OnBeforePurchaseAttemptCreateTestWithPurchaseLine(var precPurchaseLine: Record "Purchase Line", var precPurchaseHeader: Record "Purchase Header", var ptrecTempTrackingSpecification: Record "Tracking Specification" temporary, var pbHandled: Boolean)
Parameters
Name Type Description
precPurchaseLine Record “Purchase Line”

The purchase line

precPurchaseHeader Record “Purchase Header”

The purchase header

ptrecTempTrackingSpecification Record “Tracking Specification” temporary

Temporary VAR Record “Tracking Specification”.

pbHandled Boolean

Set to true to replace the default behavior

OnAfterPurchaseAttemptCreateTestWithPurchaseLine

Use this to integrate after a test has been automatically created

[IntegrationEvent(False,False)]
procedure OnAfterPurchaseAttemptCreateTestWithPurchaseLine(var pbHasTest: Boolean, var precTest: Record "IWX QI Test", var precPurchaseLine: Record "Purchase Line", var precPurchaseHeader: Record "Purchase Header", var ptrecTempTrackingSpecification: Record "Tracking Specification" temporary, var pbHandled: Boolean)
Parameters
Name Type Description
pbHasTest Boolean
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The quality inspection test involved

precPurchaseLine Record “Purchase Line”

The purchase line

precPurchaseHeader Record “Purchase Header”

The purchase header

ptrecTempTrackingSpecification Record “Tracking Specification” temporary

Temporary VAR Record “Tracking Specification”.

pbHandled Boolean

Set to true to replace the default behavior

OnInitializeQualityInspectionDocumentNo

Use this to change how a quality inspection document no. is generated.
This is called via InitEntryNoIfNeeded.
Use this if you need to customize your document no. series used for quality inspection tests.

[IntegrationEvent(False,False)]
procedure OnInitializeQualityInspectionDocumentNo(var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The quality inspection test involved

OnBeforeTakePicture

OnBeforeTakePicture occurs before a picture has been taken.
Use this to replace with your own picture taking dialog.

[IntegrationEvent(False,False)]
procedure OnBeforeTakePicture(var precTest: Record "IWX QI Test", var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

VAR Record “IWX QI Test”.

pbHandled Boolean

Set to true to replace the default behavior.

OnAfterTakePicture

OnAfterTakePicture occurs after a picture has been taken.
Picture storage will depend on the “Picture Upload Behavior” setting.

[IntegrationEvent(False,False)]
procedure OnAfterTakePicture(var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

VAR Record “IWX QI Test”.

OnBeforeAddPicture

OnBeforeAddPicture occurs before the supplied picture instream is added to the test.

[IntegrationEvent(False,False)]
procedure OnBeforeAddPicture(var precTest: Record "IWX QI Test", var pinPictureInStream: InStream, var ptxtPictureName: Text, var ptxtFileExtension: Text, var ptxtFullFileNameWithExtension: Text, var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

VAR Record “IWX QI Test”

pinPictureInStream InStream

VAR InStream

ptxtPictureName Text

VAR Text

ptxtFileExtension Text

VAR Text

ptxtFullFileNameWithExtension Text

VAR Text

pbHandled Boolean

Set to true to replace the default behavior

OnAfterAddPicture

OnAfterAddPicture occurs after the supplied picture instream is added to the test.

[IntegrationEvent(False,False)]
procedure OnAfterAddPicture(var precTest: Record "IWX QI Test", var pinPictureInStream: InStream, var ptxtPictureName: Text, var ptxtFileExtension: Text, var ptxtFullFileNameWithExtension: Text)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

VAR Record “IWX QI Test”

pinPictureInStream InStream

VAR InStream

ptxtPictureName Text

VAR Text

ptxtFileExtension Text

VAR Text

ptxtFullFileNameWithExtension Text

VAR Text

OnBeforeEvaluateGrade

OnBeforeEvaluateGrade gives an opportunity to change how a grade is evaluated.

[IntegrationEvent(False,False)]
procedure OnBeforeEvaluateGrade(var precTestGradeConditionConfig: Record "IWX QI Grade Condition Config", var peFieldType: Enum "IWX QI Field Type", var ptxtTestValue: Text, var rcodOut: Code[20], var pbHandled: Boolean)
Parameters
Name Type Description
precTestGradeConditionConfig Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Config”

VAR record “IWX QI Grade Condition Config”.

peFieldType Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Type”

VAR enum “IWX QI Field Type”.

ptxtTestValue Text

VAR Text.

rcodOut Code[20]

The grade.

pbHandled Boolean

Set to true to replace the default behavior.

OnAfterEvaluateGrade

OnAfterEvaluateGrade gives an opportunity to run additional logic after a grade has been determined by the system.

[IntegrationEvent(False,False)]
procedure OnAfterEvaluateGrade(var precTestGradeConditionConfig: Record "IWX QI Grade Condition Config", var peFieldType: Enum "IWX QI Field Type", var ptxtTestValue: Text, var rcodOut: Code[20], var ptrecHighestGradeConditionConfig: Record "IWX QI Grade Condition Config" temporary, var pbHandled: Boolean)
Parameters
Name Type Description
precTestGradeConditionConfig Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Config”

VAR record “IWX QI Grade Condition Config”.

peFieldType Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Type”

VAR enum “IWX QI Field Type”.

ptxtTestValue Text

VAR Text.

rcodOut Code[20]

VAR Code[20].

ptrecHighestGradeConditionConfig Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Config”

VAR record “IWX QI Grade Condition Config” temporary.

pbHandled Boolean

Set to true to replace the default behavior.

OnWorkflowHandleOnExecuteWorkflowResponseAfterFindRelatedRecord

OnWorkflowHandleOnExecuteWorkflowResponseAfterFindRelatedRecord occurs after the system has found the related record for the workflow step.

[IntegrationEvent(False,False)]
procedure OnWorkflowHandleOnExecuteWorkflowResponseAfterFindRelatedRecord(var pbResponseExecuted: Boolean, var pVariant: Variant, pxVariant: Variant, precResponseWorkflowStepInstance: Record "Workflow Step Instance", var precTargetRecordRef: RecordRef, var pbHandled: Boolean)
Parameters
Name Type Description
pbResponseExecuted Boolean

VAR Boolean.

pVariant Variant

VAR Variant.

pxVariant Variant

Variant.

precResponseWorkflowStepInstance Record “Workflow Step Instance”

Record “Workflow Step Instance”.

precTargetRecordRef RecordRef

VAR recordref.

pbHandled Boolean

Set to true to replace the default behavior.

OnAfterInitializeCreateTestReportParameters

Provides an opportunity to create defaults in the Create Test report page.

[IntegrationEvent(False,False)]
procedure OnAfterInitializeCreateTestReportParameters(var pcodQualityInspectionTemplateCode: Code[20], var pcodSourceTable: Code[20], var ptxtCustomFilter: Text, var pridTarget: RecordId, var prrefTargetRecordRef: RecordRef, var ptrecQualityInspectionTest: Record "IWX QI Test" temporary)
Parameters
Name Type Description
pcodQualityInspectionTemplateCode Code[20]

VAR Code[20].

pcodSourceTable Code[20]

VAR Code[20].

ptxtCustomFilter Text

VAR Text.

pridTarget RecordId

VAR RecordId.

prrefTargetRecordRef RecordRef

VAR RecordRef.

ptrecQualityInspectionTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

VAR record “IWX QI Test” temporary.

OnSetUsageFilterOnAfterSetFiltersByReportUsage

OnSetUsageFilterOnAfterSetFiltersByReportUsage gives an opportunity to extend the report usage filtering.

[IntegrationEvent(False,False)]
procedure OnSetUsageFilterOnAfterSetFiltersByReportUsage(var pRecReportSelections: Record "Report Selections", peReportSelectionUsage: Enum "IWX QI Report Selection Usage")
Parameters
Name Type Description
pRecReportSelections Record “Report Selections”

VAR Record “Report Selections”.

peReportSelectionUsage Enum InsightWorks.QualityInspection.Reporting.”IWX QI Report Selection Usage”

Enum “IWX QI Report Selection Usage”.

OnBeforeFindLineUpdateGradeFromLines

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

[IntegrationEvent(False,False)]
procedure OnBeforeFindLineUpdateGradeFromLines(var precTest: Record "IWX QI Test", var precTestLine: Record "IWX QI Test Line", var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The quality inspection test involved

precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
pbHandled Boolean

Set to true to replace the default behavior

OnAfterFindLineUpdateGradeFromLines

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

[IntegrationEvent(False,False)]
procedure OnAfterFindLineUpdateGradeFromLines(var precTest: Record "IWX QI Test", var precTestLine: Record "IWX QI Test Line")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The quality inspection test involved

precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

OnGetCurrentUserIdToUse

Gets the user id to use to record on tests.
Override this to change the user id if you have a different user mechanism.

[IntegrationEvent(False,False)]
procedure OnGetCurrentUserIdToUse(peContext: Enum "IWX QI Set User Context", var precIWXQITest: Record "IWX QI Test", var ptxtUserId: Text)
Parameters
Name Type Description
peContext Enum InsightWorks.QualityInspection.Document.”IWX QI Set User Context”

The context of needing the user ID.

precIWXQITest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The test

ptxtUserId Text

The user id to use

OnBeforeGetDefaultMaximumRowsToShowInLookup

Provides an opportunity for customizations to alter the default maximum rows shown
for a table lookup in a quality inspector field.
Changing the default to a larger number can introduce performance issues.

[IntegrationEvent(False,False)]
procedure OnBeforeGetDefaultMaximumRowsToShowInLookup(var piRows: Integer, var pbHandled: Boolean)
Parameters
Name Type Description
piRows Integer
pbHandled Boolean

OnBeforeWarehouseAttemptCreateTestWithWhseJournalLine

This occurs before a test is about to be created with a warehouse entry.

[IntegrationEvent(False,False)]
internal procedure OnBeforeWarehouseAttemptCreateTestWithWhseJournalLine(var precWarehouseEntry: Record "Warehouse Entry", var precWarehouseJournalLine: Record "Warehouse Journal Line", var pbHandled: Boolean)
Parameters
Name Type Description
precWarehouseEntry Record “Warehouse Entry”
precWarehouseJournalLine Record “Warehouse Journal Line”
pbHandled Boolean

OnAfterWarehouseAttemptCreateTestWithWhseJournalLine

This occurs after a test has been created for a warehouse entry.

[IntegrationEvent(False,False)]
internal procedure OnAfterWarehouseAttemptCreateTestWithWhseJournalLine(var pbHasTest: Boolean, var precTest: Record "IWX QI Test", var precWarehouseEntry: Record "Warehouse Entry", var precWarehouseJournalLine: Record "Warehouse Journal Line", poptionalSourceVariant: Variant)
Parameters
Name Type Description
pbHasTest Boolean
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precWarehouseEntry Record “Warehouse Entry”
precWarehouseJournalLine Record “Warehouse Journal Line”
poptionalSourceVariant Variant

OnBeforeGetOptionalSourceVariantForWarehouseJournalLine

Use this to provide alternate source variants for a given warehouse journal line.

[IntegrationEvent(False,False)]
internal procedure OnBeforeGetOptionalSourceVariantForWarehouseJournalLine(var precWarehouseJournalLine: Record "Warehouse Journal Line", var pvarOptionalSourceRecordVariant: Variant, var rbOutDidSomething: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
precWarehouseJournalLine Record “Warehouse Journal Line”
pvarOptionalSourceRecordVariant Variant
rbOutDidSomething Boolean
pbHandled Boolean

OnBeforeSalesReturnCreateTestWithSalesLine

Occurs before a test is about to be created with a sales return line.

[IntegrationEvent(False,False)]
internal procedure OnBeforeSalesReturnCreateTestWithSalesLine(var precSalesHeader: Record "Sales Header", var precSalesLine: Record "Sales Line", var ptrecTempItemLedgEntryNotInvoiced: Record "Item Ledger Entry" temporary, var ptrecTrackingSpecification: Record "Tracking Specification" temporary, var pbHandled: Boolean)
Parameters
Name Type Description
precSalesHeader Record “Sales Header”
precSalesLine Record “Sales Line”
ptrecTempItemLedgEntryNotInvoiced Record “Item Ledger Entry” temporary
ptrecTrackingSpecification Record “Tracking Specification” temporary
pbHandled Boolean

OnAfterSalesReturnCreateTestWithSalesLine

Occurs after a test has been created with a sales return line.

[IntegrationEvent(False,False)]
internal procedure OnAfterSalesReturnCreateTestWithSalesLine(var precSalesHeader: Record "Sales Header", var precSalesLine: Record "Sales Line", var ptrecTempItemLedgEntryNotInvoiced: Record "Item Ledger Entry" temporary, var ptrecTrackingSpecification: Record "Tracking Specification" temporary, var pbHasTest: Boolean, var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precSalesHeader Record “Sales Header”
precSalesLine Record “Sales Line”
ptrecTempItemLedgEntryNotInvoiced Record “Item Ledger Entry” temporary
ptrecTrackingSpecification Record “Tracking Specification” temporary
pbHasTest Boolean
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

OnHandleCheckItemTrackingAfterFilters

This occurs when checking item tracking to determine if the lot/serial is allowed for the given kind of activity.
This occurs before the test find occurs, and gives an opportunity to adjust test filters.
Used for assembly consumption, assembly output, consumption, output, purchase, sale, transfer

[IntegrationEvent(False,False)]
internal procedure OnHandleCheckItemTrackingAfterFilters(var precItemJournalLine: Record "Item Journal Line", var precTrackingSpecification: Record "Tracking Specification", var precTest: Record "IWX QI Test", var pbHandled: Boolean)
Parameters
Name Type Description
precItemJournalLine Record “Item Journal Line”
precTrackingSpecification Record “Tracking Specification”
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Adjust filters to find the relevant test here as needed

pbHandled Boolean

Only set to true if you want to replace the entire behavior. Keep with false if you want the system to keep evaluating after adding or removing filters.

OnHandleCheckItemTrackingBeforeBlockErrorCheck

This occurs when checking item tracking to determine if the lot/serial is allowed for the given kind of activity.
This occurs after a test has been found.
Used for assembly consumption, assembly output, consumption, output, purchase, sale, transfer

[IntegrationEvent(False,False)]
internal procedure OnHandleCheckItemTrackingBeforeBlockErrorCheck(var precItemJournalLine: Record "Item Journal Line", var precTrackingSpecification: Record "Tracking Specification", var precTest: Record "IWX QI Test", var precGrade: Record "IWX QI Grade", var pbBlocked: Boolean)
Parameters
Name Type Description
precItemJournalLine Record “Item Journal Line”
precTrackingSpecification Record “Tracking Specification”
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Test has already been found at this point, this should be a reference to the test.

precGrade Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade”

This is the grade being analyzed.

pbBlocked Boolean

Set to true to flag as blocked

OnHandleCheckWhseItemTrackingAfterFilters

This occurs when checking item tracking to determine if the lot/serial is allowed for the given kind of activity.
This occurs before the test find occurs, and gives an opportunity to adjust test filters.
Used for inventory movements, inventory picks, inventory put aways, movements, picks, putaways.

[IntegrationEvent(False,False)]
internal procedure OnHandleCheckWhseItemTrackingAfterFilters(var precWarehouseActivityLine: Record "Warehouse Activity Line", var precTest: Record "IWX QI Test", var pbHandled: Boolean)
Parameters
Name Type Description
precWarehouseActivityLine Record “Warehouse Activity Line”
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Adjust filters to find the relevant test here as needed

pbHandled Boolean

Only set to true if you want to replace the entire behavior. Keep with false if you want the system to keep evaluating after adding or removing filters.

OnHandleCheckWhseItemTrackingBeforeBlockErrorCheck

This occurs when checking item tracking to determine if the lot/serial is allowed for the given kind of activity.
This occurs after a test has been found.
Used for inventory movements, inventory picks, inventory putaways, movements, picks, putaways.

[IntegrationEvent(False,False)]
internal procedure OnHandleCheckWhseItemTrackingBeforeBlockErrorCheck(var precWarehouseActivityLine: Record "Warehouse Activity Line", var precTest: Record "IWX QI Test", var precGrade: Record "IWX QI Grade", var pbBlocked: Boolean)
Parameters
Name Type Description
precWarehouseActivityLine Record “Warehouse Activity Line”
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Test has already been found at this point, this should be a reference to the test.

precGrade Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade”

This is the grade being analyzed.

pbBlocked Boolean

Set to true to flag as blocked

OnAfterCreateItemReclassLine

Obsolete

This element will become obsolete from version 7.21. Use available events in in “IWX QI Disp. Move Item Reclass” instead.

[Obsolete(Use available events in in "IWX QI Disp. Move Item Reclass" instead.,7.21)]
[IntegrationEvent(False,False)]
internal procedure OnAfterCreateItemReclassLine(precTest: Record "IWX QI Test", pcodFromLocationCode: Code[10], pcodFromBinCode: Code[20], pcodToLocationCode: Code[10], pcodToBinCode: Code[20], pcodBatchName: Code[10], pdQuantity: Decimal, var precItemJournalLine: Record "Item Journal Line")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pcodFromLocationCode Code[10]
pcodFromBinCode Code[20]
pcodToLocationCode Code[10]
pcodToBinCode Code[20]
pcodBatchName Code[10]
pdQuantity Decimal
precItemJournalLine Record “Item Journal Line”

OnAfterCreateWarehouseReclassLine

Obsolete

This element will become obsolete from version 7.21. Use OnAfterCreateWarehouseReclassLine in “IWX QI Disp. Move Whse.Reclass” instead.

[Obsolete(Use OnAfterCreateWarehouseReclassLine in "IWX QI Disp. Move Whse.Reclass" instead.,7.21)]
[IntegrationEvent(False,False)]
internal procedure OnAfterCreateWarehouseReclassLine(precTest: Record "IWX QI Test", pcodFromLocationCode: Code[10], pcodFromBinCode: Code[20], pcodToBinCode: Code[20], pcodBatchName: Code[10], pdQuantity: Decimal, var precWarehouseJournalLine: Record "Warehouse Journal Line")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pcodFromLocationCode Code[10]
pcodFromBinCode Code[20]
pcodToBinCode Code[20]
pcodBatchName Code[10]
pdQuantity Decimal
precWarehouseJournalLine Record “Warehouse Journal Line”

OnAfterCreateWarehouseWorksheetLine

Provides an opportunity to alter the warehouse worksheet line that was made with MoveInventory

[IntegrationEvent(False,False)]
internal procedure OnAfterCreateWarehouseWorksheetLine(precTest: Record "IWX QI Test", pcodFromLocationCode: Code[10], pcodFromBinCode: Code[20], pcodToBinCode: Code[20], pdQuantity: Decimal, var pbWorksheetLineCreated: Boolean, var ptrecWarehouseEntry: Record "Warehouse Entry" temporary, var precWhseWkshLine: Record "Whse. Worksheet Line")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pcodFromLocationCode Code[10]
pcodFromBinCode Code[20]
pcodToBinCode Code[20]
pdQuantity Decimal
pbWorksheetLineCreated Boolean
ptrecWarehouseEntry Record “Warehouse Entry” temporary
precWhseWkshLine Record “Whse. Worksheet Line”

OnBeforeSetWhseWkshTrackingLines

Provides an opportunity to alter the warehouse worksheet tracking lines that were made with MoveInventory

[IntegrationEvent(False,False)]
internal procedure OnBeforeSetWhseWkshTrackingLines(precTest: Record "IWX QI Test", pcodFromLocationCode: Code[10], pcodFromBinCode: Code[20], pcodToBinCode: Code[20], pdQuantity: Decimal, var pbWorksheetLineCreated: Boolean, precWhseWkshLine: Record "Whse. Worksheet Line", var ptrecWarehouseEntry: Record "Warehouse Entry" temporary, pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pcodFromLocationCode Code[10]
pcodFromBinCode Code[20]
pcodToBinCode Code[20]
pdQuantity Decimal
pbWorksheetLineCreated Boolean
precWhseWkshLine Record “Whse. Worksheet Line”
ptrecWarehouseEntry Record “Warehouse Entry” temporary
pbHandled Boolean

OnBeforeSetInternalMovementTrackingLines

Provides an opportunity to alter the internal movement tracking lines that were made with MoveInventory

[IntegrationEvent(False,False)]
internal procedure OnBeforeSetInternalMovementTrackingLines(precTest: Record "IWX QI Test", precInternalMovementHeader: Record "Internal Movement Header", var precPrevInternalMovementLine: Record "Internal Movement Line", var precInternalMovementLine: Record "Internal Movement Line", pcodFromBinCode: Code[20], var pdQuantity: Decimal, var ptrecWarehouseEntry: Record "Warehouse Entry" temporary, var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precInternalMovementHeader Record “Internal Movement Header”
precPrevInternalMovementLine Record “Internal Movement Line”
precInternalMovementLine Record “Internal Movement Line”
pcodFromBinCode Code[20]
pdQuantity Decimal
ptrecWarehouseEntry Record “Warehouse Entry” temporary
pbHandled Boolean

OnAfterCreateInternalMovementLine

Provides an opportunity to alter the internal movement line that was made with MoveInventory

[IntegrationEvent(False,False)]
internal procedure OnAfterCreateInternalMovementLine(precTest: Record "IWX QI Test", precInternalMovementHeader: Record "Internal Movement Header", var precInternalMovementLine: Record "Internal Movement Line", pcodFromBinCode: Code[20], var pdQuantity: Decimal)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precInternalMovementHeader Record “Internal Movement Header”
precInternalMovementLine Record “Internal Movement Line”
pcodFromBinCode Code[20]
pdQuantity Decimal

OnBeforeEvaluateTableFieldInExpression

Use this to supplement or replace the [specialtable:fieldname] nomenclature
when using text expressions.
Set pbHandled to true to completely replace the default behavior in the loop.
Set pbHandled to false to just extend it.

[IntegrationEvent(False,False)]
internal procedure OnBeforeEvaluateTableFieldInExpression(var ptxtEntireTextBeingEvaluated: Text, var ptxtTableName: Text, var ptxtFieldName: Text, var ptxtEntireFindText: Text, var ptxtEntireReplaceText: Text, var pbHandled: Boolean)
Parameters
Name Type Description
ptxtEntireTextBeingEvaluated Text

For example [specialtable:fieldname]

ptxtTableName Text

specialtable in [specialtable:fieldname]

ptxtFieldName Text

fieldname in [specialtable:fieldname]

ptxtEntireFindText Text

[specialtable:fieldname] in [specialtable:fieldname]

ptxtEntireReplaceText Text

your replacement

pbHandled Boolean

OnBeforeEvaluateStringOnlyFunctionThreeParamExpression

Use this to supplement or replace the [stringfunction(param1;param2;param3)] nomenclature
when using text expressions.
Set pbHandled to true to completely replace the default behavior in the loop.
Set pbHandled to false to just extend it.

[IntegrationEvent(False,False)]
internal procedure OnBeforeEvaluateStringOnlyFunctionThreeParamExpression(var ptxtEntireTextBeingEvaluated: Text, var ptxtStringFunction: Text, var ptxtParam1: Text, var ptxtParam2: Text, var ptxtParam3: Text, var ptxtEntireFindText: Text, var ptxtEntireReplaceText: Text, var pbHandled: Boolean)
Parameters
Name Type Description
ptxtEntireTextBeingEvaluated Text
ptxtStringFunction Text
ptxtParam1 Text
ptxtParam2 Text
ptxtParam3 Text
ptxtEntireFindText Text
ptxtEntireReplaceText Text
pbHandled Boolean

OnEvaluateCustomStringOnlyFunctionThreeParamExpression

Use this to add your own string only functions [stringfunction(param1;param2;param3)] nomenclature
when using text expressions.

[IntegrationEvent(False,False)]
internal procedure OnEvaluateCustomStringOnlyFunctionThreeParamExpression(var ptxtEntireTextBeingEvaluated: Text, var ptxtStringFunction: Text, var ptxtParam1: Text, var ptxtParam2: Text, var ptxtParam3: Text, var ptxtEntireFindText: Text, var ptxtEntireReplaceText: Text)
Parameters
Name Type Description
ptxtEntireTextBeingEvaluated Text
ptxtStringFunction Text
ptxtParam1 Text
ptxtParam2 Text
ptxtParam3 Text
ptxtEntireFindText Text
ptxtEntireReplaceText Text

OnEvaluateCustomTableFieldInExpression

Obsolete

This element will become obsolete from version 7.21. Use OnEvaluateCustomTableFieldInExpression in IWX QI Expression Mgmt instead.

Use this to supplement with your own special tables when evaluating expressions [specialtable:fieldname]

[Obsolete(Use OnEvaluateCustomTableFieldInExpression in IWX QI Expression Mgmt instead.,7.21)]
[IntegrationEvent(False,False)]
internal procedure OnEvaluateCustomTableFieldInExpression(var ptxtEntireTextBeingEvaluated: Text, var ptxtTableName: Text, var ptxtFieldName: Text, var ptxtEntireFindText: Text, var ptxtEntireReplaceText: Text)
Parameters
Name Type Description
ptxtEntireTextBeingEvaluated Text

For example [specialtable:fieldname]

ptxtTableName Text

specialtable in [specialtable:fieldname]

ptxtFieldName Text

fieldname in [specialtable:fieldname]

ptxtEntireFindText Text

[specialtable:fieldname] in [specialtable:fieldname]

ptxtEntireReplaceText Text

your replacement

OnBeforeEvaluateEmbeddedNumericalExpressions

Use this to extend or replace embedded numerical expression calculations.

[IntegrationEvent(False,False)]
internal procedure OnBeforeEvaluateEmbeddedNumericalExpressions(var ptxtInput: Text, var precCurrentTest: Record "IWX QI Test", var prtxtOut: Text, var pbHandled: Boolean)
Parameters
Name Type Description
ptxtInput Text
precCurrentTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
prtxtOut Text
pbHandled Boolean

OnAfterEvaluateEmbeddedNumericalExpressions

Use this to extend embedded numerical expressions.

[IntegrationEvent(False,False)]
internal procedure OnAfterEvaluateEmbeddedNumericalExpressions(var ptxtInput: Text, var precCurrentTest: Record "IWX QI Test", var prtxtOut: Text)
Parameters
Name Type Description
ptxtInput Text
precCurrentTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
prtxtOut Text

OnBeforeEvaluateNumericalExpression

Use this to extend or replace numerical expression evaluation.

[IntegrationEvent(False,False)]
internal procedure OnBeforeEvaluateNumericalExpression(var ptxtNumericalExpression: Text, var precTest: Record "IWX QI Test", var pdictAdditionalVariables: Dictionary of [Text, Decimal], var prdOut: Decimal, var pbHandled: Boolean)
Parameters
Name Type Description
ptxtNumericalExpression Text
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pdictAdditionalVariables Dictionary of [Text, Decimal]
prdOut Decimal
pbHandled Boolean

OnAfterEvaluateNumericalExpression

Use this to extend or replace numerical expression evaluation after Quality Inspector has evaluated the expression.

[IntegrationEvent(False,False)]
internal procedure OnAfterEvaluateNumericalExpression(var ptxtNumericalExpression: Text, var precTest: Record "IWX QI Test", var pdictAdditionalVariables: Dictionary of [Text, Decimal], var prdOut: Decimal)
Parameters
Name Type Description
ptxtNumericalExpression Text
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pdictAdditionalVariables Dictionary of [Text, Decimal]
prdOut Decimal

OnBeforeValidateAllowableValuesOnText

Allows you to alter the behavior of validating allowable values on text.

[IntegrationEvent(False,False)]
internal procedure OnBeforeValidateAllowableValuesOnText(var ltxtFieldNameForError: Text, var ptxt250TextToValidate: Text[250], var ptxtAllowableValues: Text, var peFieldType: Enum "IWX QI Field Type", var ptrecBufferLookupCode: Record "IWX QI Lookup Code" temporary, var penumCaseOption: Enum "IWX QI Case Sensitive", var pbHandled: Boolean)
Parameters
Name Type Description
ltxtFieldNameForError Text
ptxt250TextToValidate Text[250]
ptxtAllowableValues Text
peFieldType Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Type”
ptrecBufferLookupCode Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code”
penumCaseOption Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Case Sensitive”
pbHandled Boolean

OnAfterValidateAllowableValuesOnText

Provides the opportunity to extend and add additional validation after the allowable values has occurred.

[IntegrationEvent(False,False)]
internal procedure OnAfterValidateAllowableValuesOnText(var ltxtFieldNameForError: Text, var ptxt250TextToValidate: Text[250], var ptxtAllowableValues: Text, var peFieldType: Enum "IWX QI Field Type", var ptrecBufferLookupCode: Record "IWX QI Lookup Code" temporary, var penumCaseOption: Enum "IWX QI Case Sensitive")
Parameters
Name Type Description
ltxtFieldNameForError Text
ptxt250TextToValidate Text[250]
ptxtAllowableValues Text
peFieldType Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Type”
ptrecBufferLookupCode Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code”
penumCaseOption Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Case Sensitive”

OnMoveInventoryAlterInventorySourceV3

Obsolete

This element will become obsolete from version 7.20. Use OnBeforeProcessDisposition in IWX QI Disp. Move Auto Choose instead or OnBeforePopulateBinContentBuffer in IWX QI Inventory Availability

Provides an opportunity to adjust the temporary buffer record that dictates the locations and bins of
inventory to move.

[Obsolete(Use OnBeforeProcessDisposition in IWX QI Disp. Move Auto Choose instead or OnBeforePopulateBinContentBuffer in IWX QI Inventory Availability,7.20)]
[IntegrationEvent(False,False)]
internal procedure OnMoveInventoryAlterInventorySourceV3(var precTest: Record "IWX QI Test", var pcodToLocationCode: Code[10], var pcodToBinCode: Code[20], var pdQuantity: Decimal, var pbPostImmediately: Boolean, var ptxtOptionalSourceLocationFilter: Text, var ptxtOptionalSourceBinFilter: Text, var ptrecExistingInventoryBinContent: Record "Bin Content" temporary, var peMoveBehavior: Enum "IWX QI Move Behavior")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

pcodToLocationCode Code[10]

Location to move to

pcodToBinCode Code[20]

Bin to move to

pdQuantity Decimal

Optional specific quantity

pbPostImmediately Boolean

Whether to post the journal or just create entries

ptxtOptionalSourceLocationFilter Text

Optionally restrict the locations to move from.

ptxtOptionalSourceBinFilter Text

Optionally restrict the bins to move from.

ptrecExistingInventoryBinContent Record “Bin Content” temporary
peMoveBehavior Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Move Behavior”

Whether to use the item tracked quantity, specific quantity, sample size, or number of passed/failed samples

OnAfterCreateAdjustmentItemJournalLine

Obsolete

This element will become obsolete from version 7.21. Use hooks available in “IWX QI Disp. Neg. Adjust Inv.” instead.

Provides an opportunity to adjust the adjustment Item Journal Line created from a Quality Inspection Test

[Obsolete(Use hooks available in "IWX QI Disp. Neg. Adjust Inv." instead.,7.21)]
[IntegrationEvent(False,False)]
procedure OnAfterCreateAdjustmentItemJournalLine(var precTest: Record "IWX QI Test", var pcodBatchName: Code[10], var pcodLocationCode: Code[10], var pcodBinCode: Code[20], var pdQuantity: Decimal, var pcodReason: Code[10], var precItemJournalLine: Record "Item Journal Line", var pbAdjusted: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

pcodBatchName Code[10]

Journal Batch Code

pcodLocationCode Code[10]

Location Code

pcodBinCode Code[20]

Bin Code

pdQuantity Decimal

Adjustment Quantity

pcodReason Code[10]

Reason Code

precItemJournalLine Record “Item Journal Line”

Created Item Journal Line

pbAdjusted Boolean

Indicator that adjustment line was inserted

OnAfterCreateAdjustmentWhseJournalLine

Obsolete

This element will become obsolete from version 7.21. Use hooks available in “IWX QI Disp. Neg. Adjust Inv.” instead.

Provides an opportunity to adjust the adjustment Warehouse Item Journal Line created from a Quality Inspection Test

[Obsolete(Use hooks available in "IWX QI Disp. Neg. Adjust Inv." instead.,7.21)]
[IntegrationEvent(False,False)]
procedure OnAfterCreateAdjustmentWhseJournalLine(var precTest: Record "IWX QI Test", var pcodBatchName: Code[10], var pcodLocationCode: Code[10], var pcodBinCode: Code[20], var pdQuantity: Decimal, var pcodReason: Code[10], var precWhseItemJournalLine: Record "Warehouse Journal Line", var pbAdjusted: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

pcodBatchName Code[10]

Journal Batch Code

pcodLocationCode Code[10]

Location Code

pcodBinCode Code[20]

Bin Code

pdQuantity Decimal

Adjustment Quantity

pcodReason Code[10]

Reason Code

precWhseItemJournalLine Record “Warehouse Journal Line”

Quality Inspection Test

pbAdjusted Boolean

Indicator that adjustment line was inserted

OnBeforeCreateNegativeAdjustment

Obsolete

This element will become obsolete from version 7.21. Use hooks in “IWX QI Disp. Neg. Adjust Inv.” instead.

Provides an opportunity to adjust the negative adjustment behavior and the temporary buffer record that dictates the locations and bins of
inventory to write off.

[Obsolete(Use hooks in "IWX QI Disp. Neg. Adjust Inv." instead.,7.21)]
[IntegrationEvent(False,False)]
procedure OnBeforeCreateNegativeAdjustment(var precTest: Record "IWX QI Test", var ptrecExistingInventoryBinContent: Record "Bin Content" temporary, var pdOptionalSpecificQuantity: Decimal, var peAdjustmentQtyBehavior: Enum "IWX QI Move Behavior", var pePostingBehavior: Enum "IWX QI Item Adj. Post Behavior", var pcodReason: Code[10], var pdOutTotalAdjustedBaseQuantity: Decimal, var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

ptrecExistingInventoryBinContent Record “Bin Content” temporary

Bin Content

pdOptionalSpecificQuantity Decimal

Optional specific quantity

peAdjustmentQtyBehavior Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Move Behavior”

Whether to use the item tracked quantity, specific quantity, sample size, or number of passed/failed samples

pePostingBehavior Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Item Adj. Post Behavior”

Whether to just create a journal entry, register the warehouse item journal, or post the item journal

pcodReason Code[10]

Reason Code

pdOutTotalAdjustedBaseQuantity Decimal

Total quantity adjusted

pbHandled Boolean

Set pbHandled to true to replace the default behavior

OnBeforeInsertCreateTrackingWarehouseReclassLine

Obsolete

This element will become obsolete from version 7.21. Use hooks in “IWX QI Item Tracking Mgmt.” instead.

Provides an opportunity to adjust the warehouse reclassification line created to change item tracking information before it is inserted.

[Obsolete(Use hooks in "IWX QI Item Tracking Mgmt." instead.,7.21)]
[IntegrationEvent(False,False)]
procedure OnBeforeInsertCreateTrackingWarehouseReclassLine(var precTest: Record "IWX QI Test", var pcodReclassBatchName: Code[10], var pcodLocationCode: Code[10], var pcodBinCode: Code[20], var pdQuantity: Decimal, var pcodNewLot: Code[50], var pcodNewSerial: Code[50], var pcodNewPackage: Code[50], var pdtNewExpiration: Date, var precWhseJournalLine: Record "Warehouse Journal Line", var pbWhseTracked: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

pcodReclassBatchName Code[10]

Reclassification Batch Name

pcodLocationCode Code[10]

Location Code for the reclassification

pcodBinCode Code[20]

Bin Code for the reclassification

pdQuantity Decimal

The quantity of the item to be updated

pcodNewLot Code[50]

New lot no.

pcodNewSerial Code[50]

New serial no.

pcodNewPackage Code[50]

New package no.

pdtNewExpiration Date

New expiration date

precWhseJournalLine Record “Warehouse Journal Line”

The reclassification line

pbWhseTracked Boolean

A boolean designating whether the item is warehouse tracked

OnAfterCreateTrackingWarehouseReclassLine

Obsolete

This element will become obsolete from version 7.21. Use hooks in “IWX QI Item Tracking Mgmt.”

Provides an opportunity to adjust the warehouse reclassification line and whse. tracking line created to change item tracking information.

[Obsolete(Use hooks in "IWX QI Item Tracking Mgmt.",7.21)]
[IntegrationEvent(False,False)]
procedure OnAfterCreateTrackingWarehouseReclassLine(var precTest: Record "IWX QI Test", var pcodReclassBatchName: Code[10], var pcodLocationCode: Code[10], var pcodBinCode: Code[20], var pdQuantity: Decimal, var pcodNewLot: Code[50], var pcodNewSerial: Code[50], var pcodNewPackage: Code[50], var pdtNewExpiration: Date, var precWhseJournalLine: Record "Warehouse Journal Line", var precWhseItemTrackingLine: Record "Whse. Item Tracking Line", var rbChanged: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

pcodReclassBatchName Code[10]

Reclassification Batch Name

pcodLocationCode Code[10]

Location Code for the reclassification

pcodBinCode Code[20]

Bin Code for the reclassification

pdQuantity Decimal

The quantity of the item to be updated

pcodNewLot Code[50]

New lot no.

pcodNewSerial Code[50]

New serial no.

pcodNewPackage Code[50]

New package no.

pdtNewExpiration Date

New expiration date

precWhseJournalLine Record “Warehouse Journal Line”

The inserted reclassification line

precWhseItemTrackingLine Record “Whse. Item Tracking Line”

The associated Whse. Item Tracking Line

rbChanged Boolean

Boolean value indicating a tracking change was made

OnBeforeInsertCreateTrackingItemReclassLine

Obsolete

This element will become obsolete from version 7.21. Use OnBeforeInsertCreateTrackingItemReclassLine in IWX QI Disp. Change Tracking instead .

Provides an opportunity to adjust the item reclassification line created to change item tracking information before it is inserted.

[Obsolete(Use OnBeforeInsertCreateTrackingItemReclassLine in IWX QI Disp. Change Tracking instead .,7.21)]
[IntegrationEvent(False,False)]
procedure OnBeforeInsertCreateTrackingItemReclassLine(var precTest: Record "IWX QI Test", var pcodReclassBatchName: Code[10], var pcodLocationCode: Code[10], var pcodBinCode: Code[20], var pdQuantity: Decimal, var pcodNewLot: Code[50], var pcodNewSerial: Code[50], var pcodNewPackage: Code[50], var pdtNewExpiration: Date, var precItemJournalLine: Record "Item Journal Line")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

pcodReclassBatchName Code[10]

Reclassification Batch Name

pcodLocationCode Code[10]

Location Code for the reclassification

pcodBinCode Code[20]

Bin Code for the reclassification

pdQuantity Decimal

The quantity of the item to be updated

pcodNewLot Code[50]

New lot no.

pcodNewSerial Code[50]

New serial no.

pcodNewPackage Code[50]

New package no.

pdtNewExpiration Date

New expiration date

precItemJournalLine Record “Item Journal Line”

The reclassification line

OnAfterCreateTrackingItemReclassLine

Obsolete

This element will become obsolete from version 7.21. Use OnAfterCreateTrackingItemReclassLine in IWX QI Disp. Change Tracking instead .

Provides an opportunity to adjust the warehouse reclassification line and whse. tracking line created to change item tracking information.

[Obsolete(Use OnAfterCreateTrackingItemReclassLine in IWX QI Disp. Change Tracking instead .,7.21)]
[IntegrationEvent(False,False)]
procedure OnAfterCreateTrackingItemReclassLine(var precTest: Record "IWX QI Test", var pcodReclassBatchName: Code[10], var pcodLocationCode: Code[10], var pcodBinCode: Code[20], var pdQuantity: Decimal, var pcodNewLot: Code[50], var pcodNewSerial: Code[50], var pcodNewPackage: Code[50], var pdtNewExpiration: Date, var precItemJournalLine: Record "Item Journal Line", var precReservationEntry: Record "Reservation Entry", var rbChanged: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

pcodReclassBatchName Code[10]

Reclassification Batch Name

pcodLocationCode Code[10]

Location Code for the reclassification

pcodBinCode Code[20]

Bin Code for the reclassification

pdQuantity Decimal

The quantity of the item to be updated

pcodNewLot Code[50]

New lot no.

pcodNewSerial Code[50]

New serial no.

pcodNewPackage Code[50]

New package no.

pdtNewExpiration Date

New expiration date

precItemJournalLine Record “Item Journal Line”

The inserted reclassification line

precReservationEntry Record “Reservation Entry”

The associated Reservation Entry

rbChanged Boolean

Boolean value indicating a tracking change was made

OnBeforeChangeTracking

Obsolete

This element will become obsolete from version 7.21. Use hooks available in IWX QI Disp. Change Tracking instead .

Provides an opportunity to modify the item tracking change behavior and the temporary buffer record that dictates the locations and bins of
inventory to change.

[Obsolete(Use hooks available in IWX QI Disp. Change Tracking instead .,7.21)]
[IntegrationEvent(False,False)]
procedure OnBeforeChangeTracking(var precTest: Record "IWX QI Test", var ptrecExistingInventoryBinContent: Record "Bin Content" temporary, var pdQuantity: Decimal, var peQuantityChoice: Enum "IWX QI Move Behavior", var pbPostImmediately: Boolean, var pcodNewLot: Code[50], var pcodNewSerial: Code[50], var pcodNewPackage: Code[50], var pdtNewExpiration: Date, var pdChangedBaseQty: Decimal, var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

ptrecExistingInventoryBinContent Record “Bin Content” temporary

Bin Content

pdQuantity Decimal

Quantity to use, either specified or determined by peQuantityChoice

peQuantityChoice Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Move Behavior”

Whether to use the item tracked quantity, specific quantity, sample size, or number of passed/failed samples

pbPostImmediately Boolean

Boolean value determining whether to just create a journal entry or post the journal

pcodNewLot Code[50]

New lot no.

pcodNewSerial Code[50]

New serial no.

pcodNewPackage Code[50]

New package no.

pdtNewExpiration Date

New expiration date

pdChangedBaseQty Decimal

Total quantity (base) adjusted

pbHandled Boolean

Set pbHandled to true to replace the default behavior

OnBeforeCreateTransfer

Obsolete

This element will become obsolete from version 7.21. Use OnBeforeProcessDisposition in IWX QI Disp. Transfer instead or OnBeforePopulateBinContentBuffer in IWX QI Inventory Availability

Provides an opportunity to modify the create transfer behavior and the temporary buffer record that dictates the locations and bins of
inventory to transfer.

[Obsolete(Use OnBeforeProcessDisposition in IWX QI Disp. Transfer instead or OnBeforePopulateBinContentBuffer in IWX QI Inventory Availability,7.21)]
[IntegrationEvent(False,False)]
procedure OnBeforeCreateTransfer(var precTest: Record "IWX QI Test", var ptrecExistingInventoryBinContent: Record "Bin Content" temporary, var pdQuantity: Decimal, var peQuantityChoice: Enum "IWX QI Move Behavior", var pbDirectTransfer: Boolean, var pcodInTransit: Code[10], var precOutTransferHeader: Record "Transfer Header", var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

ptrecExistingInventoryBinContent Record “Bin Content” temporary

Bin Content

pdQuantity Decimal

Quantity to use, either specified or determined by peQuantityChoice

peQuantityChoice Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Move Behavior”

Whether to use the item tracked quantity, specific quantity, sample size, or number of passed/failed samples

pbDirectTransfer Boolean

Whether the transfer is direct

pcodInTransit Code[10]

If not direct, the in-transit location to use

precOutTransferHeader Record “Transfer Header”

Transfer Header to be created

pbHandled Boolean

Set pbHandled to true to replace the default behavior

OnAfterCreateTransferLineWithOutboundTracking

Obsolete

This element will become obsolete from version 7.21. Use OnAfterCreateTransferLineWithOutboundTracking in IWX QI Disp. Transfer instead

Provides an opportunity to modify the created transfer header and transfer line after the line and optional outbound shipment tracking has been inserted.

[Obsolete(Use OnAfterCreateTransferLineWithOutboundTracking in IWX QI Disp. Transfer instead,7.21)]
[IntegrationEvent(False,False)]
procedure OnAfterCreateTransferLineWithOutboundTracking(var precTest: Record "IWX QI Test", var precTransferHeader: Record "Transfer Header", var pdQuantity: Decimal, var precTransferLine: Record "Transfer Line", var pbCreated: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

precTransferHeader Record “Transfer Header”

Created Transfer Header

pdQuantity Decimal

Quantity used

precTransferLine Record “Transfer Line”

Created Transfer Line

pbCreated Boolean

Indicator that a transfer was created

OnBeforeAttemptCreateTestWithInboundTransferLine

Provides an opportunity to modify the create test behavior when triggered from posting an inbound Transfer Line.

[IntegrationEvent(False,False)]
procedure OnBeforeAttemptCreateTestWithInboundTransferLine(var precTransLine: Record "Transfer Line", var precTransferReceiptHeader: Record "Transfer Receipt Header", var precDirectTransferHeader: Record "Direct Trans. Header", var ptrecTrackingSpec: Record "Tracking Specification" temporary, var precTest: Record "IWX QI Test", var pbHasTest: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
precTransLine Record “Transfer Line”

Transfer Line

precTransferReceiptHeader Record “Transfer Receipt Header”

Transfer Receipt Header

precDirectTransferHeader Record “Direct Trans. Header”

Direct Transfer Header

ptrecTrackingSpec Record “Tracking Specification” temporary

Tracking Specification

precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Created Test

pbHasTest Boolean

Signifies a test was created or an existing test was found

pbHandled Boolean

Provides an opportunity to replace the default behavior

OnAfterTransferAttemptCreateTestWithInboundTransferLine

Provides an opportunity to modify the created test triggered from posting an inbound Transfer Line.

[IntegrationEvent(False,False)]
procedure OnAfterTransferAttemptCreateTestWithInboundTransferLine(var precTransLine: Record "Transfer Line", var precTransferReceiptHeader: Record "Transfer Receipt Header", var precDirectTransferHeader: Record "Direct Trans. Header", var ptrecTrackingSpec: Record "Tracking Specification" temporary, var precTest: Record "IWX QI Test", var pbHasTest: Boolean)
Parameters
Name Type Description
precTransLine Record “Transfer Line”

Transfer Line

precTransferReceiptHeader Record “Transfer Receipt Header”

Transfer Receipt Header

precDirectTransferHeader Record “Direct Trans. Header”

Direct Transfer Header

ptrecTrackingSpec Record “Tracking Specification” temporary

Tracking Specification

precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Created Test

pbHasTest Boolean

Signifies a test was created or an existing test was found

OnBeforeCalculateSampleStatistic

Provides an opportunity to modify the calculation of sample statistics.

[IntegrationEvent(False,False)]
procedure OnBeforeCalculateSampleStatistic(var peSampleSummary: Enum "IWX QI Sample Summary", var precAllTestLineSample: Record "IWX QI Test Line Sample", var pdCount: Decimal, var pdOut: Decimal, var ptxtOutAsText: Text, var pbHandled: Boolean)
Parameters
Name Type Description
peSampleSummary Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Sample Summary”

Type of sample summary statistic

precAllTestLineSample Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”

IWX QI Test Line Sample

pdCount Decimal

Count of Test Line Sample

pdOut Decimal

Calculated statistic

ptxtOutAsText Text

Calculated statistic as text

pbHandled Boolean

Provides an opportunity to replace the default behavior

OnAfterCalculateSampleStatistic

Provides a hook to help alter the value and formatting of sample summaries.

[IntegrationEvent(False,False)]
procedure OnAfterCalculateSampleStatistic(var peSampleSummary: Enum "IWX QI Sample Summary", var precAllTestLineSample: Record "IWX QI Test Line Sample", var pdCount: Decimal, var pdOut: Decimal, var ptxtOutAsText: Text)
Parameters
Name Type Description
peSampleSummary Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Sample Summary”
precAllTestLineSample Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”
pdCount Decimal
pdOut Decimal
ptxtOutAsText Text

OnBeforeEvaluateNumericTestValue

Provides an opportunity to modify the evaluation of the Numeric Test Value from the Test Value.

[IntegrationEvent(False,False)]
procedure OnBeforeEvaluateNumericTestValue(var precTestLine: Record "IWX QI Test Line", var pbHandled: Boolean)
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

IWX QI Test Line

pbHandled Boolean

Provides an opportunity to replace the default behavior

OnTestCreated

This action will occur when a new Quality Inspection Test has been created.
This is exposed with ExternalBusinessEvent and intended to be used in PowerAutomate

[ExternalBusinessEvent(IWXQIOnTestCreated,Quality Inspection Test Created,This action will occur when a new Quality Inspection Test has been created.,IWXQIQualityInspectionTest)]
procedure OnTestCreated(pguidTestID: Guid, pcodTestNo: Code[20], pguidSourceRecordID: Guid, pcodSourceDocumentNo: Code[20], pcodSourceItemNo: Code[20], pcodSourceVariantCode: Code[10], pcodSourceLotNo: Code[50], pcodSourceSerialNo: Code[50], pcodGradeCode: Code[20])
Parameters
Name Type Description
pguidTestID Guid

The system record id of the newly created test

pcodTestNo Code[20]

The test document no.

pguidSourceRecordID Guid

The source record id of the record that triggered the test

pcodSourceDocumentNo Code[20]

The source document no.

pcodSourceItemNo Code[20]

The source item no.

pcodSourceVariantCode Code[10]

The source variant code.

pcodSourceLotNo Code[50]

The source lot number.

pcodSourceSerialNo Code[50]

The source serial number.

pcodGradeCode Code[20]

The current grade of the test

OnTestFinished

This action will occur when a Quality Inspection Test has changed to the finished state.
This is exposed with ExternalBusinessEvent and intended to be used in PowerAutomate

[ExternalBusinessEvent(IWXQIOnTestFinished,Quality Inspection Test Finished,This action will occur when a Quality Inspection Test has changed to the finished state.,IWXQIQualityInspectionTest)]
procedure OnTestFinished(pguidTestID: Guid, pcodTestNo: Code[20], pguidSourceRecordID: Guid, pcodSourceDocumentNo: Code[20], pcodSourceItemNo: Code[20], pcodSourceVariantCode: Code[10], pcodSourceLotNo: Code[50], pcodSourceSerialNo: Code[50], pcodGradeCode: Code[20])
Parameters
Name Type Description
pguidTestID Guid

The system ID of the quality inspection test

pcodTestNo Code[20]

The quality inspection test no.

pguidSourceRecordID Guid

The system ID of the source record

pcodSourceDocumentNo Code[20]

The source document no. from the test

pcodSourceItemNo Code[20]

The source item no. associated with the test

pcodSourceVariantCode Code[10]

If variants are used then the source variant on the test

pcodSourceLotNo Code[50]

The lot number associated with the test

pcodSourceSerialNo Code[50]

The serial number associated with the test

pcodGradeCode Code[20]

The current grade of the test

OnTestReOpened

This action will occur when a Quality Inspection Test has been re-opened.
This is exposed with ExternalBusinessEvent and intended to be used in PowerAutomate

[ExternalBusinessEvent(IWXQIOnTestReOpened,Quality Inspection Test Re-Opened,This action will occur when a Quality Inspection Test has been re-opened.,IWXQIQualityInspectionTest)]
procedure OnTestReOpened(pguidTestID: Guid, pcodTestNo: Code[20], pguidSourceRecordID: Guid, pcodSourceDocumentNo: Code[20], pcodSourceItemNo: Code[20], pcodSourceVariantCode: Code[10], pcodSourceLotNo: Code[50], pcodSourceSerialNo: Code[50], pcodGradeCode: Code[20])
Parameters
Name Type Description
pguidTestID Guid

The system ID of the quality inspection test

pcodTestNo Code[20]

The quality inspection test no.

pguidSourceRecordID Guid

The system ID of the source record

pcodSourceDocumentNo Code[20]

The source document no. from the test

pcodSourceItemNo Code[20]

The source item no. associated with the test

pcodSourceVariantCode Code[10]

If variants are used then the source variant on the test

pcodSourceLotNo Code[50]

The lot number associated with the test

pcodSourceSerialNo Code[50]

The serial number associated with the test

pcodGradeCode Code[20]

The current grade of the test

OnTestChanged

This action will occur when a Quality Inspection Test has changed.
This is exposed with ExternalBusinessEvent and intended to be used in PowerAutomate

[ExternalBusinessEvent(IWXQIOnTestChanged,Quality Inspection Test Changed,This action will occur when a Quality Inspection Test has changed.,IWXQIQualityInspectionTest)]
procedure OnTestChanged(pguidTestID: Guid, pcodTestNo: Code[20], pguidSourceRecordID: Guid, pcodSourceDocumentNo: Code[20], pcodSourceItemNo: Code[20], pcodSourceVariantCode: Code[10], pcodSourceLotNo: Code[50], pcodSourceSerialNo: Code[50], pcodGradeCode: Code[20])
Parameters
Name Type Description
pguidTestID Guid

The system ID of the quality inspection test

pcodTestNo Code[20]

The quality inspection test no.

pguidSourceRecordID Guid

The system ID of the source record

pcodSourceDocumentNo Code[20]

The source document no. from the test

pcodSourceItemNo Code[20]

The source item no. associated with the test

pcodSourceVariantCode Code[10]

If variants are used then the source variant on the test

pcodSourceLotNo Code[50]

The lot number associated with the test

pcodSourceSerialNo Code[50]

The serial number associated with the test

pcodGradeCode Code[20]

The current grade of the test

OnTestAssigned

This will occur when the assignment changes on any given test.

[ExternalBusinessEvent(IWXQIOnTestAssigned,Quality Inspection Test Assigned,This action will occur when a Quality Inspection Test has been assigned.,IWXQIQualityInspectionTest)]
procedure OnTestAssigned(pguidTestID: Guid, pcodTestNo: Code[20], pguidSourceRecordID: Guid, pcodSourceDocumentNo: Code[20], pcodSourceItemNo: Code[20], pcodSourceVariantCode: Code[10], pcodSourceLotNo: Code[50], pcodSourceSerialNo: Code[50], pcodGradeCode: Code[20], pcodUserThatChangedAssignment: Code[50], pcodPreviousAssignedUser: Code[50], pcodNewAssignedUser: Code[50])
Parameters
Name Type Description
pguidTestID Guid

The system ID of the quality inspection test

pcodTestNo Code[20]

The quality inspection test no.

pguidSourceRecordID Guid

The system ID of the source record

pcodSourceDocumentNo Code[20]

The source document no. from the test

pcodSourceItemNo Code[20]

The source item no. associated with the test

pcodSourceVariantCode Code[10]

If variants are used then the source variant on the test

pcodSourceLotNo Code[50]

The lot number associated with the test

pcodSourceSerialNo Code[50]

The serial number associated with the test

pcodGradeCode Code[20]

The current grade of the test

pcodUserThatChangedAssignment Code[50]

The user that changed the assignment

pcodPreviousAssignedUser Code[50]

The previous user assignment

pcodNewAssignedUser Code[50]

The new user assignment

OnReTestCreated

This action will occur when a new re-Test has been created.
This is exposed with ExternalBusinessEvent and intended to be used in PowerAutomate

[ExternalBusinessEvent(IWXQIOnReTestCreated,Quality Inspection ReTest Created,This action will occur when a re-test has been created.,IWXQIQualityInspectionTest)]
procedure OnReTestCreated(pguidTestID: Guid, pcodTestNo: Code[20], pguidSourceRecordID: Guid, pcodSourceDocumentNo: Code[20], pcodSourceItemNo: Code[20], pcodSourceVariantCode: Code[10], pcodSourceLotNo: Code[50], pcodSourceSerialNo: Code[50], pcodGradeCode: Code[20])
Parameters
Name Type Description
pguidTestID Guid

The system record id of the newly created test

pcodTestNo Code[20]

The test document no.

pguidSourceRecordID Guid

The source record id of the record that triggered the test

pcodSourceDocumentNo Code[20]

The source document no.

pcodSourceItemNo Code[20]

The source item no.

pcodSourceVariantCode Code[10]

The source variant code.

pcodSourceLotNo Code[50]

The source lot number.

pcodSourceSerialNo Code[50]

The source serial number.

pcodGradeCode Code[20]

The current grade of the test


Codeunit “IWX QI Inventory”

ID 23067664Namespace: InsightWorks.QualityInspection.Integration

Obsolete

This element will become obsolete from version 7.21. Replaced with dispositions.

Obsolete. Do not use.

Properties

Name Value
ObsoleteState Pending
ObsoleteReason Replaced with dispositions.
ObsoleteTag 7.21

Methods

MoveInventory

Obsolete

This element will become obsolete from version 7.17. Use a move disposition instead, such as “IWX QI Disp. Move Auto Choose”

MoveInventory will move the inventory with an item reclass
or warehouse item reclass depending on the location configuration.

[Obsolete(Use a move disposition instead, such as "IWX QI Disp. Move Auto Choose",7.17)]
procedure MoveInventory(precTest: Record "IWX QI Test", pcodToLocationCode: Code[10], pcodToBinCode: Code[20], pdQuantity: Decimal, pbMoveAllForLotSerial: Boolean, pbPostImmediately: Boolean, ptxtOptionalSourceLocationFilter: Text, ptxtOptionalSourceBinFilter: Text): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

record “IWX QI Test”.

pcodToLocationCode Code[10]

Code[10].

pcodToBinCode Code[20]

Code[10].

pdQuantity Decimal

Decimal.

pbMoveAllForLotSerial Boolean

Boolean.

pbPostImmediately Boolean

Boolean.

ptxtOptionalSourceLocationFilter Text

Text.

ptxtOptionalSourceBinFilter Text

Text.

Returns
Type Description
Boolean

Return variable rbDidSomething of type Boolean.

SetQuarantineStateRelatedLicensePlates

Obsolete

This element will become obsolete from version 7.21. Use disposition “IWX QI Disp. License Plate” instead.

Obsolete. Quarantine and Un-Quarantine a license plate

[Obsolete(Use disposition "IWX QI Disp. License Plate" instead.,7.21)]
procedure SetQuarantineStateRelatedLicensePlates(precTest: Record "IWX QI Test", pbShouldQuarantine: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The quality inspection test involved

pbShouldQuarantine Boolean

ShowRelatedLicensePlates

Obsolete

This element will become obsolete from version 7.21. Use disposition “IWX QI Disp. License Plate” instead.

[Obsolete(Use disposition "IWX QI Disp. License Plate" instead.,7.21)]
procedure ShowRelatedLicensePlates(precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

CreatePutAways

Obsolete

This element will become obsolete from version 7.19. Replaced by CreatePutAways() with Move Behavior Enum

[Obsolete(Replaced by CreatePutAways() with Move Behavior Enum,7.19)]
procedure CreatePutAways(precTest: Record "IWX QI Test", pdQuantity: Decimal, pbMoveAllForLotSerial: Boolean, ptxtOptionalSourceLocationFilter: Text, ptxtOptionalSourceBinFilter: Text, var precOutCreatedWhseInternalPutAwayHeader: Record "Whse. Internal Put-away Header", var precOutCreatedWhsePutAwayHeader: Record "Warehouse Activity Header", pePutAwayBehavior: Enum "IWX QI Put-away Behavior"): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pdQuantity Decimal
pbMoveAllForLotSerial Boolean
ptxtOptionalSourceLocationFilter Text
ptxtOptionalSourceBinFilter Text
precOutCreatedWhseInternalPutAwayHeader Record “Whse. Internal Put-away Header”
precOutCreatedWhsePutAwayHeader Record “Warehouse Activity Header”
pePutAwayBehavior Enum InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI Put-away Behavior”
Returns
Type Description
Boolean

MoveInventory

Obsolete

This element will become obsolete from version 7.19. Replaced by MoveInventory() with Move Behavior Enum

[Obsolete(Replaced by MoveInventory() with Move Behavior Enum,7.19)]
procedure MoveInventory(precTest: Record "IWX QI Test", pcodToLocationCode: Code[10], pcodToBinCode: Code[20], pdQuantity: Decimal, pbMoveAllForLotSerial: Boolean, pbPostImmediately: Boolean, ptxtOptionalSourceLocationFilter: Text, ptxtOptionalSourceBinFilter: Text, pbUseMovement: Boolean): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pcodToLocationCode Code[10]
pcodToBinCode Code[20]
pdQuantity Decimal
pbMoveAllForLotSerial Boolean
pbPostImmediately Boolean
ptxtOptionalSourceLocationFilter Text
ptxtOptionalSourceBinFilter Text
pbUseMovement Boolean
Returns
Type Description
Boolean

MoveInventory

Obsolete

This element will become obsolete from version 7.21. Replaced by move dispositions. Use “IWX QI Disp. Move Auto Choose” or a more specific disposition instead.

[Obsolete(Replaced by move dispositions. Use "IWX QI Disp. Move Auto Choose" or a more specific disposition instead.,7.21)]
procedure MoveInventory(precTest: Record "IWX QI Test", pcodToLocationCode: Code[10], pcodToBinCode: Code[20], pdQuantity: Decimal, pbPostImmediately: Boolean, ptxtOptionalSourceLocationFilter: Text, ptxtOptionalSourceBinFilter: Text, pbUseMovement: Boolean, peMoveBehavior: Enum "IWX QI Move Behavior"): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pcodToLocationCode Code[10]
pcodToBinCode Code[20]
pdQuantity Decimal
pbPostImmediately Boolean
ptxtOptionalSourceLocationFilter Text
ptxtOptionalSourceBinFilter Text
pbUseMovement Boolean
peMoveBehavior Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Move Behavior”
Returns
Type Description
Boolean

CreateNegativeAdjustment

Obsolete

This element will become obsolete from version 7.21. Replaced by negative inventory disposition. Use IWX QI Disp. Neg. Adjust Inv. instead.

Creates a negative adjustment using the information from a given Quality Inspection Test.

[Obsolete(Replaced by negative inventory disposition. Use IWX QI Disp. Neg. Adjust Inv. instead. ,7.21)]
procedure CreateNegativeAdjustment(var precTest: Record "IWX QI Test", pdOptionalSpecificQuantity: Decimal, peMoveBehavior: Enum "IWX QI Move Behavior", ptxtOptionalSourceLocationFilter: Text, ptxtOptionalSourceBinFilter: Text, pePostingBehavior: Enum "IWX QI Item Adj. Post Behavior", pcodReason: Code[10], var prrefOutAdjustmentLine: RecordRef, var pdOutTotalAdjustedBaseQuantity: Decimal): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

pdOptionalSpecificQuantity Decimal

Quantity to remove, if moving a specific quantity

peMoveBehavior Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Move Behavior”

Removal behavior: remove a specific quantity, tracked quantity, sample size, or sample pass/fail quantity

ptxtOptionalSourceLocationFilter Text

Optional additional location filter for item on test

ptxtOptionalSourceBinFilter Text

Optional additional bin filter for item on test

pePostingBehavior Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Item Adj. Post Behavior”

Whether to create journal entries, register a warehouse item journal, or post an item journal

pcodReason Code[10]

Reason for the negative adjustment

prrefOutAdjustmentLine RecordRef

Created Warehouse Item Journal or Item Journal Line if a single bin was adjusted. Will be empty if multiple bins were adjusted.

pdOutTotalAdjustedBaseQuantity Decimal

Total adjusted quantity

Returns
Type Description
Boolean

Boolean value true if a journal line was inserted

ChangeItemTracking

Obsolete

This element will become obsolete from version 7.21. Use dispositions IWX QI Reaction – Change Trkng direction instead.

Use dispositions IWX QI Reaction – Change Trkng direction instead.

[Obsolete(Use dispositions IWX QI Reaction - Change Trkng direction instead.,7.21)]
procedure ChangeItemTracking(var precTest: Record "IWX QI Test", var pdQuantity: Decimal, peMoveBehavior: Enum "IWX QI Move Behavior", ptxtOptionalSourceLocationFilter: Text, ptxtOptionalSourceBinFilter: Text, pbPostImmediately: Boolean, var pcodNewLot: Code[50], var pcodNewSerial: Code[50], var pcodNewPackage: Code[50], var pdtNewExpiration: Date, var pdOutTotalChangedBaseQty: Decimal): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pdQuantity Decimal
peMoveBehavior Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Move Behavior”
ptxtOptionalSourceLocationFilter Text
ptxtOptionalSourceBinFilter Text
pbPostImmediately Boolean
pcodNewLot Code[50]
pcodNewSerial Code[50]
pcodNewPackage Code[50]
pdtNewExpiration Date
pdOutTotalChangedBaseQty Decimal
Returns
Type Description
Boolean

CreateTransfer

Obsolete

This element will become obsolete from version 7.21. Use disposition “IWX QI Disp. Transfer” instead.

[Obsolete(Use disposition "IWX QI Disp. Transfer" instead.,7.21)]
procedure CreateTransfer(var precTest: Record "IWX QI Test", var pdQuantity: Decimal, peMoveBehavior: Enum "IWX QI Move Behavior", pcodToLocationCode: Code[10], ptxtOptionalSourceLocationFilter: Text, ptxtOptionalSourceBinFilter: Text, pbDirectTransfer: Boolean, pcodInTransit: Code[10], var precOutTransferHeader: Record "Transfer Header"): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pdQuantity Decimal
peMoveBehavior Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Move Behavior”
pcodToLocationCode Code[10]
ptxtOptionalSourceLocationFilter Text
ptxtOptionalSourceBinFilter Text
pbDirectTransfer Boolean
pcodInTransit Code[10]
precOutTransferHeader Record “Transfer Header”
Returns
Type Description
Boolean

Codeunit “IWX QI Production Integration”

ID 23067642Namespace: InsightWorks.QualityInspection.Integration.Production

Used to integrate with production related events.

Properties

Name Value
SingleInstance True

Methods

PromptCreateQualityInspectorTemplateFromStandardTaskQualityMeasures

procedure PromptCreateQualityInspectorTemplateFromStandardTaskQualityMeasures(var precStandardTaskQualityMeasure: Record "Standard Task Quality Measure")
Parameters
Name Type Description
precStandardTaskQualityMeasure Record “Standard Task Quality Measure”

PromptCreateQualityInspectorTemplateFromRoutingQualityMeasures

Asks the users if they want to create a quality inspection template based on these measures.
The intent of this function is to assist with migrations to Quality Inspector.
This can also update an existing template.

procedure PromptCreateQualityInspectorTemplateFromRoutingQualityMeasures(var precRoutingQualityMeasure: Record "Routing Quality Measure")
Parameters
Name Type Description
precRoutingQualityMeasure Record “Routing Quality Measure”

CreateTemplateFromRoutingQualityMeasures

Creates or updates a quality inspection template based on measures in this routing.
This exists to help people migrate to Quality Inspector from base business central quality inspections.

procedure CreateTemplateFromRoutingQualityMeasures(var precRoutingQualityMeasure: Record "Routing Quality Measure", pbSyncWithValuesNotFormula: Boolean, pbCreateGenerationRuleIfNone: Boolean, var precOutTemplate: Record "IWX QI Template"): Boolean
Parameters
Name Type Description
precRoutingQualityMeasure Record “Routing Quality Measure”
pbSyncWithValuesNotFormula Boolean

Set to true if the intent is a 1 way copy for the purpose of migrating quality measures. Set to false if the intent is to use the data jointly.

pbCreateGenerationRuleIfNone Boolean
precOutTemplate Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template”
Returns
Type Description
Boolean

CreateTemplateFromStandardTaskQualityMeasures

Creates or updates a quality inspection template based on measures in this standard task.
This exists to help people migrate to Quality Inspector from base business central quality inspections.

procedure CreateTemplateFromStandardTaskQualityMeasures(var precStandardTaskQualityMeasure: Record "Standard Task Quality Measure", pbSyncWithValuesNotFormula: Boolean, pbCreateGenerationRuleIfNone: Boolean, var precOutTemplate: Record "IWX QI Template"): Boolean
Parameters
Name Type Description
precStandardTaskQualityMeasure Record “Standard Task Quality Measure”
pbSyncWithValuesNotFormula Boolean

Set to true if the intent is a 1 way copy for the purpose of migrating quality measures. Set to false if the intent is to use the data jointly.

pbCreateGenerationRuleIfNone Boolean
precOutTemplate Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template”
Returns
Type Description
Boolean

Events

OnBeforeAttemptCreateTestFromPostedAssembly

Provides an opportunity to modify the automated assembly output Quality Inspection Test creation behavior.

[IntegrationEvent(False,False)]
procedure OnBeforeAttemptCreateTestFromPostedAssembly(var precAssemblyHeader: Record "Assembly Header", var precPostedAssemblyHeader: Record "Posted Assembly Header", var ptrecTrackingSpecification: Record "Tracking Specification" temporary, var precTest: Record "IWX QI Test", var pbHandled: Boolean)
Parameters
Name Type Description
precAssemblyHeader Record “Assembly Header”

Assembly Header

precPostedAssemblyHeader Record “Posted Assembly Header”

Posted Assembly Header

ptrecTrackingSpecification Record “Tracking Specification” temporary

Tracking Specification

precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test to be created

pbHandled Boolean

Provides an opportunity to replace the default behavior

OnAfterAttemptCreateTestFromPostedAssembly

Provides an opportunity to modify the automatically created Quality Inspection Test after assembly output.

[IntegrationEvent(False,False)]
procedure OnAfterAttemptCreateTestFromPostedAssembly(var precAssemblyHeader: Record "Assembly Header", var precPostedAssemblyHeader: Record "Posted Assembly Header", var ptrecTrackingSpecification: Record "Tracking Specification" temporary, var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precAssemblyHeader Record “Assembly Header”

Assembly Header

precPostedAssemblyHeader Record “Posted Assembly Header”

Posted Assembly Header

ptrecTrackingSpecification Record “Tracking Specification” temporary

Tracking Specification

precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

created Quality Inspection Test

OnBeforeUpdateWarehouseActivityLineWithPutAwayInspectionBin

Provides an opportunity to modify the place put away line with a put-away inspection bin.

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateWarehouseActivityLineWithPutAwayInspectionBin(var precWarehouseActivityLine: Record "Warehouse Activity Line", var precProdOrderLine: Record "Prod. Order Line", var ptrecProdOrdLineTrackingBuffer: Record "Prod. Ord. Line Tracking Buff." temporary, var DoNotFillQtytoHandle: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
precWarehouseActivityLine Record “Warehouse Activity Line”

Warehouse Activity Line

precProdOrderLine Record “Prod. Order Line”

Warehouse Activity Line

ptrecProdOrdLineTrackingBuffer Record “Prod. Ord. Line Tracking Buff.” temporary

Warehouse Activity Line

DoNotFillQtytoHandle Boolean

Warehouse Activity Line

pbHandled Boolean

Provides an opportunity to replace the default behavior


Codeunit “IWX QI Receiving Integration”

ID 23067646Namespace: InsightWorks.QualityInspection.Integration.Receiving

Properties

Name Value
SingleInstance True

Events

OnBeforeUpdateWarehouseActivityLineWithPutAwayInspectionBin

Provides an opportunity to modify the place put-away line with an inspection put-away bin.

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateWarehouseActivityLineWithPutAwayInspectionBin(var precWarehouseActivityLine: Record "Warehouse Activity Line", var pbHandled: Boolean)
Parameters
Name Type Description
precWarehouseActivityLine Record “Warehouse Activity Line”

Warehouse Activity Line

pbHandled Boolean

Provides an opportunity to replace the default behavior


Codeunit “IWX QI Sales Integration”

ID 23067696Namespace: InsightWorks.QualityInspection.Integration.Sales

Event handlers to help with sales specific related transactions.

Properties

Name Value
InherentPermissions X

Codeunit “IWX QI Adaptive Card Generator”

ID 23067694Namespace: InsightWorks.QualityInspection.Integration.Teams

Generates Microsoft Teams adaptive card syntax to collect quality inspection data.
Requires a minimum of Business Central BC 26.

Methods

GenerateAdaptiveCardForTest

Generates an adaptive card in JSON format for a given Quality Inspection Test.

procedure GenerateAdaptiveCardForTest(var precTest: Record "IWX QI Test"): Text
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

The Quality Inspection Test record.

Returns
Type Description
Text

A JSON string representing the adaptive card.

ProcessAdaptiveCardResponse

Processes the JSON response from an adaptive card and updates the corresponding quality inspection data.

procedure ProcessAdaptiveCardResponse(ptxtJsonResponse: Text)
Parameters
Name Type Description
ptxtJsonResponse Text

The JSON response from the adaptive card as a text string.

Events

OnBeforeGenerateAdaptiveCardForTest

Provides an opportunity to completely replace how an adaptive card is generated for a quality inspection test.

[IntegrationEvent(False,False)]
local procedure OnBeforeGenerateAdaptiveCardForTest(var precTest: Record "IWX QI Test", var rtxtJsonCard: Text, var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
rtxtJsonCard Text
pbHandled Boolean

OnAfterGenerateAdaptiveCardForTestBeforeSend

Occurs after adaptive card generation has occurred but before the json
object has been converted to text.

[IntegrationEvent(False,False)]
local procedure OnAfterGenerateAdaptiveCardForTestBeforeSend(var precTest: Record "IWX QI Test", var pjoCard: JsonObject)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pjoCard JsonObject

OnBuildSourceControlInformationFactbox

Use this to extend the source control information factbox when an adaptive card is generated.

[IntegrationEvent(False,False)]
local procedure OnBuildSourceControlInformationFactbox(var precTest: Record "IWX QI Test", var pjoArrayFacts: JsonArray, var rjoOutControlInformation: JsonObject)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pjoArrayFacts JsonArray
rjoOutControlInformation JsonObject

OnBeforeProcessAdaptiveCardResponse

Occurs before an adaptive card response is handled. Use this to completely replace
how adaptive card responses are handled.

[IntegrationEvent(False,False)]
local procedure OnBeforeProcessAdaptiveCardResponse(var ptxtJsonResponse: Text, var pbHandled: Boolean)
Parameters
Name Type Description
ptxtJsonResponse Text
pbHandled Boolean

OnBeforeUpdateValueFromAdaptiveCardResponse

Use this to extend or replace how a value is updated.

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateValueFromAdaptiveCardResponse(var ptxtJsonResponse: Text, var precTest: Record "IWX QI Test", var pbHandled: Boolean)
Parameters
Name Type Description
ptxtJsonResponse Text
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbHandled Boolean

OnProcessAdaptiveCardCustomActionCommand

Use this to extend or replace how adaptive card commands are processed.

[IntegrationEvent(False,False)]
local procedure OnProcessAdaptiveCardCustomActionCommand(var ptxtJsonResponse: Text, var ptxtActionCommand: Text, var pbHandled: Boolean)
Parameters
Name Type Description
ptxtJsonResponse Text
ptxtActionCommand Text
pbHandled Boolean

OnBeforeAddActionToAdaptiveCardResponse

Use this to change how actions are added to adaptive card responses.

[IntegrationEvent(False,False)]
local procedure OnBeforeAddActionToAdaptiveCardResponse(var ptxtActionTitle: Text, var ptxtActionCommand: Text, var precTest: Record "IWX QI Test", var pjaActions: JsonArray, var pbHandled: Boolean)
Parameters
Name Type Description
ptxtActionTitle Text
ptxtActionCommand Text
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pjaActions JsonArray
pbHandled Boolean

OnBeforeAddInputControlToContainer

Use this to change how a specific control is rendered.

[IntegrationEvent(False,False)]
local procedure OnBeforeAddInputControlToContainer(var precTestLine: Record "IWX QI Test Line", var pjaItems: JsonArray, var pbHandled: Boolean)
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
pjaItems JsonArray
pbHandled Boolean

OnBeforeAddSampleInputControlToContainer

Use OnBeforeAddSampleInputControlToContainer to change how samples are rendered.

[IntegrationEvent(False,False)]
local procedure OnBeforeAddSampleInputControlToContainer(var precTestLine: Record "IWX QI Test Line", var precTestLineSample: Record "IWX QI Test Line Sample", var pjaItems: JsonArray, var pbHandled: Boolean)
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
precTestLineSample Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”
pjaItems JsonArray
pbHandled Boolean

Codeunit “IWX QI Transfer Integration”

ID 23067697Namespace: InsightWorks.QualityInspection.Integration.Transfer

Event handlers to help with transfer specific related transactions.

Properties

Name Value
InherentPermissions X

Codeunit “IWX QI – Warehouse Integration”

ID 23067673Namespace: InsightWorks.QualityInspection.Integration.Warehousing

Properties

Name Value
SingleInstance True

Methods

GetOptionalSourceVariantForWarehouseJournalLine

Gets the source variant for the warehouse journal line.

procedure GetOptionalSourceVariantForWarehouseJournalLine(var precWarehouseJournalLine: Record "Warehouse Journal Line", var pvarOptionalSourceRecordVariant: Variant): Boolean
Parameters
Name Type Description
precWarehouseJournalLine Record “Warehouse Journal Line”
pvarOptionalSourceRecordVariant Variant
Returns
Type Description
Boolean

CollectSourceItemTracking

Collects the source item tracking.

procedure CollectSourceItemTracking(var pvarOptionalSourceLineVariant: Variant, var ptrecOutTrackingSpecification: Record "Tracking Specification" temporary)
Parameters
Name Type Description
pvarOptionalSourceLineVariant Variant
ptrecOutTrackingSpecification Record “Tracking Specification” temporary

HasPutAwayInspectionBin

Checks if the warehouse activity line is eligible to be used to update the inspection required bin for the place put-away line.

procedure HasPutAwayInspectionBin(var precWarehouseActivityLine: Record "Warehouse Activity Line", var ptrecTrackingSpecification: Record "Tracking Specification" temporary): Boolean
Parameters
Name Type Description
precWarehouseActivityLine Record “Warehouse Activity Line”

Warehouse Activity Line

ptrecTrackingSpecification Record “Tracking Specification” temporary

Tracking Specification

Returns
Type Description
Boolean

True if the warehouse activity line is eligible, false otherwise

UpdatePutAwayLineWithInspectionPutAwayBin

Updates the place put-away line with the inspection put-away bin. If the quantity to test is the full outstanding qty,
it will update the place put-away line with the inspection put-away bin.
If the quantity to test is not the full outstanding qty (sampling),
it will split the place put-away line into 2, one for the sample qty (updated to the inspection put-away bin), and one for the rest.

procedure UpdatePutAwayLineWithInspectionPutAwayBin(var precTakePutAwayLine: Record "Warehouse Activity Line", var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTakePutAwayLine Record “Warehouse Activity Line”

Take Put-away Line

precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test

Events

OnBeforeAssignInspectionRequiredBinToPutAwayLine

Provides an opportunity to modify the put away line before assigning an inspection required bin.

[IntegrationEvent(False,False)]
local procedure OnBeforeAssignInspectionRequiredBinToPutAwayLine(var precTakePutAwayLine: Record "Warehouse Activity Line", var precTest: Record "IWX QI Test", var precInspectionBin: Record "IWX QI Inspection Bin", var precPlacePutAwayLine: Record "Warehouse Activity Line", var precNewPlacePutAwayLine: Record "Warehouse Activity Line", var lcodInspectionBin: Code[20], var lbHandled: Boolean)
Parameters
Name Type Description
precTakePutAwayLine Record “Warehouse Activity Line”

Warehouse Activity Line

precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test with the sample quantity to be placed in the inspection required bin

precInspectionBin Table InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI Inspection Bin”

Inspection Bin

precPlacePutAwayLine Record “Warehouse Activity Line”

Place Put-away line

precNewPlacePutAwayLine Record “Warehouse Activity Line”

New Put-away line from split

lcodInspectionBin Code[20]

Inspection Bin Code

lbHandled Boolean

Provides an opportunity to replace the default behavior

OnBeforeSplitWarehouseActivityLineForInspectionRequiredBin

Provides an opportunity to modify the place put away line split line behavior to update lines with an inspection required bin.

[IntegrationEvent(False,False)]
local procedure OnBeforeSplitWarehouseActivityLineForInspectionRequiredBin(var precTakePutAwayLine: Record "Warehouse Activity Line", var precTest: Record "IWX QI Test", var precInspectionBin: Record "IWX QI Inspection Bin", var precPlacePutAwayLine: Record "Warehouse Activity Line", var precNewPlacePutAwayLine: Record "Warehouse Activity Line", var pdRemainingQty: Decimal, var pbHandled: Boolean)
Parameters
Name Type Description
precTakePutAwayLine Record “Warehouse Activity Line”

Warehouse Activity Line

precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test with the sample quantity to be placed in the inspection required bin

precInspectionBin Table InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI Inspection Bin”

Inspection Bin

precPlacePutAwayLine Record “Warehouse Activity Line”

Place Put-away line

precNewPlacePutAwayLine Record “Warehouse Activity Line”

New Put-away line from split

pdRemainingQty Decimal

Remaining Quantity to be put away in non-inspection bins

pbHandled Boolean

Provides an opportunity to replace the default behavior

OnAfterAssignInspectionRequiredBinToPutAwayLine

Provides an opportunity to modify the put away line after assigning an inspection required bin.

[IntegrationEvent(False,False)]
local procedure OnAfterAssignInspectionRequiredBinToPutAwayLine(var precTakePutAwayLine: Record "Warehouse Activity Line", var precTest: Record "IWX QI Test", var precInspectionBin: Record "IWX QI Inspection Bin", var precPlacePutAwayLine: Record "Warehouse Activity Line", var precNewPutAwayLine: Record "Warehouse Activity Line")
Parameters
Name Type Description
precTakePutAwayLine Record “Warehouse Activity Line”

Warehouse Activity Line

precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Test with the sample quantity to be placed in the inspection required bin

precInspectionBin Table InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI Inspection Bin”

Inspection Bin

precPlacePutAwayLine Record “Warehouse Activity Line”

Warehouse Activity Line

precNewPutAwayLine Record “Warehouse Activity Line”

New Warehouse Activity Line


Codeunit “IWX QI Job Queue Management”

ID 23067690Namespace: InsightWorks.QualityInspection.Integrations.JobQueue

This codeunit is intended to help with job queue management.

Methods

IsJobQueueCreated

Yes or no if there is already a job queue that is configured for this test generation rule.

procedure IsJobQueueCreated(pcodScheduleGroup: Code[20]): Boolean
Parameters
Name Type Description
pcodScheduleGroup Code[20]
Returns
Type Description
Boolean

PromptCreateJobQueueEntryIfMissing

If a job queue entry already exists for this schedule group, it will exit silently.
If a job queue entry does not yet exist for this schedule group and it’s an interactive session
then they will be prompted if they want one.
If they are not interactive it will just create one.

procedure PromptCreateJobQueueEntryIfMissing(pcodScheduleGroup: Code[20])
Parameters
Name Type Description
pcodScheduleGroup Code[20]

PromptCreateJobQueueEntry

Creates another job queue entry.

procedure PromptCreateJobQueueEntry(pcodScheduleGroup: Code[20])
Parameters
Name Type Description
pcodScheduleGroup Code[20]

DeleteJobQueueIfNothingElseIsUsingThisGroup

This will delete the job queue if no other test generation rules are using it.

procedure DeleteJobQueueIfNothingElseIsUsingThisGroup(precRuleToIgnore: Record "IWX QI Generation Rule", pcodScheduleGroupToConsiderRemoving: Code[20])
Parameters
Name Type Description
precRuleToIgnore Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”

Ignore this rule, i.e if you are validating the rule in-progress.

pcodScheduleGroupToConsiderRemoving Code[20]

RunPageLookupJobQueueEntriesForScheduleGroup

Runs a page that finds related job queue entries for this category and then displays them.

procedure RunPageLookupJobQueueEntriesForScheduleGroup(pcodScheduleGroup: Code[20])
Parameters
Name Type Description
pcodScheduleGroup Code[20]

TestIfGenerationRuleCanBeScheduled

Tests if the rule can be scheduled. If it cannot an error will be thrown.

procedure TestIfGenerationRuleCanBeScheduled(var precTestThisGenerationRule: Record "IWX QI Generation Rule")
Parameters
Name Type Description
precTestThisGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”

Codeunit “IWX QI Inventory Availability”

ID 23067680Namespace: InsightWorks.QualityInspection.Inventory

This codeunit’s responsibility is to help find inventory availability.

Methods

GetCurrentLocationOfTrackedInventory

GetCurrentLocationOfTrackedInventory gets the current location of the item+lot defined on the test.
If multiple locations/bins are determined then those multiple locations/bins are supplied in ptrecOutBinContent

procedure GetCurrentLocationOfTrackedInventory(precTest: Record "IWX QI Test", var ptrecOutBinContent: Record "Bin Content" temporary): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

record “IWX QI Test”.

ptrecOutBinContent Record “Bin Content” temporary

Temporary VAR Record “Bin Content”. Multiple bin locations could be available.

Returns
Type Description
Boolean

Return variable rbCouldFind of type Boolean.

GetFromDetailsFromTestSource

procedure GetFromDetailsFromTestSource(precTest: Record "IWX QI Test", var ptrecBinContentToMove: Record "Bin Content" temporary)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecBinContentToMove Record “Bin Content” temporary

GetPassOrFailSamplesCount

Looks at sampling fields to determine number of passed or failed samples. This can exceed the sample size to allow for oversampling.
Pass Conditions: the samples must have passed all sampling field measurements
Fail Conditions: One or more fail grades for a sample designates it as failed.

procedure GetPassOrFailSamplesCount(var precTest: Record "IWX QI Test", peQuantityBehavior: Enum "IWX QI Quantity Behavior"): Decimal
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
peQuantityBehavior Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Quantity Behavior”
Returns
Type Description
Decimal

either the pass quantity or fail quantity.

GetPassOrFailSamplesCount

Obsolete

This element will become obsolete from version 7.21. Use GetPassOrFailSamplesCount with Quantity Behavior instead.

[Obsolete(Use GetPassOrFailSamplesCount with Quantity Behavior instead.,7.21)]
procedure GetPassOrFailSamplesCount(precTest: Record "IWX QI Test", peMoveBehavior: Enum "IWX QI Move Behavior", var piOutSampleCount: Decimal)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
peMoveBehavior Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Move Behavior”
piOutSampleCount Decimal

PopulateQuantityBuffer

Populates the quantity buffer in ptrecOutQuantityDispositionBuffer.

procedure PopulateQuantityBuffer(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var ptrecOutQuantityDispositionBuffer: Record "IWX QI Disposition Buffer" temporary)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
ptrecOutQuantityDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”

The result.

Events

OnBeforePopulateBinContentBuffer

[IntegrationEvent(False,False)]
procedure OnBeforePopulateBinContentBuffer(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var ptrecOutQuantityDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var ptrecExistingInventoryBinContent: Record "Bin Content" temporary, var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
ptrecOutQuantityDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
ptrecExistingInventoryBinContent Record “Bin Content” temporary
pbHandled Boolean

OnAfterPopulateBinContentBuffer

[IntegrationEvent(False,False)]
procedure OnAfterPopulateBinContentBuffer(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var ptrecOutQuantityDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var ptrecExistingInventoryBinContent: Record "Bin Content" temporary)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
ptrecOutQuantityDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
ptrecExistingInventoryBinContent Record “Bin Content” temporary

Codeunit “IWX QI Item Tracking Mgmt.”

ID 23067674Namespace: InsightWorks.QualityInspection.Inventory

Helps with item tracking management.

Properties

Name Value
EventSubscriberInstance Manual
Permissions TableData “Whse. Item Tracking Line” = rimd

Methods

CreateItemJournalLineReservationEntry

Obsolete

This element will become obsolete from version 7.21. Use CreateItemJournalLineReservationEntry that accepts a reservation entry instead.

Creates a corresponding Reservation Entry for an Item Journal Line.

[Obsolete(Use CreateItemJournalLineReservationEntry that accepts a reservation entry instead.,7.21)]
procedure CreateItemJournalLineReservationEntry(var precItemJournalLine: Record "Item Journal Line")
Parameters
Name Type Description
precItemJournalLine Record “Item Journal Line”

Item Journal Line

CreateItemJournalLineReservationEntry

Creates an item journal line reservation entry for the supplyed journal line.
Set the tracking on the line (no modify needed) to give the tracking instruction.

procedure CreateItemJournalLineReservationEntry(var precItemJournalLine: Record "Item Journal Line", var precOutCreatedActualReservationEntry: Record "Reservation Entry")
Parameters
Name Type Description
precItemJournalLine Record “Item Journal Line”
precOutCreatedActualReservationEntry Record “Reservation Entry”

GetExpirationDate

Gets the most recent expiration date for the given item,lot,serial/lot.

procedure GetExpirationDate(precTest: Record "IWX QI Test", pcodLocationCode: Code[10]): Date
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pcodLocationCode Code[10]
Returns
Type Description
Date

GetIsWarehouseTracked

Returns true if the item is lot warehouse, or serial warehouse, or package warehouse tracked.

procedure GetIsWarehouseTracked(pcodItemNumber: Code[20]): Boolean
Parameters
Name Type Description
pcodItemNumber Code[20]
Returns
Type Description
Boolean

GetItemTrackingCode

Returns true if the item tracking could be fetched or not.

procedure GetItemTrackingCode(pcodItemNumber: Code[20], var precOutItemTrackingCode: Record "Item Tracking Code"): Boolean
Parameters
Name Type Description
pcodItemNumber Code[20]
precOutItemTrackingCode Record “Item Tracking Code”
Returns
Type Description
Boolean

CreatePurchaseReturnReservationEntries

Adds/Removes Purchase Return Line item tracking entries. When used with serial numbers only one serial number can be created at a time.

procedure CreatePurchaseReturnReservationEntries(precPurchLine: Record "Purchase Line", pcodSerialNumber: Code[50], pcodLotNumber: Code[50], pcodPackageNumber: Code[50], pdtExpirationDate: Date, pdChangeQty: Decimal)
Parameters
Name Type Description
precPurchLine Record “Purchase Line”
pcodSerialNumber Code[50]
pcodLotNumber Code[50]
pcodPackageNumber Code[50]
pdtExpirationDate Date
pdChangeQty Decimal

CreateWarehouseJournalLineReservationEntry

Creates a new warehouse journal line reservation entry

procedure CreateWarehouseJournalLineReservationEntry(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precWarehouseJournalLine: Record "Warehouse Journal Line", var precOutWhseItemTrackingLine: Record "Whse. Item Tracking Line")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
precWarehouseJournalLine Record “Warehouse Journal Line”
precOutWhseItemTrackingLine Record “Whse. Item Tracking Line”

Events

OnBeforeCreatePurchaseReturnReservationEntries

[IntegrationEvent(False,False)]
local procedure OnBeforeCreatePurchaseReturnReservationEntries(var precPurchLine: Record "Purchase Line", var pcodSerialNumber: Code[50], var pcodLotNumber: Code[50], var pcodPackageNumber: Code[50], var pdtExpirationDate: Date, var pdChangeQty: Decimal, var pbHandled: Boolean)
Parameters
Name Type Description
precPurchLine Record “Purchase Line”
pcodSerialNumber Code[50]
pcodLotNumber Code[50]
pcodPackageNumber Code[50]
pdtExpirationDate Date
pdChangeQty Decimal
pbHandled Boolean

OnBeforeCreateWarehouseJournalLineReservationEntry

Occurs before a warehouse journal line reservation entry has been made as a result of a dispositoin.

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateWarehouseJournalLineReservationEntry(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precWhseJnlLine: Record "Warehouse Journal Line", var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
precWhseJnlLine Record “Warehouse Journal Line”
pbHandled Boolean

OnBeforeCreateItemJournalLineReservationEntry

Occurs before the item journal line reservation entry has been made.
Use this as an opportunity to replace the base behavior.

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateItemJournalLineReservationEntry(var precItemJournalLine: Record "Item Journal Line", var precOutCreatedActualReservationEntry: Record "Reservation Entry", var pbHandled: Boolean)
Parameters
Name Type Description
precItemJournalLine Record “Item Journal Line”
precOutCreatedActualReservationEntry Record “Reservation Entry”
pbHandled Boolean

OnAfterCreateItemJournalLineReservationEntry

Occurs after the item journal line reservation entry has been made.
Use this as an opportunity to extend the base behavior.

[IntegrationEvent(False,False)]
local procedure OnAfterCreateItemJournalLineReservationEntry(var precItemJournalLine: Record "Item Journal Line", var precReservationEntry: Record "Reservation Entry")
Parameters
Name Type Description
precItemJournalLine Record “Item Journal Line”
precReservationEntry Record “Reservation Entry”

OnAfterCreateWarehouseJournalLineReservationEntry

Occurs after the creation of a warehouse journal line reservation entry.

[IntegrationEvent(False,False)]
local procedure OnAfterCreateWarehouseJournalLineReservationEntry(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precWhseJnlLine: Record "Warehouse Journal Line", var precWhseItemTrackingLine: Record "Whse. Item Tracking Line")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
precWhseJnlLine Record “Warehouse Journal Line”
precWhseItemTrackingLine Record “Whse. Item Tracking Line”

Codeunit “IWX QI Journal Management”

ID 23067689Namespace: InsightWorks.QualityInspection.Inventory

Methods

CreateWarehouseJournalLine

This will create a warehouse journal line.
The kind of line it creates depends on the batch supplied and the instruction.

procedure CreateWarehouseJournalLine(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precWarehouseJournalBatch: Record "Warehouse Journal Batch", var precOutWarehouseJournalLine: Record "Warehouse Journal Line", var precOutWhseItemTrackingLine: Record "Whse. Item Tracking Line")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
precWarehouseJournalBatch Record “Warehouse Journal Batch”
precOutWarehouseJournalLine Record “Warehouse Journal Line”
precOutWhseItemTrackingLine Record “Whse. Item Tracking Line”

PostWarehouseJournal

Posts the supplied warehouse journal line based on the supplied test and instruction.

procedure PostWarehouseJournal(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precWarehouseJournalLine: Record "Warehouse Journal Line"): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
precWarehouseJournalLine Record “Warehouse Journal Line”
Returns
Type Description
Boolean

CreateItemJournalLine

Creates an item journal line in the appropriate batch.

procedure CreateItemJournalLine(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precItemJournalBatch: Record "Item Journal Batch", var precOutItemJournalLine: Record "Item Journal Line", var precOutReservationEntry: Record "Reservation Entry")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
precItemJournalBatch Record “Item Journal Batch”
precOutItemJournalLine Record “Item Journal Line”
precOutReservationEntry Record “Reservation Entry”

PostItemJournal

Posts the supplied item journal line.

procedure PostItemJournal(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precItemJournalLine: Record "Item Journal Line"): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
precItemJournalLine Record “Item Journal Line”
Returns
Type Description
Boolean

Events

OnBeforeGenericCreateWarehouseJournalLine

This is used for any warehouse journal line creation.

[IntegrationEvent(False,False)]
local procedure OnBeforeGenericCreateWarehouseJournalLine(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precWarehouseJournalBatch: Record "Warehouse Journal Batch", var precOutWarehouseJournalLine: Record "Warehouse Journal Line", var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
precWarehouseJournalBatch Record “Warehouse Journal Batch”
precOutWarehouseJournalLine Record “Warehouse Journal Line”
pbHandled Boolean

OnAfterGenericCreateWarehouseJournalLine

This is used for any warehouse journal line creation.

[IntegrationEvent(False,False)]
local procedure OnAfterGenericCreateWarehouseJournalLine(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precWarehouseJournalBatch: Record "Warehouse Journal Batch", var precOutWarehouseJournalLine: Record "Warehouse Journal Line")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
precWarehouseJournalBatch Record “Warehouse Journal Batch”
precOutWarehouseJournalLine Record “Warehouse Journal Line”

OnBeforeGenericCreateItemJournalLine

Provides an opportunity to extend or replace the creation of a generic item journal line.

[IntegrationEvent(False,False)]
local procedure OnBeforeGenericCreateItemJournalLine(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precItemJournalBatch: Record "Item Journal Batch", var precOutItemJournalLine: Record "Item Journal Line", var precOutReservationEntry: Record "Reservation Entry", var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
precItemJournalBatch Record “Item Journal Batch”
precOutItemJournalLine Record “Item Journal Line”
precOutReservationEntry Record “Reservation Entry”
pbHandled Boolean

OnAfterGenericCreateItemJournalLine

Occurs after a generic item journal line has been made, giving the opportunity
to extend or replace it’s functionality.

[IntegrationEvent(False,False)]
local procedure OnAfterGenericCreateItemJournalLine(var precTest: Record "IWX QI Test", var ptrecQuantityToActDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precItemJournalBatch: Record "Item Journal Batch", var precOutItemJournalLine: Record "Item Journal Line", var precOutReservationEntry: Record "Reservation Entry")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecQuantityToActDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
precItemJournalBatch Record “Item Journal Batch”
precOutItemJournalLine Record “Item Journal Line”
precOutReservationEntry Record “Reservation Entry”

OnBeforePostItemJournal

Occurs before an item journal post has occurred.

[IntegrationEvent(False,False)]
local procedure OnBeforePostItemJournal(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precItemJournalLine: Record "Item Journal Line", var prbAllLinesPosted: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
precItemJournalLine Record “Item Journal Line”
prbAllLinesPosted Boolean
pbHandled Boolean

OnAfterPostItemJournal

Occurs after an item journal post has occurred.

[IntegrationEvent(False,False)]
local procedure OnAfterPostItemJournal(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precItemJournalLine: Record "Item Journal Line", var prbAllLinesPosted: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
precItemJournalLine Record “Item Journal Line”
prbAllLinesPosted Boolean

OnBeforePostWarehouseJournal

Occurs before a warehouse journal line has been posted.

[IntegrationEvent(False,False)]
local procedure OnBeforePostWarehouseJournal(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precWarehouseJournalLine: Record "Warehouse Journal Line", var prbAllLinesPosted: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
precWarehouseJournalLine Record “Warehouse Journal Line”
prbAllLinesPosted Boolean
pbHandled Boolean

OnAfterPostWarehouseJournal

Occurs after a warehouse journal line has been posted.

[IntegrationEvent(False,False)]
local procedure OnAfterPostWarehouseJournal(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary, var precWarehouseJournalLine: Record "Warehouse Journal Line", var prbAllLinesPosted: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
precWarehouseJournalLine Record “Warehouse Journal Line”
prbAllLinesPosted Boolean

Codeunit “IWX QI Tracking”

ID 23067663Namespace: InsightWorks.QualityInspection.Inventory

Methods to assist with dealing with tracking.

Properties

Name Value
SingleInstance True
InherentPermissions X

Methods

SetLotBlockState

Sets the lot block state.
If there is no lot no. information card then it will create a lot no information card.

procedure SetLotBlockState(precTest: Record "IWX QI Test", pbBlocked: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbBlocked Boolean

SetSerialBlockState

Sets the serial block state.
If there is no serial no. information card then it will create a serial no information card.

procedure SetSerialBlockState(precTest: Record "IWX QI Test", pbBlocked: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbBlocked Boolean

SetPackageBlockState

Sets the package block state.
If no package no information card exists then one will be created.

procedure SetPackageBlockState(precTest: Record "IWX QI Test", pbBlocked: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbBlocked Boolean

GetMostRecentGradeFor

procedure GetMostRecentGradeFor(pcodItem: Code[20], ptxtVariantFilter: Text, pcodLot: Code[50], pcodSerial: Code[60], var pcodOutGrade: Code[20], var ptxtOutGradeDescription: Text)
Parameters
Name Type Description
pcodItem Code[20]
ptxtVariantFilter Text
pcodLot Code[50]
pcodSerial Code[60]
pcodOutGrade Code[20]
ptxtOutGradeDescription Text

GetMostRecentGradeFor

procedure GetMostRecentGradeFor(pcodItem: Code[20], ptxtVariantFilter: Text, pcodLot: Code[50], pcodSerial: Code[60], pcodPackage: Code[50], var pcodOutGrade: Code[20], var ptxtOutGradeDescription: Text)
Parameters
Name Type Description
pcodItem Code[20]
ptxtVariantFilter Text
pcodLot Code[50]
pcodSerial Code[60]
pcodPackage Code[50]
pcodOutGrade Code[20]
ptxtOutGradeDescription Text

IsAnyTracked

Returns true if the item is either lot, or serial, or package tracked.

procedure IsAnyTracked(pcodItemNo: Code[20]): Boolean
Parameters
Name Type Description
pcodItemNo Code[20]
Returns
Type Description
Boolean

IsLotTracked

If the item is lot tracked.

procedure IsLotTracked(pcodItemNo: Code[20]): Boolean
Parameters
Name Type Description
pcodItemNo Code[20]
Returns
Type Description
Boolean

IsSerialTracked

If this item requires serial tracking.

procedure IsSerialTracked(pcodItemNo: Code[20]): Boolean
Parameters
Name Type Description
pcodItemNo Code[20]
Returns
Type Description
Boolean

IsPackageTracked

If the item is lot tracked.

procedure IsPackageTracked(pcodItemNo: Code[20]): Boolean
Parameters
Name Type Description
pcodItemNo Code[20]
Returns
Type Description
Boolean

VerifyThatOutboundItemTrackingIsAllowed

[InherentPermissions(TableData,23067635,R,Both)]
[InherentPermissions(TableData,23067646,R,Both)]
[InherentPermissions(TableData,23067640,R,Both)]
procedure VerifyThatOutboundItemTrackingIsAllowed(var ptrecTrackingSpecification: Record "Tracking Specification" temporary): Boolean
Parameters
Name Type Description
ptrecTrackingSpecification Record “Tracking Specification” temporary
Returns
Type Description
Boolean

ErrorIfOutboundItemTrackingIsBlocked

[InherentPermissions(TableData,23067635,R,Both)]
[InherentPermissions(TableData,23067646,R,Both)]
[InherentPermissions(TableData,23067640,R,Both)]
procedure ErrorIfOutboundItemTrackingIsBlocked(var ptrecTrackingSpecification: Record "Tracking Specification" temporary)
Parameters
Name Type Description
ptrecTrackingSpecification Record “Tracking Specification” temporary

ErrorIfSalesReleaseIsBlocked

[InherentPermissions(TableData,23067635,R,Both)]
[InherentPermissions(TableData,23067646,R,Both)]
[InherentPermissions(TableData,23067640,R,Both)]
procedure ErrorIfSalesReleaseIsBlocked(var ptrecTrackingSpecification: Record "Tracking Specification" temporary)
Parameters
Name Type Description
ptrecTrackingSpecification Record “Tracking Specification” temporary

IsSalesReleaseBlocked

[InherentPermissions(TableData,23067635,R,Both)]
[InherentPermissions(TableData,23067646,R,Both)]
[InherentPermissions(TableData,23067640,R,Both)]
procedure IsSalesReleaseBlocked(var ptrecTrackingSpecification: Record "Tracking Specification" temporary, var precReasonWhyItIsBlocked: Record "IWX QI Test"): Boolean
Parameters
Name Type Description
ptrecTrackingSpecification Record “Tracking Specification” temporary
precReasonWhyItIsBlocked Table InsightWorks.QualityInspection.Document.”IWX QI Test”
Returns
Type Description
Boolean

IsOutboundItemTrackingBlocked

[InherentPermissions(TableData,23067635,R,Both)]
[InherentPermissions(TableData,23067646,R,Both)]
[InherentPermissions(TableData,23067640,R,Both)]
procedure IsOutboundItemTrackingBlocked(var ptrecTrackingSpecification: Record "Tracking Specification" temporary, var precReasonWhyItIsBlocked: Record "IWX QI Test"): Boolean
Parameters
Name Type Description
ptrecTrackingSpecification Record “Tracking Specification” temporary
precReasonWhyItIsBlocked Table InsightWorks.QualityInspection.Document.”IWX QI Test”
Returns
Type Description
Boolean

GetTrackingSummaryText

Gets a re-usable message identification about the tracking specification.

procedure GetTrackingSummaryText(var ptrecTrackingSpecification: Record "Tracking Specification" temporary): Text
Parameters
Name Type Description
ptrecTrackingSpecification Record “Tracking Specification” temporary
Returns
Type Description
Text

Codeunit “IWX QI Registration”

ID 23067654Namespace: InsightWorks.QualityInspection.Registration

Wrapper for registration.

Properties

Name Value
EventSubscriberInstance StaticAutomatic

Methods

IsQualityInspectorRegistered

Obsolete

This element will become obsolete from version 7.21. IsQualityInspectorRegistered is no longer used.

Obsolete. Do not use.

[Obsolete(IsQualityInspectorRegistered is no longer used.,7.21)]
procedure IsQualityInspectorRegistered(): Boolean
Returns
Type Description
Boolean

EnsureBasicRegistrationRecord

Used for Insight Works registration.

procedure EnsureBasicRegistrationRecord(pbForceUpdateResellers: Boolean)
Parameters
Name Type Description
pbForceUpdateResellers Boolean

Codeunit “IWX QI Report Mgmt.”

ID 23067675Namespace: InsightWorks.QualityInspection.Reporting

Methods

PrintGeneralInspection

procedure PrintGeneralInspection(var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

PrintNonConformance

procedure PrintNonConformance(var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

PrintCertificateOfAnalysis

procedure PrintCertificateOfAnalysis(var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

PrintFirstArticleInspectionForm3

procedure PrintFirstArticleInspectionForm3(var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

PrintLabel

procedure PrintLabel(var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

GeneratePDFIntoBuffer

procedure GeneratePDFIntoBuffer(var precTest: Record "IWX QI Test", peReportSelection: Enum "IWX QI Report Selection Usage", var precOutDocEntityBuffer: Record "IWX QI WS Doc. Entity Buffer" temporary): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
peReportSelection Enum InsightWorks.QualityInspection.Reporting.”IWX QI Report Selection Usage”
precOutDocEntityBuffer Table InsightWorks.QualityInspection.WebServices.PDFGeneration.”IWX QI WS Doc. Entity Buffer”
Returns
Type Description
Boolean

GeneratePDFIntoStream

procedure GeneratePDFIntoStream(var precTest: Record "IWX QI Test", peReportSelection: Enum "IWX QI Report Selection Usage", var pcuTempBlob: Codeunit "Temp Blob"): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
peReportSelection Enum InsightWorks.QualityInspection.Reporting.”IWX QI Report Selection Usage”
pcuTempBlob System.Utilities.”Temp Blob”
Returns
Type Description
Boolean

Codeunit “IWX QI Assign To Inspectors”

ID 23067648Namespace: InsightWorks.QualityInspection.Scheduling

Used to integrate Graphical Scheduler with Quality Inspector.

Methods

GetQualityInspectionTestGenerationRuleViewName

Gets a standard view name for quality inspection assignments.

procedure GetQualityInspectionTestGenerationRuleViewName(): Text
Returns
Type Description
Text

GetQualityInspectionTestDatasourceName

Gets a standard view name for quality inspection assignments.

procedure GetQualityInspectionTestDatasourceName(): Text
Returns
Type Description
Text

Codeunit “IWX QI Inspectors GS Tree”

ID 23067649Namespace: InsightWorks.QualityInspection.Scheduling

Provides a tree implementation for Graphical Scheduler integration that lists
available Quality Inspectors.
@ExpressSkipFile

Implements

  • “IWX Scheduler Tree Provider”

Properties

Name Value
Description Flat – Quality Inspectors

Methods

BuildTree

procedure BuildTree(precView: Record "IWX Scheduler View", var parTopLevelGroup: JsonArray): Boolean
Parameters
Name Type Description
precView Record “IWX Scheduler View”
parTopLevelGroup JsonArray
Returns
Type Description
Boolean

Codeunit “IWX QI Scheduler Change”

ID 23067650Namespace: InsightWorks.QualityInspection.Scheduling

Used in the context of the control-addin based scheduler in the Graphical Scheduler extension triggering a
quality inspection on a scheduler change, similar functionality to historical capability in Shop Floor Insight.


Codeunit “IWX QI Expression Mgmt.”

ID 23067651Namespace: InsightWorks.QualityInspection.Utilities

Used to help calculate expressions.

Properties

Name Value
EventSubscriberInstance Manual

Methods

SetIsTrackingVariablesUsedForManualSubscriptionBinding

Call this when you are using expressions and need to
indicate that you’re just tracking variables. Use in combination
with GetDetectedFieldsFromManualBinding.

procedure SetIsTrackingVariablesUsedForManualSubscriptionBinding(pbIsTrackingVariables: Boolean)
Parameters
Name Type Description
pbIsTrackingVariables Boolean

GetDetectedFieldsFromManualBinding

Returns the detected fields. Use in combination with SetIsTrackingVariablesUsedForManualSubscriptionBinding

procedure GetDetectedFieldsFromManualBinding(var plstDetectedFields: List of [Text])
Parameters
Name Type Description
plstDetectedFields List of [Text]

EvaluateNumericalExpression

Evaluates the numeric expression on the test line.

procedure EvaluateNumericalExpression(var precTestLine: Record "IWX QI Test Line", var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

Must be a line that refers to a numeric expression.

precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

EvaluateNumericalExpression

procedure EvaluateNumericalExpression(ptxtNumericalExpression: Text, var precTest: Record "IWX QI Test"): Decimal
Parameters
Name Type Description
ptxtNumericalExpression Text
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
Returns
Type Description
Decimal

EvaluateNumericalExpression

procedure EvaluateNumericalExpression(ptxtNumericalExpression: Text, var precTest: Record "IWX QI Test", var pdictAdditionalVariables: Dictionary of [Text, Decimal]): Decimal
Parameters
Name Type Description
ptxtNumericalExpression Text
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pdictAdditionalVariables Dictionary of [Text, Decimal]
Returns
Type Description
Decimal

EvaluateExpressionForTest

Obsolete

This element will become obsolete from version 7.20. Use EvaluateTextExpression, or EvaluateNumericalExpression instead.

[Obsolete(Use EvaluateTextExpression, or EvaluateNumericalExpression instead.,7.20)]
procedure EvaluateExpressionForTest(ptxtInput: Text, precCurrentTest: Record "IWX QI Test"): Text
Parameters
Name Type Description
ptxtInput Text
precCurrentTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
Returns
Type Description
Text

EvaluateTextExpression

Evaluates a text expression on a test line for a specific test.

procedure EvaluateTextExpression(var precTestLine: Record "IWX QI Test Line", precCurrentTest: Record "IWX QI Test"): Text
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
precCurrentTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
Returns
Type Description
Text

EvaluateTextExpression

Evaluates a text expression, using fields on the quality inspection test as text replacement options.
Does not evaluate embedded expressions.

procedure EvaluateTextExpression(ptxtInput: Text, precCurrentTest: Record "IWX QI Test"): Text
Parameters
Name Type Description
ptxtInput Text
precCurrentTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

If the test doesn’t exist pass in a blank empty temporary record instead.

Returns
Type Description
Text

EvaluateTextExpression

Evaluates a text expression, using fields on the quality inspection test as text replacement options.
Does not evaluate embedded expressions.

procedure EvaluateTextExpression(ptxtInput: Text, precCurrentTest: Record "IWX QI Test", precOptionalCurrentTestLine: Record "IWX QI Test Line"): Text
Parameters
Name Type Description
ptxtInput Text
precCurrentTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

If the test doesn’t exist pass in a blank empty temporary record instead.

precOptionalCurrentTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

If the test line doesn’t exist pass in a blank empty temporary record instead.

Returns
Type Description
Text

EvaluateTextExpression

Evaluates a text expression, using fields on the quality inspection test as text replacement options.
Set pbEvaluateEmbeddedNumericExpressions to true to evaluate embedded expressions.

procedure EvaluateTextExpression(ptxtInput: Text, precCurrentTest: Record "IWX QI Test", pbEvaluateEmbeddedNumericExpressions: Boolean): Text
Parameters
Name Type Description
ptxtInput Text
precCurrentTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbEvaluateEmbeddedNumericExpressions Boolean
Returns
Type Description
Text

EvaluateTextExpression

Evaluates a text expression, using fields on the quality inspection test as text replacement options.
Set pbEvaluateEmbeddedNumericExpressions to true to evaluate embedded expressions.

procedure EvaluateTextExpression(ptxtInput: Text, precCurrentTest: Record "IWX QI Test", precOptionalSpecificTestLine: Record "IWX QI Test Line", pbEvaluateEmbeddedNumericExpressions: Boolean): Text
Parameters
Name Type Description
ptxtInput Text
precCurrentTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precOptionalSpecificTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

When supplied, a specific test.

pbEvaluateEmbeddedNumericExpressions Boolean
Returns
Type Description
Text

EvaluateExpressionForRecord

This will replace [fieldname] tokens with the field value for the supplied data.

procedure EvaluateExpressionForRecord(ptxtInput: Text, recordVariant: Variant): Text
Parameters
Name Type Description
ptxtInput Text
recordVariant Variant
Returns
Type Description
Text

EvaluateExpressionForRecord

This will replace [fieldname] tokens with the field value for the supplied data.

procedure EvaluateExpressionForRecord(ptxtInput: Text, recordVariant: Variant, pbFormatText: Boolean): Text
Parameters
Name Type Description
ptxtInput Text
recordVariant Variant
pbFormatText Boolean

Set to true to use localization format, set to false to not format.

Returns
Type Description
Text

TextReplace

procedure TextReplace(ptxtInput: Text, ptxtSearchFor: Text, ptxtReplaceWith: Text): Text
Parameters
Name Type Description
ptxtInput Text
ptxtSearchFor Text
ptxtReplaceWith Text
Returns
Type Description
Text

TextReplace

procedure TextReplace(ptxtInput: Text, ptxtSearchFor: Text, ptxtReplaceWith: Text, peCaseSensitivity: Enum "IWX QI Case Sensitive"): Text
Parameters
Name Type Description
ptxtInput Text
ptxtSearchFor Text
ptxtReplaceWith Text
peCaseSensitivity Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Case Sensitive”
Returns
Type Description
Text

TryEvaluateEmbeddedNumericalExpressions

[TryFunction]
procedure TryEvaluateEmbeddedNumericalExpressions(ptxtInput: Text, precCurrentTest: Record "IWX QI Test", var ptxtOut: Text): Boolean
Parameters
Name Type Description
ptxtInput Text
precCurrentTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptxtOut Text
Returns
Type Description
Boolean

EvaluateEmbeddedNumericalExpressions

Evaluates embedded numerical expressions within a given text.
Input:
ABC{3.1 + 3}DEF{7+1}
Output:
ABC6.1DEF8

procedure EvaluateEmbeddedNumericalExpressions(ptxtInput: Text, precCurrentTest: Record "IWX QI Test"): Text
Parameters
Name Type Description
ptxtInput Text
precCurrentTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
Returns
Type Description
Text

GetDependentVariables

Gets a list of dependent variables for the supplied field.

procedure GetDependentVariables(precField: Record "IWX QI Field", var plstOfDetectedVariables: List of [Text])
Parameters
Name Type Description
precField Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
plstOfDetectedVariables List of [Text]

GetDependentVariables

Gets a list of dependent variables for the supplied template line.

procedure GetDependentVariables(precTemplateLine: Record "IWX QI Template Line", var plstOfDetectedVariables: List of [Text])
Parameters
Name Type Description
precTemplateLine Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Line”
plstOfDetectedVariables List of [Text]

TestEvaluateSpecialStringFunctions

**** Only used for validation**** Do not use for completely evaluating a string expression.

procedure TestEvaluateSpecialStringFunctions(ptxtInput: Text): Text
Parameters
Name Type Description
ptxtInput Text
Returns
Type Description
Text

GetFormulaOptions

Gets available formula options as a CSV.

procedure GetFormulaOptions(): Text
Returns
Type Description
Text

GetTextFormulaOptions

Gets available text formula options as a CSV.

procedure GetTextFormulaOptions(): Text
Returns
Type Description
Text

Events

OnBeforeGetDependentVariablesForTemplateLine

Use this to supply a list of dependent variables for a given template line.

[IntegrationEvent(False,False)]
local procedure OnBeforeGetDependentVariablesForTemplateLine(var precTemplateLine: Record "IWX QI Template Line", var plstOfDetectedVariables: List of [Text], var pbHandled: Boolean)
Parameters
Name Type Description
precTemplateLine Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Line”
plstOfDetectedVariables List of [Text]
pbHandled Boolean

OnBeforeGetDependentVariablesForField

Use this to supply a list of dependent variables for a given template line.

[IntegrationEvent(False,False)]
local procedure OnBeforeGetDependentVariablesForField(var precField: Record "IWX QI Field", var plstOfDetectedVariables: List of [Text], var pbHandled: Boolean)
Parameters
Name Type Description
precField Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
plstOfDetectedVariables List of [Text]
pbHandled Boolean

OnBeforeEvaluateNumericalExpressionOnLine

Gets called when EvaluateNumericalExpression is invoked and provides an opportunity
to evaluate numerical expressions.

[IntegrationEvent(False,False)]
local procedure OnBeforeEvaluateNumericalExpressionOnLine(var precTestLine: Record "IWX QI Test Line", var precTest: Record "IWX QI Test", var pbHandled: Boolean)
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbHandled Boolean

OnBeforeEvaluateNumericalExpression

Use this to extend or replace numerical expression evaluation.

[IntegrationEvent(False,False)]
local procedure OnBeforeEvaluateNumericalExpression(var ptxtNumericalExpression: Text, var precTest: Record "IWX QI Test", var pdictAdditionalVariables: Dictionary of [Text, Decimal], var prdOut: Decimal, var pbHandled: Boolean)
Parameters
Name Type Description
ptxtNumericalExpression Text
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pdictAdditionalVariables Dictionary of [Text, Decimal]
prdOut Decimal
pbHandled Boolean

OnEvaluateTextExpressionOnTestLine

Occurs before a text expression is evaluated on a test line.

[IntegrationEvent(False,False)]
local procedure OnEvaluateTextExpressionOnTestLine(var precTestLine: Record "IWX QI Test Line", precCurrentTest: Record "IWX QI Test", var precTemplateLine: Record "IWX QI Template Line", ptxtExpressionInput: Text, var ptxtExpressionResultOutput: Text)
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
precCurrentTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precTemplateLine Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Line”
ptxtExpressionInput Text
ptxtExpressionResultOutput Text

OnBeforeEvaluateBuiltInTableLookups

Allows system replacement before evaluation of built-in table lookups.

[IntegrationEvent(False,False)]
local procedure OnBeforeEvaluateBuiltInTableLookups(var ptxtInput: Text, var precCurrentTest: Record "IWX QI Test", var precOptionalCurrentTestLine: Record "IWX QI Test Line", var rtxtOut: Text, var pbHandled: Boolean)
Parameters
Name Type Description
ptxtInput Text
precCurrentTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precOptionalCurrentTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
rtxtOut Text
pbHandled Boolean

OnEvaluateCustomTableFieldInExpression

Used

[IntegrationEvent(False,False)]
procedure OnEvaluateCustomTableFieldInExpression(var ptxtInput: Text, var precCurrentTest: Record "IWX QI Test", var precOptionalCurrentTestLine: Record "IWX QI Test Line", var ptxtEntireTextBeingEvaluated: Text, var ptxtTableName: Text, var ptxtFieldName: Text, var ptxtEntireFindText: Text, var ptxtEntireReplaceText: Text)
Parameters
Name Type Description
ptxtInput Text
precCurrentTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precOptionalCurrentTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
ptxtEntireTextBeingEvaluated Text
ptxtTableName Text
ptxtFieldName Text
ptxtEntireFindText Text
ptxtEntireReplaceText Text

Codeunit “IWX QI Filter Helpers”

ID 23067638Namespace: InsightWorks.QualityInspection.Utilities

This codeunit contains helper methods to assist with filtering.

Properties

Name Value
EventSubscriberInstance Manual

Methods

RunModalLookupTable

Looks up a table based on any given object id filter.

procedure RunModalLookupTable(var piObjectID: Integer, ptxtObjectIdFilter: Text)
Parameters
Name Type Description
piObjectID Integer
ptxtObjectIdFilter Text

RunModalLookupTableFromText

Looks up a table name.
This will return the table name as text.

procedure RunModalLookupTableFromText(var ptxtInOutTableReference: Text)
Parameters
Name Type Description
ptxtInOutTableReference Text

RunModalLookupFieldFromText

Looks up a field name for any given table.
This will return the table name as text.
If it’s not clear what the table is it will attempt to ask, and then if still unclear will bail.

procedure RunModalLookupFieldFromText(var ptxtInOutTableReference: Text, var ptxtInOutFieldReference: Text)
Parameters
Name Type Description
ptxtInOutTableReference Text

When blank it will first prompt for a table.

ptxtInOutFieldReference Text

IdentifyTableIDFromText

Will return an object id of the table.
If it’s a number it presumes the text is just a number and the table id.
If it’s text then it will search first for table name, then afterwards table caption.
If neither can be found 0 will be returned, no error will be thrown.

procedure IdentifyTableIDFromText(var ptxtTable: Text): Integer
Parameters
Name Type Description
ptxtTable Text

Will be the table name as an output if found. If unfound will be left unaltered.

Returns
Type Description
Integer

IdentifyFieldIDFromText

Will return an field number of the field.
If it’s a number it presumes the text is just a number and the field id.
If it’s text then it will search first for field name, then afterwards field caption.
If neither can be found 0 will be returned, no error will be thrown.

procedure IdentifyFieldIDFromText(piTable: Integer, var ptxtField: Text): Integer
Parameters
Name Type Description
piTable Integer

The table.

ptxtField Text

Will be the field name as an output if found. If unfound will be left unaltered.

Returns
Type Description
Integer

SetFiltersByExpressionSyntax

This function exists because it’s difficult to get our expression evaluator and other expressions to work
nicely with how BC’s where syntax works for finding.

Input: FieldA=3,FieldB=4,FieldC=cow
Output: Where( FieldA=const(3), FieldB=const(4), FieldC=const(5) )

**** Bad data is ignored intentionally ***

procedure SetFiltersByExpressionSyntax(var precordRef: RecordRef, ptxtExpressionConditionalFilterSyntax: Text)
Parameters
Name Type Description
precordRef RecordRef
ptxtExpressionConditionalFilterSyntax Text

RunModalLookupAnyField

Look up any field.

procedure RunModalLookupAnyField(piTableNo: Integer, piOptionalTypeFilter: Integer, ptxtOptionalNameFilter: Text): Integer
Parameters
Name Type Description
piTableNo Integer
piOptionalTypeFilter Integer

Use -1 to indicate ‘any’ type.

ptxtOptionalNameFilter Text
Returns
Type Description
Integer

-1 if no field selected.

AssistEditZone

Starts the assist edit dialog for choosing a zone.

procedure AssistEditZone(pcodLocationFilter: Code[20], var pcodInOutToZoneFilter: Code[20]): Boolean
Parameters
Name Type Description
pcodLocationFilter Code[20]
pcodInOutToZoneFilter Code[20]
Returns
Type Description
Boolean

AssistEditBin

procedure AssistEditBin(pcodLocationFilter: Code[20], pcodToZoneFilter: Code[20], var pcodInOutToBinFilter: Code[20]): Boolean
Parameters
Name Type Description
pcodLocationFilter Code[20]
pcodToZoneFilter Code[20]
pcodInOutToBinFilter Code[20]
Returns
Type Description
Boolean

AssistEditItemNo

procedure AssistEditItemNo(var pcodInOutItemFilter: Code[20]): Boolean
Parameters
Name Type Description
pcodInOutItemFilter Code[20]
Returns
Type Description
Boolean

AssistEditItemCategory

Starts the assist edit dialog for choosing an item category.

procedure AssistEditItemCategory(var pcodInOutCategoryFilter: Code[20]): Boolean
Parameters
Name Type Description
pcodInOutCategoryFilter Code[20]
Returns
Type Description
Boolean

AssistEditInventoryPostingGroup

procedure AssistEditInventoryPostingGroup(var pcodInOutInventoryPostingGroup: Code[20]): Boolean
Parameters
Name Type Description
pcodInOutInventoryPostingGroup Code[20]
Returns
Type Description
Boolean

AssistEditVendor

Starts the assist edit dialog for choosing a vendor.

procedure AssistEditVendor(var pcodInOutVendorNoFilter: Code[20]): Boolean
Parameters
Name Type Description
pcodInOutVendorNoFilter Code[20]
Returns
Type Description
Boolean

AssistEditCustomer

Starts the assist edit dialog for choosing a customer.

procedure AssistEditCustomer(var pcodInOutCustomerNoFilter: Code[20]): Boolean
Parameters
Name Type Description
pcodInOutCustomerNoFilter Code[20]
Returns
Type Description
Boolean

AssistEditMachine

Starts the assist edit dialog for choosing a machine.

procedure AssistEditMachine(var pcodInOutMachineNoFilter: Code[20]): Boolean
Parameters
Name Type Description
pcodInOutMachineNoFilter Code[20]
Returns
Type Description
Boolean

AssistEditRouting

Starts the assist edit dialog for choosing a routing.

procedure AssistEditRouting(var pcodInOutRoutingNoFilter: Code[20]): Boolean
Parameters
Name Type Description
pcodInOutRoutingNoFilter Code[20]
Returns
Type Description
Boolean

AssistEditRoutingOperation

procedure AssistEditRoutingOperation(pcodInRoutingNoFilter: Code[20], var pcodInOutOperationNoFilter: Code[20]): Boolean
Parameters
Name Type Description
pcodInRoutingNoFilter Code[20]
pcodInOutOperationNoFilter Code[20]
Returns
Type Description
Boolean

AssistEditWorkCenter

procedure AssistEditWorkCenter(var pcodInOutRoutingNoFilter: Code[20]): Boolean
Parameters
Name Type Description
pcodInOutRoutingNoFilter Code[20]
Returns
Type Description
Boolean

AssistEditPurchasingCode

procedure AssistEditPurchasingCode(var pcodInOutPurchaseCode: Code[20]): Boolean
Parameters
Name Type Description
pcodInOutPurchaseCode Code[20]
Returns
Type Description
Boolean

AssistEditReturnReasonCode

procedure AssistEditReturnReasonCode(var pcodInOutReturnReasonCode: Code[20]): Boolean
Parameters
Name Type Description
pcodInOutReturnReasonCode Code[20]
Returns
Type Description
Boolean

AssistEditQualityInspectionTemplate

procedure AssistEditQualityInspectionTemplate(var pcodInOutTemplate: Code[20]): Boolean
Parameters
Name Type Description
pcodInOutTemplate Code[20]
Returns
Type Description
Boolean

AssistEditLocation

procedure AssistEditLocation(var pcodInOutLocationFilter: Code[20]): Boolean
Parameters
Name Type Description
pcodInOutLocationFilter Code[20]
Returns
Type Description
Boolean

AssistEditUnitOfMeasure

procedure AssistEditUnitOfMeasure(var pcodInOutUnitOfMeasure: Code[10]): Boolean
Parameters
Name Type Description
pcodInOutUnitOfMeasure Code[10]
Returns
Type Description
Boolean

CleanUpWhereClause250

procedure CleanUpWhereClause250(txtInput: Text): Text[250]
Parameters
Name Type Description
txtInput Text
Returns
Type Description
Text[250]

CleanUpWhereClause400

procedure CleanUpWhereClause400(txtInput: Text): Text[400]
Parameters
Name Type Description
txtInput Text
Returns
Type Description
Text[400]

CleanUpWhereClause

procedure CleanUpWhereClause(txtInput: Text): Text
Parameters
Name Type Description
txtInput Text
Returns
Type Description
Text

DeserializeFilterIntoItemAttributesBuffer

De-serializes an existing attribute filter text into an attribute filter
buffer.

procedure DeserializeFilterIntoItemAttributesBuffer(ptxtAttributeFilter: Text, var ptrecTempFilterItemAttributesBuffer: Record "Filter Item Attributes Buffer" temporary)
Parameters
Name Type Description
ptxtAttributeFilter Text

A=Filter(B),C=Filter(D),E=Filter(F)

ptrecTempFilterItemAttributesBuffer Record “Filter Item Attributes Buffer” temporary

SerializeItemAttributesBufferIntoText

v18 and newer only. Given an item attributes buffer, serializes it into a ‘pretend’ filter
similar to BC’s filtering mechanism. A=Filter(B),C=Filter(D),E=Filter(F)

procedure SerializeItemAttributesBufferIntoText(var ptrecTempFilterItemAttributesBuffer: Record "Filter Item Attributes Buffer" temporary): Text
Parameters
Name Type Description
ptrecTempFilterItemAttributesBuffer Record “Filter Item Attributes Buffer” temporary
Returns
Type Description
Text

A=Filter(B),C=Filter(D),E=Filter(F)

GetStandardTaskCodeFromRecordOrFilter

Gets the standard task code from either the selected record, or the filter.

procedure GetStandardTaskCodeFromRecordOrFilter(var precStandardTaskQualityMeasure: Record "Standard Task Quality Measure"): Code[10]
Parameters
Name Type Description
precStandardTaskQualityMeasure Record “Standard Task Quality Measure”
Returns
Type Description
Code[10]

GetRoutingCodeFromRecordOrFilter

Gets the routing code from either the selected record, or the filter.

procedure GetRoutingCodeFromRecordOrFilter(var precRoutingQualityMeasure: Record "Routing Quality Measure"): Code[20]
Parameters
Name Type Description
precRoutingQualityMeasure Record “Routing Quality Measure”
Returns
Type Description
Code[20]

GetOperationNoFromRecordOrFilter

Gets the operation no from either the selected record, or the filter.

procedure GetOperationNoFromRecordOrFilter(var precRoutingQualityMeasure: Record "Routing Quality Measure"): Code[10]
Parameters
Name Type Description
precRoutingQualityMeasure Record “Routing Quality Measure”
Returns
Type Description
Code[10]

VersionCodeFromRecordOrFilter

Gets the version no from either the selected record, or the filter.

procedure VersionCodeFromRecordOrFilter(var precRoutingQualityMeasure: Record "Routing Quality Measure"): Code[20]
Parameters
Name Type Description
precRoutingQualityMeasure Record “Routing Quality Measure”
Returns
Type Description
Code[20]

GetIsFilterSetToValue

Returns a true or false if the supplied field has a filter and it’s set to the value.

procedure GetIsFilterSetToValue(piTableNo: Integer, ptxtFilter: Text, piFieldNo: Integer, pvarExpectedValue: Variant): Boolean
Parameters
Name Type Description
piTableNo Integer
ptxtFilter Text
piFieldNo Integer
pvarExpectedValue Variant
Returns
Type Description
Boolean

Codeunit “IWX QI Misc Business Central”

ID 23067653Namespace: InsightWorks.QualityInspection.Utilities

Methods for a variety of miscellaneous business central interactions.

Properties

Name Value
InherentPermissions X

Codeunit “IWX QI Misc Helpers”

ID 23067834Namespace: InsightWorks.QualityInspection.Utilities

Methods

GetTranslatedYes250

procedure GetTranslatedYes250(): Text[250]
Returns
Type Description
Text[250]

GetTranslatedNo250

procedure GetTranslatedNo250(): Text[250]
Returns
Type Description
Text[250]

GetLockedYes250

procedure GetLockedYes250(): Text[250]
Returns
Type Description
Text[250]

GetLockedNo250

procedure GetLockedNo250(): Text[250]
Returns
Type Description
Text[250]

PromptAndImportIntoInStream

procedure PromptAndImportIntoInStream(ptxtFilterString: Text, var linStream: InStream): Boolean
Parameters
Name Type Description
ptxtFilterString Text
linStream InStream
Returns
Type Description
Boolean

AttemptSplitSimpleRangeIntoMinMax

Will attempt to split the input text into a simple min and max.
This is to help with the 90% use case of minValue..maxValue.
If this cannot be done (i.e it’s not a simple minValue..maxValue) then this will return false.
If this can be done then it will return true and set pdOutMin and pdtOutMax.

procedure AttemptSplitSimpleRangeIntoMinMax(ptxtInputText: Text, var pdOutMin: Decimal, var pdOutMax: Decimal): Boolean
Parameters
Name Type Description
ptxtInputText Text
pdOutMin Decimal
pdOutMax Decimal
Returns
Type Description
Boolean

GetRecordsForTableFieldAsCSV

Gets the record values for the configured table lookup field as a csv.

procedure GetRecordsForTableFieldAsCSV(var precQITestLine: Record "IWX QI Test Line"): Text
Parameters
Name Type Description
precQITestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
Returns
Type Description
Text

GetRecordsForTableField

Gets the available records for any given table field for the test line.
This will evaluate expressions!

procedure GetRecordsForTableField(var precQITestLine: Record "IWX QI Test Line", var ptrecBufferLookupCode: Record "IWX QI Lookup Code" temporary)
Parameters
Name Type Description
precQITestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
ptrecBufferLookupCode Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code”

GetRecordsForTableField

Gets the available records for any given table field.
This will evaluate expressions!

procedure GetRecordsForTableField(var precIWXQIField: Record "IWX QI Field", var precOptionalContextTest: Record "IWX QI Test", var ptrecBufferLookupCode: Record "IWX QI Lookup Code" temporary)
Parameters
Name Type Description
precIWXQIField Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
precOptionalContextTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Optional. Leave empty if you do not want search/replace fields. Supply a test context if you want the lookup table filter to have square bracket [FIELDNAME] replacements

ptrecBufferLookupCode Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code”

GetRecordsForTableField

procedure GetRecordsForTableField(var precIWXQIField: Record "IWX QI Field", var precOptionalContextTest: Record "IWX QI Test", var precOptionalContextTestLine: Record "IWX QI Test Line", var ptrecBufferLookupCode: Record "IWX QI Lookup Code" temporary)
Parameters
Name Type Description
precIWXQIField Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
precOptionalContextTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precOptionalContextTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
ptrecBufferLookupCode Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code”

GetCSVOfValuesFromRecord

Gets a CSV string of values for a specific field from a specific table and filter.

procedure GetCSVOfValuesFromRecord(piTable: Integer, piChoiceField: Integer, ptxtTableFilter: Text, piMaxRecords: Integer): Text
Parameters
Name Type Description
piTable Integer
piChoiceField Integer
ptxtTableFilter Text
piMaxRecords Integer
Returns
Type Description
Text

GetCSVOfValuesFromRecord

Gets a CSV string of values for a specific field from a specific table and filter.

procedure GetCSVOfValuesFromRecord(piTable: Integer, piChoiceField: Integer, ptxtTableFilter: Text): Text
Parameters
Name Type Description
piTable Integer
piChoiceField Integer
ptxtTableFilter Text
Returns
Type Description
Text

GetRecordsForTableField

Populates Custom 1 with the ‘actual’ key.
Populates Code with the code version of that key
Populates Description with the visible portion of that key.

procedure GetRecordsForTableField(piTable: Integer, piChoiceField: Integer, piDescriptionField: Integer, ptxtTableFilter: Text, piMaxRecords: Integer, var ptrecBufferLookupCode: Record "IWX QI Lookup Code" temporary, var ptxtOutCSVSimple: Text)
Parameters
Name Type Description
piTable Integer
piChoiceField Integer
piDescriptionField Integer
ptxtTableFilter Text
piMaxRecords Integer
ptrecBufferLookupCode Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code”
ptxtOutCSVSimple Text

GetBooleanFor

Call this if you need a boolean output for a given input.
This does not tell you if a text value is probably a boolean or not.
In our scenario any positive boolean is considered ‘true’ and anything else is considered ‘false’.

procedure GetBooleanFor(ptxtInput: Text): Boolean
Parameters
Name Type Description
ptxtInput Text
Returns
Type Description
Boolean

IsTextValuePositiveBoolean

This does not return true or false if the detected value is boolean or not.
This will only return ‘true’ if the text value can be understood as a ‘positive’ or true-ish boolean
representation.

procedure IsTextValuePositiveBoolean(ptxtValueToCheckIfPositiveBoolean: Text): Boolean
Parameters
Name Type Description
ptxtValueToCheckIfPositiveBoolean Text
Returns
Type Description
Boolean

IsTextValueNegativeBoolean

This does not return true or false if the detected value is boolean or not.
This will only return ‘true’ if the text value can be understood as a ‘negative’ or false-ish boolean
representation.

procedure IsTextValueNegativeBoolean(ptxtValueToCheckIfNegativeBoolean: Text): Boolean
Parameters
Name Type Description
ptxtValueToCheckIfNegativeBoolean Text
Returns
Type Description
Boolean

CanTextBeInterpretedAsBooleanIsh

Returns true if the text can be intrepeted as a boolean-ish value.
This does not return true if the text is true and false if the text is false, it just let’s you know if the text
is probably boolean in nature.

procedure CanTextBeInterpretedAsBooleanIsh(ptxtInputText: Text): Boolean
Parameters
Name Type Description
ptxtInputText Text
Returns
Type Description
Boolean

GetBasicPersonDetailsFromTestLine

procedure GetBasicPersonDetailsFromTestLine(precTestLine: Record "IWX QI Test Line", var ptxtOutFullName: Text, var ptxtOutJobTitle: Text, var ptxtOutEmail: Text, var ptxtOutPhone: Text, var pridOutSourceRecord: RecordId): Boolean
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
ptxtOutFullName Text
ptxtOutJobTitle Text
ptxtOutEmail Text
ptxtOutPhone Text
pridOutSourceRecord RecordId
Returns
Type Description
Boolean

GetBasicPersonDetails

Given any kind of known person primary key, in either a contact, or employee, or user, or resource, or
sales person/purchaser, then try and find common contact details.

procedure GetBasicPersonDetails(ptxtInput: Text, var ptxtOutFullName: Text, var ptxtOutJobTitle: Text, var ptxtOutEmail: Text, var ptxtOutPhone: Text, var pridOutSourceRecord: RecordId): Boolean
Parameters
Name Type Description
ptxtInput Text
ptxtOutFullName Text
ptxtOutJobTitle Text
ptxtOutEmail Text
ptxtOutPhone Text
pridOutSourceRecord RecordId
Returns
Type Description
Boolean

GuessDataTypeFromDescriptionAndValue

procedure GuessDataTypeFromDescriptionAndValue(ptxtDescription: Text, ptxtOptionalValue: Text): Enum "IWX QI Field Type"
Parameters
Name Type Description
ptxtDescription Text
ptxtOptionalValue Text
Returns
Type Description
Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Type”

NavigateToSourceDocument

Navigates to the source document.

procedure NavigateToSourceDocument(var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

SetTableValue

Sets an arbitrary table value

procedure SetTableValue(ptxtTableName: Text, ptxtTableFilter: Text, ptxtFieldToSet: Text, ptxtValueToSet: Text, pbValidate: Boolean)
Parameters
Name Type Description
ptxtTableName Text

This will be checked in order of object name, object caption, then integer

ptxtTableFilter Text
ptxtFieldToSet Text
ptxtValueToSet Text
pbValidate Boolean

Set to true to validate.

ReadFieldAsText

Obsolete

This element will become obsolete from version 7.20. Use ReadFieldAsText(pvarRecord: Variant; ptxtFieldName: Text; piFormatNumber: Integer) instead

Given the supplied recordref and field name this will return as text the field value.

[Obsolete(Use ReadFieldAsText(pvarRecord: Variant; ptxtFieldName: Text; piFormatNumber: Integer) instead,7.20)]
procedure ReadFieldAsText(pvarRecord: Variant, ptxtFieldName: Text, pbFormatText: Boolean): Text
Parameters
Name Type Description
pvarRecord Variant
ptxtFieldName Text
pbFormatText Boolean

True to use default formatting, false to use system formatting. Use false typically for getting values for mathematical expressions.

Returns
Type Description
Text

ReadFieldAsText

Given the supplied recordref and field name this will return as text the field value.

procedure ReadFieldAsText(pvarRecord: Variant, ptxtFieldName: Text, piFormatNumber: Integer): Text
Parameters
Name Type Description
pvarRecord Variant
ptxtFieldName Text
piFormatNumber Integer

When pbFormatText is supplied this impacts the format number as specified in https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/system/system-format-joker-integer-integer-method

Returns
Type Description
Text

RoundToConfiguredValue

Rounds to the configured value.

procedure RoundToConfiguredValue(pdIn: Decimal): Decimal
Parameters
Name Type Description
pdIn Decimal
Returns
Type Description
Decimal

ConvertDateToDecimal

Converts a Date value to Decimal format matching SQL Server DateTime numeric representation.
Returns days since January 1, 1900 as a Decimal value.
Dates before 1900 will have negative values (e.g., Jan 1, 1753 = -53,687 days).

procedure ConvertDateToDecimal(pdtDate: Date): Decimal
Parameters
Name Type Description
pdtDate Date

The date to convert

Returns
Type Description
Decimal

Decimal value representing days since January 1, 1900 (negative for dates before 1900)

ConvertRegionalDateTimeToUTCDecimal

Converts a DateTime value to Decimal format matching SQL Server DateTime numeric representation.
Returns days since January 1, 1900 plus time as a fraction of a day.
Dates before 1900 will have negative values (e.g., Jan 1, 1753 = -53,687 days).

procedure ConvertRegionalDateTimeToUTCDecimal(pdtmDateTime: DateTime): Decimal
Parameters
Name Type Description
pdtmDateTime DateTime

The DateTime to convert

Returns
Type Description
Decimal

Decimal value where integer part is days since January 1, 1900 (negative for dates before 1900), decimal part is time fraction

ConvertDecimalToDate

Converts a Decimal value (in SQL Server DateTime numeric format) back to a Date.
Expects a Decimal representing days since January 1, 1900 (negative for dates before 1900).

procedure ConvertDecimalToDate(pdDecimal: Decimal): Date
Parameters
Name Type Description
pdDecimal Decimal

The Decimal value to convert (days since Jan 1, 1900, negative for dates before 1900)

Returns
Type Description
Date

Date value reconstructed from the Decimal

ConvertUTCDecimalToRegionalDateTime

Converts a Decimal value (in SQL Server DateTime numeric format) back to a DateTime.
Expects a Decimal where integer part is days since January 1, 1900 (negative for dates before 1900), and decimal part is time fraction.

procedure ConvertUTCDecimalToRegionalDateTime(pdDecimal: Decimal): DateTime
Parameters
Name Type Description
pdDecimal Decimal

The Decimal value to convert (days since Jan 1, 1900 + time fraction, negative for dates before 1900)

Returns
Type Description
DateTime

DateTime value reconstructed from the Decimal

Events

OnBeforeNavigateToSourceDocument

Provides an ability to override the handling of navigating to a source document.

[IntegrationEvent(False,False)]
local procedure OnBeforeNavigateToSourceDocument(var precTest: Record "IWX QI Test", var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbHandled Boolean

OnRoundValue

Provides an ability for extensions to alter how values are rounded when summarized.
Use this to alter how values are rounded.

[IntegrationEvent(False,False)]
local procedure OnRoundValue(var pdInputValue: Decimal, var pdOutputValue: Decimal)
Parameters
Name Type Description
pdInputValue Decimal
pdOutputValue Decimal

OnBeforeGetTimezoneOffsetToUTC

Provides an ability for extensions to alter how the timezone offset is retrieved when converting from regional time to UTC.

[IntegrationEvent(False,False)]
local procedure OnBeforeGetTimezoneOffsetToUTC(pdtmDateTime: DateTime, var pdurOffset: Duration, var pbHandled: Boolean)
Parameters
Name Type Description
pdtmDateTime DateTime

The regional DateTime to convert to UTC

pdurOffset Duration

The timezone offset to apply (output parameter)

pbHandled Boolean

Set to true to handle the offset calculation, preventing the default behavior

OnBeforeGetTimezoneOffsetToRegional

Provides an ability for extensions to alter how the timezone offset is retrieved when converting from UTC to regional time.

[IntegrationEvent(False,False)]
local procedure OnBeforeGetTimezoneOffsetToRegional(pdtmDateTime: DateTime, var pdurOffset: Duration, var pbHandled: Boolean)
Parameters
Name Type Description
pdtmDateTime DateTime

The UTC DateTime to convert to regional time

pdurOffset Duration

The timezone offset to apply (output parameter)

pbHandled Boolean

Set to true to handle the offset calculation, preventing the default behavior


Codeunit “IWX QI Progress Dialog”

ID 23067668Namespace: InsightWorks.QualityInspection.Utilities

A progress dialog.

Methods

Open

[TryFunction]
procedure Open(ptxtMessage: Text): Boolean
Parameters
Name Type Description
ptxtMessage Text
Returns
Type Description
Boolean

SetProgress

[TryFunction]
procedure SetProgress(piIndex: Integer, piCount: Integer): Boolean
Parameters
Name Type Description
piIndex Integer
piCount Integer
Returns
Type Description
Boolean

Close

[TryFunction]
procedure Close(): Boolean
Returns
Type Description
Boolean

Codeunit “IWX QI Session Helper”

ID 23067665Namespace: InsightWorks.QualityInspection.Utilities

This exists to help keep track of variables to work around a variety of BC issues.

Properties

Name Value
SingleInstance True
InherentPermissions X

Codeunit “IWX QI WS iwxQualityInspection”

ID 23067662Namespace: InsightWorks.QualityInspection.WebServices

Do not use this codeunit outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help create tests.

Properties

Name Value
Description iwxQualityInspection

Methods

FinishTest

Use with web services and power automate to Finish the Test

[Scope(Cloud)]
[ServiceEnabled]
procedure FinishTest(ptxtTestNo: Text, piRetest: Integer)
Parameters
Name Type Description
ptxtTestNo Text

Text.

piRetest Integer

Integer.

CreateReTest

Creates a Retest.

[Scope(Cloud)]
[ServiceEnabled]
procedure CreateReTest(ptxtTestNo: Text, piRetest: Integer)
Parameters
Name Type Description
ptxtTestNo Text
piRetest Integer

ReOpenTest

Reopens a test

[Scope(Cloud)]
[ServiceEnabled]
procedure ReOpenTest(ptxtTestNo: Text, piRetest: Integer)
Parameters
Name Type Description
ptxtTestNo Text
piRetest Integer

SetTestValue

Reopens a test

[Scope(Cloud)]
[ServiceEnabled]
procedure SetTestValue(ptxtTestNo: Text, piRetest: Integer, ptxtFieldCode: Text, ptxtFieldValue: Text)
Parameters
Name Type Description
ptxtTestNo Text
piRetest Integer
ptxtFieldCode Text
ptxtFieldValue Text

AssignTo

Assigns the test to someone

[Scope(Cloud)]
[ServiceEnabled]
procedure AssignTo(ptxtTestNo: Text, piRetest: Integer, ptxtAssignTo: Text)
Parameters
Name Type Description
ptxtTestNo Text
piRetest Integer
ptxtAssignTo Text

Text.

CreateTestFromRecordID

Minimum of BC 15 is needed.
Min of BC 15 for the system ID, min BC 16 for GetBySystemID
This will create a test from a record id.

[Scope(Cloud)]
[ServiceEnabled]
procedure CreateTestFromRecordID(piInputTableNumber: Integer, pguidInputSystemGuidRecord: Guid, var pguidOutputQualityTestGuid: Guid)
Parameters
Name Type Description
piInputTableNumber Integer

Integer.

pguidInputSystemGuidRecord Guid
pguidOutputQualityTestGuid Guid

CreateTestFromTableIDAndFilter

Create a test with the table number and the table filter to find a specific record.

[Scope(Cloud)]
[ServiceEnabled]
procedure CreateTestFromTableIDAndFilter(piTableNumber: Integer, ptxtTableFilter: Text, var ptxtOutTestNo: Text, var piOutRetestNo: Integer)
Parameters
Name Type Description
piTableNumber Integer

Integer.

ptxtTableFilter Text

Text.

ptxtOutTestNo Text

VAR Text.

piOutRetestNo Integer

VAR Integer.

GetAdaptiveCardJson

This unbound action is intended for use with integration outside of powerautomate.
It will generate adaptive card json when the test and retest number are known.

[ServiceEnabled]
procedure GetAdaptiveCardJson(ptxtTestNo: Text, piRetest: Integer): Text
Parameters
Name Type Description
ptxtTestNo Text
piRetest Integer
Returns
Type Description
Text

GetAdaptiveCardJsonBySystemID

This unbound action is intended for use with integration outside of powerautomate.
It will generate adaptive card json when the test system id is known.

[ServiceEnabled]
procedure GetAdaptiveCardJsonBySystemID(pguidSystemIDOfTest: Guid): Text
Parameters
Name Type Description
pguidSystemIDOfTest Guid
Returns
Type Description
Text

ProcessAdaptiveCardJson

This unbound action is intended for use with integration outside of powerautomate.
It will process the adaptive card json.

[ServiceEnabled]
procedure ProcessAdaptiveCardJson(inputAdaptiveCardJson: Text)
Parameters
Name Type Description
inputAdaptiveCardJson Text

ControlAddIn “IWX QI Big Text Area”

Namespace: InsightWorks.QualityInspection.ControlAddIn.BigTextArea

Helps increase the size of a text area control to make it easier to enter
large peices of text.

Methods

IncreaseTextArea

Style the entry field to be larger than the tiny four lines BC defaults to.

procedure IncreaseTextArea(txtControlName: Text)
Parameters
Name Type Description
txtControlName Text

The control name for the specific page part.


Enum “IWX QI Note Permission”

ID 23067676Namespace: InsightWorks.QualityInspection.AccessControl

Grants the user the ability to add or edit a line note/comment.

Properties

Name Value
Caption Note Permission

Values

Name Description
ReadOnly
Editable
Hidden

Enum “IWX QI Permission State”

ID 23067639Namespace: InsightWorks.QualityInspection.AccessControl

A flag used with function permissions to define if a functional permission is allowed or disallowed.

Properties

Name Value
Caption Permission State

Values

Name Description
Denied
Allowed

Enum “IWX QI User Type”

ID 23067640Namespace: InsightWorks.QualityInspection.AccessControl

Extend this to add different user types, such as lookups to other tables.

Properties

Name Value
Extensible True
Caption User Type

Values

Name Description
User
Everyone

Enum “IWX QI Analysis Category”

ID 23067725Namespace: InsightWorks.QualityInspection.Analysis

A simple category of analysis kind.

Properties

Name Value
Extensible True

Values

Name Description
Vendor
WorkCenter
BOM
Item
Attribute
Measurement
DayDetails
BOMComponent
Operation

Enum “IWX QI Pareto Status”

ID 23067726Namespace: InsightWorks.QualityInspection.Analysis

Properties

Name Value
Extensible True

Values

Name Description
Paretto80Effect20Cause
Paretto20Effect

Enum IWXQIWorkflowIntegration

ID 23067660Namespace: InsightWorks.QualityInspection.Automation

Properties

Name Value
Caption Quality Inspector Workflow Integration

Values

Name Description
DisableWorkflow
EnableWorkflow

Enum “IWX QI Show Quality Inspector”

ID 23067658Namespace: InsightWorks.QualityInspection.Configuration.ApplicationAreas

Properties

Name Value
Caption Show Quality Inspector

Values

Name Description
IWXQIShow
IWXQIHide

Enum “IWX QI Certainty”

ID 23067696Namespace: InsightWorks.QualityInspection.Configuration.GenerationRule

Properties

Name Value
Caption Certainty
Extensible False

Values

Name Description
Maybe
No
Yes

Enum “IWX QI Gen. Rule Act. Trigger”

ID 23067694Namespace: InsightWorks.QualityInspection.Configuration.GenerationRule

Properties

Name Value
Caption Generation Rule Activation Trigger
Extensible False

Values

Name Description
ManualOrAutomatic
ManualOnly
AutomaticOnly
Disabled

Enum “IWX QI Gen. Rule Intent”

ID 23067695Namespace: InsightWorks.QualityInspection.Configuration.GenerationRule

Properties

Name Value
Caption Generation Rule Intent
Extensible False

Values

Name Description
Unknown
Purchase
SalesReturn
WarehouseReceive
WarehouseMovement
Transfer
Production
Assembly
Nonconformance

Enum “IWX QI Cond. Lot Blck Fnd Bhvr”

ID 23067672Namespace: InsightWorks.QualityInspection.Configuration.Grade

Used to help determine which test to use when conditional optional lot/serial item tracking based blocking.
When evaluating if a document specific transactions are blocked, this determines which test(s) are considered.

Properties

Name Value
Caption Conditional Document Lot Blocking Find Test Behavior

Values

Name Description
Any
MostRecentModified
HighestRetestNumber
AnyFinished
MostRecentFinishedModified
HighestFinishedRetestNumber

Enum “IWX QI Conditional Lot Block”

ID 23067662Namespace: InsightWorks.QualityInspection.Configuration.Grade

How to apply conditional item tracking based blocking.

Properties

Name Value
Caption Conditional Item Tracking Blocking Behavior

Values

Name Description
Allow
Block
AllowFinishedOnly

Enum “IWX QI Grade Category”

ID 23067669Namespace: InsightWorks.QualityInspection.Configuration.Grade

A general categorization of whether this grade represents good or bad.

Properties

Name Value
Caption Grade Category

Values

Name Description
Uncategorized
Acceptable
NotAcceptable

Enum “IWX QI Grade Condition Type”

ID 23067649Namespace: InsightWorks.QualityInspection.Configuration.Grade

What a condition configuration applies to.

Properties

Name Value
Caption Condition Type

Values

Name Description
Field
Template
Test

Enum “IWX QI Grade Copy”

ID 23067648Namespace: InsightWorks.QualityInspection.Configuration.Grade

Whether to automatically configure this grade on new fields and new templates.

Properties

Name Value
Caption Grade Copy Behavior

Values

Name Description
AutoCopy
DoNotCopy

Enum “IWX QI Grade Detail Visibility”

ID 23067659Namespace: InsightWorks.QualityInspection.Configuration.Grade

Used to decide whether to show or hide grade details at all.
This does not mean whether an individual grade should be promoted or not.

Properties

Name Value
Caption Grade Detail Visibility

Values

Name Description
OnlyPromotedHideDetails
MakeGradeDetailsVisible

Enum “IWX QI Grade Finish Allowed”

ID 23067702Namespace: InsightWorks.QualityInspection.Configuration.Grade

Whether to automatically configure this grade on new fields and new templates.

Properties

Name Value
Caption Grade Finish Allowed

Values

Name Description
AllowFinish
DoNotAllowFinish

Enum “IWX QI Grade Visibility”

ID 23067651Namespace: InsightWorks.QualityInspection.Configuration.Grade

Whether to try and make this grade more prominent, this can optionally be used on some reports and forms.

Properties

Name Value
Caption Grade Visibility

Values

Name Description
Configuration
Promoted

Enum “IWX QI Auto Assign Behavior”

ID 23067664Namespace: InsightWorks.QualityInspection.Configuration

This enum helps determine how automatic assignment should work.

Properties

Name Value
Caption Auto Assign Behavior

Values

Name Description
PromptWhenPossible
Never
Always

Enum “IWX QI Chart Visibility”

ID 23067682Namespace: InsightWorks.QualityInspection.Configuration

Controls the visibility of the chart.

Properties

Name Value
Caption Chart Visibility
Extensible False

Values

Name Description
Visible
Hidden

Enum “IWX QI Create Test Behavior”

ID 23067637Namespace: InsightWorks.QualityInspection.Configuration

This behavior controls how tests should be created.
If extending this make sure to implement OnCustomCreateTestBehavior

Properties

Name Value
Caption Create Test Behavior

Values

Name Description
AlwaysCreate
CreateARetestFinished
CreateARetestAny
UseExistingTestOpenElseNew
UseExistingTestAnyElseNew

Enum “IWX QI Experimental Features”

ID 23067663Namespace: InsightWorks.QualityInspection.Configuration

Obsolete

This element will become obsolete from version 7.21. No longer used.

Obsolete. Do not use.

Properties

Name Value
ObsoleteState Pending
ObsoleteReason No longer used.
ObsoleteTag 7.21

Values

Name Description
“Disable Experimental Features”

(Obsolete)
This element will become obsolete from version 7.21. No longer used.

“Enable Experimental Features”

(Obsolete)
This element will become obsolete from version 7.21. No longer used.


Enum “IWX QI Find Existing Behavior”

ID 23067638Namespace: InsightWorks.QualityInspection.Configuration

This enum controls how existing tests are found.
In some scenarios it’s only about the source record, in others
it is only item tracking, and in some it’s standard source, document, and template.

Properties

Name Value
Caption Find Existing Behavior

Values

Name Description
ByStandardSource
BySourceRecord
ByTracking
ByDocumentAndItemOnly

Enum “IWX QI Iteration State”

ID 23067647Namespace: InsightWorks.QualityInspection.Configuration

Used to help lists and filters quickly identify which
test is the most recent retest.

Properties

Name Value
Caption Iteration State

Values

Name Description
NewerVersionAvailable
MostRecent

Enum “IWX QI Picture Upload Behavior”

ID 23067655Namespace: InsightWorks.QualityInspection.Configuration

This is used to help determine what to do when a picture is uploaded to a test.

Properties

Name Value
Caption Picture Upload Behavior

Values

Name Description
DoNothingJustBlob
Attach
AttachAndStoreInOneDrive
AttachAndStoreWithDocXTender

Enum “IWX QI Round Direction”

ID 23067697Namespace: InsightWorks.QualityInspection.Configuration

Properties

Name Value
Caption Round Direction

Values

Name Description
DefaultSystem
DoNotRound
NearestValue
AlwaysUp
AlwaysDown

Enum “IWX QI Schedule Change”

ID 23067654Namespace: InsightWorks.QualityInspection.Configuration

Used to help lists and filters quickly identify which
test is the most recent retest.

Values

Name Description
Ignore
ByGenerationRule
SpecificTemplate

Enum “IWX QI Show Test Behavior”

ID 23067636Namespace: InsightWorks.QualityInspection.Configuration

Defines when to automatically show the tests.

Properties

Name Value
Caption Show Test Behavior

Values

Name Description
ShowAutoAndManual
ShowWhenManual
DoNotShow

Enum “IWX QI Tool Identification Req”

ID 23067681Namespace: InsightWorks.QualityInspection.Configuration

This flag is used to help determine if a tool is optional or required.

Properties

Name Value
Caption Tool Identification Requirement

Values

Name Description
Optional
Mandatory

Enum “IWX QI Tool Type”

ID 23067680Namespace: InsightWorks.QualityInspection.Configuration

A tool type determines what a tool refers to.
A tool could refer to an existing item, a fixed asset, a resource
or just be a generic reference.

Values

Name Description
Generic
Item
FixedAsset
Resource

Enum “IWX QI Tracking Behavior”

ID 23067653Namespace: InsightWorks.QualityInspection.Configuration

Determines the item tracking behavior, and can be used to help determine
whether to require item tracking before finishing a test.

Properties

Name Value
Caption Item Tracking Behavior

Values

Name Description
EmptyTrackingAllowed
TrackingMustBePosted
ReservationOrPostedAllowed
AnyValue

Enum “IWX QI Update Test On Source”

ID 23067642Namespace: InsightWorks.QualityInspection.Configuration

This flag is used to indicate whether or not to keep the source data updated.

Properties

Name Value
Caption Update Source Behavior

Values

Name Description
UpdateOnChange
DoNotUpdate

Enum “IWX QI Validation Behavior”

ID 23067652Namespace: InsightWorks.QualityInspection.Configuration

Specifies how to behave for scenarios such as receiving or production trigger verification.

Properties

Name Value
Caption Validation Behavior

Values

Name Description
Error
ConfirmWhenPossible
Message

Enum “IWXQI Show Test Notify Behav.”

ID 23067707Namespace: InsightWorks.QualityInspection.Configuration

Properties

Name Value
Extensible True
Caption Show Test Notification Behavior

Values

Name Description
Notify
ShowTest

Enum “IWX QI Inspection Level”

ID 23067668Namespace: InsightWorks.QualityInspection.Configuration.Sampling

ISO 2859-1 The Available general inspection levels.

Properties

Name Value
Extensible True

Values

Name Description
None
GeneralLevelI
GeneralLevelII
GeneralLevelIII
SpecialLevelS1
SpecialLevelS2
SpecialLevelS3
SpecialLevelS4

Enum “IWX QI Skip Lot Decision”

ID 23067700Namespace: InsightWorks.QualityInspection.Configuration.Sampling.SkipLot

This is used to document the decision that was taken as a result of a skip lot rule.

Properties

Name Value
Caption Skip Lot Action
Extensible True

Values

Name Description
Test
Skip

Enum “IWX QI Skip Lot Group By”

ID 23067704Namespace: InsightWorks.QualityInspection.Configuration.Sampling.SkipLot

This is a ‘quick’ enum used to help influence the expressions for skip lot.

Properties

Name Value
Caption Group By
Extensible True

Values

Name Description
Item
SourceLot
Custom

Enum “IWX QI Skip Lot Qty. Count By”

ID 23067703Namespace: InsightWorks.QualityInspection.Configuration.Sampling.SkipLot

This enum is used as a ‘quick’ choise to help people decide how to count the skip lots.

Properties

Name Value
Caption Count By
Extensible True

Values

Name Description
Occurrence
SourceQuantity
Custom

Enum “IWX QI Config. Field Priority”

ID 23067699Namespace: InsightWorks.QualityInspection.Configuration.SourceConfiguration

A configuration priority flag is used to help determine if a field takes precedence over
other matching fields.

Properties

Name Value
Caption Configuration Field Priority.
Extensible True

Values

Name Description
Normal
Priority

Enum “IWX QI Source State”

ID 23067643Namespace: InsightWorks.QualityInspection.Configuration.SourceConfiguration

Whether a source state is disabled or enabled.

Properties

Name Value
Caption Source State
Extensible False

Values

Name Description
Disabled
Enabled

Enum “IWX QI Target Type”

ID 23067635Namespace: InsightWorks.QualityInspection.Configuration.SourceConfiguration

The target of a source configuration. This can be either a chained table
or a test, or only item tracking.

Properties

Name Value
Caption Target Type

Values

Name Description
ChainTable
Test
TrackingOnly

Enum “IWX QI Case Sensitive”

ID 23067675Namespace: InsightWorks.QualityInspection.Configuration.Template.Field

Used to help control if pass/fail grade criteria is case sensitive or not.

Properties

Name Value
Caption Case Sensitivity

Values

Name Description
Sensitive
InSensitive

Enum “IWX QI Field Type”

ID 23067650Namespace: InsightWorks.QualityInspection.Configuration.Template.Field

A field type is the kind of data field for a quality inspection field.

Properties

Name Value
Caption iwxQIFieldType
AssignmentCompatibility True
Extensible False

Values

Name Description
FieldTypeDecimal
FieldTypeInteger
FieldTypeBoolean
FieldTypeText
FieldTypeOption
FieldTypeTableLookup
FieldTypeDateTime
FieldTypeDateOnly
FieldTypeLabel
FieldTypeNumericExpression
FieldTypeTextExpression

Enum “IWX QI Field Wizard State”

ID 23067656Namespace: InsightWorks.QualityInspection.Configuration.Template.Field

Helps note the expected wizard field state.

Properties

Name Value
Caption Field Wizard State

Values

Name Description
Complete
InProgress

Enum “IWX QI Sample Summary”

ID 23067666Namespace: InsightWorks.QualityInspection.Configuration.Template.Field

Values

Name Description
NotApplicable
Average
Max
Min
First
Last
Sum
Mode
Count
StdDev
Variance
LargestLimitVariance
FirstFailedValue
FirstPassedValue

Enum “IWX QI Sample Source”

ID 23067698Namespace: InsightWorks.QualityInspection.Configuration.Template

This is used to influence how the Sample Size on a test is initially set.

Properties

Name Value
Caption Sample Source

Values

Name Description
Empty
FixedQuantity
Percent
AQL

Enum “IWX QI Template Type”

ID 23067679Namespace: InsightWorks.QualityInspection.Configuration.Template

The template type is a category of the kind of template the inspection is.

Properties

Name Value
Caption iwxQITemplateType
AssignmentCompatibility True
Extensible True

Values

Name Description
General
BalloonBubbleSpec
Nonconformance

Enum “IWX QI Disposition Kind”

ID 23067691Namespace: InsightWorks.QualityInspection.Dispositions

Implements

Properties

Name Value
Extensible True
Caption Disposition Kind

Values

Name Description
ChangeItemTracking
MoveWithItemReclassification
MoveWithWarehouseReclass
MoveWithInternalMovement
MoveWithMovementWorksheet
MoveWithAutomaticChoice
NegativeAdjustment
CreateInternalPutAway
CreateWarehousePutAway
CreateTransferOrder
CreatePurchaseReturn
QuarantineLicensePlate
UnQuarantineLicensePlate

Enum “IWX QI Item Adj. Post Behavior”

ID 23067684Namespace: InsightWorks.QualityInspection.Dispositions

Determines how entries are created, whether to just create entries or also immediately post them.

Properties

Name Value
Extensible True
Caption Item Adjustment Posting Behavior

Values

Name Description
EntryOnly
Post

Enum “IWX QI Move Behavior”

ID 23067683Namespace: InsightWorks.QualityInspection.Dispositions

Obsolete

This element will become obsolete from version 7.21. Replaced with “IWX QI Quantity Behavior”

Obsolete. Use IWX QI Quantity Behavior instead.

Properties

Name Value
ObsoleteState Pending
ObsoleteReason Replaced with “IWX QI Quantity Behavior”
ObsoleteTag 7.21
Caption iwxqiMoveSampleBehavior
AssignmentCompatibility True
Extensible True

Values

Name Description
SpecificQuantity

(Obsolete)
This element will become obsolete from version 7.21. Replaced with “IWX QI Quantity Behavior”

TrackedQuantity

(Obsolete)
This element will become obsolete from version 7.21. Replaced with “IWX QI Quantity Behavior”

SampleQuantity

(Obsolete)
This element will become obsolete from version 7.21. Replaced with “IWX QI Quantity Behavior”

FailQuantity

(Obsolete)
This element will become obsolete from version 7.21. Replaced with “IWX QI Quantity Behavior”

PassQuantity

(Obsolete)
This element will become obsolete from version 7.21. Replaced with “IWX QI Quantity Behavior”


Enum “IWX QI Quantity Behavior”

ID 23067693Namespace: InsightWorks.QualityInspection.Dispositions

This enum defines how quantities should be moved with the variety of reactions/dispositions.

Properties

Name Value
Caption iwxqiQuantityBehavior
AssignmentCompatibility True
Extensible True

Values

Name Description
SpecificQuantity
TrackedQuantity
SampleQuantity
FailQuantity
PassQuantity

Enum “IWX QI Create Status”

ID 23067705Namespace: InsightWorks.QualityInspection.Document

Enum for tracking if a test could be created, could not be created, or intentionally skipped for scenarios when we need to know if it could be created but we intentionally chose not to.

Properties

Name Value
Caption Create Status
Extensible True

Values

Name Description
Unknown
UnableToCreate
Created
Skipped

Enum “IWX QI Line Failure State”

ID 23067670Namespace: InsightWorks.QualityInspection.Document

Helps categorize how a line failed.

Properties

Name Value
Caption Line Failure State

Values

Name Description
NotApplicable
FailedFromAQL
FailedFromAcceptance

Enum “IWX QI Set User Context”

ID 23067665Namespace: InsightWorks.QualityInspection.Document

Used to help set and get the user context for a given contextual activity.

Properties

Name Value
Caption iwxqiSetUserContext
AssignmentCompatibility True
Extensible False

Values

Name Description
Unknown
Created
Modified
Finished
AssignToSelf

Enum “IWX QI Test Status”

ID 23067657Namespace: InsightWorks.QualityInspection.Document

The test status is what state the test itself is in.

Properties

Name Value
Caption iwxqiTestStatus
AssignmentCompatibility True
Extensible False

Values

Name Description
Open
Finished

Enum “IWX QI Sample Status”

ID 23067667Namespace: InsightWorks.QualityInspection.Document.Sampling

Properties

Name Value
Caption Sample Status

Values

Name Description
NotTaken
Recorded

Enum “IWX QI Skip Lot Log Type”

ID 23067701Namespace: InsightWorks.QualityInspection.Document.Sampling.SkipLot

Enum for Skip Lot Rule Line Action Types

Properties

Name Value
Caption Log Type
Extensible True

Values

Name Description
Log
ResetCounter
TestFinishedPass
SkipCreateTest
CreateTest
TestFinishedFailed
ChangedByPerson

Enum “IWX QI IEPT Delimiter Handling”

ID 23067671Namespace: InsightWorks.QualityInspection.ImportExportPowerTool

Properties

Name Value
Extensible True
Caption Delimiter Handling

Values

Name Description
“Remove Quotes”
Ignore

Enum “IWX QI IEPT Field Action”

ID 23067674Namespace: InsightWorks.QualityInspection.ImportExportPowerTool

This flag determines how to handle missing fields

Properties

Name Value
Extensible True

Values

Name Description
Prompt
“Ignore All”
Error

Enum “IWX QI Assembly Trigger”

ID 23067692Namespace: InsightWorks.QualityInspection.Integration.Production

Properties

Name Value
Extensible True
Caption Assembly Trigger

Values

Name Description
NoTrigger
OnAnyOutputPostedLedger

Enum “IWX QI Auto Output Config”

ID 23067677Namespace: InsightWorks.QualityInspection.Integration.Production

Helps determine the behavior of when to create tests with production output.

Properties

Name Value
Caption Output Trigger

Values

Name Description
AnyOutput
AnyQuantity
OnlyWithQuantity
OnlyWithScrap

Enum “IWX QI Prod. Require Test”

ID 23067644Namespace: InsightWorks.QualityInspection.Integration.Production

Determines how production validation flags occur.

Properties

Name Value
Caption Require Test Status

Values

Name Description
DoNotRequire
OnFinish
OnOutput
OnOutputEveryXUnits
OnOutputEveryXTime
OnBeforeChangeProgressNextStep

Enum “IWX QI Production Trigger”

ID 23067641Namespace: InsightWorks.QualityInspection.Integration.Production

The trigger for when to create tests for production orders.

Properties

Name Value
Caption Production Trigger

Values

Name Description
NoTrigger
OnAnyOutputPostedLedger
OnRelease
OnReleasedRefresh
OnCreateReleasedProdOrderFromSale

Enum “IWX QI Purchase Order Trigger”

ID 23067687Namespace: InsightWorks.QualityInspection.Integration.Receiving

Helps determine how receiving behaviors should occur.

Properties

Name Value
Extensible True
Caption Purchase Order Trigger

Values

Name Description
NoTrigger
OnPurchPost
OnPurchRelease

Enum “IWX QI Rec. Require Test”

ID 23067645Namespace: InsightWorks.QualityInspection.Integration.Receiving

Used to help flag if we need to assure that a test has been created prior to receiving.

Values

Name Description
DoNotRequire
OnBeforePostWhseReceipt
OnBeforePostPurchOrder

Enum “IWX QI Receive Trigger”

ID 23067646Namespace: InsightWorks.QualityInspection.Integration.Receiving

Obsolete

This element will become obsolete from version 7.20. Use Receiving Triggers from IWX QI Setup instead.

Properties

Name Value
ObsoleteState Pending
ObsoleteReason Use Receiving Triggers from IWX QI Setup instead.
ObsoleteTag 7.20

Values

Name Description
NoTrigger

(Obsolete)
This element will become obsolete from version 7.20. Use Receiving Triggers from IWX QI Setup instead.

OnReceiptCreated

(Obsolete)
This element will become obsolete from version 7.20. Use Receiving Triggers from IWX QI Setup instead.

OnReceivePost

(Obsolete)
This element will become obsolete from version 7.20. Use Receiving Triggers from IWX QI Setup instead.

OnPurchPost

(Obsolete)
This element will become obsolete from version 7.20. Use Receiving Triggers from IWX QI Setup instead.

OnSalesReturnPost

(Obsolete)
This element will become obsolete from version 7.20. Use Receiving Triggers from IWX QI Setup instead.

OnSalesReturnOrPurchasePost

(Obsolete)
This element will become obsolete from version 7.20. Use Receiving Triggers from IWX QI Setup instead.


Enum “IWX QI Sales Return Trigger”

ID 23067688Namespace: InsightWorks.QualityInspection.Integration.Receiving

Properties

Name Value
Extensible True
Caption Sales Return Trigger

Values

Name Description
NoTrigger
OnSalesReturnPost

Enum “IWX QI Transfer Trigger”

ID 23067689Namespace: InsightWorks.QualityInspection.Integration.Receiving

Helps determine the trigger for transfer specific reactions.

Properties

Name Value
Extensible True
Caption Transfer Trigger

Values

Name Description
NoTrigger
OnTransferReceivePost

Enum “IWX QI Whse. Receive Trigger”

ID 23067685Namespace: InsightWorks.QualityInspection.Integration.Receiving

The warehouse receipt behavior to create a test.

Properties

Name Value
Extensible True
Caption Warehouse Receive Trigger

Values

Name Description
NoTrigger
OnReceiptCreate
OnReceiptPost

Enum “IWX QI Transfer Buf. Doc. Type”

ID 23067690Namespace: InsightWorks.QualityInspection.Integration.Transfer

When building a buffer table for related transfers this enum helps indicate the transfer order type.

Properties

Name Value
Extensible True
Caption Transfer Buffer Document Type

Values

Name Description
TransferOrder
DirectTransfer
TransferShipment
TransferReceipt

Enum “IWX QI Transfer Buf. Status”

ID 23067686Namespace: InsightWorks.QualityInspection.Integration.Transfer

Used on a buffer table to help indicate the status of the transfer order.

Properties

Name Value
Extensible True
Caption Transfer Buffer Status

Values

Name Description
Open
Released
Posted

Enum “IWX QI Inspection Required”

ID 23067706Namespace: InsightWorks.QualityInspection.Integration.Warehousing

Properties

Name Value
Caption Inspection Required
Extensible True

Values

Name Description
Optional
Required

Enum “IWX QI Put-away Behavior”

ID 23067678Namespace: InsightWorks.QualityInspection.Integration.Warehousing

Obsolete

This element will become obsolete from version 7.21. No longer required.

This flag determines how a put-away reaction/disposition should behave.

Properties

Name Value
ObsoleteState Pending
ObsoleteReason No longer required.
ObsoleteTag 7.21
Caption iwxqiPutawayBehavior
AssignmentCompatibility True
Extensible False

Values

Name Description
KEEPOPEN

(Obsolete)
This element will become obsolete from version 7.21. No longer required.

RELEASE

(Obsolete)
This element will become obsolete from version 7.21. No longer required.

CREATEPUTAWAY

(Obsolete)
This element will become obsolete from version 7.21. No longer required.


Enum “IWX QI Warehouse Trigger”

ID 23067673Namespace: InsightWorks.QualityInspection.Integration.Warehousing

Determines what triggers a test from a warehouse movement.

Properties

Name Value
Caption Warehouse Trigger

Values

Name Description
NoTrigger
IntoBin

Enum “IWX QI Report Selection Usage”

ID 23067661Namespace: InsightWorks.QualityInspection.Reporting

Used for report selections.

Properties

Name Value
Extensible True
AssignmentCompatibility True
Caption Quality Report Selection Usage

Values

Name Description
COA
NCR
GENERAL
FIRSTARTICLEINSPECTIONFORM3
INSPECTIONLABEL

EnumExtension IWXQI_ExtApprovalDocumentType

ID 23067636Namespace: InsightWorks.QualityInspection.AutomationExtends: System.Automation.”Approval Document Type”

Values

Name Description
IWXQI_Test

EnumExtension “IWX QI Copilot Capability Ext”

ID 23067639Namespace: InsightWorks.QualityInspection.CognitiveServicesExtends: System.AI.”Copilot Capability”

Values

Name Description
IWXQIFillTestValues

EnumExtension “IWX QI Setup Category”

ID 23067635Namespace: InsightWorks.QualityInspection.Configuration.SetupWizardExtends: System.Environment.Configuration.”Manual Setup Category”

Extends the setup category for use with Quality Inspector.

Values

Name Description
“IWX QI Quality Inspector”

EnumExtension “IWX QI Attachment Doc. Type”

ID 23067651Namespace: InsightWorks.QualityInspection.Document.AttachmentExtends: Microsoft.Foundation.Attachment.”Attachment Document Type”

Values

Name Description
“IWX QI Quality Document”

EnumExtension “IWX QI Ext. Report Sel. Usage”

ID 23067637Namespace: InsightWorks.QualityInspection.ReportingExtends: Microsoft.Foundation.Reporting.”Report Selection Usage”

Values

Name Description
IWXQI_CertificateOfAnalysis
IWXQI_NCR
IWXQI_General
IWXQI_FAIRForm3
IWXQI_InspectionLabel

EnumExtension IWXQIExtendEventCategory

ID 23067638Namespace: InsightWorks.QualityInspection.WebServicesExtends: System.Integration.EventCategory

Used for external business events, such as power automate integration.

Values

Name Description
IWXQIQualityInspectionTest

Interface IWXQIDisposition

Namespace: InsightWorks.QualityInspection.Dispositions

The disposition

Methods

PerformDisposition

procedure PerformDisposition(var precTest: Record "IWX QI Test", var ptrecInstructionDispositionBuffer: Record "IWX QI Disposition Buffer" temporary): Boolean
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecInstructionDispositionBuffer Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”
Returns
Type Description
Boolean

Module Quality Inspector

Quality Inspector app from Insight Works is a comprehensive quality control app designed for companies looking to streamline their quality assurance processes, reduce rework, and maximize customer satisfaction. With customizable entry forms, automated, ad hoc, and manual quality inspections, and seamless integration with Microsoft Dynamics 365 Business Central, Quality Inspector empowers manufacturers to improve product quality, reduce costs, and maintain regulatory compliance. By offering mobile-friendly user interfaces, automated test creation, inbound receiving inspections, and Power Platform integration, Quality Inspector enables organizations to enhance quality control, improve data management, increase compliance, and make data-driven decisions, fostering a culture of continuous improvement and ensuring customer satisfaction.

Properties

Name Value
Version 7.25.9559.4
Publisher Insight Works
Brief Quality Inspections for the Shop Floor.

Namespace

Name Summary
InsightWorks

Namespace InsightWorks

Namespace

Name Summary
InsightWorks.QualityInspection

Namespace InsightWorks.QualityInspection.AccessControl

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.AccessControl.”IWX QI Permission Mgmt” Permission management methods to help with functional permissions.

Table

Name Summary
Table InsightWorks.QualityInspection.AccessControl.”IWX QI Permission” Contains detailed functional user permissions. This only exists for the full version, not the express version.

Page

Name Summary
Page InsightWorks.QualityInspection.AccessControl.”IWX QI Permissions” Use this page to add quality inspectors and fine tune what they are allowed to do in the Quality Inspector module. Note: you still need to grant access to permission sets that provide Business Central access to quality inspections. Any user that is assigned a test needs to have a permission on this page. All quality inspectors should have their own entry in here.
Page InsightWorks.QualityInspection.AccessControl.”IWX QI Permissions Part” Use this page to add quality inspectors and fine tune what they are allowed to do in the Quality Inspector module. Note: you still need to grant access to permission sets that provide Business Central access to quality inspections. Any user that is assigned a test needs to have a permission on this page. All quality inspectors should have their own entry in here.

Enum

Name Summary
Enum InsightWorks.QualityInspection.AccessControl.”IWX QI Note Permission” Grants the user the ability to add or edit a line note/comment.
Enum InsightWorks.QualityInspection.AccessControl.”IWX QI Permission State” A flag used with function permissions to define if a functional permission is allowed or disallowed.
Enum InsightWorks.QualityInspection.AccessControl.”IWX QI User Type” Extend this to add different user types, such as lookups to other tables.

PermissionSet

Name Summary
PermissionSet InsightWorks.QualityInspection.AccessControl.IWXQIEntryInspector Permission set IWXQIEntryInspector (ID 23067637). Used for data entry only.
PermissionSet InsightWorks.QualityInspection.AccessControl.IWXQIGeneral Permission set IWXQIQualityInspector (ID 23067635).
PermissionSet InsightWorks.QualityInspection.AccessControl.IWXQIObjects Permission set IWXQIObjects (ID 23067638).
Requirement from Microsoft.
“Required. This is needed to enable partners to build permissionsets in different ways.
If they choose not to use patterns like Codeunit * = X (which we do) then
this guarantees the users will be able to execute the required code for the module).
Without it partners may be unable to build a permissionset to grant access to the
functionality.
Must contain all objects of the app
Do not add any tabledata permissions
Only grant X to all objects of all types
Do not use the * = X; pattern”
PermissionSet InsightWorks.QualityInspection.AccessControl.”IWX QI ReadOnly”

PermissionSetExtension

Name Summary
PermissionSetExtension InsightWorks.QualityInspection.AccessControl.IWXQI_XD365BASIC

Events

Name Summary
OnBeforeGetUserPermissionRecord Use OnBeforeGetUserPermissionRecord to override which user permission record is used when checking permissions.
OnAfterGetUserPermissionRecord Use OnAfterGetUserPermissionRecord to extend which user permission record is used when checking permissions.
This is called after the everyone check has performed.

Namespace InsightWorks.QualityInspection.Analysis

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Helper” Intended to help with analysis of tests that have failed.

Table

Name Summary
Table InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Buffer”
Table InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Detail Buffer”

Page

Name Summary
Page InsightWorks.QualityInspection.Analysis.”IWX QI Analyze Fail” Intended to help with analysis of tests that have failed.
Page InsightWorks.QualityInspection.Analysis.”IWX QI Analyze Fail Details” Intended to be used to help list details for a rolled up analysis.
Page InsightWorks.QualityInspection.Analysis.”IWX QI Test Matrix” Quality Inspection Tests down as rows, test values as columns.
Goal is to make it easier to analyze and report on quality inspection history.
Page InsightWorks.QualityInspection.Analysis.”IWX QI Test Values” Page IWX QI Test Values (ID 23067648).
replaces page 23044194 “SFI Quality Insp. Test Values “
Introduced to make it easier to analyze test values changes over time.

Enum

Name Summary
Enum InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Category” A simple category of analysis kind.
Enum InsightWorks.QualityInspection.Analysis.”IWX QI Pareto Status”

Events

Name Summary
OnBeforePerformFailureAnalysis Occurs before the failure analysis is performed. Use this event to override the standard analysis logic or to initialize buffers.
OnAfterPerformFailureAnalysis Occurs after the failure analysis has been performed. Use this event to modify the analysis results or perform additional calculations.
OnPerformFailureAnalysisLoop Occurs during the loop of failed tests in the analysis. Use this event to add custom analysis logic for each failed test.

Namespace InsightWorks.QualityInspection.Automation

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Automation.”IWX QI Start Workflow” This codeunit is intended to help with starting a Business Central workflow.
Codeunit InsightWorks.QualityInspection.Automation.”IWX QI Workflow Approvals” Functions to handle and integrate with Business Central’s approval mechanism.
Codeunit InsightWorks.QualityInspection.Automation.”IWX QI Workflow Response” This codeunit deals with the handling of workflow responses
Codeunit InsightWorks.QualityInspection.Automation.”IWX QI Workflow Setup” This codeunit deals with setup integration events, and other setup related to
Business Central workflows.

No processing occurs in this codeunit, but anything related to the setup
and template of available events and responses will be here.

PageExtension

Name Summary
PageExtension InsightWorks.QualityInspection.Automation.”IWX QI WKFLW Resp. Opt. Part” We extend workflow response options to allow configuration of Quality Inspector Actions.

Enum

Name Summary
Enum InsightWorks.QualityInspection.Automation.IWXQIWorkflowIntegration

EnumExtension

Name Summary
EnumExtension InsightWorks.QualityInspection.Automation.IWXQI_ExtApprovalDocumentType

Namespace InsightWorks.QualityInspection.Charting

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Charting.”IWX QI Value Chart Mgmt” The OnRun is intended to be used as a background page task.
This codeunit is used to help work with the built-in charts in Business Central and specifically
with background data collection to work with the charts.

Table

Name Summary
Table InsightWorks.QualityInspection.Charting.”IWX QI Measurement Buffer” This buffer table is used with charting.

Page

Name Summary
Page InsightWorks.QualityInspection.Charting.”IWX QI Chart Values” The chart values page is used to easily chart measurements over time.
Page InsightWorks.QualityInspection.Charting.”IWX QI Value Chart Part” This chart part can be used to display plotted test results over time.

Query

Name Summary
Query InsightWorks.QualityInspection.Charting.”IWX QI Test Values By Source”

Namespace InsightWorks.QualityInspection.CognitiveServices

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.CognitiveServices.”IWX QI ACI Forms API” This is the main Azure Document Intelligence / Azure Form Recognizer integration codeunit.
Codeunit InsightWorks.QualityInspection.CognitiveServices.”IWX QI AOAI Fill In Values” This codeunit is used for the Azure open AI feature of filling in values from text.
Codeunit InsightWorks.QualityInspection.CognitiveServices.”IWX QI AOAI Suggest Fields Tpl” Implementation for azure open AI suggest fields.
Codeunit InsightWorks.QualityInspection.CognitiveServices.”IWX QI Azure Blob Storage Mgmt” @ExpressSkipFile
Responsible for working with ASzure Blob Storage
Codeunit InsightWorks.QualityInspection.CognitiveServices.”IWX QI Token Counter”

Page

Name Summary
Page InsightWorks.QualityInspection.CognitiveServices.”IWX QI AOAI Detected ListPart” Used to help with detecting fields from document intelligence.
Page InsightWorks.QualityInspection.CognitiveServices.”IWX QI AOAI Values Prompt” The azure open AI values prompt page. Use this to fill in values in a test.
Page InsightWorks.QualityInspection.CognitiveServices.”IWX QI Scan Form” Works with Azure Document Intelligence / Form recognizer to upload an image and scan it.

EnumExtension

Name Summary
EnumExtension InsightWorks.QualityInspection.CognitiveServices.”IWX QI Copilot Capability Ext”

Namespace InsightWorks.QualityInspection.Configuration.ApplicationAreas

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Configuration.ApplicationAreas.”IWX QI Application Area Mgmt”

TableExtension

Name Summary
TableExtension InsightWorks.QualityInspection.Configuration.ApplicationAreas.”IWX QI App Area Setup”

Enum

Name Summary
Enum InsightWorks.QualityInspection.Configuration.ApplicationAreas.”IWX QI Show Quality Inspector”

Namespace InsightWorks.QualityInspection.Configuration.GenerationRule

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule Mgmt” Methods to assist with test generation rule management.
Codeunit IWX QI Assignment Mgmt”(ID 23067640).
Parts based on codeunit 23044160 “SFI Quality Insp. Management “

Table

Name Summary
Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule” A Quality Inspection Test generation rule defines when you want to ask a set of questions or other data that you want to collect that is defined in a template. You connect a template to a source table, and set the criteria to use that template with the table filter. When these filter criteria is met, then it will choose that template. When there are multiple matches, it will use the first template that it finds, based on the sort order.

Page

Name Summary
Page InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule List”

Enum

Name Summary
Enum InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Certainty”
Enum InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Gen. Rule Act. Trigger”
Enum InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Gen. Rule Intent”

Namespace InsightWorks.QualityInspection.Configuration.Grade

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Mgmt.” Used to copy grade conditions from fields to templates, templates to tests,
Codeunit InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Evaluation” Methods to help with grade evaluation.

Table

Name Summary
Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade” A grade in it’s simplest form would be something like PASS,FAIL,INPROGRESS
You could have multiple passing grades, and multiple failing grades.
Grades are effectively the incomplete/pass/fail state of a test.
It is typical to have three grades (incomplete, fail, pass), however you can configure as many grades as you want, and in what circumstances.
The grades with a lower number for the priority field are evaluated first.
If you are not sure what to configure here then use the three defaults.
The document specific lot/serial/package blocking is for item+variant+lot+serial+package combinations, and can be used for serial-only tracking, or package-only tracking.
Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Config” For either a field, template line, or test instance this contains a description
of the criteria to meet that grade. There should be one row per entity per grade.

Page

Name Summary
Page InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Subpage” Use this to define grade conditions, scenarios when a value is acceptable and not-acceptable.
Page InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade List” Grades are effectively the incomplete/pass/fail state of a test. It is typical to have three grades (incomplete, fail, pass), however you can configure as many grades as you want, and in what circumstances. The grades with a lower number for the priority field are evaluated first. If you are not sure what to configure here then use the three defaults. The document specific lot blocking is for item+variant+lot+serial+package combinations, and can be used for serial-only tracking, or package-only tracking.

Query

Name Summary
Query InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Sample Failure Counter” Helps with counting failed samples.

Enum

Name Summary
Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block” How to apply conditional item tracking based blocking.
Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Cond. Lot Blck Fnd Bhvr” Used to help determine which test to use when conditional optional lot/serial item tracking based blocking.
When evaluating if a document specific transactions are blocked, this determines which test(s) are considered.
Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Category” A general categorization of whether this grade represents good or bad.
Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Type” What a condition configuration applies to.
Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Copy” Whether to automatically configure this grade on new fields and new templates.
Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Detail Visibility” Used to decide whether to show or hide grade details at all.
This does not mean whether an individual grade should be promoted or not.
Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Finish Allowed” Whether to automatically configure this grade on new fields and new templates.
Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Visibility” Whether to try and make this grade more prominent, this can optionally be used on some reports and forms.

Events

Name Summary
OnBeforeGetPromotedGradesForTemplateLine This can be used to completely replace the behavior or extend of determining the promoted
grades for a specific template line.
OnAfterGetPromotedGradesForTemplateLine This can be used to alter the behavior or extend of determining the promoted
grades for a specific template line.
This occurs after the system has already determined the promoted grades.
OnBeforeGetPromotedGradesForTestLine This can be used to completely replace the behavior or extend of determining the promoted
grades for a specific test line.
OnAfterGetPromotedGradesForTestLine This can be used to alter the results of a grade behavior for a test line after the results have been deterined.
OnBeforeGetPromotedGrades This can be used to alter the behavior of determining which promoted grades
to show. This event occurs before the results are determined, allowing a complete
replacement of the behavior.
OnAfterGetPromotedGrades This can be used to alter the behavior of determining which promoted grades
to show. This event occurs after the results are determined.
OnBeforeAssistEditCondition
OnBeforeAssistEditConditionDescription

Namespace InsightWorks.QualityInspection.Configuration

Namespace

Name Summary
InsightWorks.QualityInspection.Configuration.ApplicationAreas
InsightWorks.QualityInspection.Configuration.GenerationRule
InsightWorks.QualityInspection.Configuration.Grade
InsightWorks.QualityInspection.Configuration.Sampling
InsightWorks.QualityInspection.Configuration.SetupWizard
InsightWorks.QualityInspection.Configuration.SourceConfiguration
InsightWorks.QualityInspection.Configuration.Template

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Configuration.”IWX QI Auto Config” Contains helper functions to use for automatic configuration.
Codeunit InsightWorks.QualityInspection.Configuration.”IWX QI Install” Install codeunit.
Codeunit InsightWorks.QualityInspection.Configuration.”IWX QI Upgrade” Upgrade codeunit.

Table

Name Summary
Table InsightWorks.QualityInspection.Configuration.”IWX QI Instruction” The intent is to store both template and field level instructions.
Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”
Table InsightWorks.QualityInspection.Configuration.”IWX QI Tool” Intent of this table is to list available tools overall in the system to use in quality inspector.

TableExtension

Name Summary
TableExtension InsightWorks.QualityInspection.Configuration.”IWX QI X Whse. WorksheetTempl.”

Page

Name Summary
Page InsightWorks.QualityInspection.Configuration.”IWX QI Edit Template” Generic text template editor.
Page InsightWorks.QualityInspection.Configuration.”IWX QI Instruction List” This list page will configure work instructions for collecting this metric on this template.
Page InsightWorks.QualityInspection.Configuration.”IWX QI Setup”
Page InsightWorks.QualityInspection.Configuration.”IWX QI Tool Avail. Part” Provide the ability to overall edit available tools in the system.
Page InsightWorks.QualityInspection.Configuration.”IWX QI Tool Details Factbox” Provide the ability to overall edit available tools in the system.
Page InsightWorks.QualityInspection.Configuration.”IWX QI Tool List” Provide the ability to overall edit available tools in the system.
This page lets you configure available tools to use when recording Quality Inspection Tests. You can then assign these tools on a specific field on a Quality Inspection Template.

Enum

Name Summary
Enum InsightWorks.QualityInspection.Configuration.”IWX QI Auto Assign Behavior” This enum helps determine how automatic assignment should work.
Enum InsightWorks.QualityInspection.Configuration.”IWX QI Chart Visibility” Controls the visibility of the chart.
Enum InsightWorks.QualityInspection.Configuration.”IWX QI Create Test Behavior” This behavior controls how tests should be created.
If extending this make sure to implement OnCustomCreateTestBehavior
Enum InsightWorks.QualityInspection.Configuration.”IWX QI Experimental Features” Obsolete. Do not use.
Enum InsightWorks.QualityInspection.Configuration.”IWX QI Find Existing Behavior” This enum controls how existing tests are found.
In some scenarios it’s only about the source record, in others
it is only item tracking, and in some it’s standard source, document, and template.
Enum InsightWorks.QualityInspection.Configuration.”IWX QI Iteration State” Used to help lists and filters quickly identify which
test is the most recent retest.
Enum InsightWorks.QualityInspection.Configuration.”IWX QI Picture Upload Behavior” This is used to help determine what to do when a picture is uploaded to a test.
Enum InsightWorks.QualityInspection.Configuration.”IWX QI Round Direction”
Enum InsightWorks.QualityInspection.Configuration.”IWX QI Schedule Change” Used to help lists and filters quickly identify which
test is the most recent retest.
Enum InsightWorks.QualityInspection.Configuration.”IWX QI Show Test Behavior” Defines when to automatically show the tests.
Enum InsightWorks.QualityInspection.Configuration.”IWXQI Show Test Notify Behav.”
Enum InsightWorks.QualityInspection.Configuration.”IWX QI Tool Identification Req” This flag is used to help determine if a tool is optional or required.
Enum InsightWorks.QualityInspection.Configuration.”IWX QI Tool Type” A tool type determines what a tool refers to.
A tool could refer to an existing item, a fixed asset, a resource
or just be a generic reference.
Enum InsightWorks.QualityInspection.Configuration.”IWX QI Tracking Behavior” Determines the item tracking behavior, and can be used to help determine
whether to require item tracking before finishing a test.
Enum InsightWorks.QualityInspection.Configuration.”IWX QI Update Test On Source” This flag is used to indicate whether or not to keep the source data updated.
Enum InsightWorks.QualityInspection.Configuration.”IWX QI Validation Behavior” Specifies how to behave for scenarios such as receiving or production trigger verification.

Namespace InsightWorks.QualityInspection.Configuration.Sampling

Namespace

Name Summary
InsightWorks.QualityInspection.Configuration.Sampling.SkipLot

Table

Name Summary
Table InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI AQL Sample Size Config” ISO 2859-1
This maps the lot or batch size, along with the general inspection level/special inspection level to a
lettered code.
This code by the spec is configurable but the industry standard is A-Z.
Table InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI AQL Sampling Plan” ISO 2859-1 Sampling plan table.

Page

Name Summary
Page InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI AQL Sampling Plan” The sampling plan allows you to configure what the acceptance and reject points are for given sampling sizes and inspection levels.
Page InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI Sample Size Config List” Provides configuration of the min and max lot sizes to determine which ISO 2859 code will be used.

Enum

Name Summary
Enum InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI Inspection Level” ISO 2859-1 The Available general inspection levels.

Namespace InsightWorks.QualityInspection.Configuration.Sampling.SkipLot

Table

Name Summary
Table InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Rule” Skip Lot Rule Header table that defines rules for Skip Lot test creation.
Table InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Rule Line” Skip Lot Rule Line table that defines the detailed rules and actions for Skip Lot testing.

Page

Name Summary
Page InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Rule” Skip Lot Rule page for managing Skip Lot testing rules and their lines.
Page InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Rule List” Skip Lot Rules page for viewing and managing all Skip Lot rules.
Page InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWXQI SkipLot Rule Subform” Skip Lot Rule Lines subform page for managing individual rule line steps.

Enum

Name Summary
Enum InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Decision” This is used to document the decision that was taken as a result of a skip lot rule.
Enum InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Group By” This is a ‘quick’ enum used to help influence the expressions for skip lot.
Enum InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Qty. Count By” This enum is used as a ‘quick’ choise to help people decide how to count the skip lots.

Namespace InsightWorks.QualityInspection.Configuration.SetupWizard

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Configuration.SetupWizard.”IWX QI Assisted Setup” Assisted setup functionality for the plus version.

Page

Name Summary
Page InsightWorks.QualityInspection.Configuration.SetupWizard.”IWX QI Setup Wizard” This setup wizard is used to help configure the system initially.

EnumExtension

Name Summary
EnumExtension InsightWorks.QualityInspection.Configuration.SetupWizard.”IWX QI Setup Category” Extends the setup category for use with Quality Inspector.

Namespace InsightWorks.QualityInspection.Configuration.SourceConfiguration

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Traversal” Methods to assist with traversing records, connecting from one record to another.

Table

Name Summary
Table InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config” A source configuration defines how to map a table, such as a production order line to a test.
Multiple tables can be defined because there are conditional filters that make this applicable.
For example, you could have a conditional filter on a warehouse pick line based on the source type or source document type.
When the to type is a test, the to table number is automatically associated with a test document.
When the to type is a chaintable, that allows chaining multiple tables together.
How you can use chained tables:
– grab additional fields for related records:
– example 1 : grab the item no. from the prod order line even though the test might be against a prod order routing line.)
(use case being: visibility into seeing the item no., without having to add a flowfield to fetch the item no.)
– example 2 : grab the item category or item attribute from the item card or item attribute card.
(use case being: we only want to create a test when the item attributes or item category is xyz.)
– example 3 : grab the customer card, for customer specific filters.
(Use case being: we only want this test for items made or shipped to a specific customer)
Table InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config Line” Used to map a specific source field to a specific target field.

Page

Name Summary
Page InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Basic Src. Cfg. Card” Use this page to configure what will automatically populate from other tables into your quality inspections. This is also used to tell Business Central how to find one record from another, by setting which field in the ”From” table connects to which field in the ”To” table.
Page InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Basic Src.Cfg.Line Part” Used to help define which fields map to which parts on the table.
Page InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Basic Src. Cfg. List” Connect fields from one table to another.
Use this page to define what tables tests can be created on, and how to connect one table to another for extended source information. Chained connections can be made to allow filtering based on criteria other than the triggering record, such as chaining to a customer record to allow customer specific tests, or to item properties to have more specific item related tests
Page InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Basic Src.Cfg.Rel. Part” Connect fields from one table to another.
Use this page to define what tables tests can be created on, and how to connect one table to another for extended source information. Chained connections can be made to allow filtering based on criteria other than the triggering record, such as chaining to a customer record to allow customer specific tests, or to item properties to have more specific item related tests
Page InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config Card” Use this page to configure what will automatically populate from other tables into your quality inspections. This is also used to tell Business Central how to find one record from another, by setting which field in the ”From” table connects to which field in the ”To” table.
Page InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config Line Part” Used to visually configure in a part which source field a target field
in the test maps to.
Page InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config List” This page is intended to help with advanced configuration scenarios. If you are exploring the system we recommend that you do not make alterations on this page unless instructed by a qualified support representative or technician.

Enum

Name Summary
Enum InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Config. Field Priority” A configuration priority flag is used to help determine if a field takes precedence over
other matching fields.
Enum InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source State” Whether a source state is disabled or enabled.
Enum InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Target Type” The target of a source configuration. This can be either a chained table
or a test, or only item tracking.

Namespace InsightWorks.QualityInspection.Configuration.Template.Field

Table

Name Summary
Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field” This table lets you define data points, questions, measurements, and entries with their allowable values and default passing thresholds. You can later use these test fields in Quality Inspection Templates.
Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code” Generic table to define custom codes for any lookup

Page

Name Summary
Page InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI All Field Part” The all field part is a generic part to help with configuration of a quality inspection field.
Page InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Detected Fields Subform” Used to help display detected fields when using azure document intelligence.
Page InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Existing Fields Subform” Used to help choose existing fields to add.
Page InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Card” This page lets you define data points, questions, measurements, and entries with their allowable values and default passing thresholds. You can later use these test fields in Quality Inspection Templates.
Page InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Expr. CardPart” Used to help with expression configuration.
Page InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Lookup” This page lets you define data points, questions, measurements, and entries with their allowable values and default passing thresholds. You can later use these test fields in Quality Inspection Templates.
Page InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Number CardPart” A card part to assist with numerical configuration.
Page InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Fields” This page lets you define data points, questions, measurements, and entries with their allowable values and default passing thresholds. You can later use these test fields in Quality Inspection Templates
Page InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Wizard” The field wizard is used to help guide a user with the creation or editing of a net new field.
Page InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code List” A list of available codes that can be used as a lookup.
Page InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code Part” A part that can be used to help configure manual lookups/choices.

Enum

Name Summary
Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Case Sensitive” Used to help control if pass/fail grade criteria is case sensitive or not.
Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Type” A field type is the kind of data field for a quality inspection field.
Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Wizard State” Helps note the expected wizard field state.
Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Sample Summary”

Events

Name Summary
OnGetIsNumericFieldType Provides an opportunity to allow determining if the field is intended to be numeric or not.
Use this if you are extending the data type enumeration and adding your own numeric field.
OnBeforeAssistAllowableValues
OnBeforeAssistEditDefaultValue Provides an ability to extend or replace assist editing the default value.
OnUpdateControlVisibilityState Use this to update the control visibility state with any page extensions.
OnLeavingStepMovingForward
OnEvaluateStep
OnFinishActionAfterAddUpdateInternalField

Namespace InsightWorks.QualityInspection.Configuration.Template

Namespace

Name Summary
InsightWorks.QualityInspection.Configuration.Template.Field

Table

Name Summary
Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template” A Quality Inspection Template is a test plan containing a set of questions and data points that you want to collect.
A place where the contents of what goes in an inspection are defined.
Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Line” A template line describes which field should be added to the template, and in what order as well
as specific pass criteria.
Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Tool” Intent of this table is to list available tools overall in the system to use with quality inspections.
Designed tooling effectively for any given step.

Page

Name Summary
Page InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template” A Quality Inspection Template is a test plan containing a set of questions and data points that you want to collect.
Page InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Designed Tools” A designed tool is a tool that is associated with a template per design.
Page InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template List” A Quality Inspection Template is a test plan containing a set of questions and data points that you want to collect.
Page InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Subform” This subform is used on the template card to help configure which fields should be defined on a template.
Page InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Tool List” This is intended to be used for drilldowns and lookups.
Use page 23067707 “IWX QI Template Designed Tools” for configuring the designed tools on a template.

Report

Name Summary
Report InsightWorks.QualityInspection.Configuration.Template.”IWX QI Duplicate Template” Copy/Duplicate an Existing Quality Inspection Template.

Enum

Name Summary
Enum InsightWorks.QualityInspection.Configuration.Template.”IWX QI Sample Source” This is used to influence how the Sample Size on a test is initially set.
Enum InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Type” The template type is a category of the kind of template the inspection is.

Events

Name Summary
OnValidateExpressionFormula Validates the expression formula.

Namespace InsightWorks.QualityInspection.ControlAddIn.BigTextArea

ControlAddIn

Name Summary
ControlAddIn InsightWorks.QualityInspection.ControlAddIn.BigTextArea.”IWX QI Big Text Area” Helps increase the size of a text area control to make it easier to enter
large peices of text.

Namespace InsightWorks.QualityInspection.ControlAddIn

Namespace

Name Summary
InsightWorks.QualityInspection.ControlAddIn.BigTextArea

Namespace InsightWorks.QualityInspection.Dispositions

Namespace

Name Summary
InsightWorks.QualityInspection.Dispositions.InventoryAdjustment
InsightWorks.QualityInspection.Dispositions.ItemTracking
InsightWorks.QualityInspection.Dispositions.LicensePlate
InsightWorks.QualityInspection.Dispositions.Move
InsightWorks.QualityInspection.Dispositions.Purchase
InsightWorks.QualityInspection.Dispositions.PutAway
InsightWorks.QualityInspection.Dispositions.Transfer

Table

Name Summary
Table InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Buffer”

Enum

Name Summary
Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Kind”
Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Item Adj. Post Behavior” Determines how entries are created, whether to just create entries or also immediately post them.
Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Quantity Behavior” This enum defines how quantities should be moved with the variety of reactions/dispositions.
Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Move Behavior” Obsolete. Use IWX QI Quantity Behavior instead.

Interface

Name Summary
Interface InsightWorks.QualityInspection.Dispositions.IWXQIDisposition The disposition

Namespace InsightWorks.QualityInspection.Dispositions.InventoryAdjustment

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Dispositions.InventoryAdjustment.”IWX QI Disp. Neg. Adjust Inv.” The purpose of this reaction is to do inventory adjustments such as negative adjustments for the purposes of disposing inventory.

Report

Name Summary
Report InsightWorks.QualityInspection.Dispositions.InventoryAdjustment.”IWX QI Negative Adjustment”

Events

Name Summary
OnBeforeCreateNegativeItemAdjustmentLine
OnBeforeCreateNegativeWarehouseAdjustmentLine
OnBeforeProcessDisposition Occurs before the disposition has taken place, allowing the opportunity to extend or replace the functionality.
OnAfterProcessDisposition Occurs after the disposition has taken place.

Namespace InsightWorks.QualityInspection.Dispositions.ItemTracking

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Dispositions.ItemTracking.”IWX QI Disp. Change Tracking” The purpose of this reaction is to change lot, change serial, change package, change expiration date.

Report

Name Summary
Report InsightWorks.QualityInspection.Dispositions.ItemTracking.”IWX QI Change Item Tracking” Use this to update item tracking information. Requires a minimum of Business Central 14

Events

Name Summary
OnBeforeProcessDisposition Occurs before change tracking has taken place, allowing the opportunity to extend or replace the functionality.
OnAfterProcessDisposition Occurs after change tracking has taken place.
OnBeforeInsertCreateTrackingItemReclassLine Provides an opportunity to adjust the item reclassification line created to change item tracking information before it is inserted.
OnAfterCreateTrackingItemReclassLine Provides an opportunity to adjust the warehouse reclassification line and whse. tracking line created to change item tracking information.

Namespace InsightWorks.QualityInspection.Dispositions.LicensePlate

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Dispositions.LicensePlate.”IWX QI Disp. License Plate” The purpose of this codeunit is to assist with license plate related reactions such as quarantinging and un-quarantinging a license plate.

Events

Name Summary
OnBeforeSetQuarantineStateRelatedLicensePlates This allows extensions to quarantine a license plate.

Namespace InsightWorks.QualityInspection.Dispositions.Move

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Dispositions.Move.”IWX QI Disp. Internal Move” Creates an internal movement.
When the ‘post’ option is used, it will create a movement
document from the internal movement.
Codeunit InsightWorks.QualityInspection.Dispositions.Move.”IWX QI Disp. Move Auto Choose” This codeunits responsability is to deal with a move reaction.
This is used to help automatically choose the kind of movement.
Consider using the movement dispositions directly if you know the kind of movement you need.
Item-reclass based move
Warehouse-reclass based move.
Movement worksheet.
Movement document.
Codeunit InsightWorks.QualityInspection.Dispositions.Move.”IWX QI Disp. Move Item Reclass”
Codeunit InsightWorks.QualityInspection.Dispositions.Move.”IWX QI Disp. Move Whse.Reclass”
Codeunit InsightWorks.QualityInspection.Dispositions.Move.”IWX QI Disp. Move Worksheet”

Report

Name Summary
Report InsightWorks.QualityInspection.Dispositions.Move.”IWX QI Move Inventory”

Events

Name Summary
OnBeforeProcessDisposition Provides an opportunity to modify the instruction or replace it completely.
OnAfterProcessDisposition Provides an opportunity to extend the processing
OnBeforeCreateItemReclassificationLine This allows extensions to override or replace the item reclassification event.
OnBeforeProcessDisposition Occurs before the disposition has taken place, allowing the opportunity to extend or replace the functionality.
OnAfterProcessDisposition Occurs after the disposition has taken place.
OnBeforeCreateWarehouseReclassLine This allows extensions to override or replace the warehouse reclass journal line insertion.
OnAfterCreateWarehouseReclassLine This allows extensions to alter data after the reclass line has been made.

Namespace InsightWorks.QualityInspection.Dispositions.Purchase

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Dispositions.Purchase.”IWX QI Disp. Purchase Return” The purpose of this reaction is to create a purchase return as a reaction to a test result.

Report

Name Summary
Report InsightWorks.QualityInspection.Dispositions.Purchase.”IWX QI Create Purchase Return”

Events

Name Summary
OnBeforeProcessDisposition Provides an opportunity to modify the create Purchase Return Order behavior or replace it completely.
OnAfterProcessDisposition Provides an opportunity to modify the create Purchase Return Order behavior or replace it completely.
OnBeforeCreateOrUpdatePurchaseReturnOrderLine Provies an ability to replace the handling of the creation or purchase return order lines.
OnAfterCreateOrUpdatePurchaseReturnOrderLine Provides an ability to extend the handling of the creation or purchase return order lines.
after the system has processed the update.

Namespace InsightWorks.QualityInspection.Dispositions.PutAway

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Dispositions.PutAway.”IWX QI Disp. Internal PutAway” This codeunit is responsible for the reaction of creating internal put-aways.
Codeunit InsightWorks.QualityInspection.Dispositions.PutAway.”IWX QI Disp. Warehouse PutAway” This codeunit is responsible for the reaction of creating Warehouse put-aways.
This will create warehouse internal put-aways as an interim step.

Report

Name Summary
Report InsightWorks.QualityInspection.Dispositions.PutAway.”IWX QI Create Put-away”

Namespace InsightWorks.QualityInspection.Dispositions.Transfer

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Dispositions.Transfer.”IWX QI Disp. Transfer” The purpose of this disposition is to create a transfer document

Report

Name Summary
Report InsightWorks.QualityInspection.Dispositions.Transfer.”IWX QI Transfer”

Events

Name Summary
OnBeforeProcessDisposition Provides an opportunity to modify the create Purchase Return Order behavior or replace it completely.
OnAfterProcessDisposition Provides an opportunity to modify the create Purchase Return Order behavior or replace it completely.
OnAfterCreateTransferLineWithOutboundTracking Provides an opportunity to modify the created transfer header and transfer line after the line and optional outbound shipment tracking has been inserted.

Namespace InsightWorks.QualityInspection.Document.Attachment

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Document.Attachment.”IWX QI Attachment Management” Attachment management includes event subscribers and tools to help deal with attachments to quality inspection tests.

EnumExtension

Name Summary
EnumExtension InsightWorks.QualityInspection.Document.Attachment.”IWX QI Attachment Doc. Type”

Events

Name Summary
OnBeforeFilterDocumentAttachment Occurs while filtering a document attachment
Provides an opportunity to extend or replace our handling of document attachments.
OnSaveAttachmentFromStream Occurs while filtering a document attachment
Provides an opportunity to extend or replace our handling of document attachments.
OnFindRelatedDocumentsBeforeFindTestsWithVariant Used when adding attachments from related records
OnFindRelatedDocumentsBeforeFindTestsWithReservationEntry Used when adding attachments from related records from the associated reservation entries.
OnBeforeAddEmailAttachmentFromRelatedTest Provides an opportunity prior to adding an email attachment to inspect, analyze, and skip that specific attachment.
OnAddRelatedAttachmentsFromTests This is used when adding attachments to related tests.
You can use this event to extend or replace the product functionality.
For example, to only considered finished tests, this would be a good event to integrate with.

Namespace InsightWorks.QualityInspection.Document

Namespace

Name Summary
InsightWorks.QualityInspection.Document.Attachment
InsightWorks.QualityInspection.Document.Sampling

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Document.”IWX QI Async Test Action” This is used to queue an asynchronous status change for use with power automate flows.
This works around a scenario where an external business event starts a flow, which
then triggers an external business event. Business Central v27 as of 2025-11-25 will
silently just not trigger the external event. By moving the status change to another
session we work around that issue.
Codeunit InsightWorks.QualityInspection.Document.”IWX QI Create Test” Codeunit “IWX QI Create Test” (ID 23067639).
Create test portions based on codeunit 23044160 “SFI Quality Insp. Management “
Codeunit InsightWorks.QualityInspection.Document.”IWX QI Test Matrix”

Table

Name Summary
Table InsightWorks.QualityInspection.Document.”IWX QI Test” The document header for a quality order.
Table InsightWorks.QualityInspection.Document.”IWX QI Test Line” Contains the document lines for a quality order.
Table InsightWorks.QualityInspection.Document.”IWX QI Test Line Tool Usage” Intent of this table is to list available tools overall in the system to use in quality inspector.
Designed tooling effectively for any given step.

Use “IWX QI Record Test Tool Usage” to record tool usage.

Page

Name Summary
Page InsightWorks.QualityInspection.Document.”IWX QI Instruction FactBox” Intended to be a read-only view of available instructions.
Page InsightWorks.QualityInspection.Document.”IWX QI Most Recent Picture”
Page InsightWorks.QualityInspection.Document.”IWX QI NCR” Primary location to enter Quality Inspection Test information.
Page InsightWorks.QualityInspection.Document.”IWX QI NCRs” List of Quality Inspection Tests
Page InsightWorks.QualityInspection.Document.”IWX QI Record Test Tool Usage” Intended to be a view of required and used tools.
Page InsightWorks.QualityInspection.Document.”IWX QI Test” Primary location to enter Quality Inspection Test information.
Page InsightWorks.QualityInspection.Document.”IWX QI Tests” List of Quality Inspection Tests
Page InsightWorks.QualityInspection.Document.”IWX QI Test Subform” Subform Page for Quality Inspection Tests.
Page InsightWorks.QualityInspection.Document.”IWX QI Test Tool Usage FactBox” Intended to be a view of required and used tools as a factbox on a template.
Page InsightWorks.QualityInspection.Document.”IWX QI Test Tool Usage List” DO NOT USE THIS PAGE TO RECORD ACTUAL USAGE.
Instead, use page 23067709 “IWX QI Record Test Tool Usage” to record usage.
Page InsightWorks.QualityInspection.Document.”IWX QI Mobile Test Card” This page is designed to be used for Phones, in Business Central’s phone interface.
Page InsightWorks.QualityInspection.Document.”IWX QI Mobile Test List”
Page InsightWorks.QualityInspection.Document.”IWX QI Mobile Tracking List”

Report

Name Summary
Report InsightWorks.QualityInspection.Document.”IWX QI Create NCR”
Report InsightWorks.QualityInspection.Document.”IWX QI Create Test”

Query

Name Summary
Query InsightWorks.QualityInspection.Document.”IWX QI Sample Counter” This is used to help determine samples for any given grade.

Enum

Name Summary
Enum InsightWorks.QualityInspection.Document.”IWX QI Create Status” Enum for tracking if a test could be created, could not be created, or intentionally skipped for scenarios when we need to know if it could be created but we intentionally chose not to.
Enum InsightWorks.QualityInspection.Document.”IWX QI Line Failure State” Helps categorize how a line failed.
Enum InsightWorks.QualityInspection.Document.”IWX QI Set User Context” Used to help set and get the user context for a given contextual activity.
Enum InsightWorks.QualityInspection.Document.”IWX QI Test Status” The test status is what state the test itself is in.

Events

Name Summary
OnBeforeFindExistingTestWithStub Provides an opportunity to extend or replace finding a test with a stub.
OnBeforeGetExistingOrCreateNewTestFor Provides an opportunity to extend or replace the behavior of getting a new test before finding or creating has occurred.
OnAfterGetExistingOrCreateNewTestFor Provides an opportunity to extend or replace the behavior of getting a new test after finding or creating has occurred.
OnBeforeCreateNonconformanceTest Provides an opportunity to extend or replace the behavior of creating a nonconformance test before the test is created.
OnAfterCreateNonconformanceTest Provides an opportunity to extend the behavior of creating a nonconformance test after the test is created.
OnBeforeSetRecordFiltersToFindTestFor Use to supplement or replace default system behavior of finding related tests.
OnAfterSetRecordFiltersToFindTestFor Use to supplement existing behavior of finding related tests.
OnTestFinished Triggers when the test has finished.
OnTestReOpened Triggers when a test re-opens.
OnBeforeCanEditTestValue Use this event to manipulate the decision if this test line can have it’s test value edited or not.

Namespace InsightWorks.QualityInspection.Document.Sampling

Namespace

Name Summary
InsightWorks.QualityInspection.Document.Sampling.SkipLot

Table

Name Summary
Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample” Allows multiple samples for each test line.

Page

Name Summary
Page InsightWorks.QualityInspection.Document.Sampling.”IWX QI Sample Stats. Factbox” Used to display a factbox of summary sample values for samples.
Page InsightWorks.QualityInspection.Document.Sampling.”IWX QI Sample Worksheet” The sample editor is intended to make it easier to edit multiple samples.
Page InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample Editor” A simple sample editor
Page InsightWorks.QualityInspection.Document.Sampling.”IWX QI TestLine Sample Subform” Subform for samples intended to be used in a ListPlus

Report

Name Summary
Report InsightWorks.QualityInspection.Document.Sampling.”IWX QI Update Pass Fail Quant.” Use the report to update the pass quantity and fail quantity values for tests with the number of passed and failed samples from the associated sample lines. This should only be required for tests with sample lines created before Quality Inspector version 7.20.

Enum

Name Summary
Enum InsightWorks.QualityInspection.Document.Sampling.”IWX QI Sample Status”

Events

Name Summary
OnBeforeEvaluateTestLineSampleNumericValue

Namespace InsightWorks.QualityInspection.Document.Sampling.SkipLot

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot Management” Skip lot management is used to control decisions on whether to test, skip, as well as logging the decisions that were made and why.

Table

Name Summary
Table InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot Entry” Skip Lot Entry table that logs Skip Lot testing actions and results.
Table InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot State” Skip Lot Rule State table that maintains state and progress for Skip Lot rule execution.

Page

Name Summary
Page InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot Entry List” Skip Lot Entries page for viewing logged Skip Lot testing actions and results.
Page InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot State List” Skip Lot Rule States page for viewing and managing rule state information.

Enum

Name Summary
Enum InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot Log Type” Enum for Skip Lot Rule Line Action Types

Namespace InsightWorks.QualityInspection

Namespace

Name Summary
InsightWorks.QualityInspection.AccessControl
InsightWorks.QualityInspection.CognitiveServices
InsightWorks.QualityInspection.Configuration
InsightWorks.QualityInspection.Dispositions
InsightWorks.QualityInspection.Document
InsightWorks.QualityInspection.Integration
InsightWorks.QualityInspection.Inventory
InsightWorks.QualityInspection.Registration
InsightWorks.QualityInspection.RoleCenter
InsightWorks.QualityInspection.Scheduling
InsightWorks.QualityInspection.Utilities
InsightWorks.QualityInspection.WebServices
InsightWorks.QualityInspection.Automation
InsightWorks.QualityInspection.ControlAddIn
InsightWorks.QualityInspection.ImportExportPowerTool
InsightWorks.QualityInspection.Integrations
InsightWorks.QualityInspection.Analysis
InsightWorks.QualityInspection.Charting
InsightWorks.QualityInspection.Reporting

Namespace InsightWorks.QualityInspection.ImportExportPowerTool

XmlPort

Name Summary
XmlPort InsightWorks.QualityInspection.ImportExportPowerTool.”IWX QI IEPT Imp. Exp. XMLPort”

Enum

Name Summary
Enum InsightWorks.QualityInspection.ImportExportPowerTool.”IWX QI IEPT Delimiter Handling”
Enum InsightWorks.QualityInspection.ImportExportPowerTool.”IWX QI IEPT Field Action” This flag determines how to handle missing fields

Namespace InsightWorks.QualityInspection.Integration

Namespace

Name Summary
InsightWorks.QualityInspection.Integration.Production
InsightWorks.QualityInspection.Integration.Receiving
InsightWorks.QualityInspection.Integration.Sales
InsightWorks.QualityInspection.Integration.Teams
InsightWorks.QualityInspection.Integration.Tracking
InsightWorks.QualityInspection.Integration.Transfer
InsightWorks.QualityInspection.Integration.Warehousing

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Integration.”IWX QI Event Lib. Integration” Used to integrate with event library related events.
Codeunit InsightWorks.QualityInspection.Integration.”IWX QI Hooks” This codeunit is the main event publisher for Quality Inspector specific events.
Codeunit InsightWorks.QualityInspection.Integration.”IWX QI Inventory” Obsolete. Do not use.

Page

Name Summary
Page InsightWorks.QualityInspection.Integration.”IWX QI Related Tests Factbox”

Events

Name Summary
OnBeforeCreateTest OnBeforeCreateTest is called before a test is created.
Use this event to do additional checks before a test is created.
OnAfterCreateTestBeforeDialog OnAfterCreateTestBeforeDialog gets called after a Quality Inspection Test has been created and
before any interactive dialog is shown.
OnAfterCreateTestAfterDialog OnAfterCreateTestAfterDialog gets called after a Quality Inspection Test has been created after any interactive dialog is shown
OnCustomCreateTestBehavior Implement OnCustomCreateTestBehavior if you have also extended enum 23067637 “IWX QI Create Test Behavior”
This is where you will provide any custom create test behaviors to match your enum extension.
Only set handled to true if you want to skip the remaining behavior.
OnSetCustomMatchExistingFilters Implement OnSetCustomMatchExistingFilters is you have extended enum 23067638 “IWX QI Find Existing Behavior”
Use this to determine what filters to set for any custom behavior.
This would typically be just calling SetcurrentKey.
SetRecFilter() will be called after setting this.
Only set the handled flag to true if you want to skip the remaining behavior.
OnBeforeGetUserPermissionRecord Use OnBeforeGetUserPermissionRecord to override which user permission record is used when checking permissions.
OnAfterGetUserPermissionRecord Use OnAfterGetUserPermissionRecord to extend which user permission record is used when checking permissions.
This is called after the everyone check has performed.
OnValidatePermissionUserId Only available in BC 15 and newer
Use OnValidatePermissionUserId as an opportunity to validate the user ID in a user permission record.
You could use this if you have extended “IWX QI User Type”.
You can also use this to change the user reference if you have other ‘user’ records that you want to allow
to other user related tables.
OnBeforeCreateRetest OnBeforeCreateRetest supplies an opportunity to change how manual Retests are performed.
OnAfterCreateRetest OnAfterCreateRetest gives an opportunity to integrate with the retest record after a manual retest is created.
OnBeforeReOpenTest OnBeforeReOpenTest is called before a test is Reopened.
OnBeforeFinishTest OnBeforeFinishTest is called before a test is finished.
OnBeforeProductionAttemptCreatePostAutomaticTest OnBeforeProductionAttemptCreatePostAutomaticTest is called before attempting to automatically create a test for production related events prior to posting to posting.
OnAfterProductionAttemptCreateAutomaticTest OnAfterProductionAttemptCreateAutomaticTest is called after attempting to automatically create a test for production.
OnBeforeProductionAttemptCreateReleaseAutomaticTest OnBeforeProductionAttemptCreateReleaseAutomaticTest is called before attempting to automatically create a test for production related releasing.
OnAfterProductionAttemptCreateReleaseAutomaticTest OnAfterProductionAttemptCreateReleaseAutomaticTest is called before attempting to automatically create a test for production related releasing.
Use this if you need to collect multiple tests that could be created as part of a posting sequence.
OnBeforeFindExistingTests OnBeforeFindExistingTests provides an opportunity to override how an existing test is found.
OnBeforeProductionVerifyFinishedTestExistsForPosting OnBeforeProductionVerifyFinishedTestExistsForPosting provides an opportunity to override verification logic if a finished test exists.
OnAfterProductionVerifyFinishedTestExistsForPosting OnAfterProductionVerifyFinishedTestExistsForPosting provides an opportunity to override verification logic if a finished test exists.
OnBeforeProductionVerifyFinishedTestExistsForProdRoutingLine OnBeforeProductionVerifyFinishedTestExistsForProdRoutingLine gives an opportunity to verify finished tests from the context of a production order routing line
OnBeforeReceivingVerifyFinishedTestExistsForPurchaseLine OnBeforeReceivingVerifyFinishedTestExistsForPurchaseLine gives an opportunity to verify finished tests from the context of a purchase line.
OnBeforeReceivingVerifyFinishedTestExistsForWarehouseJournalLine OnBeforeReceivingVerifyFinishedTestExistsForWarehouseJournalLine gives an opportunity to verify finished tests from the context of a warehouse journal line during a warehouse receipt post.
OnBeforeReceivingVerifyFinishedTestExistsForWarehouseReceiptLine OnBeforeReceivingVerifyFinishedTestExistsForWarehouseJournalLineV2 gives an opportunity to verify finished tests from the context of a warehouse journal line during a warehouse receipt post.
OnProductionVerifyFinishedTestExistsBeforeError Implement this to override handling of an error message for production.
For example to convert an error message into a confirm dialog or a message dialog or to bypass the errors entirely then you could implement this event
OnReceivingVerifyFinishedTestExistsBeforeError Implement this to override handling of an error message for purchase
For example to convert an error message into a confirm dialog or a message dialog or to bypass the errors entirely then you could implement this event
OnBeforeProductionHandleOnAfterPostOutput Gives an opportunity to override any handle of onafterpostoutput.
Use this to completely replace any automatic test creation on output and/or any automatic test validation on output
OnBeforeProductionHandleVerifyFinishedTestExistsEveryXUnits Gives an opportunity to alter the behavior of validation of every x units validation.
OnBeforeProductionHandleVerifyFinishedTestExistsEveryXTime Gives an opportunity to alter the behavior of validation of every x units of time
OnBeforeProductionHandleFinishedTestVerification Gives an opportunity to override finished test verification for production
OnBeforeReceivingHandleFinishedTestVerification Gives an opportunity to override finished test verification for receiving
OnBeforeProductionHandleOnAfterChangeStatusOnProdOrder Gives an opportunity to supplement or replace automatic test creation on finish, and validation of tests on finish.
OnBeforeValidateQualityInspectorSettings Occurs when changing settings on the quality inspector setup page.
OnBeforePurchaseAttemptCreateTestWithReceiptLine USe this to integrate with purchase auto tests before the tests are created.
OnBeforeAttemptCreateTestWithReceiptLine USe this to integrate with auto tests before the tests are created from warehouse receipt lines.
OnAfterPurchaseAttemptCreateTestWithReceiptLine Use this to integrate after a test has been automatically created
OnAfterAttemptCreateTestWithReceiptLine Use this to integrate after a test has been automatically created
OnBeforePurchaseAttemptCreateTestWithWhseJournalLine USe this to integrate with purchase auto tests before the tests are created.
OnAfterPurchaseAttemptCreateTestWithWhseJournalLine Use this to integrate after a test has been automatically created
OnBeforePurchaseAttemptCreateTestWithPurchaseLine Use this to integrate with purchase auto tests before the tests are created.
OnAfterPurchaseAttemptCreateTestWithPurchaseLine Use this to integrate after a test has been automatically created
OnInitializeQualityInspectionDocumentNo Use this to change how a quality inspection document no. is generated.
This is called via InitEntryNoIfNeeded.
Use this if you need to customize your document no. series used for quality inspection tests.
OnBeforeTakePicture OnBeforeTakePicture occurs before a picture has been taken.
Use this to replace with your own picture taking dialog.
OnAfterTakePicture OnAfterTakePicture occurs after a picture has been taken.
Picture storage will depend on the “Picture Upload Behavior” setting.
OnBeforeAddPicture OnBeforeAddPicture occurs before the supplied picture instream is added to the test.
OnAfterAddPicture OnAfterAddPicture occurs after the supplied picture instream is added to the test.
OnBeforeEvaluateGrade OnBeforeEvaluateGrade gives an opportunity to change how a grade is evaluated.
OnAfterEvaluateGrade OnAfterEvaluateGrade gives an opportunity to run additional logic after a grade has been determined by the system.
OnWorkflowHandleOnExecuteWorkflowResponseAfterFindRelatedRecord OnWorkflowHandleOnExecuteWorkflowResponseAfterFindRelatedRecord occurs after the system has found the related record for the workflow step.
OnAfterInitializeCreateTestReportParameters Provides an opportunity to create defaults in the Create Test report page.
OnSetUsageFilterOnAfterSetFiltersByReportUsage OnSetUsageFilterOnAfterSetFiltersByReportUsage gives an opportunity to extend the report usage filtering.
OnBeforeFindLineUpdateGradeFromLines This is called when the Quality Inspection Test header is being updated automatically based on the test lines.
Use this to optionally alter the filters on the test line before the test has been found.
This can be used to influence how the test header automatically changes.
You can also avoid the test header changing by implementing this and just setting pbHandled to ‘true’
causing it to exit immediately.
OnAfterFindLineUpdateGradeFromLines This is called when the Quality Inspection Test header is being updated automatically based on the test lines.
Use this to inspect or adjust the grade that the system automatically chose.
OnGetCurrentUserIdToUse Gets the user id to use to record on tests.
Override this to change the user id if you have a different user mechanism.
OnBeforeGetDefaultMaximumRowsToShowInLookup Provides an opportunity for customizations to alter the default maximum rows shown
for a table lookup in a quality inspector field.
Changing the default to a larger number can introduce performance issues.
OnBeforeWarehouseAttemptCreateTestWithWhseJournalLine This occurs before a test is about to be created with a warehouse entry.
OnAfterWarehouseAttemptCreateTestWithWhseJournalLine This occurs after a test has been created for a warehouse entry.
OnBeforeGetOptionalSourceVariantForWarehouseJournalLine Use this to provide alternate source variants for a given warehouse journal line.
OnBeforeSalesReturnCreateTestWithSalesLine Occurs before a test is about to be created with a sales return line.
OnAfterSalesReturnCreateTestWithSalesLine Occurs after a test has been created with a sales return line.
OnHandleCheckItemTrackingAfterFilters This occurs when checking item tracking to determine if the lot/serial is allowed for the given kind of activity.
This occurs *before* the test find occurs, and gives an opportunity to adjust test filters.
Used for assembly consumption, assembly output, consumption, output, purchase, sale, transfer
OnHandleCheckItemTrackingBeforeBlockErrorCheck This occurs when checking item tracking to determine if the lot/serial is allowed for the given kind of activity.
This occurs after a test has been found.
Used for assembly consumption, assembly output, consumption, output, purchase, sale, transfer
OnHandleCheckWhseItemTrackingAfterFilters This occurs when checking item tracking to determine if the lot/serial is allowed for the given kind of activity.
This occurs *before* the test find occurs, and gives an opportunity to adjust test filters.
Used for inventory movements, inventory picks, inventory put aways, movements, picks, putaways.
OnHandleCheckWhseItemTrackingBeforeBlockErrorCheck This occurs when checking item tracking to determine if the lot/serial is allowed for the given kind of activity.
This occurs after a test has been found.
Used for inventory movements, inventory picks, inventory putaways, movements, picks, putaways.
OnAfterCreateItemReclassLine
OnAfterCreateWarehouseReclassLine
OnAfterCreateWarehouseWorksheetLine Provides an opportunity to alter the warehouse worksheet line that was made with MoveInventory
OnBeforeSetWhseWkshTrackingLines Provides an opportunity to alter the warehouse worksheet tracking lines that were made with MoveInventory
OnBeforeSetInternalMovementTrackingLines Provides an opportunity to alter the internal movement tracking lines that were made with MoveInventory
OnAfterCreateInternalMovementLine Provides an opportunity to alter the internal movement line that was made with MoveInventory
OnBeforeEvaluateTableFieldInExpression Use this to supplement or replace the [specialtable:fieldname] nomenclature
when using text expressions.
Set pbHandled to true to completely replace the default behavior in the loop.
Set pbHandled to false to just extend it.
OnBeforeEvaluateStringOnlyFunctionThreeParamExpression Use this to supplement or replace the [stringfunction(param1;param2;param3)] nomenclature
when using text expressions.
Set pbHandled to true to completely replace the default behavior in the loop.
Set pbHandled to false to just extend it.
OnEvaluateCustomStringOnlyFunctionThreeParamExpression Use this to add your own string only functions [stringfunction(param1;param2;param3)] nomenclature
when using text expressions.
OnEvaluateCustomTableFieldInExpression Use this to supplement with your own special tables when evaluating expressions [specialtable:fieldname]
OnBeforeEvaluateEmbeddedNumericalExpressions Use this to extend or replace embedded numerical expression calculations.
OnAfterEvaluateEmbeddedNumericalExpressions Use this to extend embedded numerical expressions.
OnBeforeEvaluateNumericalExpression Use this to extend or replace numerical expression evaluation.
OnAfterEvaluateNumericalExpression Use this to extend or replace numerical expression evaluation after Quality Inspector has evaluated the expression.
OnBeforeValidateAllowableValuesOnText Allows you to alter the behavior of validating allowable values on text.
OnAfterValidateAllowableValuesOnText Provides the opportunity to extend and add additional validation after the allowable values has occurred.
OnMoveInventoryAlterInventorySourceV3 Provides an opportunity to adjust the temporary buffer record that dictates the locations and bins of
inventory to move.
OnAfterCreateAdjustmentItemJournalLine Provides an opportunity to adjust the adjustment Item Journal Line created from a Quality Inspection Test
OnAfterCreateAdjustmentWhseJournalLine Provides an opportunity to adjust the adjustment Warehouse Item Journal Line created from a Quality Inspection Test
OnBeforeCreateNegativeAdjustment Provides an opportunity to adjust the negative adjustment behavior and the temporary buffer record that dictates the locations and bins of
inventory to write off.
OnBeforeInsertCreateTrackingWarehouseReclassLine Provides an opportunity to adjust the warehouse reclassification line created to change item tracking information before it is inserted.
OnAfterCreateTrackingWarehouseReclassLine Provides an opportunity to adjust the warehouse reclassification line and whse. tracking line created to change item tracking information.
OnBeforeInsertCreateTrackingItemReclassLine Provides an opportunity to adjust the item reclassification line created to change item tracking information before it is inserted.
OnAfterCreateTrackingItemReclassLine Provides an opportunity to adjust the warehouse reclassification line and whse. tracking line created to change item tracking information.
OnBeforeChangeTracking Provides an opportunity to modify the item tracking change behavior and the temporary buffer record that dictates the locations and bins of
inventory to change.
OnBeforeCreateTransfer Provides an opportunity to modify the create transfer behavior and the temporary buffer record that dictates the locations and bins of
inventory to transfer.
OnAfterCreateTransferLineWithOutboundTracking Provides an opportunity to modify the created transfer header and transfer line after the line and optional outbound shipment tracking has been inserted.
OnBeforeAttemptCreateTestWithInboundTransferLine Provides an opportunity to modify the create test behavior when triggered from posting an inbound Transfer Line.
OnAfterTransferAttemptCreateTestWithInboundTransferLine Provides an opportunity to modify the created test triggered from posting an inbound Transfer Line.
OnBeforeCalculateSampleStatistic Provides an opportunity to modify the calculation of sample statistics.
OnAfterCalculateSampleStatistic Provides a hook to help alter the value and formatting of sample summaries.
OnBeforeEvaluateNumericTestValue Provides an opportunity to modify the evaluation of the Numeric Test Value from the Test Value.
OnTestCreated This action will occur when a new Quality Inspection Test has been created.
This is exposed with ExternalBusinessEvent and intended to be used in PowerAutomate
OnTestFinished This action will occur when a Quality Inspection Test has changed to the finished state.
This is exposed with ExternalBusinessEvent and intended to be used in PowerAutomate
OnTestReOpened This action will occur when a Quality Inspection Test has been re-opened.
This is exposed with ExternalBusinessEvent and intended to be used in PowerAutomate
OnTestChanged This action will occur when a Quality Inspection Test has changed.
This is exposed with ExternalBusinessEvent and intended to be used in PowerAutomate
OnTestAssigned This will occur when the assignment changes on any given test.
OnReTestCreated This action will occur when a new re-Test has been created.
This is exposed with ExternalBusinessEvent and intended to be used in PowerAutomate

Namespace InsightWorks.QualityInspection.Integration.Production

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Integration.Production.”IWX QI Production Integration” Used to integrate with production related events.

TableExtension

Name Summary
TableExtension InsightWorks.QualityInspection.Integration.Production.”IWX QI X Capacity Ledger Entry”
TableExtension InsightWorks.QualityInspection.Integration.Production.”IWX QI X Item Journal Line”

Page

Name Summary
Page InsightWorks.QualityInspection.Integration.Production.”IWX QI Prod. Gen. Rule Wizard”

PageExtension

Name Summary
PageExtension InsightWorks.QualityInspection.Integration.Production.”IWX QI Consumption Journal”
PageExtension InsightWorks.QualityInspection.Integration.Production.”IWX QI Output Journal”
PageExtension InsightWorks.QualityInspection.Integration.Production.”IWX QI Prod. Order Routing”
PageExtension InsightWorks.QualityInspection.Integration.Production.”IWX QI Routing Qlty. Measures”
PageExtension InsightWorks.QualityInspection.Integration.Production.”IWX QI Std. Task Qlty.Measures” Used to help create quality inspection fields and templates from pre-existing standard quality measures.
PageExtension InsightWorks.QualityInspection.Integration.Production.”IWX QI X Rel. Prod. Order”

Enum

Name Summary
Enum InsightWorks.QualityInspection.Integration.Production.”IWX QI Assembly Trigger”
Enum InsightWorks.QualityInspection.Integration.Production.”IWX QI Auto Output Config” Helps determine the behavior of when to create tests with production output.
Enum InsightWorks.QualityInspection.Integration.Production.”IWX QI Prod. Require Test” Determines how production validation flags occur.
Enum InsightWorks.QualityInspection.Integration.Production.”IWX QI Production Trigger” The trigger for when to create tests for production orders.

Events

Name Summary
OnBeforeAttemptCreateTestFromPostedAssembly Provides an opportunity to modify the automated assembly output Quality Inspection Test creation behavior.
OnAfterAttemptCreateTestFromPostedAssembly Provides an opportunity to modify the automatically created Quality Inspection Test after assembly output.
OnBeforeUpdateWarehouseActivityLineWithPutAwayInspectionBin Provides an opportunity to modify the place put away line with a put-away inspection bin.

Namespace InsightWorks.QualityInspection.Integration.Receiving

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Receiving Integration”

Page

Name Summary
Page InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Rec. Gen. Rule Wizard”

PageExtension

Name Summary
PageExtension InsightWorks.QualityInspection.Integration.Receiving.”IWX QI X Production Journal”
PageExtension InsightWorks.QualityInspection.Integration.Receiving.”IWX QI X Item Card”
PageExtension InsightWorks.QualityInspection.Integration.Receiving.”IWX QI X Purchase Order “
PageExtension InsightWorks.QualityInspection.Integration.Receiving.”IWX QI X Purchase Return Order”
PageExtension InsightWorks.QualityInspection.Integration.Receiving.”IWX QI X Purch Order Subform”
PageExtension InsightWorks.QualityInspection.Integration.Receiving.”IWX QI X Purch Return Subform”
PageExtension InsightWorks.QualityInspection.Integration.Receiving.”IWX QI X Warehouse Receipt “
PageExtension InsightWorks.QualityInspection.Integration.Receiving.”IWX QI X Warehouse Entries”

Enum

Name Summary
Enum InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Purchase Order Trigger” Helps determine how receiving behaviors should occur.
Enum InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Receive Trigger”
Enum InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Rec. Require Test” Used to help flag if we need to assure that a test has been created prior to receiving.
Enum InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Sales Return Trigger”
Enum InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Transfer Trigger” Helps determine the trigger for transfer specific reactions.
Enum InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Whse. Receive Trigger” The warehouse receipt behavior to create a test.

Events

Name Summary
OnBeforeUpdateWarehouseActivityLineWithPutAwayInspectionBin Provides an opportunity to modify the place put-away line with an inspection put-away bin.

Namespace InsightWorks.QualityInspection.Integration.Sales

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Integration.Sales.”IWX QI Sales Integration” Event handlers to help with sales specific related transactions.

PageExtension

Name Summary
PageExtension InsightWorks.QualityInspection.Integration.Sales.”IWX QI X Sales Order”
PageExtension InsightWorks.QualityInspection.Integration.Sales.”IWX QI X Sales Order Subform”
PageExtension InsightWorks.QualityInspection.Integration.Sales.”IWX QI X Sales Return Order”
PageExtension InsightWorks.QualityInspection.Integration.Sales.”IWX QI X Sales Return Subform”

Namespace InsightWorks.QualityInspection.Integration.Teams

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Integration.Teams.”IWX QI Adaptive Card Generator” Generates Microsoft Teams adaptive card syntax to collect quality inspection data.
Requires a minimum of Business Central BC 26.

Events

Name Summary
OnBeforeGenerateAdaptiveCardForTest Provides an opportunity to completely replace how an adaptive card is generated for a quality inspection test.
OnAfterGenerateAdaptiveCardForTestBeforeSend Occurs after adaptive card generation has occurred but before the json
object has been converted to text.
OnBuildSourceControlInformationFactbox Use this to extend the source control information factbox when an adaptive card is generated.
OnBeforeProcessAdaptiveCardResponse Occurs before an adaptive card response is handled. Use this to completely replace
how adaptive card responses are handled.
OnBeforeUpdateValueFromAdaptiveCardResponse Use this to extend or replace how a value is updated.
OnProcessAdaptiveCardCustomActionCommand Use this to extend or replace how adaptive card commands are processed.
OnBeforeAddActionToAdaptiveCardResponse Use this to change how actions are added to adaptive card responses.
OnBeforeAddInputControlToContainer Use this to change how a specific control is rendered.
OnBeforeAddSampleInputControlToContainer Use OnBeforeAddSampleInputControlToContainer to change how samples are rendered.

Namespace InsightWorks.QualityInspection.Integration.Tracking

TableExtension

Name Summary
TableExtension InsightWorks.QualityInspection.Integration.Tracking.”IWX QI Avail. Info. Buffer”
TableExtension InsightWorks.QualityInspection.Integration.Tracking.”IWX QI Entry Summary”
TableExtension InsightWorks.QualityInspection.Integration.Tracking.”IWX QI Lot No. Information”
TableExtension InsightWorks.QualityInspection.Integration.Tracking.”IWX QI Package No. Information”
TableExtension InsightWorks.QualityInspection.Integration.Tracking.”IWX QI Serial No. Information”

PageExtension

Name Summary
PageExtension InsightWorks.QualityInspection.Integration.Tracking.”IWX QI Item Avail. by Lot No”
PageExtension InsightWorks.QualityInspection.Integration.Tracking.”IWX QI Item Tracking Lines”
PageExtension InsightWorks.QualityInspection.Integration.Tracking.”IWX QI Item Tracking Summary”
PageExtension InsightWorks.QualityInspection.Integration.Tracking.”IWX QI Lot No. Info Card”
PageExtension InsightWorks.QualityInspection.Integration.Tracking.”IWX QI Lot No. Info List”
PageExtension InsightWorks.QualityInspection.Integration.Tracking.”IWX QI Package No. Info Card”
PageExtension InsightWorks.QualityInspection.Integration.Tracking.”IWX QI Package No. Info List”
PageExtension InsightWorks.QualityInspection.Integration.Tracking.”IWX QI Serial No. Info Card”
PageExtension InsightWorks.QualityInspection.Integration.Tracking.”IWX QI serial No. Info List”

Namespace InsightWorks.QualityInspection.Integration.Transfer

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Integration.Transfer.”IWX QI Transfer Integration” Event handlers to help with transfer specific related transactions.

Table

Name Summary
Table InsightWorks.QualityInspection.Integration.Transfer.”IWX QI Related Transfer Buffer”

TableExtension

Name Summary
TableExtension InsightWorks.QualityInspection.Integration.Transfer.”IWX QI X Direct Trans. Header” Used to help map the transfer test that was created as a result of a quality inspection test.
TableExtension InsightWorks.QualityInspection.Integration.Transfer.”IWX QI X Transfer Header”
TableExtension InsightWorks.QualityInspection.Integration.Transfer.”IWX QI X Trans. Receipt Header”
TableExtension InsightWorks.QualityInspection.Integration.Transfer.”IWX QI X Trans. Ship. Header”

Page

Name Summary
Page InsightWorks.QualityInspection.Integration.Transfer.”IWX QI Related Transfers”

PageExtension

Name Summary
PageExtension InsightWorks.QualityInspection.Integration.Transfer.”IWX QI X Posted Dir. Transfer”
PageExtension InsightWorks.QualityInspection.Integration.Transfer.”IWX QI X Posted Trans. Receipt”
PageExtension InsightWorks.QualityInspection.Integration.Transfer.”IWX QI X Posted Trans. Ship.”
PageExtension InsightWorks.QualityInspection.Integration.Transfer.”IWX QI X Transfer Order”

Enum

Name Summary
Enum InsightWorks.QualityInspection.Integration.Transfer.”IWX QI Transfer Buf. Doc. Type” When building a buffer table for related transfers this enum helps indicate the transfer order type.
Enum InsightWorks.QualityInspection.Integration.Transfer.”IWX QI Transfer Buf. Status” Used on a buffer table to help indicate the status of the transfer order.

Namespace InsightWorks.QualityInspection.Integration.Warehousing

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI – Warehouse Integration”

Table

Name Summary
Table InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI Inspection Bin”

TableExtension

Name Summary
TableExtension InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI X Item”

Page

Name Summary
Page InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI Inspection Bin List” List page for Inspection Bin configuration. This page allows users to configure which bins items should be moved to for quality inspection based on the source location.
Page InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI Whse. Gen. Rule Wizard”

PageExtension

Name Summary
PageExtension InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI X Item”

Enum

Name Summary
Enum InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI Inspection Required”
Enum InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI Put-away Behavior” This flag determines how a put-away reaction/disposition should behave.
Enum InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI Warehouse Trigger” Determines what triggers a test from a warehouse movement.

Events

Name Summary
OnBeforeAssignInspectionRequiredBinToPutAwayLine Provides an opportunity to modify the put away line before assigning an inspection required bin.
OnBeforeSplitWarehouseActivityLineForInspectionRequiredBin Provides an opportunity to modify the place put away line split line behavior to update lines with an inspection required bin.
OnAfterAssignInspectionRequiredBinToPutAwayLine Provides an opportunity to modify the put away line after assigning an inspection required bin.

Namespace InsightWorks.QualityInspection.Integrations

Namespace

Name Summary
InsightWorks.QualityInspection.Integrations.JobQueue

Namespace InsightWorks.QualityInspection.Integrations.JobQueue

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Integrations.JobQueue.”IWX QI Job Queue Management” This codeunit is intended to help with job queue management.

Report

Name Summary
Report InsightWorks.QualityInspection.Integrations.JobQueue.”IWX QI Schedule Test”

Namespace InsightWorks.QualityInspection.Inventory

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Inventory.”IWX QI Inventory Availability” This codeunit’s responsibility is to help find inventory availability.
Codeunit InsightWorks.QualityInspection.Inventory.”IWX QI Item Tracking Mgmt.” Helps with item tracking management.
Codeunit InsightWorks.QualityInspection.Inventory.”IWX QI Journal Management”
Codeunit InsightWorks.QualityInspection.Inventory.”IWX QI Tracking” Methods to assist with dealing with tracking.

Events

Name Summary
OnBeforePopulateBinContentBuffer
OnAfterPopulateBinContentBuffer
OnBeforeCreatePurchaseReturnReservationEntries
OnBeforeCreateWarehouseJournalLineReservationEntry Occurs before a warehouse journal line reservation entry has been made as a result of a dispositoin.
OnBeforeCreateItemJournalLineReservationEntry Occurs before the item journal line reservation entry has been made.
Use this as an opportunity to replace the base behavior.
OnAfterCreateItemJournalLineReservationEntry Occurs after the item journal line reservation entry has been made.
Use this as an opportunity to extend the base behavior.
OnAfterCreateWarehouseJournalLineReservationEntry Occurs after the creation of a warehouse journal line reservation entry.
OnBeforeGenericCreateWarehouseJournalLine This is used for any warehouse journal line creation.
OnAfterGenericCreateWarehouseJournalLine This is used for any warehouse journal line creation.
OnBeforeGenericCreateItemJournalLine Provides an opportunity to extend or replace the creation of a generic item journal line.
OnAfterGenericCreateItemJournalLine Occurs after a generic item journal line has been made, giving the opportunity
to extend or replace it’s functionality.
OnBeforePostItemJournal Occurs before an item journal post has occurred.
OnAfterPostItemJournal Occurs after an item journal post has occurred.
OnBeforePostWarehouseJournal Occurs before a warehouse journal line has been posted.
OnAfterPostWarehouseJournal Occurs after a warehouse journal line has been posted.

Namespace InsightWorks.QualityInspection.Registration

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Registration.”IWX QI Registration” Wrapper for registration.

Namespace InsightWorks.QualityInspection.Reporting

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Reporting.”IWX QI Report Mgmt.”

Page

Name Summary
Page InsightWorks.QualityInspection.Reporting.”IWX QI Report Selection”

Report

Name Summary
Report InsightWorks.QualityInspection.Reporting.”IWX QI Certificate of Analysis”
Report InsightWorks.QualityInspection.Reporting.”IWX QI FAIR Form3″ A printable general purpose First Article Inspection Report (FAIR Form 3), Characteristic Accountability
Report InsightWorks.QualityInspection.Reporting.”IWX QI General”
Report InsightWorks.QualityInspection.Reporting.”IWX QI Label”
Report InsightWorks.QualityInspection.Reporting.”IWX QI NCR”

Enum

Name Summary
Enum InsightWorks.QualityInspection.Reporting.”IWX QI Report Selection Usage” Used for report selections.

EnumExtension

Name Summary
EnumExtension InsightWorks.QualityInspection.Reporting.”IWX QI Ext. Report Sel. Usage”

Namespace InsightWorks.QualityInspection.RoleCenter

Table

Name Summary
Table InsightWorks.QualityInspection.RoleCenter.”IWX QI Role Center Cue”

Page

Name Summary
Page InsightWorks.QualityInspection.RoleCenter.”IWX QI Explore All Role Center”
Page InsightWorks.QualityInspection.RoleCenter.”IWX QI Main Role Center”
Page InsightWorks.QualityInspection.RoleCenter.”IWX QI NCRs Cue”
Page InsightWorks.QualityInspection.RoleCenter.”IWX QI Tests Cue”
Page InsightWorks.QualityInspection.RoleCenter.”IWX QI Phone Test ListPart”
Page InsightWorks.QualityInspection.RoleCenter.”IWX QI Role Center – Phone”
Page InsightWorks.QualityInspection.RoleCenter.”IWX QI Role Center – Tablet”
Page InsightWorks.QualityInspection.RoleCenter.”IWX QI Tests Tablet Cue”

PageExtension

Name Summary
PageExtension InsightWorks.QualityInspection.RoleCenter.”IWX QI Extend BM RoleCenter”
PageExtension InsightWorks.QualityInspection.RoleCenter.”IWX QI Extend MO RoleCenter”
PageExtension InsightWorks.QualityInspection.RoleCenter.”IWX QI Extend PA RoleCenter”
PageExtension InsightWorks.QualityInspection.RoleCenter.”IWX QI Extend SS RoleCenter”

Profile

Name Summary
Profile InsightWorks.QualityInspection.RoleCenter.”IWX QI Role Center Explore All”
Profile InsightWorks.QualityInspection.RoleCenter.”IWX QI Role Center Main”
Profile InsightWorks.QualityInspection.RoleCenter.”IWX QI PDI-Phone”
Profile InsightWorks.QualityInspection.RoleCenter.”IWX QI PDI-Tablet”

Namespace InsightWorks.QualityInspection.Scheduling

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Scheduling.”IWX QI Scheduler Change” Used in the context of the control-addin based scheduler in the Graphical Scheduler extension triggering a
quality inspection on a scheduler change, similar functionality to historical capability in Shop Floor Insight.
Codeunit InsightWorks.QualityInspection.Scheduling.”IWX QI Assign To Inspectors” Used to integrate Graphical Scheduler with Quality Inspector.
Codeunit InsightWorks.QualityInspection.Scheduling.”IWX QI Inspectors GS Tree” Provides a tree implementation for Graphical Scheduler integration that lists
available Quality Inspectors.
@ExpressSkipFile

Page

Name Summary
Page InsightWorks.QualityInspection.Scheduling.”IWX QI Assign Tests” This page is used with integration with Graphical Scheduler to assign a drag and drop view of assigning tests to quality inspectors.

Namespace InsightWorks.QualityInspection.Utilities

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.Utilities.”IWX QI Expression Mgmt.” Used to help calculate expressions.
Codeunit InsightWorks.QualityInspection.Utilities.”IWX QI Filter Helpers” This codeunit contains helper methods to assist with filtering.
Codeunit InsightWorks.QualityInspection.Utilities.”IWX QI Misc Business Central” Methods for a variety of miscellaneous business central interactions.
Codeunit InsightWorks.QualityInspection.Utilities.”IWX QI Misc Helpers”
Codeunit InsightWorks.QualityInspection.Utilities.”IWX QI Progress Dialog” A progress dialog.
Codeunit InsightWorks.QualityInspection.Utilities.”IWX QI Session Helper” This exists to help keep track of variables to work around a variety of BC issues.

Page

Name Summary
Page InsightWorks.QualityInspection.Utilities.”IWX QI Choose From Lookup”
Page InsightWorks.QualityInspection.Utilities.”IWX QI Edit Large Text” A simple page meant to be run modal for use with editing large text.
Page InsightWorks.QualityInspection.Utilities.”IWX QI Routing Line Lookup”

Events

Name Summary
OnBeforeGetDependentVariablesForTemplateLine Use this to supply a list of dependent variables for a given template line.
OnBeforeGetDependentVariablesForField Use this to supply a list of dependent variables for a given template line.
OnBeforeEvaluateNumericalExpressionOnLine Gets called when EvaluateNumericalExpression is invoked and provides an opportunity
to evaluate numerical expressions.
OnBeforeEvaluateNumericalExpression Use this to extend or replace numerical expression evaluation.
OnEvaluateTextExpressionOnTestLine Occurs before a text expression is evaluated on a test line.
OnBeforeEvaluateBuiltInTableLookups Allows system replacement before evaluation of built-in table lookups.
OnEvaluateCustomTableFieldInExpression Used
OnBeforeNavigateToSourceDocument Provides an ability to override the handling of navigating to a source document.
OnRoundValue Provides an ability for extensions to alter how values are rounded when summarized.
Use this to alter how values are rounded.
OnBeforeGetTimezoneOffsetToUTC Provides an ability for extensions to alter how the timezone offset is retrieved when converting from regional time to UTC.
OnBeforeGetTimezoneOffsetToRegional Provides an ability for extensions to alter how the timezone offset is retrieved when converting from UTC to regional time.

Namespace InsightWorks.QualityInspection.WebServices

Namespace

Name Summary
InsightWorks.QualityInspection.WebServices.PDFGeneration

Codeunit

Name Summary
Codeunit InsightWorks.QualityInspection.WebServices.”IWX QI WS iwxQualityInspection” Do not use this codeunit outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help create tests.

Page

Name Summary
Page InsightWorks.QualityInspection.WebServices.”IWX QI WS iwxAdaptiveCard” Do not use this codeunit outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list tests.
Page InsightWorks.QualityInspection.WebServices.”IWX QI WS iwxQualityCreateTest” Do not use this page outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help create tests.
Page InsightWorks.QualityInspection.WebServices.”IWX QI WS iwxQualityTests” Do not use this codeunit outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list tests.

Query

Name Summary
Query InsightWorks.QualityInspection.WebServices.”IWX QI WS Quality Test Values” Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

EnumExtension

Name Summary
EnumExtension InsightWorks.QualityInspection.WebServices.IWXQIExtendEventCategory Used for external business events, such as power automate integration.

Namespace InsightWorks.QualityInspection.WebServices.PDFGeneration

Table

Name Summary
Table InsightWorks.QualityInspection.WebServices.PDFGeneration.”IWX QI WS Doc. Entity Buffer” Used to help with PDF generation in web services.

Page

Name Summary
Page InsightWorks.QualityInspection.WebServices.PDFGeneration.”IWX QI WS PDF-COA” Do not use this page outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help generate a PDF of the COA report.
Page InsightWorks.QualityInspection.WebServices.PDFGeneration.”IWX QI WS PDF-FAIRFORM3″ Do not use this page outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help generate a PDF of the FAIR Form 3 report.
Page InsightWorks.QualityInspection.WebServices.PDFGeneration.”IWX QI WS PDF-General” Do not use this page outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help generate a PDF of the general inspection report.
Page InsightWorks.QualityInspection.WebServices.PDFGeneration.”IWX QI WS PDF-Label” Do not use this page outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help generate a PDF of the general inspection report.
Page InsightWorks.QualityInspection.WebServices.PDFGeneration.”IWX QI WS PDF-NCR” Do not use this page outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help generate a PDF of the nonconformance report.

Obsoletions for 7.13

7.13

Type Name Description
Method IsCameraAvailable No longer required.
Method SetHideActions No longer required.
Method OnBeforePurchaseAttemptCreateTestWithReceiptLine Use OnBeforeAttemptCreateTestWithReceiptLine instead.
Method OnAfterPurchaseAttemptCreateTestWithReceiptLine Use OnAfterAttemptCreateTestWithReceiptLine instead.

Obsoletions for 7.17

7.17

Type Name Description
Method MoveInventory Use a move disposition instead, such as “IWX QI Disp. Move Auto Choose”

Obsoletions for 7.18

7.18

Type Name Description
Method PreciseTokenCount azure-openai-tokeniz no longer exists
Method EvaluateGrade Use EvaluateGrade with a supplied test in the first parameter instead
Method EvaluateGrade Use EvaluateGrade with a supplied test in the first parameter instead

Obsoletions for 7.19

7.19

Type Name Description
Method CreatePutAways Replaced by CreatePutAways() with Move Behavior Enum
Method MoveInventory Replaced by MoveInventory() with Move Behavior Enum

Obsoletions for 7.20

7.20

Type Name Description
Field “Receive Trigger” Use receiving triggers from IWX QI Setup instead.
Enum Enum InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Receive Trigger” Use Receiving Triggers from IWX QI Setup instead.
Method OnMoveInventoryAlterInventorySourceV3 Use OnBeforeProcessDisposition in IWX QI Disp. Move Auto Choose instead or OnBeforePopulateBinContentBuffer in IWX QI Inventory Availability
Method EvaluateExpressionForTest Use EvaluateTextExpression, or EvaluateNumericalExpression instead.
Method ReadFieldAsText Use ReadFieldAsText(pvarRecord: Variant; ptxtFieldName: Text; piFormatNumber: Integer) instead

Obsoletions for 7.21

7.21

Type Name Description
Enum Enum InsightWorks.QualityInspection.Configuration.”IWX QI Experimental Features” No longer used.
Enum Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Move Behavior” Replaced with “IWX QI Quantity Behavior”
Enum Enum InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI Put-away Behavior” No longer required.
Method OnAfterCreateItemReclassLine Use available events in in “IWX QI Disp. Move Item Reclass” instead.
Method OnAfterCreateWarehouseReclassLine Use OnAfterCreateWarehouseReclassLine in “IWX QI Disp. Move Whse.Reclass” instead.
Method OnEvaluateCustomTableFieldInExpression Use OnEvaluateCustomTableFieldInExpression in IWX QI Expression Mgmt instead.
Method OnAfterCreateAdjustmentItemJournalLine Use hooks available in “IWX QI Disp. Neg. Adjust Inv.” instead.
Method OnAfterCreateAdjustmentWhseJournalLine Use hooks available in “IWX QI Disp. Neg. Adjust Inv.” instead.
Method OnBeforeCreateNegativeAdjustment Use hooks in “IWX QI Disp. Neg. Adjust Inv.” instead.
Method OnBeforeInsertCreateTrackingWarehouseReclassLine Use hooks in “IWX QI Item Tracking Mgmt.” instead.
Method OnAfterCreateTrackingWarehouseReclassLine Use hooks in “IWX QI Item Tracking Mgmt.”
Method OnBeforeInsertCreateTrackingItemReclassLine Use OnBeforeInsertCreateTrackingItemReclassLine in IWX QI Disp. Change Tracking instead .
Method OnAfterCreateTrackingItemReclassLine Use OnAfterCreateTrackingItemReclassLine in IWX QI Disp. Change Tracking instead .
Method OnBeforeChangeTracking Use hooks available in IWX QI Disp. Change Tracking instead .
Method OnBeforeCreateTransfer Use OnBeforeProcessDisposition in IWX QI Disp. Transfer instead or OnBeforePopulateBinContentBuffer in IWX QI Inventory Availability
Method OnAfterCreateTransferLineWithOutboundTracking Use OnAfterCreateTransferLineWithOutboundTracking in IWX QI Disp. Transfer instead
Codeunit Codeunit InsightWorks.QualityInspection.Integration.”IWX QI Inventory” Replaced with dispositions.
Method SetQuarantineStateRelatedLicensePlates Use disposition “IWX QI Disp. License Plate” instead.
Method ShowRelatedLicensePlates Use disposition “IWX QI Disp. License Plate” instead.
Method MoveInventory Replaced by move dispositions. Use “IWX QI Disp. Move Auto Choose” or a more specific disposition instead.
Method CreateNegativeAdjustment Replaced by negative inventory disposition. Use IWX QI Disp. Neg. Adjust Inv. instead.
Method ChangeItemTracking Use dispositions IWX QI Reaction – Change Trkng direction instead.
Method CreateTransfer Use disposition “IWX QI Disp. Transfer” instead.
Method GetPassOrFailSamplesCount Use GetPassOrFailSamplesCount with Quantity Behavior instead.
Method CreateItemJournalLineReservationEntry Use CreateItemJournalLineReservationEntry that accepts a reservation entry instead.
Method IsQualityInspectorRegistered IsQualityInspectorRegistered is no longer used.
Method GetStepConfigurationValueAsMoveBehaviorEnum GetStepConfigurationValueAsQuantityBehaviorEnum
Method SetStepConfigurationValueAsMoveBehaviorEnum Use SetStepConfigurationValueAsQuantityBehaviorEnum instead

Obsoletions for 7.23

7.23

Type Name Description
Method OnSetCustomMatchExistingFilters Use OnBeforeFindExistingTestWithStub in “IWX QI Create Test” instead.
Method OnBeforeGetUserPermissionRecord Use OnBeforeGetUserPermissionRecord in “IWX QI Permission Mgmt” instead.
Method OnAfterGetUserPermissionRecord Use OnAfterGetUserPermissionRecord in “IWX QI Permission Mgmt” instead.
Method SetStepConfigurationValueAReportSelectionEnum Use SetStepConfigurationValueAsReportSelectionEnum instead

Obsoletions for 7.25

7.25

Type Name Description
Field “Receive Update Control” Not used.

Page “IWX QI Permissions Part”

ID 23067674Namespace: InsightWorks.QualityInspection.AccessControlSource table: Table InsightWorks.QualityInspection.AccessControl.”IWX QI Permission”

Use this page to add quality inspectors and fine tune what they are allowed to do in the Quality Inspector module. Note: you still need to grant access to permission sets that provide Business Central access to quality inspections. Any user that is assigned a test needs to have a permission on this page. All quality inspectors should have their own entry in here.

Properties

Name Value
Caption Quality Inspectors and Quality Inspection Permissions
PageType ListPart
SourceTable Table InsightWorks.QualityInspection.AccessControl.”IWX QI Permission”
UsageCategory None
ApplicationArea #All
ContextSensitiveHelpPage iwxqipermissions-page-al
AdditionalSearchTerms Quality Inspectors,Quality Users,People that record tests,Quality Control Manager
AboutTitle Permissions
AboutText Use this page to add quality inspectors and fine tune what they are allowed to do in the Quality Inspector module. Note: you still need to grant access to permission sets that provide Business Central access to quality inspections. Any user that is assigned a test needs to have a permission on this page. All quality inspectors should have their own entry in here.

Page “IWX QI Permissions”

ID 23067650Namespace: InsightWorks.QualityInspection.AccessControlSource table: Table InsightWorks.QualityInspection.AccessControl.”IWX QI Permission”

Use this page to add quality inspectors and fine tune what they are allowed to do in the Quality Inspector module. Note: you still need to grant access to permission sets that provide Business Central access to quality inspections. Any user that is assigned a test needs to have a permission on this page. All quality inspectors should have their own entry in here.

Properties

Name Value
Caption Quality Inspectors and Quality Inspection Permissions
PageType List
SourceTable Table InsightWorks.QualityInspection.AccessControl.”IWX QI Permission”
UsageCategory Administration
ApplicationArea #IWXQIQualityInspector
ContextSensitiveHelpPage iwxqipermissions-page-al
AdditionalSearchTerms Quality Inspectors,quality inspector user,quality inspection users,Quality Users,People that record tests,Quality Control Manager
AboutTitle Permissions
AboutText Use this page to add quality inspectors and fine tune what they are allowed to do in the Quality Inspector module. Note: you still need to grant access to permission sets that provide Business Central access to quality inspections. Any user that is assigned a test needs to have a permission on this page. All quality inspectors should have their own entry in here.

Page “IWX QI Analyze Fail Details”

ID 23067726Namespace: InsightWorks.QualityInspection.AnalysisSource table: Table InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Detail Buffer”

Intended to be used to help list details for a rolled up analysis.

Properties

Name Value
PageType List
SourceTable Table InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Detail Buffer”
SourceTableTemporary True
Caption Analysis Details
Editable False
AboutTitle Analysis Details
AboutText This page can be used to analyze why a specific analysis result was concluded. It will list some of the affected tests.
UsageCategory None
ApplicationArea #IWXQIQualityInspector

Methods

GetTest

procedure GetTest()

Page “IWX QI Analyze Fail”

ID 23067725Namespace: InsightWorks.QualityInspection.AnalysisSource table: Table InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Buffer”

Intended to help with analysis of tests that have failed.

Properties

Name Value
PageType ListPlus
SourceTable Table InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Buffer”
SourceTableTemporary True
SourceTableView sorting(“Failure Count”) order(descending)
Caption Quality Inspector Failure Analysis
UsageCategory ReportsAndAnalysis
ApplicationArea #All
InsertAllowed False
ModifyAllowed False
DeleteAllowed False
AdditionalSearchTerms Quality Analysis,Vendor Analysis,Production Analysis,Purchase quality analysis,Root Cause,RCA,Root cause analysis,inspection failures,analyze failures,correlation,automated quality prioritization,trend monitoring, automated prioritization, multidimensional correlation, operational insights,analyze temporal patterns
DataCaptionFields 3
DataCaptionExpression ‘Failure Analysis’
AboutTitle Failure Analysis
AboutText This page analyzes Quality Inspector test failures to show which problems occur most often and which are increasing over time. It helps you quickly identify the main contributors to quality issues so you can focus your root cause investigations on the highest-impact areas.

Methods

AnalyzeFailures

procedure AnalyzeFailures()

Page “IWX QI Test Matrix”

ID 23067649Namespace: InsightWorks.QualityInspection.AnalysisSource table: Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Quality Inspection Tests down as rows, test values as columns.
Goal is to make it easier to analyze and report on quality inspection history.

Properties

Name Value
Caption Quality Inspection Test Results Matrix
AdditionalSearchTerms Analyze inspections,Analyze Quality,Quality Analysis,Quality Report,Test values,Quality values
ContextSensitiveHelpPage iwxqitestmatrix-page-al
DataCaptionExpression ”
DeleteAllowed False
InsertAllowed False
LinksAllowed False
ModifyAllowed True
MultipleNewLines False
Editable True
PageType List
SourceTable Table InsightWorks.QualityInspection.Document.”IWX QI Test”
SourceTableView sorting(“No.”, “Retest No.”) order(descending)
UsageCategory ReportsAndAnalysis
ApplicationArea #IWXQIQualityInspector

Page “IWX QI Test Values”

ID 23067648Namespace: InsightWorks.QualityInspection.AnalysisSource table: Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

Page IWX QI Test Values (ID 23067648).
replaces page 23044194 “SFI Quality Insp. Test Values “
Introduced to make it easier to analyze test values changes over time.

Properties

Name Value
Caption Quality Inspection Test Values
ContextSensitiveHelpPage iwxqitestvalues-page-al
PageType List
SourceTable Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
SourceTableView sorting(“Test No.”, “Retest No.”, “Line No.”) order(descending)
UsageCategory Lists
ApplicationArea #IWXQIQualityInspector

Page “IWX QI Chart Values”

ID 23067653Namespace: InsightWorks.QualityInspection.Charting

The chart values page is used to easily chart measurements over time.

Properties

Name Value
Caption Quality Inspection Chart Values
ContextSensitiveHelpPage iwxqichartvalues-page-al
PageType Card
Editable True
UsageCategory Lists
ApplicationArea #IWXQIQualityInspector

Methods

Initialize

procedure Initialize(ptxtTemplateFilter: Text, ptxtFieldFilter: Text, ptxtItemFilter: Text, ptxtVariantFilter: Text, pdtFromDateTime: DateTime, pdtToDateTime: DateTime)
Parameters
Name Type Description
ptxtTemplateFilter Text
ptxtFieldFilter Text
ptxtItemFilter Text
ptxtVariantFilter Text
pdtFromDateTime DateTime
pdtToDateTime DateTime

UpdateChart

procedure UpdateChart()

Page “IWX QI Value Chart Part”

ID 23067654Namespace: InsightWorks.QualityInspection.ChartingSource table: Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”

This chart part can be used to display plotted test results over time.

Properties

Name Value
Caption Historical Recorded Values Chart
PageType CardPart
ShowFilter False
SourceTable Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”
SourceTableTemporary True
Editable True

Methods

SetFullFilterMode

Sets the filter mode.

procedure SetFullFilterMode(pbSetFullFilter: Boolean)
Parameters
Name Type Description
pbSetFullFilter Boolean

SetCurrent

Sets the current filters.

procedure SetCurrent(ptxtTemplateFilter: Text, ptxtFieldFilter: Text, ptxtItemFilter: Text, ptxtVariantFilter: Text, pdtFromDateTime: DateTime, pdtToDateTime: DateTime)
Parameters
Name Type Description
ptxtTemplateFilter Text
ptxtFieldFilter Text
ptxtItemFilter Text
ptxtVariantFilter Text
pdtFromDateTime DateTime
pdtToDateTime DateTime

Page “IWX QI AOAI Detected ListPart”

ID 23067694Namespace: InsightWorks.QualityInspection.CognitiveServicesSource table: Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”

Used to help with detecting fields from document intelligence.

Properties

Name Value
PageType ListPart
SourceTable Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”
SourceTableTemporary True
Editable True
InsertAllowed False
DeleteAllowed False
Caption Detected values

Methods

LoadSuggestedFieldValues

procedure LoadSuggestedFieldValues(var precTest: Record "IWX QI Test", var ptrecTestLineSample: Record "IWX QI Test Line Sample" temporary)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ptrecTestLineSample Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”

Page “IWX QI AOAI Values Prompt”

ID 23067688Namespace: InsightWorks.QualityInspection.CognitiveServicesSource table: Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”

The azure open AI values prompt page. Use this to fill in values in a test.

Properties

Name Value
Caption Fill in values in your test with Azure Open AI
SourceTable Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”
SourceTableTemporary True
PageType PromptDialog
IsPreview True
Extensible False
ApplicationArea #All

Methods

GenerateSuggestedFieldValues

procedure GenerateSuggestedFieldValues()

RunWithTest

procedure RunWithTest(precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Page “IWX QI Scan Form”

ID 23067683Namespace: InsightWorks.QualityInspection.CognitiveServicesSource table: Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Works with Azure Document Intelligence / Form recognizer to upload an image and scan it.

Properties

Name Value
Caption Set values from a picture or scanned image
PageType StandardDialog
SourceTable Table InsightWorks.QualityInspection.Document.”IWX QI Test”
UsageCategory None
ApplicationArea #IWXQIQualityInspector

Methods

RunWithUploadForm

procedure RunWithUploadForm(var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

RunModalWithUploadForm

procedure RunModalWithUploadForm(var precTest: Record "IWX QI Test"): Action
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
Returns
Type Description
Action

RunModalWithCamera

Use this to analyze a form with a camera with a modal dialog.

procedure RunModalWithCamera(var precTest: Record "IWX QI Test"): Action
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
Returns
Type Description
Action

Page “IWX QI Generation Rule List”

ID 23067640Namespace: InsightWorks.QualityInspection.Configuration.GenerationRuleSource table: Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”

A Quality Inspection Test generation rule defines when you want to ask a set of questions or other data that you want to collect that is defined in a template. You connect a template to a source table, and set the criteria to use that template with the table filter. When these filter criteria is met, then it will choose that template. When there are multiple matches, it will use the first template that it finds, based on the sort order.

Properties

Name Value
Caption Quality Inspection Test Generation Rules
DataCaptionExpression getDataCaptionExpression()
DelayedInsert False
PageType List
SourceTable Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”
PopulateAllFields True
SourceTableView sorting(“Sort Order”, Intent)
ContextSensitiveHelpPage iwxqigenerationrulelist-page-al
AdditionalSearchTerms Assignments, Test Generation Parameters, Test Creation Criteria, Inspection Template Test Conditions, Quality Control Test Specification, Test Generation Guidelines, Test Triggering Parameters,Test Generation Rules
UsageCategory Lists
ApplicationArea #IWXQIQualityInspector
AboutTitle Quality Inspection Test Generation Rule
AboutText A Quality Inspection Test generation rule defines when you want to ask a set of questions or other data that you want to collect that is defined in a template. You connect a template to a source table, and set the criteria to use that template with the table filter. When these filter criteria is met, then it will choose that template. When there are multiple matches, it will use the first template that it finds, based on the sort order.

Page “IWX QI Grade Condition Subpage”

ID 23067652Namespace: InsightWorks.QualityInspection.Configuration.GradeSource table: Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Config”

Use this to define grade conditions, scenarios when a value is acceptable and not-acceptable.

Properties

Name Value
Caption Field Grades
PageType ListPart
SourceTable Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Config”
SourceTableView sorting(“Condition Type”, Priority, “Target Code”, “Target Retest No.”, “Target Line No.”)
AboutTitle Grade conditions
AboutText Use this to define grade conditions, scenarios when a value is acceptable and not-acceptable.

Page “IWX QI Grade List”

ID 23067651Namespace: InsightWorks.QualityInspection.Configuration.GradeSource table: Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade”

Grades are effectively the incomplete/pass/fail state of a test. It is typical to have three grades (incomplete, fail, pass), however you can configure as many grades as you want, and in what circumstances. The grades with a lower number for the priority field are evaluated first. If you are not sure what to configure here then use the three defaults. The document specific lot blocking is for item+variant+lot+serial+package combinations, and can be used for serial-only tracking, or package-only tracking.

Properties

Name Value
Caption Quality Inspection Grades
SourceTable Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade”
SourceTableView sorting(“Evaluation Sequence”)
PageType List
ApplicationArea #IWXQIQualityInspector
UsageCategory Lists
ContextSensitiveHelpPage iwxqigradelist-page-al
AboutTitle About Grades
AboutText Grades are effectively the incomplete/pass/fail state of a test. It is typical to have three grades (incomplete, fail, pass), however you can configure as many grades as you want, and in what circumstances. The grades with a lower number for the priority field are evaluated first. If you are not sure what to configure here then use the three defaults. The document specific lot blocking is for item+variant+lot+serial+package combinations, and can be used for serial-only tracking, or package-only tracking.

Page “IWX QI Edit Template”

ID 23067675Namespace: InsightWorks.QualityInspection.Configuration

Generic text template editor.

Properties

Name Value
PageType Card
Caption Template
UsageCategory None
DataCaptionExpression ”
DeleteAllowed False
InsertAllowed False
ModifyAllowed True
Extensible True

Methods

RunModalWith

procedure RunModalWith(piTableNo: Integer, ptxtOptionalNameFilter: Text, var ptxtExistingTemplate: Text): Action
Parameters
Name Type Description
piTableNo Integer
ptxtOptionalNameFilter Text
ptxtExistingTemplate Text
Returns
Type Description
Action

RestrictFieldsToThoseOnTemplate

procedure RestrictFieldsToThoseOnTemplate(pcodTemplateCode: Code[20])
Parameters
Name Type Description
pcodTemplateCode Code[20]

SetShowFormulaAction

procedure SetShowFormulaAction(pbShowFormula: Boolean)
Parameters
Name Type Description
pbShowFormula Boolean

SetShowEmbeddedFormulas

procedure SetShowEmbeddedFormulas(pbShowEmbeddedFormula: Boolean)
Parameters
Name Type Description
pbShowEmbeddedFormula Boolean

Page “IWX QI Instruction List”

ID 23067703Namespace: InsightWorks.QualityInspection.ConfigurationSource table: Table InsightWorks.QualityInspection.Configuration.”IWX QI Instruction”

This list page will configure work instructions for collecting this metric on this template.

Properties

Name Value
Caption Instructions
DataCaptionFields 1,2
PageType List
SourceTable Table InsightWorks.QualityInspection.Configuration.”IWX QI Instruction”
UsageCategory None
ApplicationArea #IWXQIQualityInspector
AutoSplitKey True
DelayedInsert True

Methods

DrillDownAttachedDocuments

procedure DrillDownAttachedDocuments()

Page “IWX QI Setup”

ID 23067635Namespace: InsightWorks.QualityInspection.ConfigurationSource table: Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”

This setup page will let you define the behavior of how and when tests are created.

Properties

Name Value
Caption Quality Inspector Setup
ContextSensitiveHelpPage iwxqisetup-page-al
DeleteAllowed False
InsertAllowed False
SourceTable Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”
UsageCategory Administration
ApplicationArea #All
AboutTitle Setup
AboutText This setup page will let you define the behavior of how and when tests are created.

Page “IWX QI Tool Avail. Part”

ID 23067708Namespace: InsightWorks.QualityInspection.ConfigurationSource table: Table InsightWorks.QualityInspection.Configuration.”IWX QI Tool”

Provide the ability to overall edit available tools in the system.

Properties

Name Value
Caption Available Tools
AdditionalSearchTerms Equipment,Test tools,Tooling,Quality Tools
AboutTitle Configure Available Tools
AboutText This page lets you configure available tools to use when recording Quality Inspection Tests. You can then assign these tools on a specific field on a Quality Inspection Template.
UsageCategory None
ApplicationArea #IWXQIQualityInspector
LinksAllowed True
SourceTable Table InsightWorks.QualityInspection.Configuration.”IWX QI Tool”
PageType ListPart
InsertAllowed False
DeleteAllowed False

Methods

AddOrRemoveSelectedTool

procedure AddOrRemoveSelectedTool(pbAddThisTool: Boolean)
Parameters
Name Type Description
pbAddThisTool Boolean

Page “IWX QI Tool Details Factbox”

ID 23067712Namespace: InsightWorks.QualityInspection.ConfigurationSource table: Table InsightWorks.QualityInspection.Configuration.”IWX QI Tool”

Provide the ability to overall edit available tools in the system.

Properties

Name Value
Caption Tool Details
AdditionalSearchTerms Equipment,Test tools,Tooling,Quality Tools
AboutTitle Configure Available Tools
AboutText This page lets you configure available tools to use when recording Quality Inspection Tests. You can then assign these tools on a specific field on a Quality Inspection Template.
UsageCategory None
ApplicationArea #IWXQIQualityInspector
LinksAllowed True
SourceTable Table InsightWorks.QualityInspection.Configuration.”IWX QI Tool”
PageType CardPart
Editable False

Page “IWX QI Tool List”

ID 23067706Namespace: InsightWorks.QualityInspection.ConfigurationSource table: Table InsightWorks.QualityInspection.Configuration.”IWX QI Tool”

Provide the ability to overall edit available tools in the system.
This page lets you configure available tools to use when recording Quality Inspection Tests. You can then assign these tools on a specific field on a Quality Inspection Template.

Properties

Name Value
Caption Quality Inspector Tools
AdditionalSearchTerms Equipment,Testing Equipment,Test tools,Tooling,Quality Tools,Calibration
AboutTitle Configure Available Tools
AboutText This page lets you configure available tools to use when recording Quality Inspection Tests. You can then assign these tools on a specific field on a Quality Inspection Template.
UsageCategory Lists
ApplicationArea #IWXQIQualityInspector
LinksAllowed True
SourceTable Table InsightWorks.QualityInspection.Configuration.”IWX QI Tool”
PageType List

Page “IWX QI AQL Sampling Plan”

ID 23067691Namespace: InsightWorks.QualityInspection.Configuration.SamplingSource table: Table InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI AQL Sampling Plan”

The sampling plan allows you to configure what the acceptance and reject points are for given sampling sizes and inspection levels.

Properties

Name Value
Caption Quality Inspector AQL Sampling Plan
Description Configure Sampling Plans. For a given sample code and inspection level configure the sample size, acceptance points, and rejection points.
PageType Worksheet
SourceTable Table InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI AQL Sampling Plan”
AdditionalSearchTerms Sampling Plan,AQL,Acceptable Quality Limit,ISO 2859,ISO 2859-1,Sampling,ANSI ASQ Z1.4
UsageCategory Administration
ApplicationArea #IWXQIQualityInspector

Page “IWX QI Sample Size Config List”

ID 23067690Namespace: InsightWorks.QualityInspection.Configuration.SamplingSource table: Table InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI AQL Sample Size Config”

Provides configuration of the min and max lot sizes to determine which ISO 2859 code will be used.

Properties

Name Value
Caption Quality Inspector Sample Size Configurations
Description Configure AQL Sample Size Configurations and their ranges.
PageType Worksheet
SourceTable Table InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI AQL Sample Size Config”
AdditionalSearchTerms AQL,Acceptable Quality Limit,ISO 2859,ISO 2859-1,Sampling, ANSI ASQ Z1.4
UsageCategory Administration
ApplicationArea #IWXQIQualityInspector

Page “IWX QI Skip Lot Rule List”

ID 23067718Namespace: InsightWorks.QualityInspection.Configuration.Sampling.SkipLotSource table: Table InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Rule”

Skip Lot Rules page for viewing and managing all Skip Lot rules.

Properties

Name Value
Caption Quality Inspector Skip Lot Rules
PageType List
SourceTable Table InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Rule”
UsageCategory Lists
Editable False
AdditionalSearchTerms SkipLot
AboutTitle Skip Lot Rules
AboutText This page lets you see the skip lot rules that exist in a system. A Skip Lot Rule lets you define conditions to skip or reduce inspection frequency.
Description A Skip Lot Rule lets you define conditions to skip or reduce inspection frequency.
ApplicationArea #IWXQIQualityInspector
CardPageID Page InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Rule”

Page “IWX QI Skip Lot Rule”

ID 23067720Namespace: InsightWorks.QualityInspection.Configuration.Sampling.SkipLotSource table: Table InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Rule”

Skip Lot Rule page for managing Skip Lot testing rules and their lines.

Properties

Name Value
Caption Quality Inspector Skip Lot Rule
PageType ListPlus
SourceTable Table InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Rule”
UsageCategory None
ApplicationArea #IWXQIQualityInspector
AdditionalSearchTerms SkipLot
AboutTitle Skip Lot Rules
AboutText This page lets you configure a single skip lot rule. A Skip Lot Rule lets you define conditions to skip or reduce inspection frequency.
Description A Skip Lot Rule lets you define conditions to skip or reduce inspection frequency.

Page “IWXQI SkipLot Rule Subform”

ID 23067719Namespace: InsightWorks.QualityInspection.Configuration.Sampling.SkipLotSource table: Table InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Rule Line”

Skip Lot Rule Lines subform page for managing individual rule line steps.

Properties

Name Value
Caption Skip Lot Rule Lines
PageType ListPart
SourceTable Table InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Rule Line”

Page “IWX QI Setup Wizard”

ID 23067673Namespace: InsightWorks.QualityInspection.Configuration.SetupWizardSource table: Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”

This setup wizard is used to help configure the system initially.

Properties

Name Value
Caption Quality Inspector Setup Wizard
PageType NavigatePage
UsageCategory Administration
ApplicationArea #Basic,#Suite
SourceTable Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”

Page “IWX QI Basic Src. Cfg. Card”

ID 23067684Namespace: InsightWorks.QualityInspection.Configuration.SourceConfigurationSource table: Table InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config”

Use this page to configure what will automatically populate from other tables into your quality inspections. This is also used to tell Business Central how to find one record from another, by setting which field in the ”From” table connects to which field in the ”To” table.

Properties

Name Value
UsageCategory None
Caption Quality Inspector Source Configuration
DataCaptionExpression getDataCaptionExpression()
DelayedInsert False
LinksAllowed True
PageType ListPlus
RefreshOnActivate True
SourceTable Table InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config”
PopulateAllFields True
InsertAllowed True
ModifyAllowed True
DeleteAllowed True
ContextSensitiveHelpPage iwxqisourceconfigcard-page-al
AboutTitle Populating data from tables in Business Central.
AboutText Use this page to configure what will automatically populate from other tables into your quality inspections. This is also used to tell Business Central how to find one record from another, by setting which field in the ‘From’ table connects to which field in the ‘To’ table.

Page “IWX QI Basic Src. Cfg. List”

ID 23067682Namespace: InsightWorks.QualityInspection.Configuration.SourceConfigurationSource table: Table InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config”

Connect fields from one table to another.
Use this page to define what tables tests can be created on, and how to connect one table to another for extended source information. Chained connections can be made to allow filtering based on criteria other than the triggering record, such as chaining to a customer record to allow customer specific tests, or to item properties to have more specific item related tests

Properties

Name Value
Caption Quality Inspector Source Configuration List
CardPageID Page InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Basic Src. Cfg. Card”
DeleteAllowed False
Editable False
PageType List
SourceTable Table InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config”
SourceTableView where(“To Type” = const(Test))
ContextSensitiveHelpPage iwxqisourceconfiglist-page-al
AdditionalSearchTerms source table configuration,quality source,map tables,connect tables
AboutTitle Connect fields from one table to another.
AboutText Use this page to define what tables tests can be created on, and how to connect one table to another for extended source information. Chained connections can be made to allow filtering based on criteria other than the triggering record, such as chaining to a customer record to allow customer specific tests, or to item properties to have more specific item related tests
UsageCategory Administration
ApplicationArea #IWXQIQualityInspector

Page “IWX QI Basic Src.Cfg.Line Part”

ID 23067685Namespace: InsightWorks.QualityInspection.Configuration.SourceConfigurationSource table: Table InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config Line”

Used to help define which fields map to which parts on the table.

Properties

Name Value
AutoSplitKey True
Caption Quality Inspector Source Details
DelayedInsert True
LinksAllowed False
PageType ListPart
ShowFilter False
SourceTable Table InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config Line”
PopulateAllFields True

Methods

IdentifyTypeOfNewRow

procedure IdentifyTypeOfNewRow(): Boolean
Returns
Type Description
Boolean

Page “IWX QI Basic Src.Cfg.Rel. Part”

ID 23067686Namespace: InsightWorks.QualityInspection.Configuration.SourceConfigurationSource table: Table InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config”

Connect fields from one table to another.
Use this page to define what tables tests can be created on, and how to connect one table to another for extended source information. Chained connections can be made to allow filtering based on criteria other than the triggering record, such as chaining to a customer record to allow customer specific tests, or to item properties to have more specific item related tests

Properties

Name Value
Caption Add information from related tables
CardPageID Page InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Basic Src. Cfg. Card”
PageType ListPart
SourceTable Table InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config”
SourceTableView where(“To Type” = const(ChainTable))
PopulateAllFields True
DeleteAllowed True
ModifyAllowed False
InsertAllowed False
ContextSensitiveHelpPage iwxqisourceconfiglist-page-al
AdditionalSearchTerms source table configuration,quality source,map tables,connect tables
AboutTitle Connect fields from one table to another.
AboutText Use this page to define what tables tests can be created on, and how to connect one table to another for extended source information. Chained connections can be made to allow filtering based on criteria other than the triggering record, such as chaining to a customer record to allow customer specific tests, or to item properties to have more specific item related tests
UsageCategory None
ApplicationArea #IWXQIQualityInspector

Page “IWX QI Source Config Card”

ID 23067645Namespace: InsightWorks.QualityInspection.Configuration.SourceConfigurationSource table: Table InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config”

Use this page to configure what will automatically populate from other tables into your quality inspections. This is also used to tell Business Central how to find one record from another, by setting which field in the ”From” table connects to which field in the ”To” table.

Properties

Name Value
UsageCategory None
Caption Quality Inspector Source Configuration
DataCaptionExpression getDataCaptionExpression()
DelayedInsert False
LinksAllowed True
PageType ListPlus
RefreshOnActivate True
SourceTable Table InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config”
InsertAllowed True
ModifyAllowed True
DeleteAllowed True
ContextSensitiveHelpPage iwxqisourceconfigcard-page-al
AboutTitle Populating data from tables in Business Central.
AboutText Use this page to configure what will automatically populate from other tables into your quality inspections. This is also used to tell Business Central how to find one record from another, by setting which field in the ‘From’ table connects to which field in the ‘To’ table.

Page “IWX QI Source Config Line Part”

ID 23067646Namespace: InsightWorks.QualityInspection.Configuration.SourceConfigurationSource table: Table InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config Line”

Used to visually configure in a part which source field a target field
in the test maps to.

Properties

Name Value
AutoSplitKey True
Caption Quality Inspector Source Details
DelayedInsert True
LinksAllowed False
PageType ListPart
ShowFilter False
SourceTable Table InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config Line”
InsertAllowed True
ModifyAllowed True
DeleteAllowed True

Page “IWX QI Source Config List”

ID 23067647Namespace: InsightWorks.QualityInspection.Configuration.SourceConfigurationSource table: Table InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config”

This page is intended to help with advanced configuration scenarios. If you are exploring the system we recommend that you do not make alterations on this page unless instructed by a qualified support representative or technician.

Properties

Name Value
Caption Advanced Quality Inspector Source Configuration List
CardPageID Page InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config Card”
DeleteAllowed False
Editable False
InsertAllowed True
ModifyAllowed True
PageType List
SourceTable Table InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source Config”
ContextSensitiveHelpPage iwxqisourceconfiglist-page-al
AdditionalSearchTerms source table configuration,quality source,map tables,connect tables
AboutTitle Advanced Use Only
AboutText This page is intended to help with advanced configuration scenarios. If you are exploring the system we recommend that you do not make alterations on this page unless instructed by a qualified support representative or technician.
UsageCategory None
ApplicationArea #IWXQIQualityInspector

Page “IWX QI All Field Part”

ID 23067672Namespace: InsightWorks.QualityInspection.Configuration.Template.FieldSource table: Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”

The all field part is a generic part to help with configuration of a quality inspection field.

Properties

Name Value
Caption Field Details
PageType CardPart
SourceTable Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
LinksAllowed False
InsertAllowed False
ModifyAllowed True
DeleteAllowed False

Methods

LoadExistingField

procedure LoadExistingField(pcodField: Code[20])
Parameters
Name Type Description
pcodField Code[20]

UpdateControlVisibilityState

Invoke this to update the control visibility state.

procedure UpdateControlVisibilityState()

Events

OnUpdateControlVisibilityState

Use this to update the control visibility state with any page extensions.

[IntegrationEvent(True,False)]
local procedure OnUpdateControlVisibilityState(var precField: Record "IWX QI Field")
Parameters
Name Type Description
precField Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”

Page “IWX QI Detected Fields Subform”

ID 23067681Namespace: InsightWorks.QualityInspection.Configuration.Template.FieldSource table: Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”

Used to help display detected fields when using azure document intelligence.

Properties

Name Value
Caption Detected Fields
PageType ListPart
SourceTable Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
SourceTableTemporary True
LinksAllowed False
InsertAllowed False
ModifyAllowed True
DeleteAllowed False

Methods

SetChooseField

procedure SetChooseField(pcodField: Code[20], pbChooseField: Boolean)
Parameters
Name Type Description
pcodField Code[20]
pbChooseField Boolean

GetFieldsToAdd

procedure GetFieldsToAdd(var plistFieldsToAdd: List of [Code[20]]): Boolean
Parameters
Name Type Description
plistFieldsToAdd List of [Code[20]]
Returns
Type Description
Boolean

GetFieldsKeyValuesToAdd

procedure GetFieldsKeyValuesToAdd(var pdictFieldsToAdd: Dictionary of [Code[20], Text]): Boolean
Parameters
Name Type Description
pdictFieldsToAdd Dictionary of [Code[20], Text]
Returns
Type Description
Boolean

Page “IWX QI Existing Fields Subform”

ID 23067668Namespace: InsightWorks.QualityInspection.Configuration.Template.FieldSource table: Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”

Used to help choose existing fields to add.

Properties

Name Value
Caption Choose Existing Fields
PageType ListPart
SourceTable Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
LinksAllowed False
InsertAllowed False
ModifyAllowed False
DeleteAllowed False

Methods

SetChooseField

procedure SetChooseField(pcodField: Code[20], pbChooseField: Boolean)
Parameters
Name Type Description
pcodField Code[20]
pbChooseField Boolean

GetFieldsToAdd

procedure GetFieldsToAdd(var plstOfFieldsToAdd: List of [Code[20]]): Boolean
Parameters
Name Type Description
plstOfFieldsToAdd List of [Code[20]]
Returns
Type Description
Boolean

Page “IWX QI Field Card”

ID 23067714Namespace: InsightWorks.QualityInspection.Configuration.Template.FieldSource table: Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”

This page lets you define data points, questions, measurements, and entries with their allowable values and default passing thresholds. You can later use these test fields in Quality Inspection Templates.

Properties

Name Value
Caption Quality Inspector Field
AdditionalSearchTerms Custom fields,field template,custom field template.
AboutTitle Configure Available Test Fields
AboutText This page lets you define data points, questions, measurements, and entries with their allowable values and default passing thresholds. You can later use these test fields in Quality Inspection Templates.
ContextSensitiveHelpPage iwxqifields-page-al
LinksAllowed True
DeleteAllowed False
PageType Card
SourceTable Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
SourceTableView sorting(Code)
UsageCategory None
ApplicationArea #IWXQIQualityInspector

Methods

AssistEditCondition

Starts the assist edit dialog for condition.

procedure AssistEditCondition(piMatrix: Integer)
Parameters
Name Type Description
piMatrix Integer

AssistEditConditionDescription

Starts the assist-edit dialog for the condition description.

procedure AssistEditConditionDescription(piMatrix: Integer)
Parameters
Name Type Description
piMatrix Integer

AddFieldWizard

Use a wizard to add a new field.

procedure AddFieldWizard()

Page “IWX QI Field Expr. CardPart”

ID 23067702Namespace: InsightWorks.QualityInspection.Configuration.Template.FieldSource table: Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”

Used to help with expression configuration.

Properties

Name Value
Caption Expression Details
PageType CardPart
SourceTable Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
LinksAllowed False
InsertAllowed False
ModifyAllowed True
DeleteAllowed False

Methods

LoadExistingField

procedure LoadExistingField(pcodField: Code[20])
Parameters
Name Type Description
pcodField Code[20]

LoadExistingField

procedure LoadExistingField(pcodField: Code[20], pbUpdate: Boolean)
Parameters
Name Type Description
pcodField Code[20]
pbUpdate Boolean

Page “IWX QI Field Lookup”

ID 23067680Namespace: InsightWorks.QualityInspection.Configuration.Template.FieldSource table: Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”

This page lets you define data points, questions, measurements, and entries with their allowable values and default passing thresholds. You can later use these test fields in Quality Inspection Templates.

Properties

Name Value
Caption Lookup Quality Inspector Fields
AdditionalSearchTerms Custom fields,field template,custom field template.
AboutTitle Configure Available Test Fields
AboutText This page lets you define data points, questions, measurements, and entries with their allowable values and default passing thresholds. You can later use these test fields in Quality Inspection Templates.
ContextSensitiveHelpPage iwxqifields-page-al
LinksAllowed True
PageType List
SourceTable Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
SourceTableView sorting(Code)
UsageCategory None
ApplicationArea #IWXQIQualityInspector
CardPageId Page InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Card”

Methods

AddFieldWizard

Use a wizard to add a new field.

procedure AddFieldWizard()

Page “IWX QI Field Number CardPart”

ID 23067669Namespace: InsightWorks.QualityInspection.Configuration.Template.Field

A card part to assist with numerical configuration.

Properties

Name Value
Caption Number Field Details
PageType CardPart
LinksAllowed False
InsertAllowed False
ModifyAllowed False
DeleteAllowed False

Methods

LoadExistingField

procedure LoadExistingField(pcodField: Code[20])
Parameters
Name Type Description
pcodField Code[20]

AssistEditCondition

procedure AssistEditCondition(piMatrix: Integer)
Parameters
Name Type Description
piMatrix Integer

AssistEditConditionDescription

procedure AssistEditConditionDescription(piMatrix: Integer)
Parameters
Name Type Description
piMatrix Integer

getAllowableValues

procedure getAllowableValues(): Text
Returns
Type Description
Text

Page “IWX QI Field Wizard”

ID 23067667Namespace: InsightWorks.QualityInspection.Configuration.Template.Field

The field wizard is used to help guide a user with the creation or editing of a net new field.

Properties

Name Value
Caption Quality Inspector Field Wizard
PageType NavigatePage
UsageCategory None
ApplicationArea #IWXQIQualityInspector

Methods

GetFieldsToAdd

procedure GetFieldsToAdd(var plstOutputListOfFieldsToAdd: List of [Code[20]]): Boolean
Parameters
Name Type Description
plstOutputListOfFieldsToAdd List of [Code[20]]
Returns
Type Description
Boolean

RunModalEditExistingField

Use this to start the edit field wizard page from the context of an existing field.

procedure RunModalEditExistingField(var precField: Record "IWX QI Field"): Action
Parameters
Name Type Description
precField Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
Returns
Type Description
Action

RunModalForField

Use RunModalForField to start the page in a modal form for a new field.

procedure RunModalForField(): Action
Returns
Type Description
Action

Events

OnLeavingStepMovingForward

[IntegrationEvent(False,False)]
local procedure OnLeavingStepMovingForward(piLeavingThisStep: Integer, var piMovingToStep: Integer)
Parameters
Name Type Description
piLeavingThisStep Integer
piMovingToStep Integer

OnEvaluateStep

[IntegrationEvent(False,False)]
local procedure OnEvaluateStep(piStep: Integer, var bBackEnable: Boolean, var bNextEnable: Boolean, var bFinishEnable: Boolean)
Parameters
Name Type Description
piStep Integer
bBackEnable Boolean
bNextEnable Boolean
bFinishEnable Boolean

OnFinishActionAfterAddUpdateInternalField

[IntegrationEvent(False,False)]
local procedure OnFinishActionAfterAddUpdateInternalField()

Page “IWX QI Fields”

ID 23067636Namespace: InsightWorks.QualityInspection.Configuration.Template.FieldSource table: Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”

This page lets you define data points, questions, measurements, and entries with their allowable values and default passing thresholds. You can later use these test fields in Quality Inspection Templates

Properties

Name Value
Caption Quality Inspector Fields
AdditionalSearchTerms Custom fields,field template,custom field template.
AboutTitle Configure Available Test Fields
AboutText This page lets you define data points, questions, measurements, and entries with their allowable values and default passing thresholds. You can later use these test fields in Quality Inspection Templates.
ContextSensitiveHelpPage iwxqifields-page-al
CardPageId Page InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Card”
Editable False
InsertAllowed False
DeleteAllowed False
RefreshOnActivate True
LinksAllowed True
PageType List
SourceTable Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
SourceTableView sorting(Code)
UsageCategory Administration
ApplicationArea #IWXQIQualityInspector

Methods

AssistEditCondition

procedure AssistEditCondition(piMatrix: Integer)
Parameters
Name Type Description
piMatrix Integer

AssistEditConditionDescription

procedure AssistEditConditionDescription(piMatrix: Integer)
Parameters
Name Type Description
piMatrix Integer

AddFieldWizard

Use a wizard to add a new field.

procedure AddFieldWizard()

Page “IWX QI Lookup Code List”

ID 23067644Namespace: InsightWorks.QualityInspection.Configuration.Template.FieldSource table: Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code”

A list of available codes that can be used as a lookup.

Properties

Name Value
Caption Quality Inspector Lookup Codes
DelayedInsert True
LinksAllowed True
PageType List
SourceTable Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code”
SourceTableView sorting(“Group Code”, Code)
UsageCategory Administration
ApplicationArea #IWXQIQualityInspector

Page “IWX QI Lookup Code Part”

ID 23067670Namespace: InsightWorks.QualityInspection.Configuration.Template.FieldSource table: Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code”

A part that can be used to help configure manual lookups/choices.

Properties

Name Value
Caption Choices
DelayedInsert True
LinksAllowed True
PageType ListPart
SourceTable Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code”
SourceTableView sorting(“Group Code”, Code)
UsageCategory None
ApplicationArea #IWXQIQualityInspector

Methods

HandleOnValidateSimpleOrComplex

procedure HandleOnValidateSimpleOrComplex(pbShowSimple: Boolean)
Parameters
Name Type Description
pbShowSimple Boolean

GetGroupCodeFromRecordOrFilter

procedure GetGroupCodeFromRecordOrFilter(pbOnlyFilters: Boolean): Code[20]
Parameters
Name Type Description
pbOnlyFilters Boolean
Returns
Type Description
Code[20]

ChooseLookupTable

procedure ChooseLookupTable()

ChooseLookupField

procedure ChooseLookupField()

ChooseLookupFilter

procedure ChooseLookupFilter()

LoadExistingField

procedure LoadExistingField(pcodField: Code[20])
Parameters
Name Type Description
pcodField Code[20]

SetAddOptionToGradeCondition

procedure SetAddOptionToGradeCondition(pcodOption: Code[100], piGradePosition: Integer)
Parameters
Name Type Description
pcodOption Code[100]
piGradePosition Integer

LoadExistingGradeSelections

procedure LoadExistingGradeSelections()

CollectAllGradeConditions

procedure CollectAllGradeConditions(piGradePosition: Integer): Text
Parameters
Name Type Description
piGradePosition Integer
Returns
Type Description
Text

Page “IWX QI Template Designed Tools”

ID 23067707Namespace: InsightWorks.QualityInspection.Configuration.TemplateSource table: Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Tool”

A designed tool is a tool that is associated with a template per design.

Properties

Name Value
Caption Specification Tools
DataCaptionExpression getDataCaptionExpression()
AdditionalSearchTerms Designed Tools,Equipment,Test tools,Tooling,Quality Tools
AboutTitle Configure the required tools for a given specification on a template.
AboutText This page lets you configure the designed tool to collect the measurement specifications on a specific template.
UsageCategory None
ApplicationArea #IWXQIQualityInspector
DelayedInsert True
LinksAllowed True
SourceTable Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Tool”
PageType List

Page “IWX QI Template List”

ID 23067639Namespace: InsightWorks.QualityInspection.Configuration.TemplateSource table: Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template”

A Quality Inspection Template is a test plan containing a set of questions and data points that you want to collect.

Properties

Name Value
Caption Quality Inspection Templates
ContextSensitiveHelpPage iwxqitemplate-page-al
CardPageID Page InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template”
DeleteAllowed False
Editable False
PageType List
SourceTable Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template”
UsageCategory Lists
ApplicationArea #IWXQIQualityInspector
LinksAllowed True
AdditionalSearchTerms Quality Test Template,Template,Quality Template,Quality Inspector,questions,kinds of tests,templates,quality inspector template,quality template,certificate design,SOP,standard operating procedures
AboutTitle Quality Inspection Template
AboutText A Quality Inspection Template is a test plan containing a set of questions and data points that you want to collect.

Page “IWX QI Template Subform”

ID 23067638Namespace: InsightWorks.QualityInspection.Configuration.TemplateSource table: Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Line”

This subform is used on the template card to help configure which fields should be defined on a template.

Properties

Name Value
AutoSplitKey True
Caption Quality Inspection Template Subform
DelayedInsert True
LinksAllowed False
PageType ListPart
ShowFilter False
SourceTable Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Line”

Methods

AssistEditCondition

Starts the assist-edit dialog for the grade condition description.

procedure AssistEditCondition(piMatrix: Integer)
Parameters
Name Type Description
piMatrix Integer

AssistEditConditionDescription

Starts the assist edit dialog for the grade condition description

procedure AssistEditConditionDescription(piMatrix: Integer)
Parameters
Name Type Description
piMatrix Integer

AddFieldWizard

Use a wizard to add a new field to this template.

procedure AddFieldWizard()

SetBalloonVisible

Sets whether the balloon is visible or not.
This will invoke a subform CurrPage.Update(false) when pbUpdatePage is set to true.

procedure SetBalloonVisible(pbBalloonVisible: Boolean, pbUpdatePage: Boolean)
Parameters
Name Type Description
pbBalloonVisible Boolean
pbUpdatePage Boolean

Clears the cached template record and also force updates the page.


Page “IWX QI Template Tool List”

ID 23067713Namespace: InsightWorks.QualityInspection.Configuration.TemplateSource table: Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Tool”

This is intended to be used for drilldowns and lookups.
Use page 23067707 “IWX QI Template Designed Tools” for configuring the designed tools on a template.

Properties

Name Value
Caption Tools Configured On Templates
AdditionalSearchTerms Designed Tools,Testing Equipment,Test tools,Tooling,Quality Tools
UsageCategory None
ApplicationArea #IWXQIQualityInspector
LinksAllowed True
SourceTable Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Tool”
PageType List
Editable False
InsertAllowed False
DeleteAllowed False

Page “IWX QI Template”

ID 23067637Namespace: InsightWorks.QualityInspection.Configuration.TemplateSource table: Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template”

A Quality Inspection Template is a test plan containing a set of questions and data points that you want to collect.

Properties

Name Value
UsageCategory None
ContextSensitiveHelpPage iwxqitemplate-page-al
LinksAllowed True
Caption Quality Inspection Template
DataCaptionExpression getDataCaptionExpression()
PageType Card
RefreshOnActivate True
SourceTable Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template”
AdditionalSearchTerms Test Plan,Quality Inspector,design an inspection,quality inspection template,questions,kinds of tests,template,quality inspector template,quality template,certificate design,SOP,standard operating procedures
AboutTitle Quality Inspection Template
AboutText A Quality Inspection Template is a test plan containing a set of questions and data points that you want to collect.
PromotedActionCategories New,Process,Report

Page “IWX QI Instruction FactBox”

ID 23067704Namespace: InsightWorks.QualityInspection.DocumentSource table: Table InsightWorks.QualityInspection.Configuration.”IWX QI Instruction”

Intended to be a read-only view of available instructions.

Properties

Name Value
PageType ListPart
SourceTable Table InsightWorks.QualityInspection.Configuration.”IWX QI Instruction”
UsageCategory None
ApplicationArea #IWXQIQualityInspector
Caption Instructions
InsertAllowed False
DeleteAllowed False
Editable False

Page “IWX QI Mobile Test Card”

ID 23067665Namespace: InsightWorks.QualityInspection.DocumentSource table: Table InsightWorks.QualityInspection.Document.”IWX QI Test”

This page is designed to be used for Phones, in Business Central’s phone interface.

Properties

Name Value
Caption Quality Test
PageType Card
SourceTable Table InsightWorks.QualityInspection.Document.”IWX QI Test”
InsertAllowed False
DeleteAllowed False
ModifyAllowed True
CardPageId Page InsightWorks.QualityInspection.Document.”IWX QI Test”
UsageCategory None

Page “IWX QI Mobile Test List”

ID 23067663Namespace: InsightWorks.QualityInspection.DocumentSource table: Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Properties

Name Value
Caption Quality Tests
PageType List
SourceTable Table InsightWorks.QualityInspection.Document.”IWX QI Test”
CardPageId Page InsightWorks.QualityInspection.Document.”IWX QI Mobile Test Card”
InsertAllowed False
DeleteAllowed False
ModifyAllowed True
UsageCategory None

Page “IWX QI Mobile Tracking List”

ID 23067659Namespace: InsightWorks.QualityInspection.DocumentSource table: Microsoft.Inventory.Tracking.”Entry Summary”

Properties

Name Value
Caption Choose Lot/Serial
DeleteAllowed False
InsertAllowed False
PageType List
SourceTable Microsoft.Inventory.Tracking.”Entry Summary”
SourceTableTemporary True
UsageCategory None

Methods

GetSelection

procedure GetSelection(var pacGetFormAction: Action, var ptrecOutSelectionEntrySummary: Record "Entry Summary" temporary)
Parameters
Name Type Description
pacGetFormAction Action
ptrecOutSelectionEntrySummary Record “Entry Summary” temporary

SetSelection

procedure SetSelection(var ptrecTrackingSpecification: Record "Tracking Specification" temporary)
Parameters
Name Type Description
ptrecTrackingSpecification Record “Tracking Specification” temporary

ChooseCurrentTracking

procedure ChooseCurrentTracking()

Page “IWX QI Most Recent Picture”

ID 23067666Namespace: InsightWorks.QualityInspection.DocumentSource table: Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Properties

Name Value
Caption Most Recent Picture
DeleteAllowed False
InsertAllowed False
LinksAllowed False
PageType CardPart
SourceTable Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Methods

IsCameraAvailable

Obsolete

This element will become obsolete from version 7.13. No longer required.

Obsolete, do not use.

[Obsolete(No longer required.,7.13)]
procedure IsCameraAvailable(): Boolean
Returns
Type Description
Boolean

Return value of type Boolean.

SetHideActions

Obsolete

This element will become obsolete from version 7.13. No longer required.

Obsolete, do not use.

[Obsolete(No longer required.,7.13)]
procedure SetHideActions()

DeleteMostRecentPicture

Deletes the most recent picture.

procedure DeleteMostRecentPicture()

Page “IWX QI NCR”

ID 23067727Namespace: InsightWorks.QualityInspection.DocumentSource table: Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Primary location to enter Quality Inspection Test information.

Properties

Name Value
UsageCategory None
Caption NCR
DataCaptionExpression getDataCaptionExpression()
InsertAllowed False
PageType Card
SourceTable Table InsightWorks.QualityInspection.Document.”IWX QI Test”
RefreshOnActivate True
LinksAllowed True
ContextSensitiveHelpPage iwxqitest-page-al

Methods

GetShouldShowCreateNonconformance

Determines if the Create Nonconformance action should be shown.

procedure GetShouldShowCreateNonconformance(): Boolean
Returns
Type Description
Boolean

True if the Create Nonconformance action should be shown, false otherwise.///


Page “IWX QI NCRs”

ID 23067728Namespace: InsightWorks.QualityInspection.DocumentSource table: Table InsightWorks.QualityInspection.Document.”IWX QI Test”

List of Quality Inspection Tests

Properties

Name Value
Caption NCRs
ContextSensitiveHelpPage iwxqitest-page-al
CardPageID Page InsightWorks.QualityInspection.Document.”IWX QI NCR”
DeleteAllowed False
Editable False
PageType List
SourceTable Table InsightWorks.QualityInspection.Document.”IWX QI Test”
SourceTableView sorting(“No.”, “Retest No.”) order(descending) where(“Template Type” = filter(Nonconformance))
LinksAllowed True
AdditionalSearchTerms Non Conformance, NCRs, nonconformance,Test Results,Certificates,Quality Tests,Inspection tests,inspection results
UsageCategory Lists
ApplicationArea #IWXQIQualityInspector

Methods

RunModalSourceDocumentFilterWithRecord

procedure RunModalSourceDocumentFilterWithRecord(pvarRecordVariant: Variant): Action
Parameters
Name Type Description
pvarRecordVariant Variant
Returns
Type Description
Action

RunModalSourceItemFilterWithRecord

procedure RunModalSourceItemFilterWithRecord(pvarRecordVariant: Variant): Action
Parameters
Name Type Description
pvarRecordVariant Variant
Returns
Type Description
Action

RunModalSourceItemAndSourceDocumentFilterWithRecord

procedure RunModalSourceItemAndSourceDocumentFilterWithRecord(pvarRecordVariant: Variant): Action
Parameters
Name Type Description
pvarRecordVariant Variant
Returns
Type Description
Action

RunModalSourceItemTrackingFilterWithRecord

procedure RunModalSourceItemTrackingFilterWithRecord(pvarRecordVariant: Variant): Action
Parameters
Name Type Description
pvarRecordVariant Variant
Returns
Type Description
Action

Page “IWX QI Record Test Tool Usage”

ID 23067709Namespace: InsightWorks.QualityInspection.DocumentSource table: Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Tool”

Intended to be a view of required and used tools.

Properties

Name Value
PageType List
SourceTable Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Tool”
UsageCategory Lists
ApplicationArea #IWXQIQualityInspector
Caption Tool Usage
DataCaptionExpression getDataCaptionExpression()
InsertAllowed False
DeleteAllowed False
Editable True

Methods

AddOrRemoveSelectedTool

procedure AddOrRemoveSelectedTool(pbAddThisTool: Boolean)
Parameters
Name Type Description
pbAddThisTool Boolean

ChangeToolIdentification

procedure ChangeToolIdentification(ptxtChangeTo: Text)
Parameters
Name Type Description
ptxtChangeTo Text

Page “IWX QI Test Subform”

ID 23067642Namespace: InsightWorks.QualityInspection.DocumentSource table: Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

Subform Page for Quality Inspection Tests.

Properties

Name Value
Caption Quality Inspection Test Subform
DeleteAllowed False
InsertAllowed False
LinksAllowed False
PageType ListPart
ShowFilter False
SourceTable Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

Events

OnBeforeCanEditTestValue

Use this event to manipulate the decision if this test line can have it’s test value edited or not.

[IntegrationEvent(False,False)]
local procedure OnBeforeCanEditTestValue(var precTestLine: Record "IWX QI Test Line", var pbCanEditTestValue: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
pbCanEditTestValue Boolean
pbHandled Boolean

Page “IWX QI Test Tool Usage FactBox”

ID 23067710Namespace: InsightWorks.QualityInspection.DocumentSource table: Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Tool”

Intended to be a view of required and used tools as a factbox on a template.

Properties

Name Value
PageType ListPart
SourceTable Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Tool”
UsageCategory None
ApplicationArea #IWXQIQualityInspector
Caption Tools
InsertAllowed False
DeleteAllowed False
Editable False

Methods

ToggleAddRemoveSelectedTool

procedure ToggleAddRemoveSelectedTool()

Page “IWX QI Test Tool Usage List”

ID 23067711Namespace: InsightWorks.QualityInspection.DocumentSource table: Table InsightWorks.QualityInspection.Document.”IWX QI Test Line Tool Usage”

DO NOT USE THIS PAGE TO RECORD ACTUAL USAGE.
Instead, use page 23067709 “IWX QI Record Test Tool Usage” to record usage.

Properties

Name Value
PageType List
SourceTable Table InsightWorks.QualityInspection.Document.”IWX QI Test Line Tool Usage”
UsageCategory Lists
ApplicationArea #IWXQIQualityInspector
Caption Tool Usage
InsertAllowed False
DeleteAllowed False
Editable False
AdditionalSearchTerms Equipment,Test tools,Tooling,Quality Tools
AboutTitle Review tool usage
AboutText This page lets you review tool usage as they were used to measure values on Quality Inspection tests.

Page “IWX QI Test”

ID 23067641Namespace: InsightWorks.QualityInspection.DocumentSource table: Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Primary location to enter Quality Inspection Test information.

Properties

Name Value
UsageCategory None
Caption Quality Inspection Test
DataCaptionExpression getDataCaptionExpression()
InsertAllowed False
PageType Card
SourceTable Table InsightWorks.QualityInspection.Document.”IWX QI Test”
RefreshOnActivate True
LinksAllowed True
ContextSensitiveHelpPage iwxqitest-page-al

Methods

GetShouldShowCreateNonconformance

Determines if the Create Nonconformance action should be shown.

procedure GetShouldShowCreateNonconformance(): Boolean
Returns
Type Description
Boolean

True if the Create Nonconformance action should be shown, false otherwise.///


Page “IWX QI Tests”

ID 23067643Namespace: InsightWorks.QualityInspection.DocumentSource table: Table InsightWorks.QualityInspection.Document.”IWX QI Test”

List of Quality Inspection Tests

Properties

Name Value
Caption Quality Inspection Tests
ContextSensitiveHelpPage iwxqitest-page-al
CardPageID Page InsightWorks.QualityInspection.Document.”IWX QI Test”
DeleteAllowed False
Editable False
PageType List
SourceTable Table InsightWorks.QualityInspection.Document.”IWX QI Test”
SourceTableView sorting(“No.”, “Retest No.”) order(descending) where(“Template Type” = filter(<> Nonconformance))
LinksAllowed True
AdditionalSearchTerms Test Results,Certificates,Quality Tests,Inspection tests,inspection results
UsageCategory Lists
ApplicationArea #IWXQIQualityInspector

Methods

RunModalSourceDocumentFilterWithRecord

procedure RunModalSourceDocumentFilterWithRecord(pvarRecordVariant: Variant): Action
Parameters
Name Type Description
pvarRecordVariant Variant
Returns
Type Description
Action

RunModalSourceItemFilterWithRecord

procedure RunModalSourceItemFilterWithRecord(pvarRecordVariant: Variant): Action
Parameters
Name Type Description
pvarRecordVariant Variant
Returns
Type Description
Action

RunModalSourceItemAndSourceDocumentFilterWithRecord

procedure RunModalSourceItemAndSourceDocumentFilterWithRecord(pvarRecordVariant: Variant): Action
Parameters
Name Type Description
pvarRecordVariant Variant
Returns
Type Description
Action

RunModalSourceItemTrackingFilterWithRecord

procedure RunModalSourceItemTrackingFilterWithRecord(pvarRecordVariant: Variant): Action
Parameters
Name Type Description
pvarRecordVariant Variant
Returns
Type Description
Action

Page “IWX QI Sample Stats. Factbox”

ID 23067689Namespace: InsightWorks.QualityInspection.Document.SamplingSource table: Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

Used to display a factbox of summary sample values for samples.

Properties

Name Value
UsageCategory None
ApplicationArea #IWXQIQualityInspector
Caption Sample Statistics
PageType CardPart
SourceTable Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

Page “IWX QI Sample Worksheet”

ID 23067687Namespace: InsightWorks.QualityInspection.Document.SamplingSource table: Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”

The sample editor is intended to make it easier to edit multiple samples.

Properties

Name Value
Caption Quality Inspection Sample Worksheet
AdditionalSearchTerms Sampling,Samples,sample worksheet,sampling worksheet,Analyze inspections,Analyze Quality,Quality Analysis,Quality Report,Test values,Quality values, AQL
ContextSensitiveHelpPage iwxqisampleeditor-page-al
DataCaptionExpression ”
DeleteAllowed False
InsertAllowed False
LinksAllowed False
ModifyAllowed True
MultipleNewLines False
Editable True
PageType Worksheet
SourceTable Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”
SourceTableTemporary True
SourceTableView sorting(“Test No.”, “Retest No.”, “Line No.”, “Sample No.”) order(ascending)
ShowFilter False
UsageCategory Tasks
SaveValues False
ApplicationArea #IWXQIQualityInspector

Methods

InitializeWithTest

procedure InitializeWithTest(var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

RefreshData

procedure RefreshData()

Page “IWX QI Test Line Sample Editor”

ID 23067692Namespace: InsightWorks.QualityInspection.Document.SamplingSource table: Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

A simple sample editor

Properties

Name Value
Caption Quality Inspection Samples
DataCaptionExpression getDataCaptionExpression()
DeleteAllowed False
ModifyAllowed True
InsertAllowed False
LinksAllowed False
PageType ListPlus
ShowFilter False
SourceTable Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
UsageCategory None
ApplicationArea #IWXQIQualityInspector

Page “IWX QI TestLine Sample Subform”

ID 23067693Namespace: InsightWorks.QualityInspection.Document.SamplingSource table: Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”

Subform for samples intended to be used in a ListPlus

Properties

Name Value
Caption Samples
DeleteAllowed False
ModifyAllowed True
InsertAllowed False
LinksAllowed False
PageType ListPart
ShowFilter False
SourceTable Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”
UsageCategory None
ApplicationArea #IWXQIQualityInspector

Page “IWX QI Skip Lot Entry List”

ID 23067721Namespace: InsightWorks.QualityInspection.Document.Sampling.SkipLotSource table: Table InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot Entry”

Skip Lot Entries page for viewing logged Skip Lot testing actions and results.

Properties

Name Value
Caption Skip Lot Entries
PageType List
SourceTable Table InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot Entry”
SourceTableView sorting(“Entry No.”) order(descending)
UsageCategory History
ApplicationArea #All
InsertAllowed False
ModifyAllowed False
DeleteAllowed False

Page “IWX QI Skip Lot State List”

ID 23067722Namespace: InsightWorks.QualityInspection.Document.Sampling.SkipLotSource table: Table InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot State”

Skip Lot Rule States page for viewing and managing rule state information.

Properties

Name Value
Caption Quality Inspector Skip Lot States
PageType List
SourceTable Table InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot State”
SourceTableView sorting(“Last Created Test No.”, “Last Created Retest No.”) order(descending)
UsageCategory Lists
ApplicationArea #All
DeleteAllowed True

ID 23067716Namespace: InsightWorks.QualityInspection.IntegrationSource table: Table InsightWorks.QualityInspection.RoleCenter.”IWX QI Role Center Cue”

Properties

Name Value
UsageCategory None
ApplicationArea #IWXQIQualityInspector
Caption Quality Inspection Tests
PageType CardPart
SourceTable Table InsightWorks.QualityInspection.RoleCenter.”IWX QI Role Center Cue”
Editable False

Page “IWX QI Prod. Gen. Rule Wizard”

ID 23067697Namespace: InsightWorks.QualityInspection.Integration.ProductionSource table: Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”

Properties

Name Value
Caption Production Rule Wizard
PageType NavigatePage
UsageCategory None
ApplicationArea #IWXQIQualityInspector
SourceTable Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”

Methods

RunModalWithGenerationRule

Start the wizard using this generation rule as a pre-requisite.
Use this to edit an existing rule.
You can also use it to start a new rule with a default template by supplying a template filter.

procedure RunModalWithGenerationRule(var precGenerationRule: Record "IWX QI Generation Rule"): Action
Parameters
Name Type Description
precGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”
Returns
Type Description
Action

Page “IWX QI Rec. Gen. Rule Wizard”

ID 23067696Namespace: InsightWorks.QualityInspection.Integration.ReceivingSource table: Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”

Properties

Name Value
Caption Receipt Rule Wizard
PageType NavigatePage
UsageCategory None
ApplicationArea #IWXQIQualityInspector
SourceTable Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”

Methods

RunModalWithGenerationRule

Start the wizard using this generation rule as a pre-requisite.
Use this to edit an existing rule.
You can also use it to start a new rule with a default template by supplying a template filter.

procedure RunModalWithGenerationRule(var precGenerationRule: Record "IWX QI Generation Rule"): Action
Parameters
Name Type Description
precGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”
Returns
Type Description
Action

ID 23067715Namespace: InsightWorks.QualityInspection.Integration.TransferSource table: Table InsightWorks.QualityInspection.Integration.Transfer.”IWX QI Related Transfer Buffer”

Properties

Name Value
ApplicationArea #IWXQIQualityInspector
Caption Related Transfer Documents
PageType List
Editable False
SourceTable Table InsightWorks.QualityInspection.Integration.Transfer.”IWX QI Related Transfer Buffer”
SourceTableTemporary True
UsageCategory None

Methods

InitializeWithTest

Initializes the page with the provided Quality Inspector Test

procedure InitializeWithTest(var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Page “IWX QI Inspection Bin List”

ID 23067723Namespace: InsightWorks.QualityInspection.Integration.WarehousingSource table: Table InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI Inspection Bin”

List page for Inspection Bin configuration. This page allows users to configure which bins items should be moved to for quality inspection based on the source location.

Properties

Name Value
Caption Inspection Bins
SourceTable Table InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI Inspection Bin”
SourceTableView sorting(“Item No.”, “From Location Code”, “From Zone Code”)
PageType List
DelayedInsert True
ApplicationArea #IWXQIQualityInspector
UsageCategory Lists
AboutTitle About Inspection Bins
AboutText Configure which bins to use for quality inspections based on the source location and item. This helps automate warehouse operations by ensuring items requiring inspection are put away in the correct bins.

Page “IWX QI Whse. Gen. Rule Wizard”

ID 23067695Namespace: InsightWorks.QualityInspection.Integration.WarehousingSource table: Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”

Properties

Name Value
Caption Warehouse Movement Rule Wizard
PageType NavigatePage
UsageCategory None
ApplicationArea #IWXQIQualityInspector
SourceTable Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”

Methods

RunModalWithGenerationRule

Start the wizard using this generation rule as a pre-requisite.
Use this to edit an existing rule.
You can also use it to start a new rule with a default template by supplying a template filter.

procedure RunModalWithGenerationRule(var precGenerationRule: Record "IWX QI Generation Rule"): Action
Parameters
Name Type Description
precGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”
Returns
Type Description
Action

Page “IWX QI Report Selection”

ID 23067677Namespace: InsightWorks.QualityInspection.ReportingSource table: Microsoft.Foundation.Reporting.”Report Selections”

Properties

Name Value
ApplicationArea #IWXQIQualityInspector
Caption Report Selections Quality Inspections
PageType Worksheet
SaveValues True
SourceTable Microsoft.Foundation.Reporting.”Report Selections”
UsageCategory Tasks

Page “IWX QI Explore All Role Center”

ID 23067656Namespace: InsightWorks.QualityInspection.RoleCenter

Properties

Name Value
Caption Quality Inspector
PageType RoleCenter

Page “IWX QI Main Role Center”

ID 23067661Namespace: InsightWorks.QualityInspection.RoleCenter

Properties

Name Value
Caption Quality Inspector
PageType RoleCenter

Page “IWX QI NCRs Cue”

ID 23067729Namespace: InsightWorks.QualityInspection.RoleCenterSource table: Table InsightWorks.QualityInspection.RoleCenter.”IWX QI Role Center Cue”

Properties

Name Value
Caption NCRs
PageType CardPart
SourceTable Table InsightWorks.QualityInspection.RoleCenter.”IWX QI Role Center Cue”
SourceTableView where(“Template Type Filter” = const(Nonconformance))

Page “IWX QI Phone Test ListPart”

ID 23067658Namespace: InsightWorks.QualityInspection.RoleCenterSource table: Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Properties

Name Value
Caption Quality Test
PageType ListPart
SourceTable Table InsightWorks.QualityInspection.Document.”IWX QI Test”
InsertAllowed False
DeleteAllowed False
ModifyAllowed True
CardPageId Page InsightWorks.QualityInspection.Document.”IWX QI Mobile Test Card”

Page “IWX QI Role Center – Phone”

ID 23067657Namespace: InsightWorks.QualityInspection.RoleCenterSource table: Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”

Properties

Name Value
Caption Quality Inspector Phone Interface
PageType RoleCenter
SourceTableTemporary True
SourceTable Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”

Page “IWX QI Role Center – Tablet”

ID 23067662Namespace: InsightWorks.QualityInspection.RoleCenterSource table: Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”

Properties

Name Value
Caption Quality Inspector Tablet Interface
PageType RoleCenter
SourceTableTemporary True
SourceTable Table InsightWorks.QualityInspection.Configuration.”IWX QI Setup”

Page “IWX QI Tests Cue”

ID 23067660Namespace: InsightWorks.QualityInspection.RoleCenterSource table: Table InsightWorks.QualityInspection.RoleCenter.”IWX QI Role Center Cue”

Properties

Name Value
Caption Tests
PageType CardPart
SourceTable Table InsightWorks.QualityInspection.RoleCenter.”IWX QI Role Center Cue”
SourceTableView where(“Template Type Filter” = filter(<> Nonconformance))
DataCaptionFields 21

Page “IWX QI Tests Tablet Cue”

ID 23067664Namespace: InsightWorks.QualityInspection.RoleCenterSource table: Table InsightWorks.QualityInspection.RoleCenter.”IWX QI Role Center Cue”

Properties

Name Value
Caption Tests
PageType CardPart
SourceTable Table InsightWorks.QualityInspection.RoleCenter.”IWX QI Role Center Cue”

Page “IWX QI Assign Tests”

ID 23067655Namespace: InsightWorks.QualityInspection.Scheduling

This page is used with integration with Graphical Scheduler to assign a drag and drop view of assigning tests to quality inspectors.

Properties

Name Value
Caption Assign Quality Inspection Tests to Inspectors
ApplicationArea #IWXQIQualityInspector
UsageCategory Tasks
AdditionalSearchTerms Quality assignments, Quality Inspection Assignments, Assign Test,assign to inspector,Assign Quality inspection test, schedule quality, plan quality inspection tests
AboutTitle Schedule and Manually assign Quality Inspection Tests
AboutText The Quality Inspection Test assignments tool allows a supervisor to assign Quality Inspection Tests to inspectors.
PageType Card

Page “IWX QI Choose From Lookup”

ID 23067671Namespace: InsightWorks.QualityInspection.UtilitiesSource table: Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code”

Properties

Name Value
Caption Choose an option
Editable False
PageType List
SourceTable Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code”
SourceTableTemporary True
SourceTableView sorting(Code)
UsageCategory None

Page “IWX QI Edit Large Text”

ID 23067676Namespace: InsightWorks.QualityInspection.Utilities

A simple page meant to be run modal for use with editing large text.

Properties

Name Value
PageType Card
Caption Change Text
UsageCategory None
DataCaptionExpression ”
DeleteAllowed False
InsertAllowed False
ModifyAllowed True
Extensible True

Methods

RunModalWith

procedure RunModalWith(var ptxtExistingText: Text): Action
Parameters
Name Type Description
ptxtExistingText Text
Returns
Type Description
Action

Page “IWX QI Routing Line Lookup”

ID 23067698Namespace: InsightWorks.QualityInspection.UtilitiesSource table: Microsoft.Manufacturing.Routing.”Routing Line”

Properties

Name Value
Caption Routing Line Lookup
PageType List
SourceTable Microsoft.Manufacturing.Routing.”Routing Line”
UsageCategory None
ApplicationArea #IWXQIQualityInspector

Page “IWX QI WS iwxAdaptiveCard”

ID 23067724Namespace: InsightWorks.QualityInspection.WebServicesSource table: Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Do not use this codeunit outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list tests.

Properties

Name Value
APIVersion ‘v2.0’
APIGroup qualityinspection
APIPublisher insightworks
Caption iwxQualityAdaptiveCards
DelayedInsert True
DeleteAllowed False
Editable False
EntityName iwxQualityAdaptiveCard
EntitySetName iwxQualityAdaptiveCards
EntityCaption Insight Works Adaptive Cards for Quality Inspection Test
EntitySetCaption Insight Works Quality Inspection Adaptive Cards
InsertAllowed False
ModifyAllowed False
PageType API
RefreshOnActivate True
SourceTable Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ODataKeyFields 2000000000

Methods

ProcessAdaptiveCardJson

Intended for use with power automate.
It will process the adaptive card json to allow setting test values and either saving values, re-opening, or finishing.

[ServiceEnabled]
procedure ProcessAdaptiveCardJson(var ActionContext: WebServiceActionContext, inputAdaptiveCardJson: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
inputAdaptiveCardJson Text

Page “IWX QI WS iwxQualityCreateTest”

ID 23067679Namespace: InsightWorks.QualityInspection.WebServicesSource table: Microsoft.Utilities.”Name/Value Buffer”

Do not use this page outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help create tests.

Properties

Name Value
APIVersion ‘v2.0’
APIGroup qualityinspection
APIPublisher insightworks
Caption iwxQualityCreateTest
DelayedInsert True
DeleteAllowed False
Editable False
EntityName iwxQualityCreateTestOnRecord
EntitySetName iwxQualityCreateTestOnRecords
EntityCaption Any Record in Business Central
EntitySetCaption Records
InsertAllowed False
ModifyAllowed False
PageType API
RefreshOnActivate True
SourceTable Microsoft.Utilities.”Name/Value Buffer”
SourceTableTemporary True
ODataKeyFields 2000000000

Methods

CreateTestFromRecordID

Minimum of BC 16 is needed.
Create a test from a known table.

[ServiceEnabled]
procedure CreateTestFromRecordID(var ActionContext: WebServiceActionContext, ptxtTable: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
ptxtTable Text

The table ID or table name to create a test

CreateTestFromRecordIDWithOutputTestID

Minimum of BC 16 is needed.
This will create a test for the supplied SystemID record (set the SystemID when calling.)

[ServiceEnabled]
procedure CreateTestFromRecordIDWithOutputTestID(var ActionContext: WebServiceActionContext, ptxtTable: Text, var ptxtOutCreatedTestRecordID: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
ptxtTable Text

Text. The table ID, or table name, or table caption.

ptxtOutCreatedTestRecordID Text

VAR Text.

CreateTestFromTableIDAndFilter

Creates a test with a table and table filter to identify a record.

[ServiceEnabled]
procedure CreateTestFromTableIDAndFilter(var ActionContext: WebServiceActionContext, ptxtTable: Text, ptxtTableFilter: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext

VAR WebServiceActionContext.

ptxtTable Text

Text. The table ID, or table name, or table caption.

ptxtTableFilter Text

The table filter that can identify a specific record.

ProcessAdaptiveCardJson

Intended for use with power automate.
It will process the adaptive card json to allow setting test values and either saving values, re-opening, or finishing.

[ServiceEnabled]
procedure ProcessAdaptiveCardJson(var ActionContext: WebServiceActionContext, inputAdaptiveCardJson: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
inputAdaptiveCardJson Text

Page “IWX QI WS iwxQualityTests”

ID 23067678Namespace: InsightWorks.QualityInspection.WebServicesSource table: Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Do not use this codeunit outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list tests.

Properties

Name Value
APIVersion ‘v2.0’
APIGroup qualityinspection
APIPublisher insightworks
Caption iwxQualityTests
DelayedInsert True
DeleteAllowed False
Editable False
EntityName iwxQualityTest
EntitySetName iwxQualityTests
EntityCaption Insight Works Quality Inspection Test
EntitySetCaption Insight Works Quality Inspections
InsertAllowed False
ModifyAllowed False
PageType API
RefreshOnActivate True
SourceTable Table InsightWorks.QualityInspection.Document.”IWX QI Test”
ODataKeyFields 2000000000

Methods

FinishTest

Use with web services and power automate to Finish the Test

[ServiceEnabled]
procedure FinishTest(var ActionContext: WebServiceActionContext)
Parameters
Name Type Description
ActionContext WebServiceActionContext

CreateReTest

Creates a Retest.

[ServiceEnabled]
procedure CreateReTest(var ActionContext: WebServiceActionContext)
Parameters
Name Type Description
ActionContext WebServiceActionContext

ReOpenTest

Reopens a test

[ServiceEnabled]
procedure ReOpenTest(var ActionContext: WebServiceActionContext)
Parameters
Name Type Description
ActionContext WebServiceActionContext

SetTestValue

Sets a test value

[ServiceEnabled]
procedure SetTestValue(var ActionContext: WebServiceActionContext, fieldCode: Text, fieldValue: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
fieldCode Text

Text. The field code to set.

fieldValue Text

Text. The field value to set.

AssignTo

Assigns the test.

[ServiceEnabled]
procedure AssignTo(var ActionContext: WebServiceActionContext, assignToUser: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
assignToUser Text

Text. The user id to assign the test to.

BlockLot

Blocks the lot

[ServiceEnabled]
procedure BlockLot(var ActionContext: WebServiceActionContext)
Parameters
Name Type Description
ActionContext WebServiceActionContext

UnBlockLot

Un-Blocks the lot

[ServiceEnabled]
procedure UnBlockLot(var ActionContext: WebServiceActionContext)
Parameters
Name Type Description
ActionContext WebServiceActionContext

BlockSerial

Blocks the serial

[ServiceEnabled]
procedure BlockSerial(var ActionContext: WebServiceActionContext)
Parameters
Name Type Description
ActionContext WebServiceActionContext

UnBlockSerial

Un-Blocks the serial

[ServiceEnabled]
procedure UnBlockSerial(var ActionContext: WebServiceActionContext)
Parameters
Name Type Description
ActionContext WebServiceActionContext

BlockPackage

Blocks the serial

[ServiceEnabled]
procedure BlockPackage(var ActionContext: WebServiceActionContext)
Parameters
Name Type Description
ActionContext WebServiceActionContext

UnBlockPackage

Un-Blocks the serial

[ServiceEnabled]
procedure UnBlockPackage(var ActionContext: WebServiceActionContext)
Parameters
Name Type Description
ActionContext WebServiceActionContext

MoveInventory

Uses an item or warehouse reclass to move the inventory.

[ServiceEnabled]
procedure MoveInventory(var ActionContext: WebServiceActionContext, optionalDestinationLocation: Text, binCode: Text, optionalSpecificQuantity: Text, moveEntireLot: Text, postImmediately: Text, optionalSourceLocationFilter: Text, optionalSourceBinFilter: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
optionalDestinationLocation Text

When left blank this assumes the same location as the from location.

binCode Text

Mandatory, this is the target bin to move to.

optionalSpecificQuantity Text

When non zero this indicates the quantity to move.

moveEntireLot Text

When set to TRUE, this will ignore optionalSpecificQuantity and move the full quantity. This should only be used with

When set to TRUE this will post immediately. Verify you have sufficient licensing to use this flag.lots and serials.

postImmediately Text
optionalSourceLocationFilter Text

Optionally restrict the locations to move from.

optionalSourceBinFilter Text

Optionally restrict the specific bins to move from.

QuarantineLicensePlate

Quarantines related license plates

[ServiceEnabled]
procedure QuarantineLicensePlate(var ActionContext: WebServiceActionContext)
Parameters
Name Type Description
ActionContext WebServiceActionContext

UnQuarantineLicensePlate

Un-Quarantines related license plates

[ServiceEnabled]
procedure UnQuarantineLicensePlate(var ActionContext: WebServiceActionContext)
Parameters
Name Type Description
ActionContext WebServiceActionContext

CreateInternalPutaway

Creates a Warehouse Internal Put-away document.
This feature can be used with directed pick and put locations with lot warehouse tracked items.

[ServiceEnabled]
procedure CreateInternalPutaway(var ActionContext: WebServiceActionContext, optionalSpecificQuantity: Text, moveEntireLot: Text, releaseImmediately: Text, optionalSourceLocationFilter: Text, optionalSourceBinFilter: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
optionalSpecificQuantity Text

When non zero this indicates the quantity to move.

moveEntireLot Text

When set to TRUE, this will ignore optionalSpecificQuantity and move the full quantity. This should only be used with lots and serials.

releaseImmediately Text

When set to TRUE will release the put-away.

optionalSourceLocationFilter Text

Optionally restrict the locations to move from.

optionalSourceBinFilter Text

Optionally restrict the specific bins to move from.

CreatePutAway

Creates a Warehouse Put-away document.
This feature can be used with directed pick and put locations with lot warehouse tracked items.

[ServiceEnabled]
procedure CreatePutAway(var ActionContext: WebServiceActionContext, optionalSpecificQuantity: Text, moveEntireLot: Text, optionalSourceLocationFilter: Text, optionalSourceBinFilter: Text, putAwayBehavior: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
optionalSpecificQuantity Text

When non zero this indicates the quantity to move.

moveEntireLot Text

When set to TRUE, this will ignore optionalSpecificQuantity and move the full quantity. This should only be used with lots and serials.

optionalSourceLocationFilter Text

Optionally restrict the locations to move from.

optionalSourceBinFilter Text

Optionally restrict the specific bins to move from.

putAwayBehavior Text

MoveInventoryV2

Uses an item/warehouse reclassification journal or movement worksheet to move the inventory.

[ServiceEnabled]
procedure MoveInventoryV2(var ActionContext: WebServiceActionContext, optionalDestinationLocation: Text, binCode: Text, optionalSpecificQuantity: Text, moveEntireLot: Text, postImmediately: Text, optionalSourceLocationFilter: Text, optionalSourceBinFilter: Text, useMoveSheet: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
optionalDestinationLocation Text

When left blank this assumes the same location as the from location.

binCode Text

Mandatory, this is the target bin to move to.

optionalSpecificQuantity Text

When non zero this indicates the quantity to move.

moveEntireLot Text

When set to TRUE, this will ignore optionalSpecificQuantity and move the full quantity. This should only be used with

When set to TRUE this will post journals immediately or create the warehouse movement. Verify you have sufficient licensing to use this flag.lots and serials.

postImmediately Text
optionalSourceLocationFilter Text

Optionally restrict the locations to move from.

optionalSourceBinFilter Text

Optionally restrict the specific bins to move from.

useMoveSheet Text

When set to TRUE, will use the Movement Worksheet instead of a reclassification journal.

CreateMovement

Uses an inventory movement to move inventory

[ServiceEnabled]
procedure CreateMovement(var ActionContext: WebServiceActionContext, optionalDestinationLocation: Text, binCode: Text, optionalSpecificQuantity: Text, moveEntireLot: Text, optionalSourceLocationFilter: Text, optionalSourceBinFilter: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
optionalDestinationLocation Text
binCode Text
optionalSpecificQuantity Text
moveEntireLot Text
optionalSourceLocationFilter Text
optionalSourceBinFilter Text

CreateInternalPutawayV2

Creates a Warehouse Internal Put-away document.
This feature can be used with directed pick and put locations with lot warehouse tracked items.

[ServiceEnabled]
procedure CreateInternalPutawayV2(var ActionContext: WebServiceActionContext, optionalSpecificQuantity: Text, releaseImmediately: Text, optionalSourceLocationFilter: Text, optionalSourceBinFilter: Text, moveBehavior: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
optionalSpecificQuantity Text

When non zero this indicates the quantity to move.

releaseImmediately Text

When set to TRUE, will release the internal put-away

optionalSourceLocationFilter Text

Optionally restrict the locations to move from.

optionalSourceBinFilter Text

Optionally restrict the specific bins to move from.

moveBehavior Text

Valid options are: SpecificQuantity (quantity defined in optionalSpecificQuantity), TrackedQuantity (quantity of lot/package/serial), SampleQuantity (sample size), FailQuantity (number of failed samples), PassQuantity (number of passed samples)

CreatePutAwayV2

Creates a Warehouse Put-away document.
This feature can be used with directed pick and put locations with lot warehouse tracked items.

[ServiceEnabled]
procedure CreatePutAwayV2(var ActionContext: WebServiceActionContext, optionalSpecificQuantity: Text, optionalSourceLocationFilter: Text, optionalSourceBinFilter: Text, putAwayBehavior: Text, moveBehavior: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
optionalSpecificQuantity Text

Quantity to move, if updating a specific quantity

optionalSourceLocationFilter Text

Optionally restrict the locations to move from.

optionalSourceBinFilter Text

Optionally restrict the specific bins to move from.

putAwayBehavior Text
moveBehavior Text

Valid options are: SpecificQuantity (quantity defined in optionalSpecificQuantity), TrackedQuantity (quantity of lot/package/serial), SampleQuantity (sample size), FailQuantity (number of failed samples), PassQuantity (number of passed samples)

MoveInventoryV3

Uses an item/warehouse reclassification journal or movement worksheet to move the inventory.

[ServiceEnabled]
procedure MoveInventoryV3(var ActionContext: WebServiceActionContext, optionalDestinationLocation: Text, optionalDestinationBin: Text, optionalSpecificQuantity: Text, postImmediately: Text, optionalSourceLocationFilter: Text, optionalSourceBinFilter: Text, useMoveSheet: Text, moveBehavior: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
optionalDestinationLocation Text

When left blank this assumes the same location as the from location.

optionalDestinationBin Text

The target bin to move to.

optionalSpecificQuantity Text

Quantity to move, if updating a specific quantity

postImmediately Text

When set to TRUE this will post journals immediately or create the warehouse movement. Verify you have sufficient licensing to use this flag.

optionalSourceLocationFilter Text

Optionally restrict the locations to move from.

optionalSourceBinFilter Text

Optionally restrict the specific bins to move from.

useMoveSheet Text

When set to TRUE, will use the Movement Worksheet instead of a reclassification journal.

moveBehavior Text

Valid options are: SpecificQuantity (quantity defined in optionalSpecificQuantity), TrackedQuantity (quantity of lot/package/serial) SampleQuantity (sample size), FailQuantity (number of failed samples), PassQuantity (number of passed samples)

CreateNegativeAdjustment

Uses the information from a Quality Inspector Test to process a negative adjustment for the tested item.

[ServiceEnabled]
procedure CreateNegativeAdjustment(var ActionContext: WebServiceActionContext, optionalSourceLocationFilter: Text, optionalSourceBinFilter: Text, optionalSpecificQuantity: Text, optionalReasonCode: Text, adjustmentBehavior: Text, postingBehavior: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
optionalSourceLocationFilter Text

Optional additional location filter for item on test

optionalSourceBinFilter Text

Optional additional bin filter for item on test

optionalSpecificQuantity Text

Quantity to remove, if moving a specific quantity

optionalReasonCode Text

Optional Reason Code

adjustmentBehavior Text

Remove a specific quantity, tracked quantity, sample size, or sample pass/fail quantity

postingBehavior Text

Whether to create journal entries, register a warehouse item journal, or post an item journal

ChangeItemTracking

Uses the information from a Quality Inspector Test to update item tracking information for the tested item.

[ServiceEnabled]
procedure ChangeItemTracking(var ActionContext: WebServiceActionContext, optionalSourceLocationFilter: Text, optionalSourceBinFilter: Text, optionalSpecificQuantity: Text, quantityChoice: Text, postImmediately: Text, newLotNo: Text, newSerialNo: Text, newPackageNo: Text, newExpirationDate: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
optionalSourceLocationFilter Text

Optional additional location filter for item on test

optionalSourceBinFilter Text

Optional additional bin filter for item on test

optionalSpecificQuantity Text

Quantity to update, if updating a specific quantity

quantityChoice Text

Valid options are: SpecificQuantity (quantity defined in optionalSpecificQuantity), TrackedQuantity (quantity of lot/package/serial)
SampleQuantity (sample size), FailQuantity (number of failed samples), PassQuantity (number of passed samples)

postImmediately Text

Boolean value signifying whether to create the journal entry or create and post the journal

newLotNo Text

New lot no.

newSerialNo Text

New serial no.

newPackageNo Text

New package no.

newExpirationDate Text

New expiration date

CreateTransferOrder

Uses the information from a Quality Inspector Test to create a transfer order for the tested item.

[ServiceEnabled]
procedure CreateTransferOrder(var ActionContext: WebServiceActionContext, optionalSourceLocationFilter: Text, optionalSourceBinFilter: Text, destinationLocation: Text, optionalSpecificQuantity: Text, quantityChoice: Text, directTransfer: Text, inTransitLocation: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
optionalSourceLocationFilter Text

Optional additional location filter for item on test

optionalSourceBinFilter Text

Optional additional bin filter for item on test

destinationLocation Text

Destination location for the transfer

optionalSpecificQuantity Text

Quantity to transfer, if using the specific quantity choice

quantityChoice Text

Transfer a specific quantity (SpecificQuantity), item tracked quantity (TrackedQuantity), sample size (SampleQuantity), or sample pass/fail quantity (PassQuantity or FailQuantity)

directTransfer Text

Boolean defining whether the transfer is direct

inTransitLocation Text

The in-transit location to use

ProcessAdaptiveCardJson

Intended for use with power automate.
It will process the adaptive card json to allow setting test values and either saving values, re-opening, or finishing.

[ServiceEnabled]
procedure ProcessAdaptiveCardJson(var ActionContext: WebServiceActionContext, inputAdaptiveCardJson: Text)
Parameters
Name Type Description
ActionContext WebServiceActionContext
inputAdaptiveCardJson Text

Page “IWX QI WS PDF-COA”

ID 23067699Namespace: InsightWorks.QualityInspection.WebServices.PDFGenerationSource table: Table InsightWorks.QualityInspection.WebServices.PDFGeneration.”IWX QI WS Doc. Entity Buffer”

Do not use this page outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help generate a PDF of the COA report.

Properties

Name Value
EntityCaption Quality Inspector PDF Document-COA
EntitySetCaption Quality Inspector PDF Document-COA
Caption iwxQIPDFCOA
DeleteAllowed False
Editable False
InsertAllowed False
ModifyAllowed False
DelayedInsert True
EntityName iwxQIPDFCOA
EntitySetName iwxQIPDFCOA
ODataKeyFields 1
APIVersion ‘v2.0’
APIGroup qualityinspection
APIPublisher insightworks
PageType API
SourceTable Table InsightWorks.QualityInspection.WebServices.PDFGeneration.”IWX QI WS Doc. Entity Buffer”
SourceTableTemporary True

Page “IWX QI WS PDF-FAIRFORM3”

ID 23067705Namespace: InsightWorks.QualityInspection.WebServices.PDFGenerationSource table: Table InsightWorks.QualityInspection.WebServices.PDFGeneration.”IWX QI WS Doc. Entity Buffer”

Do not use this page outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help generate a PDF of the FAIR Form 3 report.

Properties

Name Value
EntityCaption Quality Inspector PDF Document-FAIRFORM3
EntitySetCaption Quality Inspector PDF Document-FAIRFORM3
Caption iwxQIPDFFAIRFORM3
DeleteAllowed False
Editable False
InsertAllowed False
ModifyAllowed False
DelayedInsert True
EntityName iwxQIPDFFAIRFORM3
EntitySetName iwxQIPDFFAIRFORM3
ODataKeyFields 1
APIVersion ‘v2.0’
APIGroup qualityinspection
APIPublisher insightworks
PageType API
SourceTable Table InsightWorks.QualityInspection.WebServices.PDFGeneration.”IWX QI WS Doc. Entity Buffer”
SourceTableTemporary True

Page “IWX QI WS PDF-General”

ID 23067700Namespace: InsightWorks.QualityInspection.WebServices.PDFGenerationSource table: Table InsightWorks.QualityInspection.WebServices.PDFGeneration.”IWX QI WS Doc. Entity Buffer”

Do not use this page outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help generate a PDF of the general inspection report.

Properties

Name Value
EntityCaption Quality Inspector PDF Document-General
EntitySetCaption Quality Inspector PDF Document-General
Caption iwxQIPDFGeneral
DeleteAllowed False
Editable False
InsertAllowed False
ModifyAllowed False
DelayedInsert True
EntityName iwxQIPDFGeneral
EntitySetName iwxQIPDFGeneral
ODataKeyFields 1
APIVersion ‘v2.0’
APIGroup qualityinspection
APIPublisher insightworks
PageType API
SourceTable Table InsightWorks.QualityInspection.WebServices.PDFGeneration.”IWX QI WS Doc. Entity Buffer”
SourceTableTemporary True

Page “IWX QI WS PDF-Label”

ID 23067717Namespace: InsightWorks.QualityInspection.WebServices.PDFGenerationSource table: Table InsightWorks.QualityInspection.WebServices.PDFGeneration.”IWX QI WS Doc. Entity Buffer”

Do not use this page outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help generate a PDF of the general inspection report.

Properties

Name Value
EntityCaption Quality Inspector PDF Document-Label
EntitySetCaption Quality Inspector PDF Document-Label
Caption iwxQIPDFLABEL
DeleteAllowed False
Editable False
InsertAllowed False
ModifyAllowed False
DelayedInsert True
EntityName iwxQIPDFLABEL
EntitySetName iwxQIPDFLABEL
ODataKeyFields 1
APIVersion ‘v2.0’
APIGroup qualityinspection
APIPublisher insightworks
PageType API
SourceTable Table InsightWorks.QualityInspection.WebServices.PDFGeneration.”IWX QI WS Doc. Entity Buffer”
SourceTableTemporary True

Page “IWX QI WS PDF-NCR”

ID 23067701Namespace: InsightWorks.QualityInspection.WebServices.PDFGenerationSource table: Table InsightWorks.QualityInspection.WebServices.PDFGeneration.”IWX QI WS Doc. Entity Buffer”

Do not use this page outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help generate a PDF of the nonconformance report.

Properties

Name Value
EntityCaption Quality Inspector PDF Document-NCR
EntitySetCaption Quality Inspector PDF Document-NCR
Caption iwxQIPDFNCR
DeleteAllowed False
Editable False
InsertAllowed False
ModifyAllowed False
DelayedInsert True
EntityName iwxQIPDFNCR
EntitySetName iwxQIPDFNCR
ODataKeyFields 1
APIVersion ‘v2.0’
APIGroup qualityinspection
APIPublisher insightworks
PageType API
SourceTable Table InsightWorks.QualityInspection.WebServices.PDFGeneration.”IWX QI WS Doc. Entity Buffer”
SourceTableTemporary True

PageExtension “IWX QI WKFLW Resp. Opt. Part”

ID 23067638Namespace: InsightWorks.QualityInspection.AutomationExtends: System.Automation.”Workflow Response Options”

We extend workflow response options to allow configuration of Quality Inspector Actions.


PageExtension “IWX QI Consumption Journal”

ID 23067643Namespace: InsightWorks.QualityInspection.Integration.ProductionExtends: Microsoft.Manufacturing.Journal.”Consumption Journal”


PageExtension “IWX QI Output Journal”

ID 23067636Namespace: InsightWorks.QualityInspection.Integration.ProductionExtends: Microsoft.Manufacturing.Journal.”Output Journal”


PageExtension “IWX QI Prod. Order Routing”

ID 23067635Namespace: InsightWorks.QualityInspection.Integration.ProductionExtends: Microsoft.Manufacturing.Document.”Prod. Order Routing”


PageExtension “IWX QI Routing Qlty. Measures”

ID 23067656Namespace: InsightWorks.QualityInspection.Integration.ProductionExtends: Microsoft.Manufacturing.Routing.”Routing Quality Measures”


PageExtension “IWX QI Std. Task Qlty.Measures”

ID 23067657Namespace: InsightWorks.QualityInspection.Integration.ProductionExtends: Microsoft.Manufacturing.Routing.”Standard Task Qlty Measures”

Used to help create quality inspection fields and templates from pre-existing standard quality measures.


PageExtension “IWX QI X Rel. Prod. Order”

ID 23067669Namespace: InsightWorks.QualityInspection.Integration.ProductionExtends: Microsoft.Manufacturing.Document.”Released Production Order”


PageExtension “IWX QI X Item Card”

ID 23067673Namespace: InsightWorks.QualityInspection.Integration.ReceivingExtends: Microsoft.Inventory.Item.”Item Card”


PageExtension “IWX QI X Production Journal”

ID 23067672Namespace: InsightWorks.QualityInspection.Integration.ReceivingExtends: Microsoft.Manufacturing.Journal.”Production Journal”


PageExtension “IWX QI X Purch Order Subform”

ID 23067637Namespace: InsightWorks.QualityInspection.Integration.ReceivingExtends: Microsoft.Purchases.Document.”Purchase Order Subform”


PageExtension “IWX QI X Purch Return Subform”

ID 23067642Namespace: InsightWorks.QualityInspection.Integration.ReceivingExtends: Microsoft.Purchases.Document.”Purchase Return Order Subform”


PageExtension “IWX QI X Purchase Order “

ID 23067663Namespace: InsightWorks.QualityInspection.Integration.ReceivingExtends: Microsoft.Purchases.Document.”Purchase Order”


PageExtension “IWX QI X Purchase Return Order”

ID 23067665Namespace: InsightWorks.QualityInspection.Integration.ReceivingExtends: Microsoft.Purchases.Document.”Purchase Return Order”


PageExtension “IWX QI X Warehouse Entries”

ID 23067662Namespace: InsightWorks.QualityInspection.Integration.ReceivingExtends: Microsoft.Warehouse.Ledger.”Warehouse Entries”


PageExtension “IWX QI X Warehouse Receipt “

ID 23067668Namespace: InsightWorks.QualityInspection.Integration.ReceivingExtends: Microsoft.Warehouse.Document.”Warehouse Receipt”


PageExtension “IWX QI X Sales Order Subform”

ID 23067640Namespace: InsightWorks.QualityInspection.Integration.SalesExtends: Microsoft.Sales.Document.”Sales Order Subform”


PageExtension “IWX QI X Sales Order”

ID 23067666Namespace: InsightWorks.QualityInspection.Integration.SalesExtends: Microsoft.Sales.Document.”Sales Order”


PageExtension “IWX QI X Sales Return Order”

ID 23067667Namespace: InsightWorks.QualityInspection.Integration.SalesExtends: Microsoft.Sales.Document.”Sales Return Order”


PageExtension “IWX QI X Sales Return Subform”

ID 23067641Namespace: InsightWorks.QualityInspection.Integration.SalesExtends: Microsoft.Sales.Document.”Sales Return Order Subform”


PageExtension “IWX QI Item Avail. by Lot No”

ID 23067645Namespace: InsightWorks.QualityInspection.Integration.TrackingExtends: Microsoft.Inventory.Availability.”Item Avail. by Lot No. Lines”


PageExtension “IWX QI Item Tracking Lines”

ID 23067653Namespace: InsightWorks.QualityInspection.Integration.TrackingExtends: Microsoft.Inventory.Tracking.”Item Tracking Lines”


PageExtension “IWX QI Item Tracking Summary”

ID 23067644Namespace: InsightWorks.QualityInspection.Integration.TrackingExtends: Microsoft.Inventory.Tracking.”Item Tracking Summary”


PageExtension “IWX QI Lot No. Info Card”

ID 23067647Namespace: InsightWorks.QualityInspection.Integration.TrackingExtends: Microsoft.Inventory.Tracking.”Lot No. Information Card”


PageExtension “IWX QI Lot No. Info List”

ID 23067646Namespace: InsightWorks.QualityInspection.Integration.TrackingExtends: Microsoft.Inventory.Tracking.”Lot No. Information List”


PageExtension “IWX QI Package No. Info Card”

ID 23067655Namespace: InsightWorks.QualityInspection.Integration.TrackingExtends: Microsoft.Inventory.Tracking.”Package No. Information Card”


PageExtension “IWX QI Package No. Info List”

ID 23067654Namespace: InsightWorks.QualityInspection.Integration.TrackingExtends: Microsoft.Inventory.Tracking.”Package No. Information List”


PageExtension “IWX QI Serial No. Info Card”

ID 23067649Namespace: InsightWorks.QualityInspection.Integration.TrackingExtends: Microsoft.Inventory.Tracking.”Serial No. Information Card”


PageExtension “IWX QI serial No. Info List”

ID 23067648Namespace: InsightWorks.QualityInspection.Integration.TrackingExtends: Microsoft.Inventory.Tracking.”Serial No. Information List”


PageExtension “IWX QI X Posted Dir. Transfer”

ID 23067659Namespace: InsightWorks.QualityInspection.Integration.TransferExtends: Microsoft.Inventory.Transfer.”Posted Direct Transfer”


PageExtension “IWX QI X Posted Trans. Receipt”

ID 23067661Namespace: InsightWorks.QualityInspection.Integration.TransferExtends: Microsoft.Inventory.Transfer.”Posted Transfer Receipt”


PageExtension “IWX QI X Posted Trans. Ship.”

ID 23067660Namespace: InsightWorks.QualityInspection.Integration.TransferExtends: Microsoft.Inventory.Transfer.”Posted Transfer Shipment”


PageExtension “IWX QI X Transfer Order”

ID 23067658Namespace: InsightWorks.QualityInspection.Integration.TransferExtends: Microsoft.Inventory.Transfer.”Transfer Order”


PageExtension “IWX QI X Item”

ID 23067674Namespace: InsightWorks.QualityInspection.Integration.WarehousingExtends: Microsoft.Inventory.Item.”Item Card”


PageExtension “IWX QI Extend BM RoleCenter”

ID 23067639Namespace: InsightWorks.QualityInspection.RoleCenterExtends: Microsoft.Finance.RoleCenters.”Business Manager Role Center”


PageExtension “IWX QI Extend MO RoleCenter”

ID 23067652Namespace: InsightWorks.QualityInspection.RoleCenterExtends: Microsoft.Manufacturing.RoleCenters.”Machine Operator Role Center”


PageExtension “IWX QI Extend PA RoleCenter”

ID 23067650Namespace: InsightWorks.QualityInspection.RoleCenterExtends: Microsoft.Purchases.RoleCenters.”Purchasing Agent Role Center”


PageExtension “IWX QI Extend SS RoleCenter”

ID 23067651Namespace: InsightWorks.QualityInspection.RoleCenterExtends: Microsoft.Manufacturing.RoleCenters.”Shop Supervisor Role Center”


PermissionSet “IWX QI ReadOnly”

ID 23067636Namespace: InsightWorks.QualityInspection.AccessControl

Properties

Name Value
Caption Quality Inspector – Read Only
Assignable True
IncludedPermissionSets IWXQIObjects,#853c571e14fe47989b80437473eeef77#”IWX RB User”,#853c571e14fe47989b80437473eeef77#”IWX RB Read Only”

PermissionSet IWXQIEntryInspector

ID 23067637Namespace: InsightWorks.QualityInspection.AccessControl

Permission set IWXQIEntryInspector (ID 23067637). Used for data entry only.

Properties

Name Value
Caption Quality Inspector – Data Entry
Assignable True
IncludedPermissionSets IWXQIObjects,#853c571e14fe47989b80437473eeef77#”IWX RB User”,#853c571e14fe47989b80437473eeef77#”IWX RB Setup”

PermissionSet IWXQIGeneral

ID 23067635Namespace: InsightWorks.QualityInspection.AccessControl

Permission set IWXQIQualityInspector (ID 23067635).

Properties

Name Value
Caption Quality Inspector – Supervisor
Assignable True
IncludedPermissionSets #853c571e14fe47989b80437473eeef77#”IWX RB User”,#853c571e14fe47989b80437473eeef77#”IWX RB Setup”

PermissionSet IWXQIObjects

ID 23067638Namespace: InsightWorks.QualityInspection.AccessControl

Permission set IWXQIObjects (ID 23067638).
Requirement from Microsoft.
“Required. This is needed to enable partners to build permissionsets in different ways.
If they choose not to use patterns like Codeunit * = X (which we do) then
this guarantees the users will be able to execute the required code for the module).
Without it partners may be unable to build a permissionset to grant access to the
functionality.
Must contain all objects of the app
Do not add any tabledata permissions
Only grant X to all objects of all types
Do not use the * = X; pattern”

Properties

Name Value
Caption Quality Inspector – Objects
Assignable True

PermissionSetExtension IWXQI_XD365BASIC

ID 23067635Namespace: InsightWorks.QualityInspection.AccessControlExtends: System.Security.AccessControl.”D365 BASIC”

Properties

Name Value
IncludedPermissionSets “IWX QI ReadOnly”

Profile “IWX QI PDI-Phone”

ID -1Namespace: InsightWorks.QualityInspection.RoleCenter

Properties

Name Value
Description Quality Inspector – Phone Optimized
Caption Quality Inspector – Phone Optimized
RoleCenter Page InsightWorks.QualityInspection.RoleCenter.”IWX QI Role Center – Phone”

Profile “IWX QI PDI-Tablet”

ID -1Namespace: InsightWorks.QualityInspection.RoleCenter

Properties

Name Value
Description Quality Inspector – Tablet Optimized
Caption Quality Inspector – Tablet Optimized
RoleCenter Page InsightWorks.QualityInspection.RoleCenter.”IWX QI Role Center – Tablet”

Profile “IWX QI Role Center Explore All”

ID -1Namespace: InsightWorks.QualityInspection.RoleCenter

Properties

Name Value
RoleCenter Page InsightWorks.QualityInspection.RoleCenter.”IWX QI Explore All Role Center”
Description Quality Inspector
Caption Quality Inspector
ProfileDescription Navigation menu only.
Promoted True

Profile “IWX QI Role Center Main”

ID -1Namespace: InsightWorks.QualityInspection.RoleCenter

Properties

Name Value
Description Quality Inspector
RoleCenter Page InsightWorks.QualityInspection.RoleCenter.”IWX QI Main Role Center”
ProfileDescription Record Quality Inspection Tests.
Caption Quality Inspector
Promoted True

Query “IWX QI Test Values By Source”

ID 23067635Namespace: InsightWorks.QualityInspection.Charting

Properties

Name Value
DataAccessIntent ReadOnly
Caption Quality Inspector Test Values
OrderBy ascending(Field_Modified_DateTime)

Query columns

Column name Data item Data type Description
Test_Template_Code diTest Code[20]
Test_No_ diTest Code[20]
ReTest_No_ diTest Integer
Test_Status diTest Enum InsightWorks.QualityInspection.Document.”IWX QI Test Status”
Test_Created_By_User_ID diTest Code[50]
Test_Created_Date diTest DateTime
Test_Finished_By_User_ID diTest Code[50]
Test_Finished_Date diTest DateTime
Test_Grade_Code diTest Code[20]
Source_Item_No_ diTest Code[20]
Source_Variant_Code diTest Code[10]
Source_Lot_No_ diTest Code[50]
Source_Serial_No_ diTest Code[50]
Source_Document_No_ diTest Code[20]
Source_Document_Line_No_ diTest Integer
Source_Task_No_ diTest Code[20]
Source_Custom_1 diTest Text[60]
Source_Custom_2 diTest Text[60]
Source_Custom_3 diTest Text[60]
Source_Custom_4 diTest Text[60]
Source_Custom_5 diTest Text[60]
Source_Custom_6 diTest Text[60]
QITest_Source_Custom_7 diTest Integer
QITest_Source_Custom_8 diTest Integer
QITest_Source_Custom_9 diTest Decimal
QITest_Source_Custom_10 diTest Decimal
Field_Line_No_ IWX_QI_Test_Line Integer
Field_Code IWX_QI_Test_Line Code[20]
Field_Type IWX_QI_Test_Line Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Type”
Field_Grade_Code IWX_QI_Test_Line Code[20]
Field_Numeric_Value IWX_QI_Test_Line Decimal
Field_Test_Value IWX_QI_Test_Line Text[250]
Field_Modified_DateTime IWX_QI_Test_Line DateTime
Field_Modified_Day IWX_QI_Test_Line Integer
Field_Modified_Month IWX_QI_Test_Line Integer
Field_Modified_Year IWX_QI_Test_Line Integer

Query “IWX QI Sample Failure Counter”

ID 23067637Namespace: InsightWorks.QualityInspection.Configuration.Grade

Helps with counting failed samples.

Properties

Name Value
Caption Sample Failure Counter
QueryType Normal

Query columns

Column name Data item Data type Description
TotalSamples IWXQITestLineSample Integer

Helps with counting failed samples.

NotAcceptableCount diUnacceptableGrade Integer

Helps with counting failed samples.


Query “IWX QI Sample Counter”

ID 23067640Namespace: InsightWorks.QualityInspection.Document

This is used to help determine samples for any given grade.

Properties

Name Value
Caption Sample Counter
QueryType Normal

Query columns

Column name Data item Data type Description
TotalSamples diIWXQITest Integer

This is used to help determine samples for any given grade.

SampleNo diIWXQITestLineSample Integer

This is used to help determine samples for any given grade.

CountOfGradePerSample diIWXQIGrade Integer

This is used to help determine samples for any given grade.


Query “IWX QI WS Quality Test Values”

ID 23067636Namespace: InsightWorks.QualityInspection.WebServices

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

Properties

Name Value
QueryType API
APIGroup qualityinspection
APIPublisher insightworks
APIVersion ‘v2.0’
Caption iwxQualityTestValues
EntityName iwxQualityTestValue
EntitySetName iwxQualityTestValues
EntityCaption Insight Works Quality Inspection Test Values
EntitySetCaption Insight Works Quality Inspection Test Values
DataAccessIntent ReadOnly
OrderBy ascending(iwxqiFieldModifiedDateTime)

Query columns

Column name Data item Data type Description
iwxQISystemIDOfTest diTest Guid

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxQITemplateCode diTest Code[20]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxQITestNo diTest Code[20]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxQIReTestNo diTest Integer

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxQITestStatus diTest Enum InsightWorks.QualityInspection.Document.”IWX QI Test Status”

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxQICreatedByUserID diTest Code[50]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxQICreatedDate diTest DateTime

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxQIFinishedByUserID diTest Code[50]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxQIFinishedDate diTest DateTime

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiFinishedModifiedDay diTest Integer

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiFinishedModifiedMonth diTest Integer

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiFinishedModifiedYear diTest Integer

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxQIGradeCode diTest Code[20]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxQIGradeDescription diTest Text[100]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceItemNo diTest Code[20]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceVariantCode diTest Code[10]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceLotNo diTest Code[50]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceSerialNo diTest Code[50]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceDocumentNo diTest Code[20]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceDocumentLineNo diTest Integer

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceTaskNo diTest Code[20]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceQuantityBase diTest Decimal

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceRecordTableNo diTest Integer

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceRecordId diTest RecordId

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceRecordId2 diTest RecordId

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceRecordId3 diTest RecordId

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceCustom1 diTest Text[60]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceCustom2 diTest Text[60]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceCustom3 diTest Text[60]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceCustom4 diTest Text[60]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceCustom5 diTest Text[60]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceCustom6 diTest Text[60]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceCustom7 diTest Integer

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceCustom8 diTest Integer

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceCustom9 diTest Decimal

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiSourceCustom10 diTest Decimal

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxQISystemIDOfTestValue IWXQITestLine Guid

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiFieldLineNo IWXQITestLine Integer

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiFieldCode IWXQITestLine Code[20]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiFieldType IWXQITestLine Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Type”

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiFieldGradeCode IWXQITestLine Code[20]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiFieldNumericValue IWXQITestLine Decimal

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiFieldTestValue IWXQITestLine Text[250]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiFieldModifiedByUserID IWXQITestLine Code[50]

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiFieldModifiedDateTime IWXQITestLine DateTime

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiFieldModifiedDay IWXQITestLine Integer

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiFieldModifiedMonth IWXQITestLine Integer

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.

iwxqiFieldModifiedYear IWXQITestLine Integer

Do not use this query outside of web services.
Power automate friendly web service for quality inspections.
This web service is used to help list test values.


Report “IWX QI Duplicate Template”

ID 23067637Namespace: InsightWorks.QualityInspection.Configuration.Template

Copy/Duplicate an Existing Quality Inspection Template.

Properties

Name Value
Caption Copy/Duplicate an Existing Quality Inspection Template.
AdditionalSearchTerms Copy Template,Copy Quality Inspection Template,Duplicate Template
ProcessingOnly True
ApplicationArea #IWXQIQualityInspector
UsageCategory Tasks
AllowScheduling False

Report “IWX QI Negative Adjustment”

ID 23067643Namespace: InsightWorks.QualityInspection.Dispositions.InventoryAdjustment

Use this to decrease inventory quantity, such as when disposing of samples after destructive testing or writing off stock due to damage or spoilage

Properties

Name Value
Caption Quality Inspector : Create Negative Adjustment
ApplicationArea #IWXQIQualityInspector
AdditionalSearchTerms destructive test, destroy, negative adjustment, write-off, damage, dispose
ProcessingOnly True
UsageCategory Tasks
AllowScheduling False
Description Use this to decrease inventory quantity, such as when disposing of samples after destructive testing or writing off stock due to damage or spoilage

Report “IWX QI Change Item Tracking”

ID 23067644Namespace: InsightWorks.QualityInspection.Dispositions.ItemTracking

Use this to update item tracking information. Requires a minimum of Business Central 14

Properties

Name Value
Caption Quality Inspector : Change Item Tracking
ApplicationArea #IWXQIQualityInspector
ProcessingOnly True
UsageCategory Tasks
AllowScheduling False
Extensible True
AdditionalSearchTerms Change Lot, Change Serial,Change Package,Change Expiration Date,Reclassify,Reclass,Reclassification,Change item tracking
Description Use this to update item tracking information.

Report “IWX QI Move Inventory”

ID 23067639Namespace: InsightWorks.QualityInspection.Dispositions.Move

Properties

Name Value
Caption Quality Inspector : Move Inventory
AdditionalSearchTerms Move To Bin,Quarantine lot,quarantine
ProcessingOnly True
ApplicationArea #IWXQIQualityInspector
UsageCategory Tasks
AllowScheduling False

Report “IWX QI Create Purchase Return”

ID 23067646Namespace: InsightWorks.QualityInspection.Dispositions.Purchase

Use this to create a Purchase Return Order from a Quality Inspection Test.

Properties

Name Value
ApplicationArea #IWXQIQualityInspector
Caption Quality Inspector: Create Purchase Return Order
AdditionalSearchTerms purchase return order, vendor return, damaged item, defective
UsageCategory Tasks
ProcessingOnly True
AllowScheduling False
Description Use this to create a Purchase Return Order from a Quality Inspection Test.

Report “IWX QI Create Put-away”

ID 23067641Namespace: InsightWorks.QualityInspection.Dispositions.PutAway

Properties

Name Value
Caption Quality Inspector : Create Internal Put-away
AdditionalSearchTerms Create Internal Put-away,putaway,create internal putaway
ProcessingOnly True
ApplicationArea #IWXQIQualityInspector
UsageCategory Tasks
AllowScheduling False

Report “IWX QI Transfer”

ID 23067645Namespace: InsightWorks.QualityInspection.Dispositions.Transfer

Use this to transfer inventory from a testing location to another location.

Properties

Name Value
Caption Quality Inspector : Create Transfer Order
ApplicationArea #IWXQIQualityInspector
AdditionalSearchTerms transfer, external, lab, laboratory
ProcessingOnly True
UsageCategory Tasks
AllowScheduling False
Description Use this to transfer items to another location.

Report “IWX QI Create NCR”

ID 23067649Namespace: InsightWorks.QualityInspection.Document

Properties

Name Value
Caption Create NCR
ProcessingOnly True
UsageCategory ReportsAndAnalysis
ApplicationArea #All
Permissions tabledata “IWX QI Test” = Rim, tabledata “IWX QI Test Line” = Rim

Methods

initializeReportParameters

initializeReportParameters can be used to specify a specific desired quality inspection template code
to create the test from.
Use this if you’re using this report to let the user decide what kind of test they want, and just want
to express a preference. This will not limit them to this template, it just sets the default.
This will also fire OnAfterInitializeCreateTestReportParameters

procedure initializeReportParameters(pcodQualityInspectionTemplateCode: Code[20])
Parameters
Name Type Description
pcodQualityInspectionTemplateCode Code[20]

Code[20]. The quality inspection template code to default to.


Report “IWX QI Create Test”

ID 23067635Namespace: InsightWorks.QualityInspection.Document

Properties

Name Value
Caption Create Quality Inspection
ProcessingOnly True
UsageCategory ReportsAndAnalysis
ApplicationArea #All
Permissions tabledata “IWX QI Test” = Rim, tabledata “IWX QI Test Line” = Rim

Methods

initializeReportParameters

initializeReportParameters can be used to specify a specific desired quality inspection template code
to create the test from.
Use this if you’re using this report to let the user decide what kind of test they want, and just want
to express a preference. This will not limit them to this template, it just sets the default.
This will also fire OnAfterInitializeCreateTestReportParameters

procedure initializeReportParameters(pcodQualityInspectionTemplateCode: Code[20])
Parameters
Name Type Description
pcodQualityInspectionTemplateCode Code[20]

Code[20]. The quality inspection template code to default to.


Report “IWX QI Update Pass Fail Quant.”

ID 23067659Namespace: InsightWorks.QualityInspection.Document.Sampling

Use the report to update the pass quantity and fail quantity values for tests with the number of passed and failed samples from the associated sample lines. This should only be required for tests with sample lines created before Quality Inspector version 7.20.

Properties

Name Value
Caption Update Pass and Fail Quantities
ProcessingOnly True
Description Use the report to update the pass quantity and fail quantity values for tests with the number of passed and failed samples from the associated sample lines. This should only be required for tests with sample lines created before Quality Inspector version 7.20.
UsageCategory None
AllowScheduling False
ApplicationArea #IWXQIQualityInspector

Report “IWX QI Schedule Test”

ID 23067647Namespace: InsightWorks.QualityInspection.Integrations.JobQueue

Properties

Name Value
Caption Quality Inspector : Scheduled Inspection Generation
AdditionalSearchTerms Periodic inspections, scheduled inspections,schedule test,schedule inspection
Description This report is intended to be scheduled in the job queue to allow the ability to schedule tests.
ProcessingOnly True
ApplicationArea #IWXQIQualityInspector
UsageCategory Tasks
AllowScheduling True

Methods

CreateTestsThatMatchRule

This will use the generation rule, and create tests that match the records found with that rule.

procedure CreateTestsThatMatchRule(precTestGenerationRule: Record "IWX QI Generation Rule")
Parameters
Name Type Description
precTestGenerationRule Table InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule”

Report “IWX QI Certificate of Analysis”

ID 23067636Namespace: InsightWorks.QualityInspection.Reporting

Properties

Name Value
ApplicationArea #IWXQIQualityInspector
UsageCategory ReportsAndAnalysis
Caption Quality Inspector Certificate of Analysis
DefaultRenderingLayout IWXQICertificateOfAnalysisDefault713
WordMergeDataItem diTest
Extensible True
AdditionalSearchTerms COA,Cert of Analysis,Test Report,Inspection Test Report,Quality Test Report,Printable Tests,Printable Certificate

Report “IWX QI FAIR Form3”

ID 23067642Namespace: InsightWorks.QualityInspection.Reporting

A printable general purpose First Article Inspection Report (FAIR Form 3), Characteristic Accountability

Properties

Name Value
ApplicationArea #IWXQIQualityInspector
UsageCategory ReportsAndAnalysis
Caption Quality Inspector First Article Inspection Report (FAIR Form 3)
Description A printable general purpose First Article Inspection Report (FAIR Form 3), Characteristic Accountability
DefaultRenderingLayout IWXQIFAIRForm3
Extensible True
AdditionalSearchTerms FAIR Form3,AS9102 form,Printable Quality Inspection,Characteristic Accountability,Initial Production Check

Report “IWX QI General”

ID 23067640Namespace: InsightWorks.QualityInspection.Reporting

Properties

Name Value
ApplicationArea #IWXQIQualityInspector
UsageCategory ReportsAndAnalysis
Caption Quality Inspector General Purpose Inspection Report
Description A printable general purpose inspection report.
DefaultRenderingLayout IWXQIGeneralDefault713
WordMergeDataItem diTest
Extensible True
AdditionalSearchTerms NCR,CAR,Printable Quality Inspection

Report “IWX QI Label”

ID 23067648Namespace: InsightWorks.QualityInspection.Reporting

Properties

Name Value
ApplicationArea #All
UsageCategory ReportsAndAnalysis
Caption Quality Inspection Label
DefaultRenderingLayout Layout3x2
WordMergeDataItem diTest

Report “IWX QI NCR”

ID 23067638Namespace: InsightWorks.QualityInspection.Reporting

Properties

Name Value
ApplicationArea #IWXQIQualityInspector
UsageCategory ReportsAndAnalysis
Caption Quality Inspector Nonconformance Report
DefaultRenderingLayout IWXQINCRDefault713
Extensible True
AdditionalSearchTerms NCR,CAR,Printable Certificate,Nonconformance,Nonconformity
WordMergeDataItem diTest

Table “IWX QI Permission”

ID 23067645Namespace: InsightWorks.QualityInspection.AccessControl

Contains detailed functional user permissions. This only exists for the full version, not the express version.

Properties

Name Value
Caption Quality Inspector Permission
LookupPageId Page InsightWorks.QualityInspection.AccessControl.”IWX QI Permissions”
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“User Type” Enum InsightWorks.QualityInspection.AccessControl.”IWX QI User Type”
“User ID” Code[50]
“Create Test Auto” Enum InsightWorks.QualityInspection.AccessControl.”IWX QI Permission State”
“Finish Test” Enum InsightWorks.QualityInspection.AccessControl.”IWX QI Permission State”
“Reopen Test” Enum InsightWorks.QualityInspection.AccessControl.”IWX QI Permission State”
“Delete Open Test” Enum InsightWorks.QualityInspection.AccessControl.”IWX QI Permission State”
“Delete Finished Test” Enum InsightWorks.QualityInspection.AccessControl.”IWX QI Permission State”
“Create Retest” Enum InsightWorks.QualityInspection.AccessControl.”IWX QI Permission State”
“Change Tracking No.” Enum InsightWorks.QualityInspection.AccessControl.”IWX QI Permission State”
“Change Others Tests” Enum InsightWorks.QualityInspection.AccessControl.”IWX QI Permission State”
“Create Test Manual” Enum InsightWorks.QualityInspection.AccessControl.”IWX QI Permission State”
“Auto Assign Behavior” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Auto Assign Behavior”
“Change Sample Characteristics” Enum InsightWorks.QualityInspection.AccessControl.”IWX QI Permission State”
“Change Source Quantity” Enum InsightWorks.QualityInspection.AccessControl.”IWX QI Permission State”
“Edit Line Note” Enum InsightWorks.QualityInspection.AccessControl.”IWX QI Note Permission”
“Change Skip Lot” Enum InsightWorks.QualityInspection.AccessControl.”IWX QI Permission State”
“Create Nonconformance” Enum InsightWorks.QualityInspection.AccessControl.”IWX QI Permission State”
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Table “IWX QI Analysis Buffer”

ID 23067726Namespace: InsightWorks.QualityInspection.Analysis

Properties

Name Value
TableType Temporary
Caption Failure Analysis
DataClassification SystemMetadata
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Entry No.” Integer
“Failure Count” Integer
“Analysis Summary” Text[100]
Category Enum InsightWorks.QualityInspection.Analysis.”IWX QI Analysis Category”
“Percent of Total Failures” Decimal
Pareto Enum InsightWorks.QualityInspection.Analysis.”IWX QI Pareto Status”
“Cumulative Failure” Integer
“First Occurrence” Date
“Last Occurrence” Date
“Percent of Total” Decimal
“Cumulative Percent” Decimal
“Days Since Last” Integer
“Related Record ID” RecordId
“Template Code Filter” Code[20]
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Table “IWX QI Analysis Detail Buffer”

ID 23067727Namespace: InsightWorks.QualityInspection.Analysis

Properties

Name Value
TableType Temporary
Caption Failure Analysis Detail
DataClassification SystemMetadata
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Entry No.” Integer
“Parent Entry No.” Integer
“Test No.” Code[20]
“Retest No.” Integer
“Source Item No.” Code[20]
“Source Variant Code” Code[10]
“Vendor No.” Code[20]
“Attribute Name” Text[250]
“Attribute Value” Text[250]
“Field Code” Code[20]
“Day Details” Text[30]
“BOM Component No.” Code[20]
“Field Text Value” Text[250]
“Source Serial No.” Code[50]
“Source Lot No.” Code[50]
“Source Package No.” Code[50]
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Table “IWX QI Measurement Buffer”

ID 23067648Namespace: InsightWorks.QualityInspection.Charting

This buffer table is used with charting.

Properties

Name Value
TableType Temporary
Caption Measurement Buffer
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Entry No.” Integer
Measure Text[100]
X Text[100]
Y Text[100]
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

GetXAsDateTime

procedure GetXAsDateTime(): DateTime
Returns
Type Description
DateTime

GetXAsDate

procedure GetXAsDate(): Date
Returns
Type Description
Date

GetYAsNumber

procedure GetYAsNumber(): Decimal
Returns
Type Description
Decimal

Table “IWX QI Generation Rule”

ID 23067639Namespace: InsightWorks.QualityInspection.Configuration.GenerationRule

A Quality Inspection Test generation rule defines when you want to ask a set of questions or other data that you want to collect that is defined in a template. You connect a template to a source table, and set the criteria to use that template with the table filter. When these filter criteria is met, then it will choose that template. When there are multiple matches, it will use the first template that it finds, based on the sort order.

Properties

Name Value
Caption Quality Inspection Test Generation Rule
DrillDownPageID Page InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule List”
LookupPageID Page InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Generation Rule List”
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Entry No.” Integer
“Sort Order” Integer
Intent Enum InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Gen. Rule Intent”
“Schedule Group” Code[20]
“Template Code” Code[20]
“Source Table No.” Integer
“Condition Filter” Text[400]
Description Text[100]
“Table Caption” Text[250]
“Table ID Filter” Integer
“Item Filter” Text[400]
“Attribute Filter” Text[400]
“Activation Trigger” Enum InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Gen. Rule Act. Trigger”
“Warehouse Receive Trigger” Enum InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Whse. Receive Trigger”
“Purchase Trigger” Enum InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Purchase Order Trigger”
“Sales Return Trigger” Enum InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Sales Return Trigger”
“Transfer Trigger” Enum InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Transfer Trigger”
“Production Trigger” Enum InsightWorks.QualityInspection.Integration.Production.”IWX QI Production Trigger”
“Assembly Trigger” Enum InsightWorks.QualityInspection.Integration.Production.”IWX QI Assembly Trigger”
“Warehouse Movement Trigger” Enum InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI Warehouse Trigger”
“Skip Lot Rule Code” Code[20]
“Template Type” Enum InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Type”
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

AssistEditConditionTableFilter

Provides the ability to assist edit a condition filter.

procedure AssistEditConditionTableFilter(): Boolean
Returns
Type Description
Boolean

AssistEditConditionItemFilter

Provides the ability to assist edit an item filter.

procedure AssistEditConditionItemFilter(): Boolean
Returns
Type Description
Boolean

AssistEditConditionAttributeFilter

Provides the ability to assist edit an attribute filter.

procedure AssistEditConditionAttributeFilter(): Boolean
Returns
Type Description
Boolean

GetTemplateCodeFromRecordOrFilter

Gets the template code from either the selected record, or the filter.

procedure GetTemplateCodeFromRecordOrFilter(pbOnlyFilters: Boolean): Code[20]
Parameters
Name Type Description
pbOnlyFilters Boolean
Returns
Type Description
Code[20]

SetIntentAndDefaultTriggerValuesFromSetup

Sets the default automatic test creation triggers for generation rules based on the values set in Quality Inspector Setup

procedure SetIntentAndDefaultTriggerValuesFromSetup()

TryInferGenerationRuleIntent

[TryFunction]
procedure TryInferGenerationRuleIntent(var peOutIntent: Enum "IWX QI Gen. Rule Intent", var peOutCertainty: Enum "IWX QI Certainty"): Boolean
Parameters
Name Type Description
peOutIntent Enum InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Gen. Rule Intent”
peOutCertainty Enum InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Certainty”
Returns
Type Description
Boolean

InferGenerationRuleIntent

Gets the intent of the generation rule if it can be determined

procedure InferGenerationRuleIntent(var peOutIntent: Enum "IWX QI Gen. Rule Intent", var peOutCertainty: Enum "IWX QI Certainty")
Parameters
Name Type Description
peOutIntent Enum InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Gen. Rule Intent”

intent of the rule

peOutCertainty Enum InsightWorks.QualityInspection.Configuration.GenerationRule.”IWX QI Certainty”

if it is certain (yes), likely (maybe)


Table “IWX QI Grade Condition Config”

ID 23067647Namespace: InsightWorks.QualityInspection.Configuration.Grade

For either a field, template line, or test instance this contains a description
of the criteria to meet that grade. There should be one row per entity per grade.

Properties

Name Value
Caption Quality Inspector Grade Condition Configuration
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Condition Type” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Type”
“Target Code” Code[20]
“Target Retest No.” Integer
“Target Line No.” Integer
“Field Code” Code[20]
“Grade Code” Code[20]
“Grade Description” Text[100]
Condition Text[500]
“Condition Description” Text[500]
Priority Integer
“Grade Visibility” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Visibility”
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

AssistEditCondition

Starts the assist edit page for the condition field

procedure AssistEditCondition()

AssistEditConditionDescription

Starts the assist-edit screen for the condition description.

procedure AssistEditConditionDescription()

Events

OnBeforeAssistEditCondition

[IntegrationEvent(False,False)]
local procedure OnBeforeAssistEditCondition(var precGradeConditionConfig: Record "IWX QI Grade Condition Config", var ppgEditTemplate: Page "IWX QI Edit Template", var pbHandled: Boolean)
Parameters
Name Type Description
precGradeConditionConfig Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Config”
ppgEditTemplate Page InsightWorks.QualityInspection.Configuration.”IWX QI Edit Template”
pbHandled Boolean

OnBeforeAssistEditConditionDescription

[IntegrationEvent(False,False)]
local procedure OnBeforeAssistEditConditionDescription(var precGradeConditionConfig: Record "IWX QI Grade Condition Config", var ppgEditTemplate: Page "IWX QI Edit Template", var pbHandled: Boolean)
Parameters
Name Type Description
precGradeConditionConfig Table InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Condition Config”
ppgEditTemplate Page InsightWorks.QualityInspection.Configuration.”IWX QI Edit Template”
pbHandled Boolean

Table “IWX QI Grade”

ID 23067646Namespace: InsightWorks.QualityInspection.Configuration.Grade

A grade in it’s simplest form would be something like PASS,FAIL,INPROGRESS
You could have multiple passing grades, and multiple failing grades.
Grades are effectively the incomplete/pass/fail state of a test.
It is typical to have three grades (incomplete, fail, pass), however you can configure as many grades as you want, and in what circumstances.
The grades with a lower number for the priority field are evaluated first.
If you are not sure what to configure here then use the three defaults.
The document specific lot/serial/package blocking is for item+variant+lot+serial+package combinations, and can be used for serial-only tracking, or package-only tracking.

Properties

Name Value
Caption Quality Inspection Grades
DrillDownPageID Page InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade List”
AllowInCustomizations AsReadWrite

Fields

Name Type Description
Code Code[20]
Description Text[100]
“Evaluation Sequence” Integer

The priority of the grade, this also defines the evaluation order. 0 gets evaluated first, 1 would get evaluated after, 2 evaluated after that. 0 is typically used for an incomplete / unfilled state. Lower numbers should be used to evaluate error scenarios where the default of ”notblank” followed by failing grades. Higher numbers would typically be used for passing grades.

“Copy Behavior” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Copy”
“Grade Visibility” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Visibility”

Whether to try and make this grade more prominent, this can optionally be used on some reports and forms. Typically only the passing grades are promoted.

“Default Number Condition” Text[500]
“Default Text Condition” Text[500]
“Default Boolean Condition” Text[500]
“Grade Category” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Category”

A general categorization of whether this grade represents a passing or failing grade.

“Finish Allowed” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Finish Allowed”
“Lot Allow Sales” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block”
“Lot Allow Assembly Consumption” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block”
“Lot Allow Consumption” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block”
“Lot Allow Output” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block”
“Lot Allow Purchase” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block”
“Lot Allow Transfer” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block”
“Lot Allow Assembly Output” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block”
“Lot Allow Invt. Movement” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block”
“Lot Allow Invt. Pick” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block”
“Lot Allow Invt. Put-Away” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block”
“Lot Allow Movement” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block”
“Lot Allow Pick” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block”
“Lot Allow Put-Away” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block”
“Lot Allow Sales Release” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block”
“Allow Out. Sales Item Tracking” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block”
“Allow Out. Tran. Item Tracking” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block”
“Lot Allow Sales Return” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Conditional Lot Block”
“Override Style” Text[100]
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

AutoSetGradeCategoryFromName

procedure AutoSetGradeCategoryFromName()

GetFilterOfUnAcceptableGrades

Returns a filter string of any grades that are configured as not acceptable.

procedure GetFilterOfUnAcceptableGrades(): Text
Returns
Type Description
Text

GetFilterOfAcceptableGrades

Returns a filter string of any grades that are configured as acceptable.

procedure GetFilterOfAcceptableGrades(): Text
Returns
Type Description
Text

AssistEditGradeStyle

Provides an ability to assist edit the grade style.
The standard Business Central grade styles will be shown.

procedure AssistEditGradeStyle()

GetGradeStyle

Gets the grade style to use for this grade.
If there is an override style then it will be used.
If there is no override style then it will make an assumption based on the category.
https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-style-property

procedure GetGradeStyle(): Text
Returns
Type Description
Text

FindFirstPassingGrade

True if it can find at least one passing grade.
Sets the current record to match that passing grade.
If more than one are found it just returns the first one.

procedure FindFirstPassingGrade(): Boolean
Returns
Type Description
Boolean

Table “IWX QI Instruction”

ID 23067654Namespace: InsightWorks.QualityInspection.Configuration

The intent is to store both template and field level instructions.

Properties

Name Value
Caption Specification Instruction
DrillDownPageID Page InsightWorks.QualityInspection.Configuration.”IWX QI Instruction List”
LookupPageID Page InsightWorks.QualityInspection.Configuration.”IWX QI Instruction List”
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Template Code” Code[20]
“Field Code” Code[20]
“Line No.” Integer
Comment Text[250]
Note Blob
URL Text[2048]
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

AssistEditComment

Opens up a dialog to collect note text.

procedure AssistEditComment()

RunModalReadOnlyComment

Opens up a dialog to collect note text.

procedure RunModalReadOnlyComment()

SetLargeTextComment

procedure SetLargeTextComment(ptxtLargeText: Text)
Parameters
Name Type Description
ptxtLargeText Text

SetLargeTextComment

procedure SetLargeTextComment(ptxtLargeText: Text, pbOnlySetBlob: Boolean)
Parameters
Name Type Description
ptxtLargeText Text
pbOnlySetBlob Boolean

GetLargeTextComment

procedure GetLargeTextComment(): Text
Returns
Type Description
Text

InitializeNewRecord

procedure InitializeNewRecord()

InitLineNo

procedure InitLineNo()

InitTemplateFromFiltersIfBlank

procedure InitTemplateFromFiltersIfBlank(): Boolean
Returns
Type Description
Boolean

InitFieldFromFiltersIfBlank

procedure InitFieldFromFiltersIfBlank(): Boolean
Returns
Type Description
Boolean

GetAttachedDocumentCount

procedure GetAttachedDocumentCount(): Integer
Returns
Type Description
Integer

SetAttachedDocumentFilters

procedure SetAttachedDocumentFilters(var precDocumentAttachment: Record "Document Attachment")
Parameters
Name Type Description
precDocumentAttachment Record “Document Attachment”

DrillDownIntoInstruction

procedure DrillDownIntoInstruction()

Table “IWX QI Setup”

ID 23067635Namespace: InsightWorks.QualityInspection.Configuration

Properties

Name Value
Caption Quality Inspection Setup
DrillDownPageID Page InsightWorks.QualityInspection.Configuration.”IWX QI Setup”
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Primary Key” Code[10]
“Quality Inspection Nos.” Code[20]
“Show Test Behavior” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Show Test Behavior”
“Create Test Behavior” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Create Test Behavior”
“Find Existing Behavior” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Find Existing Behavior”
“COA Contact No.” Code[20]
“Production Trigger” Enum InsightWorks.QualityInspection.Integration.Production.”IWX QI Production Trigger”
“Production Update Control” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Update Test On Source”
“Production Require Fin. Test” Enum InsightWorks.QualityInspection.Integration.Production.”IWX QI Prod. Require Test”
“Production Every X Units” Decimal
“Production Every X Duration” Duration
“Production Validation Behavior” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Validation Behavior”
“Round Direction” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Round Direction”
“Round Precision” Decimal
“Summary Decimal to Text Format” Text[100]
“Receive Trigger” Enum InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Receive Trigger”
“Receive Update Control” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Update Test On Source”
“Receive Require Fin. Test” Enum InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Rec. Require Test”
“Receive Validation Behavior” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Validation Behavior”
“Tracking Before Finishing” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Tracking Behavior”
“Scheduler Change State” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Schedule Change”
“Scheduler Template Code” Code[20]
“Picture Upload Behavior” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Picture Upload Behavior”
“Conditional Lot Find Behavior” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Cond. Lot Blck Fnd Bhvr”
“Warehouse Trigger” Enum InsightWorks.QualityInspection.Integration.Warehousing.”IWX QI Warehouse Trigger”
“Whse. Move Related Triggers” Integer
“Brick Top Left Expression” Text[200]
“Brick Middle Left Expression” Text[200]
“Brick Middle Right Expression” Text[200]
“Brick Bottom Left Expression” Text[200]
“Brick Bottom Right Expression” Text[200]
“Brick Top Left Header” Text[30]
“Brick Middle Left Header” Text[30]
“Brick Middle Right Header” Text[30]
“Brick Bottom Left Header” Text[30]
“Brick Bottom Right Header” Text[30]
Visibility Enum InsightWorks.QualityInspection.Configuration.ApplicationAreas.”IWX QI Show Quality Inspector”
“Grade Visibility” Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Detail Visibility”
“Workflow Integration” Enum InsightWorks.QualityInspection.Automation.IWXQIWorkflowIntegration
“Bin Move Batch Name” Code[10]
“Bin Whse. Move Batch Name” Code[10]
“Experimental Features” “IWX Scheduler Experimental Features”
“AI Form Recognizer Key” Text[100]
“AI Form Recognizer Endpoint” Text[200]
“AI Blob Storage Account URL” Text[200]
“AI Blob Container Name” Text[50]
“AI Blob SAS Token” Text[250]
“Default Caption Expression” Text[200]
“AI Form Recognizer Model” Text[100]
“Default Inspection Level” Enum InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI Inspection Level”
“Default AQL Grouping Code” Code[10]
“Default AQL” Decimal
“AI AOAI Set Values Endpoint” Text[200]
“AI AOAI Set Values Deployment” Text[100]
“AI AOAI Set Values Key” Text[100]
“AI AOAI Set Values Prompt” Blob
“AI AOAI Suggest Fields Prompt” Blob
“Max Rows Field Lookups” Integer
“Auto Output Configuration” Enum InsightWorks.QualityInspection.Integration.Production.”IWX QI Auto Output Config”
“Whse. Wksh. Name” Code[10]
“Chart Visibility” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Chart Visibility”
“Adjustment Batch Name” Code[10]
“Whse. Adjustment Batch Name” Code[10]
“Warehouse Receive Trigger” Enum InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Whse. Receive Trigger”
“Purchase Trigger” Enum InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Purchase Order Trigger”
“Sales Return Trigger” Enum InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Sales Return Trigger”
“Transfer Trigger” Enum InsightWorks.QualityInspection.Integration.Receiving.”IWX QI Transfer Trigger”
“Assembly Trigger” Enum InsightWorks.QualityInspection.Integration.Production.”IWX QI Assembly Trigger”
“Show Test Notify Behavior” Enum InsightWorks.QualityInspection.Configuration.”IWXQI Show Test Notify Behav.”
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

AssistEditDefaultCaptionExpression

Starts the assist edit dialog for editing the default caption expression.

procedure AssistEditDefaultCaptionExpression()

UpdateBrickFieldsOnAllExistingTests

UpdateBrickFieldsOnAllExistingTests will update the brick fields on all existing tests.
Use this if you need to adjust the brick summary on all tests.

procedure UpdateBrickFieldsOnAllExistingTests()

AssistEditAzureOpenAISystemPromptSetValuesFeature

Opens the asset edit dialog for the azure open ai system prompt set values feature.

procedure AssistEditAzureOpenAISystemPromptSetValuesFeature(): Text
Returns
Type Description
Text

AssistEditAzureOpenAISystemPromptSuggestFieldsFeature

Opens the assist edit dialog for the azure open ai system prompt for suggesting fields.

procedure AssistEditAzureOpenAISystemPromptSuggestFieldsFeature(): Text
Returns
Type Description
Text

GetAzureOpenAISystemPromptSetValuesFeature

Gets the azure open ai system prompt for the set values feature.

procedure GetAzureOpenAISystemPromptSetValuesFeature(pbModifyIfMissing: Boolean, pbDownloadIfMissing: Boolean): Text
Parameters
Name Type Description
pbModifyIfMissing Boolean
pbDownloadIfMissing Boolean
Returns
Type Description
Text

GetAzureOpenAISystemPromptSuggestFieldsFeature

Gets the Azure open AI system prompt suggestion.

procedure GetAzureOpenAISystemPromptSuggestFieldsFeature(pbModifyIfMissing: Boolean, pbDownloadIfMissing: Boolean): Text
Parameters
Name Type Description
pbModifyIfMissing Boolean
pbDownloadIfMissing Boolean
Returns
Type Description
Text

SetAzureOpenAISystemPromptSetValuesFeature

Sets the azure open AI system prompt for the set values feature.

procedure SetAzureOpenAISystemPromptSetValuesFeature(ptxtLargeText: Text)
Parameters
Name Type Description
ptxtLargeText Text

SetAzureOpenAISystemPromptSuggestFieldsFeature

Sets the azure open ai system prompt for suggesting fields.

procedure SetAzureOpenAISystemPromptSuggestFieldsFeature(ptxtLargeText: Text)
Parameters
Name Type Description
ptxtLargeText Text

GetAzureOpenAIEndpointSetValuesFeature

Gets the azure open AI endpoint for the set values feature.

procedure GetAzureOpenAIEndpointSetValuesFeature(pbModifyIfMissing: Boolean, pbDownloadIfMissing: Boolean): Text
Parameters
Name Type Description
pbModifyIfMissing Boolean
pbDownloadIfMissing Boolean
Returns
Type Description
Text

GetAzureOpenAIKeySetValuesFeature

Gets the azure open ai key for the set values feature.

procedure GetAzureOpenAIKeySetValuesFeature(pbModifyIfMissing: Boolean, pbDownloadIfMissing: Boolean): Text
Parameters
Name Type Description
pbModifyIfMissing Boolean
pbDownloadIfMissing Boolean
Returns
Type Description
Text

GetAzureOpenAIDeploymentSetValuesFeature

Gets the azure open AI deployment for the set values feature.

procedure GetAzureOpenAIDeploymentSetValuesFeature(pbModifyIfMissing: Boolean, pbDownloadIfMissing: Boolean): Text
Parameters
Name Type Description
pbModifyIfMissing Boolean
pbDownloadIfMissing Boolean
Returns
Type Description
Text

GetShowChartPart

Returns true if the chart part should be shown.

procedure GetShowChartPart(): Boolean
Returns
Type Description
Boolean

GetInventoryAdjustmentJournalTemplate

procedure GetInventoryAdjustmentJournalTemplate(): Code[10]
Returns
Type Description
Code[10]

GetWarehouseInventoryAdjustmentJournalTemplate

procedure GetWarehouseInventoryAdjustmentJournalTemplate(): Code[10]
Returns
Type Description
Code[10]

GetWarehouseReclassificationJournalTemplate

procedure GetWarehouseReclassificationJournalTemplate(): Code[10]
Returns
Type Description
Code[10]

GetItemReclassJournalTemplate

Gets the first page template for the supplied page.

procedure GetItemReclassJournalTemplate(): Code[10]
Returns
Type Description
Code[10]

GetMovementWorksheetTemplateName

Gets the first movement worksheet template name.

procedure GetMovementWorksheetTemplateName(): Code[10]
Returns
Type Description
Code[10]

Table “IWX QI Tool”

ID 23067655Namespace: InsightWorks.QualityInspection.Configuration

Intent of this table is to list available tools overall in the system to use in quality inspector.

Properties

Name Value
Caption Quality Inspection Tool
DrillDownPageId Page InsightWorks.QualityInspection.Configuration.”IWX QI Tool List”
LookupPageId Page InsightWorks.QualityInspection.Configuration.”IWX QI Tool List”
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Tool Type” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Tool Type”
“No.” Code[20]
Description Text[100]
“Where-Used Template” Integer
“Template Code Filter” Code[20]
“Field Code Filter” Code[20]
“Identification No. Requirement” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Tool Identification Req”
“Where-Used Tests” Integer
Make Text[100]
Model Text[100]
“Calibration Date” Date
“Calibration Interval” DateFormula
“Next Calibration Date” Date
“Calibration Certificate No.” Code[60]
“Calibration Details” Text[250]
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

UpdateNextCalibrationDate

procedure UpdateNextCalibrationDate()

Table “IWX QI AQL Sample Size Config”

ID 23067651Namespace: InsightWorks.QualityInspection.Configuration.Sampling

ISO 2859-1
This maps the lot or batch size, along with the general inspection level/special inspection level to a
lettered code.
This code by the spec is configurable but the industry standard is A-Z.

Properties

Name Value
DataClassification CustomerContent
Caption Quality Inspector Sample Size Config
LookupPageId Page InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI Sample Size Config List”
DrillDownPageId Page InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI Sample Size Config List”
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“AQL Grouping Code” Code[10]
“Minimum Lot Size” Integer
“Maximum Lot Size” Integer
“Inspection Level” Enum InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI Inspection Level”
“Sampling Plan Code” Code[10]
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Table “IWX QI AQL Sampling Plan”

ID 23067652Namespace: InsightWorks.QualityInspection.Configuration.Sampling

ISO 2859-1 Sampling plan table.

Properties

Name Value
DataClassification CustomerContent
Caption AQL Sampling Plan
DrillDownPageId Page InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI AQL Sampling Plan”
LookupPageId Page InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI AQL Sampling Plan”
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“AQL Grouping Code” Code[10]
Code Code[10]
“Inspection Level” Enum InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI Inspection Level”
AQL Decimal
“Sample Size” Integer
“Acceptance Point” Integer
“Rejection Point” Integer
“Reject Grade” Code[20]
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Table “IWX QI Skip Lot Rule Line”

ID 23067673Namespace: InsightWorks.QualityInspection.Configuration.Sampling.SkipLot

Skip Lot Rule Line table that defines the detailed rules and actions for Skip Lot testing.

Properties

Name Value
Caption Quality Inspection Skip Lot Rule Line
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Rule Code” Code[20]
“Step No.” Code[20]
Description Text[100]
“Create Threshold” Integer
Decision Enum InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Decision”
“AQL Grouping Code” Code[10]
“AQL Inspection Level” Enum InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI Inspection Level”
AQL Decimal
“Success Step No.” Code[20]
“Fail Step No.” Code[20]
“Pass Threshold” Integer
“Fail Threshold” Integer
“Sample Source” Enum InsightWorks.QualityInspection.Configuration.Template.”IWX QI Sample Source”
“Sample Fixed Amount” Integer
“Sample Percentage” Decimal
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

GetNextStepNo

Gets the next available line number for the specified Skip Lot rule

procedure GetNextStepNo(pcodSkipLotRuleCode: Code[20]): Code[20]
Parameters
Name Type Description
pcodSkipLotRuleCode Code[20]

The Skip Lot rule code

Returns
Type Description
Code[20]

The next available line number

SetupNewRecord

procedure SetupNewRecord(pbBelowprecPreviousXRecSkipLotRuleLine: Boolean, var precPreviousXRecSkipLotRuleLine: Record "IWX QI Skip Lot Rule Line")
Parameters
Name Type Description
pbBelowprecPreviousXRecSkipLotRuleLine Boolean
precPreviousXRecSkipLotRuleLine Table InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Rule Line”

Table “IWX QI Skip Lot Rule”

ID 23067671Namespace: InsightWorks.QualityInspection.Configuration.Sampling.SkipLot

Skip Lot Rule Header table that defines rules for Skip Lot test creation.

Properties

Name Value
Caption Quality Inspector Skip Lot Rule
AllowInCustomizations AsReadWrite

Fields

Name Type Description
Code Code[20]
Description Text[100]
“Group By Expression” Text[250]
“Count Expression” Text[250]
“Count By” Enum InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Qty. Count By”
“Group By” Enum InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Group By”
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

AssistEditGroupByExpression

procedure AssistEditGroupByExpression()

AssistEditCountExpression

procedure AssistEditCountExpression()

Table “IWX QI Source Config Line”

ID 23067644Namespace: InsightWorks.QualityInspection.Configuration.SourceConfiguration

Used to map a specific source field to a specific target field.

Properties

Name Value
Caption Quality Inspector Source Table Field Configuration
AllowInCustomizations AsReadWrite

Fields

Name Type Description
Code Code[20]
“From Table No.” Integer
“To Table No.” Integer
“Line No.” Integer
“From Field No.” Integer
“From Field Name” Text[250]
“To Field No.” Integer
“To Field Name” Text[250]
“To Type” Enum InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Target Type”
“Display As” Text[80]
“Priority Field” Enum InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Config. Field Priority”
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Table “IWX QI Source Config”

ID 23067642Namespace: InsightWorks.QualityInspection.Configuration.SourceConfiguration

A source configuration defines how to map a table, such as a production order line to a test.
Multiple tables can be defined because there are conditional filters that make this applicable.
For example, you could have a conditional filter on a warehouse pick line based on the source type or source document type.
When the to type is a test, the to table number is automatically associated with a test document.
When the to type is a chaintable, that allows chaining multiple tables together.
How you can use chained tables:
– grab additional fields for related records:
– example 1 : grab the item no. from the prod order line even though the test might be against a prod order routing line.)
(use case being: visibility into seeing the item no., without having to add a flowfield to fetch the item no.)
– example 2 : grab the item category or item attribute from the item card or item attribute card.
(use case being: we only want to create a test when the item attributes or item category is xyz.)
– example 3 : grab the customer card, for customer specific filters.
(Use case being: we only want this test for items made or shipped to a specific customer)

Properties

Name Value
Caption Quality Inspector Source Configuration
DrillDownPageID Page InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Basic Src. Cfg. List”
LookupPageID Page InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Basic Src. Cfg. List”
AllowInCustomizations AsReadWrite
Description Use this page to configure what will automatically populate from other tables into your quality inspections. This is also used to tell Business Central how to find one record from another, by setting which field in the ‘From’ table connects to which field in the ‘To’ table.

Fields

Name Type Description
Code Code[20]
“From Table No.” Integer
“From Table Caption” Text[249]
“From Table Filter” Text[250]
“To Table No.” Integer
“To Table Caption” Text[249]
“To Type” Enum InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Target Type”
Description Text[100]
“Sort Order” Integer
State Enum InsightWorks.QualityInspection.Configuration.SourceConfiguration.”IWX QI Source State”
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

AssistEditFromTableFilter

procedure AssistEditFromTableFilter()

Table “IWX QI Field”

ID 23067636Namespace: InsightWorks.QualityInspection.Configuration.Template.Field

This table lets you define data points, questions, measurements, and entries with their allowable values and default passing thresholds. You can later use these test fields in Quality Inspection Templates.

Properties

Name Value
Caption Quality Inspector Field
DrillDownPageID Page InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Fields”
LookupPageID Page InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Lookup”
AllowInCustomizations AsReadWrite

Fields

Name Type Description
Code Code[20]
Description Text[100]
“Field Type” Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Type”
“Allowable Values” Text[500]
“Lookup Table No.” Integer
“Lookup Table Caption” Text[250]
“Lookup Field No.” Integer
“Lookup Field Caption” Text[250]
“Lookup Table Filter” Text[400]
“Wizard Internal” Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Wizard State”
“Example Value” Text[250]
“Default Value” Text[250]
“Case Sensitive” Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Case Sensitive”
“Expression Formula” Text[500]
“Sync Qlty. Routing No.” Code[20]
“Sync Qlty. Measure Code” Code[10]
“Sync Qlty. Std. Task Code” Code[10]
“Unit of Measure” Code[10]
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

SetGradeConditions

Bulk set grade conditions for a field.

procedure SetGradeConditions(pdictGradeKeyToGradeValues: Dictionary of [Text, Text])
Parameters
Name Type Description
pdictGradeKeyToGradeValues Dictionary of [Text, Text]

Keys are the grades, Values are the conditions

SetGradeCondition

Set a specific grade for this field.

procedure SetGradeCondition(ptxtGrade: Text, ptxtCondition: Text)
Parameters
Name Type Description
ptxtGrade Text
ptxtCondition Text

SetGradeCondition

Set a specific grade for the field. If pbAllowError is set to true it will error
when a problem occurs. If pbAllowError is set to false it will just return false
when a problem occurs.

procedure SetGradeCondition(ptxtGrade: Text, ptxtCondition: Text, pbAllowError: Boolean): Boolean
Parameters
Name Type Description
ptxtGrade Text
ptxtCondition Text
pbAllowError Boolean
Returns
Type Description
Boolean

AssistEditDefaultValue

Starts the appropriate ‘assist edit’ dialog for the given data type and conditions.

procedure AssistEditDefaultValue()

AssistEditLookupTable

procedure AssistEditLookupTable()

AssistEditLookupField

procedure AssistEditLookupField()

AssistEditLookupTableFilter

procedure AssistEditLookupTableFilter()

UpdateAllowedValuesFromTableLookup

This is basically to make a summary for the human to see more easily when configuring templates and fields.
This data isn’t actually used during execution.

procedure UpdateAllowedValuesFromTableLookup()

EnsureCanBeDeleted

procedure EnsureCanBeDeleted(pbAskQuestion: Boolean)
Parameters
Name Type Description
pbAskQuestion Boolean

ValidateAllowableValuesOnDefault

Validates that the default value is allowable.

procedure ValidateAllowableValuesOnDefault()

CollectAllowableValues

Code = the unique code
Description = raw description.
Custom 1 = original value
Custom 2 = lowercase value
Custom 3 = uppercase value.

procedure CollectAllowableValues(var ptrecBufferLookupCode: Record "IWX QI Lookup Code" temporary, ptxtOptionalSetToValue: Text)
Parameters
Name Type Description
ptrecBufferLookupCode Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code”
ptxtOptionalSetToValue Text

Leave empty to ignore. Supply a value to have the record auto-filtered to the supplied record that matches

CollectAllowableValues

procedure CollectAllowableValues(var precOptionalContextTest: Record "IWX QI Test", var precOptionalContextTestLine: Record "IWX QI Test Line", var ptrecBufferLookupCode: Record "IWX QI Lookup Code" temporary, ptxtOptionalSetToValue: Text)
Parameters
Name Type Description
precOptionalContextTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
precOptionalContextTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
ptrecBufferLookupCode Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code”
ptxtOptionalSetToValue Text

AssistEditExpressionFormula

procedure AssistEditExpressionFormula()

GetDependentVariables

procedure GetDependentVariables(var plstOfDetectedVariables: List of [Text])
Parameters
Name Type Description
plstOfDetectedVariables List of [Text]

GetDependenciesLabel

Requires a minimum of BC 14 to work.

procedure GetDependenciesLabel(): Text
Returns
Type Description
Text

AssistEditAllowableValues

procedure AssistEditAllowableValues()

IsNumericFieldType

Returns true if the field type is numeric in nature.

procedure IsNumericFieldType(): Boolean
Returns
Type Description
Boolean

Events

OnGetIsNumericFieldType

Provides an opportunity to allow determining if the field is intended to be numeric or not.
Use this if you are extending the data type enumeration and adding your own numeric field.

[IntegrationEvent(False,False)]
local procedure OnGetIsNumericFieldType(var precField: Record "IWX QI Field", var pbIsNumeric: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
precField Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
pbIsNumeric Boolean
pbHandled Boolean

OnBeforeAssistAllowableValues

[IntegrationEvent(False,False)]
local procedure OnBeforeAssistAllowableValues(var precField: Record "IWX QI Field", ppgEditTemplate: Page "IWX QI Edit Template", var pbHandled: Boolean)
Parameters
Name Type Description
precField Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
ppgEditTemplate Page InsightWorks.QualityInspection.Configuration.”IWX QI Edit Template”
pbHandled Boolean

OnBeforeAssistEditDefaultValue

Provides an ability to extend or replace assist editing the default value.

[IntegrationEvent(False,False)]
procedure OnBeforeAssistEditDefaultValue(var precField: Record "IWX QI Field", var pbHandled: Boolean)
Parameters
Name Type Description
precField Table InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field”
pbHandled Boolean

Set to true to prevent base behavior from occurring.


Table “IWX QI Lookup Code”

ID 23067643Namespace: InsightWorks.QualityInspection.Configuration.Template.Field

Generic table to define custom codes for any lookup

Properties

Name Value
Caption Quality Inspector Lookup Code
DrillDownPageID Page InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code List”
LookupPageID Page InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Lookup Code List”
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Group Code” Code[20]
Code Code[100]
Description Text[250]
“Custom 1” Text[250]
“Custom 2” Text[250]
“Custom 3” Text[250]
“Custom 4” Text[250]
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Table “IWX QI Template Line”

ID 23067638Namespace: InsightWorks.QualityInspection.Configuration.Template

A template line describes which field should be added to the template, and in what order as well
as specific pass criteria.

Properties

Name Value
Caption Quality Inspection Template Line
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Template Code” Code[20]
“Line No.” Integer
“Field Code” Code[20]
Description Text[100]
“Field Type” Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Type”
“Allowable Values” Text[500]
“Sample Summary” Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Sample Summary”
“Copied From Template Code” Code[20]
“Default Value” Text[250]
“Expression Formula” Text[500]
“Balloon No.” Code[10]
“Characteristic Designator” Text[20]
“Unit of Measure” Code[10]
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

InitLineNoIfNeeded

procedure InitLineNoIfNeeded()

EnsureGrades

Ensures grades exist for this template line.

procedure EnsureGrades(pbForceOverwriteConditions: Boolean)
Parameters
Name Type Description
pbForceOverwriteConditions Boolean

AssistEditExpressionFormula

Invokes the assist edit for the expression formula editor affecting the Expression Formula field.

procedure AssistEditExpressionFormula()

ValidateExpressionFormula

This will validate the expression formula.

This will only work correctly in Business Central 14 and newer because of limitations
in how lists can be used in BC 13 (you cannot pass a list of text into the compiler without it crashing the compiler.)

procedure ValidateExpressionFormula()

GetDependentVariables

procedure GetDependentVariables(var plstOfDetectedVariables: List of [Text])
Parameters
Name Type Description
plstOfDetectedVariables List of [Text]

SetGradeCondition

Set a specific grade for the field. If pbAllowError is set to true it will error
when a problem occurs. If pbAllowError is set to false it will just return false
when a problem occurs.

procedure SetGradeCondition(ptxtGrade: Text, ptxtCondition: Text, pbAllowError: Boolean): Boolean
Parameters
Name Type Description
ptxtGrade Text
ptxtCondition Text
pbAllowError Boolean
Returns
Type Description
Boolean

Events

OnValidateExpressionFormula

Validates the expression formula.

[IntegrationEvent(False,False)]
local procedure OnValidateExpressionFormula(var precTemplateLine: Record "IWX QI Template Line", var pbHandled: Boolean)
Parameters
Name Type Description
precTemplateLine Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Line”
pbHandled Boolean

Table “IWX QI Template Tool”

ID 23067656Namespace: InsightWorks.QualityInspection.Configuration.Template

Intent of this table is to list available tools overall in the system to use with quality inspections.
Designed tooling effectively for any given step.

Properties

Name Value
Caption Quality Inspection Designed Tool on Template
DrillDownPageId Page InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Tool List”
LookupPageId Page InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Tool List”
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Tool Type” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Tool Type”
“No.” Code[20]
Description Text[100]
“Template Code” Code[20]
“Field Code” Code[20]
“Test No. Filter” Code[20]
“Retest No. Filter” Integer
“Where-Used” Integer
“Where-Used Identifier No.” Text[60]
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

GetDoesToolRequireRecordingIdentificationNo

Returns true if the tool requires recording a serial/tool identification no.

procedure GetDoesToolRequireRecordingIdentificationNo(): Boolean
Returns
Type Description
Boolean

GetDesignedToolDescription

Gets a standard designed tool description.

procedure GetDesignedToolDescription(pbIncludeIdentifier: Boolean): Text
Parameters
Name Type Description
pbIncludeIdentifier Boolean

When true if a used identifier was supplied then this will include the identification in the text.

Returns
Type Description
Text

RecordUsage

Records usage. The tool type and No. must already be supplied.
If there is no usage record one will be made.
If there is already a usage record then the identifier no. will be changed.

procedure RecordUsage(precTestLine: Record "IWX QI Test Line", ptxtToolIdentification: Text)
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
ptxtToolIdentification Text

GetHasUsage

Gets a true or false if this tool has usage on the supplied line.

procedure GetHasUsage(precTestLine: Record "IWX QI Test Line"): Boolean
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
Returns
Type Description
Boolean

SetUsageFilters

For the supplied test line, this will set the usage filters.

procedure SetUsageFilters(precTestLine: Record "IWX QI Test Line", var precOutIWXQITestLineToolUsage: Record "IWX QI Test Line Tool Usage"): Boolean
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
precOutIWXQITestLineToolUsage Table InsightWorks.QualityInspection.Document.”IWX QI Test Line Tool Usage”
Returns
Type Description
Boolean

GetUsedToolIdentification

Returns the used tool identification.

procedure GetUsedToolIdentification(precTestLine: Record "IWX QI Test Line"): Text
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
Returns
Type Description
Text

RemoveUsage

Removes the used tool identification.

procedure RemoveUsage(precTestLine: Record "IWX QI Test Line")
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

Table “IWX QI Template”

ID 23067637Namespace: InsightWorks.QualityInspection.Configuration.Template

A Quality Inspection Template is a test plan containing a set of questions and data points that you want to collect.
A place where the contents of what goes in an inspection are defined.

Properties

Name Value
Caption Quality Inspection Template
DrillDownPageID Page InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template List”
LookupPageID Page InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template List”
Permissions TableData “IWX QI Template Line” = d
AllowInCustomizations AsReadWrite

Fields

Name Type Description
Code Code[20]
Description Text[100]
“Quality Inspection Nos.” Code[20]
“Copied From Template Code” Code[20]
“Caption Expression” Text[200]
“Default Inspection Level” Enum InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI Inspection Level”
“Default AQL Grouping Code” Code[10]
“Default AQL” Decimal
“Sync Qlty. Routing No.” Code[20]
“Sync Qlty. Operation No.” Code[10]
“Sync Qlty. Std. Task Code” Code[10]
“Sync Qlty. Version Code” Code[20]
“Template Type” Enum InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Type”
“Sample Source” Enum InsightWorks.QualityInspection.Configuration.Template.”IWX QI Sample Source”
“Sample Fixed Amount” Integer
“Sample Percentage” Decimal
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

AssistEditCaptionExpression

Allows you to change the caption expression for a template.

procedure AssistEditCaptionExpression()

AddFieldToTemplate

Adds the supplied field to the template if it does not
already exist.
If it already exists then it will not add the field.

procedure AddFieldToTemplate(pcodFieldCode: Code[20]): Boolean
Parameters
Name Type Description
pcodFieldCode Code[20]
Returns
Type Description
Boolean

AddFieldToTemplate

Adds the supplied field to the template if it does not
already exist.
If it already exists then it will not add the field and it will simply find it.

procedure AddFieldToTemplate(pcodFieldCode: Code[20], var precOutTemplateLine: Record "IWX QI Template Line"): Boolean
Parameters
Name Type Description
pcodFieldCode Code[20]
precOutTemplateLine Table InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Line”

the template line

Returns
Type Description
Boolean

SuggestUnusedTemplateCodeFor

Suggests an unused template code.

procedure SuggestUnusedTemplateCodeFor(var pcodInOutSuggestion: Code[20])
Parameters
Name Type Description
pcodInOutSuggestion Code[20]

Table “IWX QI Disposition Buffer”

ID 23067659Namespace: InsightWorks.QualityInspection.Dispositions

Properties

Name Value
Caption Dispositions Instructions Buffer Table
TableType Temporary
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Entry No.” Integer
“Qty. To Handle (Base)” Decimal
“Quantity Behavior” Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Quantity Behavior”
“Location Filter” Text[200]
“Bin Filter” Text[200]
“Entry Behavior” Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Item Adj. Post Behavior”
“Disposition Kind” Enum InsightWorks.QualityInspection.Dispositions.”IWX QI Disposition Kind”
“New Lot No.” Code[50]
“New Serial No.” Code[50]
“New Package No.” Code[50]
“New Expiration Date” Date
“New Location Code” Code[10]
“New Bin Code” Code[20]
“Reason Code” Code[10]
“In-Transit Location Code” Code[10]
“External Document No.” Code[40]
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

GetFromLocationCode

Gets the ‘from’ location code.

procedure GetFromLocationCode(): Code[10]
Returns
Type Description
Code[10]

GetFromBinCode

Gets the ‘from’ bin code.

procedure GetFromBinCode(): Code[20]
Returns
Type Description
Code[20]

Table “IWX QI Test Line Tool Usage”

ID 23067657Namespace: InsightWorks.QualityInspection.Document

Intent of this table is to list available tools overall in the system to use in quality inspector.
Designed tooling effectively for any given step.

Use “IWX QI Record Test Tool Usage” to record tool usage.

Properties

Name Value
Caption Quality Inspection Designed Tool on Template
DrillDownPageId Page InsightWorks.QualityInspection.Document.”IWX QI Test Tool Usage List”
LookupPageId Page InsightWorks.QualityInspection.Document.”IWX QI Test Tool Usage List”
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Entry No.” Integer
“Tool Type” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Tool Type”
“No.” Code[20]
Description Text[100]
“Template Code” Code[20]
“Field Code” Code[20]
“Test No.” Code[20]
“Retest No.” Integer
“Identifier No.” Text[60]
“Test Line No.” Integer
“Sample No.” Integer
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Table “IWX QI Test Line”

ID 23067641Namespace: InsightWorks.QualityInspection.Document

Contains the document lines for a quality order.

Properties

Name Value
Caption Quality Inspection Test Line
LookupPageId Page InsightWorks.QualityInspection.Analysis.”IWX QI Test Values”
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Test No.” Code[20]
“Retest No.” Integer
“Line No.” Integer
“Template Code” Code[20]
“Template Line No.” Integer
“Field Code” Code[20]
Description Text[100]
“Field Type” Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Type”
“Allowable Values” Text[500]
“Test Value” Text[250]
“Test Value Blob” Blob
“Balloon No.” Code[10]
“Characteristic Designator” Text[20]
“Numeric Value” Decimal
“Created DateTime” DateTime
“Modified DateTime” DateTime
“Grade Code” Code[20]
“Grade Description” Text[100]
“Grade Priority” Integer
“Last Modified By User ID” Code[50]
“Samples Measured” Integer
“Failure State” Enum InsightWorks.QualityInspection.Document.”IWX QI Line Failure State”
“NCR Test No.” Code[20]
“Unit of Measure” Code[10]
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

CheckCanChangeParentTest

CheckCanChangeParentTest will check if the current user can change the parent test.
If they can, nothing happens.
If they cannot and pbErrorIfNoPermission is true then an error will be thrown.

procedure CheckCanChangeParentTest(pbErrorIfNoPermission: Boolean): Boolean
Parameters
Name Type Description
pbErrorIfNoPermission Boolean

True if an error should be thrown if the user does not have permission to change the parent test, false otherwise.

Returns
Type Description
Boolean

Returns true if the user can change the parent test, false otherwise.

AssistEditTestValue

Starts the appropriate ‘assist edit’ dialog for the given data type and conditions.

procedure AssistEditTestValue()

AssistEditFreeText

procedure AssistEditFreeText()

GetLargeText

procedure GetLargeText(): Text
Returns
Type Description
Text

SetLargeText

procedure SetLargeText(ptxtLargeText: Text, pbValidateValue: Boolean, pbOnlySetBlob: Boolean)
Parameters
Name Type Description
ptxtLargeText Text
pbValidateValue Boolean
pbOnlySetBlob Boolean

CreateNonconformanceTest

Creates a nonconformance test from the current test line.

procedure CreateNonconformanceTest()

GenerateSampleLines

Generates sample lines to match the sample size configured on the test.
If the test line is associated with a template that does not need samples, then no samples will be
created, and no message/error will be shown (intentionally, this must leave quietly)

procedure GenerateSampleLines()

isNumericFieldType

Returns true if the field is a numeric field type.

procedure isNumericFieldType(): Boolean
Returns
Type Description
Boolean

getSampleStatistic

Gets the test line sample statistic.

procedure getSampleStatistic(peSampleSummary: Enum "IWX QI Sample Summary", var pdOut: Decimal, var ptxtOutAsText: Text)
Parameters
Name Type Description
peSampleSummary Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Sample Summary”
pdOut Decimal
ptxtOutAsText Text

addSampleValue

Use addSampleValue to add a sample value to the list of collected samples.

procedure addSampleValue(ptxtTestValue: Text)
Parameters
Name Type Description
ptxtTestValue Text

GetIsConfiguredForSampling

If any of the fields on this test are configured to collect multiple samples, then it will return true.

procedure GetIsConfiguredForSampling(): Boolean
Returns
Type Description
Boolean

GetFailedSampleCount

Returns the failed sample count.

procedure GetFailedSampleCount(): Integer
Returns
Type Description
Integer

getUpperAndLowerLimitsOfAllAcceptableGrades

Gets the upper most and lower-most limits of all of the grades that are flagged as acceptable.

procedure getUpperAndLowerLimitsOfAllAcceptableGrades(var pdOutLowerLimit: Decimal, var pdOutUpperLimit: Decimal): Boolean
Parameters
Name Type Description
pdOutLowerLimit Decimal
pdOutUpperLimit Decimal
Returns
Type Description
Boolean

GetGradeStyle

Gets the preferred grade style to use.

procedure GetGradeStyle(): Text
Returns
Type Description
Text

ClearAllRecordedSamples

Clears all recorded samples.

procedure ClearAllRecordedSamples(pbConfirmWithUserIfPossible: Boolean)
Parameters
Name Type Description
pbConfirmWithUserIfPossible Boolean

SetFiltersFromTestLineSample

Sets filters on the test line sample to match that of the test line.

procedure SetFiltersFromTestLineSample(var precTestLineSample: Record "IWX QI Test Line Sample")
Parameters
Name Type Description
precTestLineSample Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”

SetFiltersFromTestLine

Sets filters on the test line sample to match that of the test line.

procedure SetFiltersFromTestLine(var precTestLine: Record "IWX QI Test Line")
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

SetFiltersFromTest

Sets filters on the test line sample to match that of the test.

procedure SetFiltersFromTest(var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

UpdateExpressionsInOtherTestLinesInSameTest

procedure UpdateExpressionsInOtherTestLinesInSameTest()

GetMeasurementNote

Reads the last measurement note for the specific test line.
If there are multiple notes it only reads the last one.

procedure GetMeasurementNote(): Text
Returns
Type Description
Text

SetMeasurementNote

Sets the measurement note on the last associated note line for the test line.
If there is no note record yet (record link) then it will create a new one.

procedure SetMeasurementNote(ptxtNote: Text)
Parameters
Name Type Description
ptxtNote Text

RunModalEditMeasurementNote

Opens up a dialog to collect note text.

procedure RunModalEditMeasurementNote()

RunModalReadOnlyComment

Opens up a dialog to collect note text.

procedure RunModalReadOnlyComment()

GetFirstInstruction

Gets the first instruction for the template and field.

procedure GetFirstInstruction(): Text
Returns
Type Description
Text

GetAllInstructions

Gets all of the instructions for the given line.

procedure GetAllInstructions(): Text
Returns
Type Description
Text

SetInstructionFilters

Sets the appropriate filters to get the instructions for the current line.

procedure SetInstructionFilters(var precIWXQIInstruction: Record "IWX QI Instruction")
Parameters
Name Type Description
precIWXQIInstruction Table InsightWorks.QualityInspection.Configuration.”IWX QI Instruction”

GetToolUsageSummary

Returns a simple summary of tool usage.

procedure GetToolUsageSummary(): Text
Returns
Type Description
Text

Table “IWX QI Test”

ID 23067640Namespace: InsightWorks.QualityInspection.Document

The document header for a quality order.

Properties

Name Value
Caption Quality Inspection Test
DrillDownPageID Page InsightWorks.QualityInspection.Document.”IWX QI Tests”
LookupPageID Page InsightWorks.QualityInspection.Document.”IWX QI Tests”
Permissions TableData “IWX QI Test Line” = d
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“No.” Code[20]
“Retest No.” Integer
“Template Code” Code[20]
“Source RecordId” RecordId
“Trigger RecordId” RecordId
Description Text[250]
“Most Recent Picture” Media
“Source RecordId 2” RecordId
“Source RecordId 3” RecordId
“Source Table No.” Integer
“Table Name” Text[249]
“Source Type” Integer
“Source Sub Type” Integer
“Source Document No.” Code[20]
“Source Document Line No.” Integer
“Source Item No.” Code[20]
“Source Variant Code” Code[10]
“Source Serial No.” Code[50]
“Source Lot No.” Code[50]
“Source Task No.” Code[20]
“Source Quantity (Base)” Decimal
“Source Record Table No.” Integer
“Trigger Record Table No.” Integer
“Source RecordId 4” RecordId
“Source Package No.” Code[50]
“Template Type” Enum InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Type”
“Source Custom 1” Text[60]
“Source Custom 2” Text[60]
“Source Custom 3” Text[60]
“Source Custom 4” Text[60]
“Source Custom 5” Text[60]
“Source Custom 6” Text[60]
“Source Custom 7” Integer
“Source Custom 8” Integer
“Source Custom 9” Decimal
“Source Custom 10” Decimal
Status Enum InsightWorks.QualityInspection.Document.”IWX QI Test Status”
“Existing Tests This Record” Integer
“Existing Tests This Item” Integer
“Created Date” DateTime
“Created By User ID” Code[50]
“Last Modified Date” DateTime
“Last Modified By User ID” Code[50]
“Finished Date” DateTime
“Finished By User ID” Code[50]
“Retest Iteration State” Enum InsightWorks.QualityInspection.Configuration.”IWX QI Iteration State”
“Assigned User ID” Code[50]
“Grade Code” Code[20]
“Grade Description” Text[100]
“Grade Priority” Integer
“Planned Start Date” DateTime
“Location Code” Code[10]
“Skip Lot Rule Code” Code[20]
“Skip Lot Step No.” Code[20]
“Brick Top Left” Text[200]
“Brick Middle Left” Text[200]
“Brick Middle Right” Text[200]
“Brick Bottom Left” Text[200]
“Brick Bottom Right” Text[200]
“Sample Size” Integer
“Inspection Level” Enum InsightWorks.QualityInspection.Configuration.Sampling.”IWX QI Inspection Level”
“AQL Grouping Code” Code[10]
“Sampling Plan Code” Code[10]
AQL Decimal
“Acceptance Point” Integer
“Rejection Point” Integer
“Pass Quantity” Decimal
“Fail Quantity” Decimal
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

CheckCanChangeThisTest

CheckCanChangeThisTest will check if the current user has permission to change this test.
If they do not have permission and pbErrorIfNoPermission is true then an error will be thrown.

procedure CheckCanChangeThisTest(pbErrorIfNoPermission: Boolean): Boolean
Parameters
Name Type Description
pbErrorIfNoPermission Boolean

True if an error should be thrown if the user does not have permission to change this test, false otherwise.

Returns
Type Description
Boolean

Returns true if the user has permission to change this test, false otherwise.

SetTestValue

Helper function to set a test line value.

procedure SetTestValue(ptxtFieldCode: Text, ptxtFieldValue: Text)
Parameters
Name Type Description
ptxtFieldCode Text
ptxtFieldValue Text

AssistEditTestField

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

procedure AssistEditTestField(ptxtFieldCode: Text)
Parameters
Name Type Description
ptxtFieldCode Text

UpdateGradeFromLines

This will upgrade the grade on the test based on the grades from the line.

procedure UpdateGradeFromLines()

InitEntryNoIfNeeded

InitEntryNoIfNeeded will initialize the document no. on the Quality Inspection Test if it’s needed.
If it’s already set then this will not be altered.

procedure InitEntryNoIfNeeded(): Code[20]
Returns
Type Description
Code[20]

Return value of type Code[20].

SetIsCreating

Simple flag to let us know whether we are in-progress of creating this test.
Decision decision: because we’re passing this around as a recordref everywhere and we need that flag, we’re storing in the session state instead.

procedure SetIsCreating(pbIsCreating: Boolean)
Parameters
Name Type Description
pbIsCreating Boolean

GetIsCreating

Returns true if this record is in the middle of being created.

procedure GetIsCreating(): Boolean
Returns
Type Description
Boolean

AssignToSelf

Assigns the test to the current user.

procedure AssignToSelf()

ReOpenTest

Reopens a test

procedure ReOpenTest()

FinishTest

Finishes the test.

procedure FinishTest()

GetPostedInventory

Returns the posted inventory for the item/variant

procedure GetPostedInventory(): Decimal
Returns
Type Description
Decimal

GetReservedInventory

procedure GetReservedInventory(): Decimal
Returns
Type Description
Decimal

CreateReTest

Creates a Retest

procedure CreateReTest()

HasMoreRecentRetest

Returns true if there is a more recent Retest than the current test.

procedure HasMoreRecentRetest(): Boolean
Returns
Type Description
Boolean

IsLotTracked

If this test is associated with an item that requires lot tracking.

procedure IsLotTracked(): Boolean
Returns
Type Description
Boolean

IsSerialTracked

If this test is associated with an item that requires serial tracking.

procedure IsSerialTracked(): Boolean
Returns
Type Description
Boolean

IsPackageTracked

If this test is associated with an item that requires package tracking.

procedure IsPackageTracked(): Boolean
Returns
Type Description
Boolean

AssistEditLotNo

procedure AssistEditLotNo()

AssistEditPackageNo

procedure AssistEditPackageNo()

AssistEditSerialNo

procedure AssistEditSerialNo()

UpdateBrickFields

Call this procedure to update the brick fields on the Quality Inspection Test record.

procedure UpdateBrickFields()

TakeNewPicture

Requires Business Central 17 or newer. This will use the camera to take a picture and add it to the test.

[TryFunction]
procedure TakeNewPicture(): Boolean
Returns
Type Description
Boolean

AddPicture

Adds the supplied instream to the test.

[TryFunction]
procedure AddPicture(var pinPictureInStream: InStream, ptxtPictureName: Text, ptxtFileExtension: Text): Boolean
Parameters
Name Type Description
pinPictureInStream InStream
ptxtPictureName Text
ptxtFileExtension Text
Returns
Type Description
Boolean

SetRecordFiltersToFindTestFor

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

procedure SetRecordFiltersToFindTestFor(pbErrorIfMissingFilter: Boolean, pvarRecordVariant: Variant, pbUseItem: Boolean, pbUseTracking: Boolean, pbUseDocument: Boolean)
Parameters
Name Type Description
pbErrorIfMissingFilter Boolean
pvarRecordVariant Variant
pbUseItem Boolean
pbUseTracking Boolean
pbUseDocument Boolean

GetMostRecentTestFor

procedure GetMostRecentTestFor(pvarRecordVariant: Variant): Boolean
Parameters
Name Type Description
pvarRecordVariant Variant
Returns
Type Description
Boolean

PrintCertificateOfAnalysis

procedure PrintCertificateOfAnalysis()

PrintNonConformance

procedure PrintNonConformance()

PrintGeneralInspection

procedure PrintGeneralInspection()

PrintFirstArticleInspectionForm3

procedure PrintFirstArticleInspectionForm3()

PrintLabel

procedure PrintLabel()

SetPreventAutoAssignment

Use SetPreventAutoAssignment to set whether or not we should prevent auto-assignment for this test

procedure SetPreventAutoAssignment(pbShouldPrevent: Boolean)
Parameters
Name Type Description
pbShouldPrevent Boolean

GetPreventAutoAssignment

Use GetPreventAutoAssignment to determine if you should prevent automatically assigning.

procedure GetPreventAutoAssignment(): Boolean
Returns
Type Description
Boolean

GetCurrentUserID

Gets the current user id to use. Calls OnGetUserIdToUse to allow extensions such as Shop Floor Insight the opportunity
to supply the ‘current’ record for scenarios such as web service calls with a Shop Floor Employee or other add-ons.

procedure GetCurrentUserID(peContext: Enum "IWX QI Set User Context"): Code[50]
Parameters
Name Type Description
peContext Enum InsightWorks.QualityInspection.Document.”IWX QI Set User Context”
Returns
Type Description
Code[50]

GetSamplesRecorded

Returns the count of all samples recorded for this test, ignoring the specific test lines.

procedure GetSamplesRecorded(): Integer
Returns
Type Description
Integer

GetHasFieldsConfiguredForSampling

If any of the fields on this test are configured to collect multiple samples, then it will return true.

procedure GetHasFieldsConfiguredForSampling(): Boolean
Returns
Type Description
Boolean

UpdateSampleSizeAndAQLCode

Determines the sample size and aql code.

procedure UpdateSampleSizeAndAQLCode()

GenerateSampleLines

Generates sample lines as appropriate for all test lines that need samples.
Test lines that do not have sample summaries configured will not have samples created.

procedure GenerateSampleLines()

ShowSamplingWorksheet

procedure ShowSamplingWorksheet()

GetShouldShowSampling

Returns true if sampling characteristics should be showing.

procedure GetShouldShowSampling(): Boolean
Returns
Type Description
Boolean

GetRelatedVendor

Gets the related vendor.

procedure GetRelatedVendor(var precVendor: Record Vendor): Boolean
Parameters
Name Type Description
precVendor Record Vendor
Returns
Type Description
Boolean

GetRelatedCustomer

Gets the related customer.

procedure GetRelatedCustomer(var precCustomer: Record Customer): Boolean
Parameters
Name Type Description
precCustomer Record Customer
Returns
Type Description
Boolean

GetRelatedRouting

Gets the related routing.

procedure GetRelatedRouting(var precRouting: Record "Routing Header"): Boolean
Parameters
Name Type Description
precRouting Record “Routing Header”
Returns
Type Description
Boolean

GetRelatedProdOrderRoutingLine

Gets the related routing.

procedure GetRelatedProdOrderRoutingLine(var precProdOrderRoutingLine: Record "Prod. Order Routing Line"): Boolean
Parameters
Name Type Description
precProdOrderRoutingLine Record “Prod. Order Routing Line”
Returns
Type Description
Boolean

GetRelatedProdOrderMeasure

Gets the related routing.

procedure GetRelatedProdOrderMeasure(var precCurrentTestLine: Record "IWX QI Test Line", var precProdOrderRoutingQualityMeasure: Record "Prod. Order Rtng Qlty Meas."): Boolean
Parameters
Name Type Description
precCurrentTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”
precProdOrderRoutingQualityMeasure Record “Prod. Order Rtng Qlty Meas.”
Returns
Type Description
Boolean

GetRelatedBillOfMaterial

Gets the Bill of Materials

procedure GetRelatedBillOfMaterial(var precProductionBOMHeader: Record "Production BOM Header"): Boolean
Parameters
Name Type Description
precProductionBOMHeader Record “Production BOM Header”
Returns
Type Description
Boolean

GetRelatedItem

Gets the related item

procedure GetRelatedItem(var precItem: Record Item): Boolean
Parameters
Name Type Description
precItem Record Item
Returns
Type Description
Boolean

GetItemAttributeValue

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

procedure GetItemAttributeValue(ptxtItemAttributeName: Text): Text
Parameters
Name Type Description
ptxtItemAttributeName Text
Returns
Type Description
Text

SetItemAttributeValue

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

procedure SetItemAttributeValue(ptxtItemAttributeName: Text, ptxtNewValue: Text[250])
Parameters
Name Type Description
ptxtItemAttributeName Text
ptxtNewValue Text[250]

GetAllTestLevelNotes

Reads all of the text for all of the test level notes.

procedure GetAllTestLevelNotes(): Text
Returns
Type Description
Text

GetIsUsingBalloonCharReferences

Returns a true or false if the template is configured to use balloon numbers or not.
If at least one field has a balloon number the answer is yes, otherwise the answer is no.

procedure GetIsUsingBalloonCharReferences(): Boolean
Returns
Type Description
Boolean

GetPassSampleQuantity

eturns the quantity of samples with acceptable measures for all sampling fields.
f no sampling fields, will return the sample size if all measures are acceptable.

procedure GetPassSampleQuantity(): Decimal
Returns
Type Description
Decimal

Quantity of samples

GetFailedSampleQuantity

eturns the quantity of samples with any not acceptable measure for all sampling fields.
f no sampling fields, will return the sample size if any measures are not acceptable.

procedure GetFailedSampleQuantity(): Decimal
Returns
Type Description
Decimal

Quantity of samples

GetSampleQuantityInGrade

Gets the number of samples that match the provided IWX QI Grade Category. For samples to be Acceptable, all sampling measurements must be graded Acceptable.
For samples to be Not Acceptable, one or more sampling measurements must be Not Acceptable.
If no sampling fields, will return the sample size if the other measures align with the provided IWX QI Grade Category.

procedure GetSampleQuantityInGrade(peGradeCategory: Enum "IWX QI Grade Category"): Decimal
Parameters
Name Type Description
peGradeCategory Enum InsightWorks.QualityInspection.Configuration.Grade.”IWX QI Grade Category”
Returns
Type Description
Decimal

Quantity of samples

CreateNonconformanceTest

Creates a nonconformance test from the current test.

procedure CreateNonconformanceTest()

RunModalRelatedTransfers

Initializes the IWX QI Related Transfers page with the Quality Inspector Test record and runs it

procedure RunModalRelatedTransfers()

RunPageRelatedSkipLotState

Starts the page to show related skip lot states.

procedure RunPageRelatedSkipLotState()

GetFriendlyIdentifier

Returns the Test No. and Retest No. (if not 0) in the format No.,Retest No.

procedure GetFriendlyIdentifier(): Text
Returns
Type Description
Text

Text of No.,Retest No.

Events

OnBeforeSetRecordFiltersToFindTestFor

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

[IntegrationEvent(False,False)]
local procedure OnBeforeSetRecordFiltersToFindTestFor(var precTest: Record "IWX QI Test", pbErrorIfMissingFilter: Boolean, pvarRecordVariant: Variant, pbUseItem: Boolean, pbUseTracking: Boolean, var pbUseDocument: Boolean, var pbHandled: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbErrorIfMissingFilter Boolean
pvarRecordVariant Variant
pbUseItem Boolean
pbUseTracking Boolean
pbUseDocument Boolean
pbHandled Boolean

OnAfterSetRecordFiltersToFindTestFor

Use to supplement existing behavior of finding related tests.

[IntegrationEvent(False,False)]
local procedure OnAfterSetRecordFiltersToFindTestFor(var precTest: Record "IWX QI Test", pbErrorIfMissingFilter: Boolean, pvarRecordVariant: Variant, pbUseItem: Boolean, pbUseTracking: Boolean, var pbUseDocument: Boolean)
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pbErrorIfMissingFilter Boolean
pvarRecordVariant Variant
pbUseItem Boolean
pbUseTracking Boolean
pbUseDocument Boolean

OnTestFinished

Triggers when the test has finished.

[IntegrationEvent(False,False)]
local procedure OnTestFinished(var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

OnTestReOpened

Triggers when a test re-opens.

[IntegrationEvent(False,False)]
local procedure OnTestReOpened(var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Table “IWX QI Test Line Sample”

ID 23067650Namespace: InsightWorks.QualityInspection.Document.Sampling

Allows multiple samples for each test line.

Properties

Name Value
Caption Quality Inspection Test Line Sample
LookupPageId Page InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample Editor”
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Test No.” Code[20]
“Retest No.” Integer
“Line No.” Integer
“Template Code” Code[20]
“Template Line No.” Integer
“Sample No.” Integer
“Batch No.” Code[20]
“Sample Status” Enum InsightWorks.QualityInspection.Document.Sampling.”IWX QI Sample Status”
“Field Code” Code[20]
Description Text[100]
“Field Type” Enum InsightWorks.QualityInspection.Configuration.Template.Field.”IWX QI Field Type”
“Test Value” Text[250]
“Test Value Blob” Blob
“Numeric Value” Decimal
“Created DateTime” DateTime
“Modified DateTime” DateTime
“Grade Code” Code[20]
“Grade Description” Text[100]
“Grade Priority” Integer
“Last Modified By User ID” Code[50]
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

TryValidateTestValue

[TryFunction]
procedure TryValidateTestValue(): Boolean
Returns
Type Description
Boolean

validateTestValue

Validates the test value.
If it’s invalid, an error will be thrown.

procedure validateTestValue()

CheckCanChangeParentTestForSample

CheckCanChangeParentTestForSample will check if the current user has permission to change the parent test.
If they do not have permission and pbErrorIfNoPermission is true then an error will be thrown.

procedure CheckCanChangeParentTestForSample(pbErrorIfNoPermission: Boolean): Boolean
Parameters
Name Type Description
pbErrorIfNoPermission Boolean

True if an error should be thrown if the user does not have permission to change the parent test, false otherwise.

Returns
Type Description
Boolean

Returns true if the user has permission to change the parent test, false otherwise.

AssistEditTestValue

procedure AssistEditTestValue()

GetLargeText

Returns large text values. Use this when the test value is a string that exceeds
the contents of the size of Test Value.

procedure GetLargeText(): Text
Returns
Type Description
Text

SetLargeText

This will set the full large text value into the test value blob, and also
set the truncated text value into the ‘test value’ field.

procedure SetLargeText(ptxtLargeText: Text, pbValidateValue: Boolean, pbOnlySetBlob: Boolean)
Parameters
Name Type Description
ptxtLargeText Text
pbValidateValue Boolean
pbOnlySetBlob Boolean

GetGradeStyle

Gets the preferred grade style to use.

procedure GetGradeStyle(): Text
Returns
Type Description
Text

SetFiltersFromTestLineSample

Sets filters on the test line sample to match that of the test line.

procedure SetFiltersFromTestLineSample(var precTestLineSample: Record "IWX QI Test Line Sample")
Parameters
Name Type Description
precTestLineSample Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”

SetFiltersFromTestLine

Sets filters on the test line sample to match that of the test line.

procedure SetFiltersFromTestLine(var precTestLine: Record "IWX QI Test Line")
Parameters
Name Type Description
precTestLine Table InsightWorks.QualityInspection.Document.”IWX QI Test Line”

SetFiltersFromTest

Sets filters on the test line sample to match that of the test.

procedure SetFiltersFromTest(var precTest: Record "IWX QI Test")
Parameters
Name Type Description
precTest Table InsightWorks.QualityInspection.Document.”IWX QI Test”

Events

OnBeforeEvaluateTestLineSampleNumericValue

[IntegrationEvent(False,False)]
local procedure OnBeforeEvaluateTestLineSampleNumericValue(var precTestLineSample: Record "IWX QI Test Line Sample", var pbHandled: Boolean)
Parameters
Name Type Description
precTestLineSample Table InsightWorks.QualityInspection.Document.Sampling.”IWX QI Test Line Sample”
pbHandled Boolean

Table “IWX QI Skip Lot Entry”

ID 23067674Namespace: InsightWorks.QualityInspection.Document.Sampling.SkipLot

Skip Lot Entry table that logs Skip Lot testing actions and results.

Properties

Name Value
Caption Quality Inspection Skip Lot Entry
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Entry No.” Integer
“Rule Code” Code[20]
“Grouping Key” Text[250]
“Template Code” Code[20]
“Log Type” Enum InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot Log Type”
“Count Quantity” Decimal
“Input Source Quantity (base)” Decimal
“Test No.” Code[20]
“Retest No.” Integer
“Source Document No.” Code[20]
“Source Document Line No.” Integer
“Source Item No.” Code[20]
“Source Variant Code” Code[10]
“Source Serial No.” Code[50]
“Source Lot No.” Code[50]
“Source Package No.” Code[50]
“Previous Decision” Enum InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Decision”
“Previous Pass Counter” Decimal
“Previous Step No.” Code[20]
“Previous Counter” Decimal
“Previous Fail Counter” Decimal
“Resulting Decision” Enum InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Decision”
“Resulting Pass Counter” Decimal
“Resulting Step No.” Code[20]
“Resulting Counter” Decimal
“Resulting Fail Counter” Decimal
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

SetSourceDetails

procedure SetSourceDetails(var ptrecSourceFieldsFilledStubTestBuffer: Record "IWX QI Test" temporary, pdQuantityBeingConsidered: Decimal)
Parameters
Name Type Description
ptrecSourceFieldsFilledStubTestBuffer Table InsightWorks.QualityInspection.Document.”IWX QI Test”
pdQuantityBeingConsidered Decimal

SetLogEntryPreviousStateFromCurrentState

Should be called prior to evaluating the resulting counts.

procedure SetLogEntryPreviousStateFromCurrentState(var precSkipLotRuleState: Record "IWX QI Skip Lot State")
Parameters
Name Type Description
precSkipLotRuleState Table InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot State”

SetOutgoingStateFromCurrentLog

procedure SetOutgoingStateFromCurrentLog(var precSkipLotRuleState: Record "IWX QI Skip Lot State")
Parameters
Name Type Description
precSkipLotRuleState Table InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot State”

Table “IWX QI Skip Lot State”

ID 23067676Namespace: InsightWorks.QualityInspection.Document.Sampling.SkipLot

Skip Lot Rule State table that maintains state and progress for Skip Lot rule execution.

Properties

Name Value
Caption Quality Inspection Skip Lot State
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Rule Code” Code[20]
“Grouping Key” Text[250]
“Current Step No.” Code[20]
“Processing Count” Integer
“Deciding Log Entry No.” Integer
“Last Source Document No.” Code[20]
“Last Source Line No.” Integer
“Current Decision” Enum InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Decision”
“Current Counter” Decimal
“Current Pass Counter” Decimal
“Current Fail Counter” Decimal
“Last Created Test No.” Code[20]
“Last Created Retest No.” Integer
“Last Finished Test No.” Code[20]
“Last Finished Retest No.” Integer
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

GetCurrentSkipLotLineStep

procedure GetCurrentSkipLotLineStep(var precOutCurrentStep: Record "IWX QI Skip Lot Rule Line")
Parameters
Name Type Description
precOutCurrentStep Table InsightWorks.QualityInspection.Configuration.Sampling.SkipLot.”IWX QI Skip Lot Rule Line”

GetOrCreateRuleState

Creates or updates a rule state record for the specified grouping

procedure GetOrCreateRuleState(pcodSkipLotRule: Code[20], ptxtGroupingKey: Text)
Parameters
Name Type Description
pcodSkipLotRule Code[20]

Skip Lot rule code

ptxtGroupingKey Text

Grouping key (evaluated from rule header Group By expression)

GetOrCreateRuleState

Creates or updates a rule state record based on the entry record.

procedure GetOrCreateRuleState(precSkipLotEntry: Record "IWX QI Skip Lot Entry")
Parameters
Name Type Description
precSkipLotEntry Table InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot Entry”

LogHumanIntervention

procedure LogHumanIntervention(precPreviousXRec: Record "IWX QI Skip Lot State")
Parameters
Name Type Description
precPreviousXRec Table InsightWorks.QualityInspection.Document.Sampling.SkipLot.”IWX QI Skip Lot State”

ID 23067658Namespace: InsightWorks.QualityInspection.Integration.Transfer

Properties

Name Value
Caption Transfer Orders
TableType Temporary
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Entry No.” Integer
“Document No.” Code[20]
“Table No.” Integer
“Document Type” Enum InsightWorks.QualityInspection.Integration.Transfer.”IWX QI Transfer Buf. Doc. Type”
Status Enum InsightWorks.QualityInspection.Integration.Transfer.”IWX QI Transfer Buf. Status”
“Transfer-From” Code[10]
“Transfer-To” Code[10]
“Posting Date” Date
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Table “IWX QI Inspection Bin”

ID 23067660Namespace: InsightWorks.QualityInspection.Integration.Warehousing

Properties

Name Value
Caption Inspection Bin
DataClassification CustomerContent
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Item No.” Code[20]
“From Location Code” Code[10]
“From Zone Code” Code[10]
“Quality Control Location Code” Code[10]
“Quality Control Zone Code” Code[10]
“Quality Control Bin Code” Code[20]
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

GetItemNoFromRecordOrFilter

Gets the item no. from the record or filter

procedure GetItemNoFromRecordOrFilter(pbOnlyFilters: Boolean): Code[20]
Parameters
Name Type Description
pbOnlyFilters Boolean

Only Filters Boolean

Returns
Type Description
Code[20]

Item No.


Table “IWX QI Role Center Cue”

ID 23067649Namespace: InsightWorks.QualityInspection.RoleCenter

Properties

Name Value
Caption Quality Inspections Cue
InherentPermissions RIM
AllowInCustomizations AsReadWrite

Fields

Name Type Description
“Primary Key” Code[10]
“All Open” Integer
“My Open” Integer
“All Finished” Integer
“My Finished” Integer
“Un-Assigned” Integer
“All Open and Due” Integer
“My Open and Due” Integer
“Source Table No. Filter” Integer
“Document No. Filter” Code[20]
“Document Line No. Filter” Integer
“Item No. Filter” Code[20]
“Task No. Filter” Code[20]
“Lot No. Filter” Code[60]
“Serial No. Filter” Code[60]
“Package No. Filter” Code[60]
“Document Related Tests” Integer
“Line Related Tests” Integer
“Item Tests” Integer
“Item Tracking Tests” Integer
“Template Type Filter” Enum InsightWorks.QualityInspection.Configuration.Template.”IWX QI Template Type”
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Table “IWX QI WS Doc. Entity Buffer”

ID 23067653Namespace: InsightWorks.QualityInspection.WebServices.PDFGeneration

Used to help with PDF generation in web services.

Properties

Name Value
Caption Quality Inspector Document Entity Buffer
ReplicateData False
TableType Temporary
DataClassification CustomerContent
AllowInCustomizations AsReadWrite

Fields

Name Type Description
iwxQITestSystemId Guid
“Test No.” Code[20]
“Retest No.” Integer
“Template Code” Code[20]
Content Blob
“Report Type” Enum InsightWorks.QualityInspection.Reporting.”IWX QI Report Selection Usage”
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

TableExtension “IWX QI App Area Setup”

ID 23067637Namespace: InsightWorks.QualityInspection.Configuration.ApplicationAreasExtends: System.Environment.Configuration.”Application Area Setup”

Fields

Name Type Description
“IWX QI Quality Inspector” Boolean

TableExtension “IWX QI X Whse. WorksheetTempl.”

ID 23067643Namespace: InsightWorks.QualityInspection.ConfigurationExtends: Microsoft.Warehouse.Worksheet.”Whse. Worksheet Template”


TableExtension “IWX QI X Capacity Ledger Entry”

ID 23067636Namespace: InsightWorks.QualityInspection.Integration.ProductionExtends: Microsoft.Manufacturing.Capacity.”Capacity Ledger Entry”

Fields

Name Type Description
“IWX QI Recorded Date-Time” DateTime

TableExtension “IWX QI X Item Journal Line”

ID 23067635Namespace: InsightWorks.QualityInspection.Integration.ProductionExtends: Microsoft.Inventory.Journal.”Item Journal Line”

Fields

Name Type Description
“IWX QI Recorded Date-Time” DateTime

TableExtension “IWX QI Avail. Info. Buffer”

ID 23067639Namespace: InsightWorks.QualityInspection.Integration.TrackingExtends: Microsoft.Inventory.Availability.”Availability Info. Buffer”

Fields

Name Type Description
“IWX QI Existing Tests” Integer
“IWX QI Existing Tests for Lot” Integer

TableExtension “IWX QI Entry Summary”

ID 23067638Namespace: InsightWorks.QualityInspection.Integration.TrackingExtends: Microsoft.Inventory.Tracking.”Entry Summary”

Fields

Name Type Description
“IWX QI Existing Tests” Integer

TableExtension “IWX QI Lot No. Information”

ID 23067640Namespace: InsightWorks.QualityInspection.Integration.TrackingExtends: Microsoft.Inventory.Tracking.”Lot No. Information”

Fields

Name Type Description
“IWX QI Existing Tests” Integer

TableExtension “IWX QI Package No. Information”

ID 23067642Namespace: InsightWorks.QualityInspection.Integration.TrackingExtends: Microsoft.Inventory.Tracking.”Package No. Information”

Fields

Name Type Description
“IWX QI Existing Tests” Integer

TableExtension “IWX QI Serial No. Information”

ID 23067641Namespace: InsightWorks.QualityInspection.Integration.TrackingExtends: Microsoft.Inventory.Tracking.”Serial No. Information”

Fields

Name Type Description
“IWX QI Existing Tests” Integer

TableExtension “IWX QI X Direct Trans. Header”

ID 23067645Namespace: InsightWorks.QualityInspection.Integration.TransferExtends: Microsoft.Inventory.Transfer.”Direct Trans. Header”

Used to help map the transfer test that was created as a result of a quality inspection test.

Fields

Name Type Description
“IWX QI Test No.” Code[20]
“IWX QI Retest No.” Integer

Methods

IWXQI_RunQualityInspection

Runs associated Quality Inspector Test page

procedure IWXQI_RunQualityInspection()

TableExtension “IWX QI X Trans. Receipt Header”

ID 23067647Namespace: InsightWorks.QualityInspection.Integration.TransferExtends: Microsoft.Inventory.Transfer.”Transfer Receipt Header”

Fields

Name Type Description
“IWX QI Test No.” Code[20]
“IWX QI Retest No.” Integer

Methods

IWXQI_RunQualityInspection

Runs associated Quality Inspector Test page

procedure IWXQI_RunQualityInspection()

TableExtension “IWX QI X Trans. Ship. Header”

ID 23067646Namespace: InsightWorks.QualityInspection.Integration.TransferExtends: Microsoft.Inventory.Transfer.”Transfer Shipment Header”

Fields

Name Type Description
“IWX QI Test No.” Code[20]
“IWX QI Retest No.” Integer

Methods

IWXQI_RunQualityInspection

Runs associated Quality Inspector Test page

procedure IWXQI_RunQualityInspection()

TableExtension “IWX QI X Transfer Header”

ID 23067644Namespace: InsightWorks.QualityInspection.Integration.TransferExtends: Microsoft.Inventory.Transfer.”Transfer Header”

Fields

Name Type Description
“IWX QI Test No.” Code[20]
“IWX QI Retest No.” Integer

Methods

IWXQI_RunQualityInspection

Runs associated Quality Inspector Test page

procedure IWXQI_RunQualityInspection()

TableExtension “IWX QI X Item”

ID 23067648Namespace: InsightWorks.QualityInspection.Integration.WarehousingExtends: Microsoft.Inventory.Item.Item

Fields

Name Type Description
“IWX QI Inspection Bin Count” Integer

XmlPort “IWX QI IEPT Imp. Exp. XMLPort”

ID 23067635Namespace: InsightWorks.QualityInspection.ImportExportPowerTool

Properties

Name Value
Caption Insight Works Universal Import (Quality Inspector Edition)
DefaultFieldsValidation False
Direction Import
FieldSeparator
FieldDelimiter
Format VariableText
Permissions tabledata “Warehouse Entry” = mid, tabledata “Item Ledger Entry” = mid, tabledata “Value Entry” = mid,
tabledata “Cust. Ledger Entry” = mid, tabledata “Detailed Cust. Ledg. Entry” = mid, tabledata “Vendor Ledger Entry” = mid, tabledata “Detailed Vendor Ledg. Entry” = mid,
tabledata “Sales Shipment Header” = mid, tabledata “Sales Shipment Line” = mid, tabledata “Sales Invoice Header” = mid, tabledata “Sales Invoice Line” = mid, tabledata “Sales Cr.Memo Header” = mid,
tabledata “Sales Cr.Memo Line” = mid, tabledata “Purch. Rcpt. Header” = mid, tabledata “Purch. Rcpt. Line” = mid, tabledata “Purch. Inv. Header” = mid,
tabledata “Purch. Inv. Line” = mid, tabledata “Purch. Cr. Memo Hdr.” = mid, tabledata “Purch. Cr. Memo Line” = mid, tabledata “Return Shipment Header” = mid,
tabledata “Return Shipment Line” = mid, tabledata “Return Receipt Header” = mid, tabledata “Return Receipt Line” = mid,
tabledata “Dimension Set Entry” = mid, tabledata “Dimension Set Tree Node” = mid
Caption Insight Works Universal Import (Quality Inspector Edition)
DefaultFieldsValidation False
Direction Import
FieldSeparator
FieldDelimiter
Format VariableText
Permissions tabledata “Warehouse Entry” = mid, tabledata “Item Ledger Entry” = mid, tabledata “Value Entry” = mid,
tabledata “Cust. Ledger Entry” = mid, tabledata “Detailed Cust. Ledg. Entry” = mid, tabledata “Vendor Ledger Entry” = mid, tabledata “Detailed Vendor Ledg. Entry” = mid,
tabledata “Sales Shipment Header” = mid, tabledata “Sales Shipment Line” = mid, tabledata “Sales Invoice Header” = mid, tabledata “Sales Invoice Line” = mid, tabledata “Sales Cr.Memo Header” = mid,
tabledata “Sales Cr.Memo Line” = mid, tabledata “Purch. Rcpt. Header” = mid, tabledata “Purch. Rcpt. Line” = mid, tabledata “Purch. Inv. Header” = mid,
tabledata “Purch. Inv. Line” = mid, tabledata “Purch. Cr. Memo Hdr.” = mid, tabledata “Purch. Cr. Memo Line” = mid, tabledata “Return Shipment Header” = mid,
tabledata “Return Shipment Line” = mid, tabledata “Return Receipt Header” = mid, tabledata “Return Receipt Line” = mid,
tabledata “Dimension Set Entry” = mid, tabledata “Dimension Set Tree Node” = mid

Methods

setChangeLogStatus

Enables or disables change log

procedure setChangeLogStatus(pbEnable: Boolean)
Parameters
Name Type Description
pbEnable Boolean

true to Enable

setParams

Sets internal params for XMLPort

procedure setParams(ptxtFileName: Text, pnTableID: Integer, pbAllowInserts: Boolean, pbInsertThenUpdate: Boolean, pbAllowUpdates: Boolean, poptValidate: Option, pbRunOnInsert: Boolean, pbRunOnModify: Boolean, pbDisableChangeLog: Boolean, pteTextEncoding: TextEncoding, peFieldAction: Enum "IWX QI IEPT Field Action", perdDelimiterHandling: Enum "IWX QI IEPT Delimiter Handling")
Parameters
Name Type Description
ptxtFileName Text

Filename to import from – for display only

pnTableID Integer

Table ID to import to (0 if table ID is stored in file)

pbAllowInserts Boolean

Allow new records to be inserted

pbInsertThenUpdate Boolean

If true, does a 2-step insert

pbAllowUpdates Boolean

Allow existing records to be Updated

poptValidate Option

Option “Only validate fields prefixed with ‘*’”,”Validate all fields”.

pbRunOnInsert Boolean

Run the oninsert() validation

pbRunOnModify Boolean

Run the onmodify() validation

pbDisableChangeLog Boolean

Disables change log during import

pteTextEncoding TextEncoding

Encoding used for the file

peFieldAction Enum InsightWorks.QualityInspection.ImportExportPowerTool.”IWX QI IEPT Field Action”

How to handle missing fields

perdDelimiterHandling Enum InsightWorks.QualityInspection.ImportExportPowerTool.”IWX QI IEPT Delimiter Handling”

Whether to remove quote delimiters or not

setParams

Sets internal params for XMLPort

procedure setParams(ptxtFileName: Text, pnTableID: Integer, pbAllowInserts: Boolean, pbInsertThenUpdate: Boolean, pbAllowUpdates: Boolean, poptValidate: Option, pbRunOnInsert: Boolean, pbRunOnModify: Boolean, pbDisableChangeLog: Boolean, pteTextEncoding: TextEncoding, peFieldAction: Enum "IWX QI IEPT Field Action", perdDelimiterHandling: Enum "IWX QI IEPT Delimiter Handling", pbHideInteractionMessages: Boolean)
Parameters
Name Type Description
ptxtFileName Text

Filename to import from – for display only

pnTableID Integer

Table ID to import to (0 if table ID is stored in file)

pbAllowInserts Boolean

Allow new records to be inserted

pbInsertThenUpdate Boolean

If true, does a 2-step insert

pbAllowUpdates Boolean

Allow existing records to be Updated

poptValidate Option

Option “Only validate fields prefixed with ‘*’”,”Validate all fields”.

pbRunOnInsert Boolean

Run the oninsert() validation

pbRunOnModify Boolean

Run the onmodify() validation

pbDisableChangeLog Boolean

Disables change log during import

pteTextEncoding TextEncoding

Encoding used for the file

peFieldAction Enum InsightWorks.QualityInspection.ImportExportPowerTool.”IWX QI IEPT Field Action”

How to handle missing fields

perdDelimiterHandling Enum InsightWorks.QualityInspection.ImportExportPowerTool.”IWX QI IEPT Delimiter Handling”

Whether to remove quote delimiters or not

pbHideInteractionMessages Boolean

Set to true to hide confirmation dialogs and message dialogs.

SetHideInteractionMessages

Set to true to hide messages and confirmation dialogs.

procedure SetHideInteractionMessages(pbHideInteractionMessages: Boolean)
Parameters
Name Type Description
pbHideInteractionMessages Boolean

Set to true to hide confirmation dialogs and message dialogs.


View this article as Markdown

Still need help?

Ask other Business Central users in the Insight Works community, or send the details to the support team. Include the steps you took and any error message you saw.