JmgJobBundleFeedback Class [AX 2012]

Retrieves feedback about the jobs the user is currently working on.

class JmgJobBundleFeedback

Run On

Called

  MethodDescription
Gg739129.protmethod(en-us,AX.60).gif bundleHasAtLeastOneBatchOrderJob Indicates whether the bundle has at least one job for batch order.
Gg739129.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg739129.protmethod(en-us,AX.60).gif editReportAsFinishedParameters Displays the report as finished dialog to let the user edit before it saves.
Gg739129.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg739129.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg739129.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg739129.pubmethod(en-us,AX.60).gif new Creates a new instance of the JmgJobBundleFeedback Class.
Gg739129.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.)
Gg739129.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.)
Gg739129.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg739129.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg739129.pubmethod(en-us,AX.60).gif run Runs the relevant feedback form that is based on the bundle type.
Gg739129.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg739129.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg739129.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.)
Gg739129.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg739129.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg739129.pubmethod(en-us,AX.60).gif Gg739129.static(en-us,AX.60).gif ::main Provides an entry point for the JmgJobBundleFeedback class when it is called from a menu item.
Top

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

Object Class
  JmgJobBundleFeedback Class

Community Additions

ADD
Show: