Share via


JmgErrorSpecificationForm Class [AX 2012]

The JmgErrorSpecificationForm class supports the error specification form.

Syntax

class JmgErrorSpecificationForm

Run On

Called

Methods

  Method Description
Gg738405.pubmethod(en-us,AX.60).gif allowEdit Indicates whether the JmgErrorSpecificationForm should be opened in read write mode, or read only mode.
Gg738405.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg738405.pubmethod(en-us,AX.60).gif data Decodes the input error specification and returns a temporary JmgTmpJobBundleProdFeedback record that has a line for every reported error quantity.
Gg738405.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg738405.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg738405.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg738405.pubmethod(en-us,AX.60).gif itemId Gets the item for which the error is being reported.
Gg738405.pubmethod(en-us,AX.60).gif new Creates a new instance of the JmgErrorSpecificationForm class.
Gg738405.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Gg738405.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Gg738405.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg738405.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg738405.pubmethod(en-us,AX.60).gif parmRegSetup Gets or sets the RegSetup parameter.
Gg738405.pubmethod(en-us,AX.60).gif saveErrorSpecification Saves the error specification from the temporary buffer to the record, specified as parameter to the JmgErrorSpecificationForm.new method.
Gg738405.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg738405.pubmethod(en-us,AX.60).gif showErrorSpecificationForm Opens the error specification form, based on the input to the JmgErrorSpecificationForm class.
Gg738405.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg738405.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Gg738405.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg738405.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg738405.pubmethod(en-us,AX.60).gif Gg738405.static(en-us,AX.60).gif ::decodeErrorSpecification Decodes an error specification encoded by the JmgErrorSpecificationForm::encodeErrorSpecification method from a string to a record.
Gg738405.pubmethod(en-us,AX.60).gif Gg738405.static(en-us,AX.60).gif ::encodeErrorSpecification Converts a JmgTmpErrorSpecification record with reported error causes and quantities to a string value.
Gg738405.pubmethod(en-us,AX.60).gif Gg738405.static(en-us,AX.60).gif ::encodeValue Encodes one pair that displays the error cause and error quantity to a string.
Gg738405.pubmethod(en-us,AX.60).gif Gg738405.static(en-us,AX.60).gif ::getDifference Calculates the difference between two error specifications.
Gg738405.pubmethod(en-us,AX.60).gif Gg738405.static(en-us,AX.60).gif ::getTotalErrorQuantity Retrieves the total quantity error that is contained in the error specification.
Gg738405.pubmethod(en-us,AX.60).gif Gg738405.static(en-us,AX.60).gif ::getTotalPdsCWErrorQuantity Retrieves the total catch weight quantity error that are contained in the error specification.

Top

Remarks

The error specification form is used to encode and decode the multiple error registrations, noted on registrations made by the employee. This class offers methods to show the error specification form, and to encode and decode the JmgErrorSpecification extended data type.

Examples

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();  

Inheritance Hierarchy

Object Class
  JmgErrorSpecificationForm Class