JmgJobBundleProdFeedbackForm Class [AX 2012]
The JmgJobBundleProdFeedbackForm class supports the JmgJobBundleProdFeedback form.
Syntax
class JmgJobBundleProdFeedbackForm
Run On
Called
Methods
Method | Description | |
---|---|---|
cancel | Cancels production postings on the job bundle. | |
cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) | |
canClose | Hooks into the canClose method of the JmgJobBundleProjStartupForm Class. | |
equal | Determines whether the specified object is equal to the current one. (Inherited from Object.) | |
getProductionParameters | Gets the production parameters for the specified job. | |
getTimeOutTimerHandle | Returns the timer handle for the object. (Inherited from Object.) | |
getTmpJobBundleProdFeedback | Retrieves a JmgTmpJobBundleProdFeedback record. | |
handle | Retrieves the handle of the class of the object. (Inherited from Object.) | |
new | Initializes a new instance of the JmgJobBundleProdFeedbackForm class. | |
noOfFoundRecords | Retrieves the number of jobs to provide feedback on. | |
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.) | |
onClose | Hooks into the close method of the JmgJobBundleProdFeedback form. | |
owner | Returns the instance that owns the object. (Inherited from Object.) | |
quantityChanged | Recalculates the BOM consumption for a record in the JmgTmpJobBundleProdFeedback table. | |
saveQuantities | Saves the quantities that are provided by the user in the JmgJobBundle object. | |
setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) | |
showBOM | Displays the BOM for the registrations in the specified temporary buffer. | |
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.) | |
validateMaxReportQuantity | Validates that the maximum allowed quantity for feedback reporting has not been exceeded. | |
wait | Pauses a process. (Inherited from Object.) | |
xml | Returns an XML string that represents the current object. (Inherited from Object.) | |
::validateFeedbackQuantity | Validates a quantity that is entered by the user. |
Top
Remarks
The form prompts the user to input feedback quantities when they make stop registrations on production jobs. Based on an instance of the JmgJobBundle class, the JmgJobBundleProdFeedbackForm class initializes two temporary tables, JmgTmpJobBundleProdFeedback and JmgTmpBOMConsump , that contain feedback data and consumption data respectively, which is presented to the user. When the JmgJobBundleProdFeedback form closes, the data entered in the JmgTmpJobBundleProdFeedback table is saved back into the JmgJobBundle object .Data in the JmgTmpBOMConsump table is used to create and post a picking list journal with the entered values. Use the JmgJobBundleProdFeedbackForm class only from the JmgJobBundleProdFeedback form.
Examples
The following example shows how the JmgJobBundleProdFeedbackForm class is used from the JmgJobBundleProdFeedback form.
// From \Forms\JmgJobBundleProdFeedback\Methods\init
public void init()
{
JmgRegistrationSetup registrationSetup;
touch = JmgExternalTerminalTable::findOrCreate(JmgExternalTerminalTable::getClientId(),JmgTermType::AxaptaClient).TouchScreen;
if (!SysDictClass::isEqualOrSuperclass(classidget(element.args().parmObject()), classnum(JmgJobBundle)))
{
throw error(strfmt("@SYS22862", formstr(JmgJobBundleProdFeedback)));
}
super();
prodFeedbackForm = new JmgJobBundleProdFeedbackForm(element.args().parmObject(), element.args().parmEnum());
jmgTmpJobBundleProdFeedback.setTmpData(prodFeedbackForm.getTmpJobBundleProdFeedback());
if (element && element.args())
{
registrationSetup = element.args().record();
}
headlineText.text(strfmt("@SYS301770",prodFeedbackForm.noOfFoundRecords()));
approveClose = false;
if (touch)
{
this.touchEnableClient();
}
editErrorCause.enabled(editErrorCause.visible(touch));
errorLookupOpen = false;
element.initButton();
}
Inheritance Hierarchy
Object Class
JmgJobBundleProdFeedbackForm Class