JmgJobBundleFeedback Class [AX 2012]
Retrieves feedback about the jobs the user is currently working on.
| Method | Description | |
|---|---|---|
| bundleHasAtLeastOneBatchOrderJob | Indicates whether the bundle has at least one job for batch order. |
| cancelTimeOut | Cancels a previous method call to the setTimeOut method. (Inherited from Object.) |
| editReportAsFinishedParameters | Displays the report as finished dialog to let the user edit before it saves. |
| 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.) |
| new | Creates a new instance of the JmgJobBundleFeedback 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.) |
| run | Runs the relevant feedback form that is based on the bundle type. |
| setTimeOut | Sets up the scheduled execution of a specified method. (Inherited from Object.) |
| 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.) |
| ::main | Provides an entry point for the JmgJobBundleFeedback class when it is called from a menu item. |
Run this class by using the JmgJobBundleFeedback::main method. A feedback form is shown, based on a JmgJobBundle object, which the active jobs are retrieved from. The feedback given by the user is stored in the JmgJobBundle object. Whether the user canceled the feedback form is stored in the Args object, which is supplied to the main method.
The following example prompts the user to provide feedback on jobs that EVA is currently working on. If the user accepts the feedback, the entered feedback is shown to the user.
JmgJobBundle jmgJobBundle;
Args args;
MapIterator mapIterator;
JmgRegistrationParameters regParams;
jmgJobBundle = new JmgJobBundle(jmgWorkerRecId);
args = new Args();
args.parmObject(jmgJobBundle);
JmgJobBundleFeedback::main(args);
// Check to see if the user canceled the feedback form.
if (args.parmEnum() == NoYes::Yes)
{
info("You canceled the feedback form.");
}
else
{
// Display the good quantity entered by the user on the jobs to stop.
mapIterator = jmgJobBundle.getActiveJobsIterator();
while (mapIterator.more())
{
regParams = jmgJobBundle.getFeedbackParameters(mapIterator.key());
info(strFmt("You entered: %1 in good quantity for job id: %2",
regParams.goodQuantity(),
mapIterator.key()));
}
}
Community Additions
ADD
Show: