JmgErrorSpecificationForm Class [AX 2012]
The JmgErrorSpecificationForm class supports the error specification form.
| Method | Description | |
|---|---|---|
| allowEdit | Indicates whether the JmgErrorSpecificationForm should be opened in read write mode, or read only mode. |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| data | Decodes the input error specification and returns a temporary JmgTmpJobBundleProdFeedback record that has a line for every reported error quantity. |
| equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) |
| getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) |
| handle | Retrieves the handle of the class of the object. (Inherited from Object.) |
| itemId | Gets the item for which the error is being reported. |
| new | Creates a new instance of the JmgErrorSpecificationForm class. |
| notify | Releases the hold on an object that has called the wait method on this object. (Inherited from Object.) |
| notifyAll | Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.) |
| objectOnServer | Determines whether the object is on a server. (Inherited from Object.) |
| owner | Returns the instance that owns the object. (Inherited from Object.) |
| parmRegSetup | Gets or sets the RegSetup parameter. |
| saveErrorSpecification | Saves the error specification from the temporary buffer to the record, specified as parameter to the JmgErrorSpecificationForm.new method. |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| showErrorSpecificationForm | Opens the error specification form, based on the input to the JmgErrorSpecificationForm class. |
| toString | Returns a string that represents the current object. (Inherited from Object.) |
| usageCount | Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.) |
| wait | Pauses a process. (Inherited from Object.) |
| xml | Returns an XML string that represents the current object. (Inherited from Object.) |
| ::decodeErrorSpecification | Decodes an error specification encoded by the JmgErrorSpecificationForm::encodeErrorSpecification method from a string to a record. |
| ::encodeErrorSpecification | Converts a JmgTmpErrorSpecification record with reported error causes and quantities to a string value. |
| ::encodeValue | Encodes one pair that displays the error cause and error quantity to a string. |
| ::getDifference | Calculates the difference between two error specifications. |
| ::getTotalErrorQuantity | Retrieves the total quantity error that is contained in the error specification. |
| ::getTotalPdsCWErrorQuantity | Retrieves the total catch weight quantity error that are contained in the error specification. |
The following example demonstrates the use of this class.
// Ask the specified employee to input error quantities for the last registration made:
JmgTermReg jmgTermReg;
JmgErrorSpecificationForm jmgErrorSpecificationForm;
;
select firstonly jmgTermReg
order by DateTime desc
where jmgTermReg. Worker == jmgWorkerRecId &&
jmgTermReg.RegType == JmgTermRegType::JobStart;
jmgErrorSpecificationForm = new JmgErrorSpecificationForm(jmgTermReg,
_caller, true););
jmgErrorSpecificationForm.showErrorSpecificationForm();
Community Additions
ADD
Show: