JmgJobBundle.new Method [AX 2012]
Initializes a new instance of the JmgJobBundle class.
public void new(
JmgWorkerRecId _worker,
[boolean _continueBundle,
boolean _askForFeedback,
boolean _showInfo,
JmgRegistrationSetup _registrationSetup])
Run On
CalledParameters
- _worker
- Type: JmgWorkerRecId Extended Data Type
The worker that is making registrations.
- _continueBundle
- Type: boolean
A Boolean value that specifies whether the bundle must be continued.
- _askForFeedback
- Type: boolean
A Boolean value that specifies whether the worker must be asked for feedback.
- _showInfo
- Type: boolean
true if information about the registration process must be shown to the user; otherwise, false.
- _registrationSetup
- Type: JmgRegistrationSetup Table
The ID of the registration setup, which is used when registrations are created.
That is, should be shown.
There are three situations where feedback from the user is required regarding the _askForFeedback parameter:
-
If the user has been clocked in for too long, a missing clock out dialog box is shown.
-
If the user stops working on jobs that require feedback information.
-
If the user starts working on jobs that require startup information.
The following example creates a new job bundle for employee EBA and creates a clock out registration for the employee.
JmgJobBundle jmgJobBundle;
jmgJobBundle = new JmgJobBundle(jmgWorkerRecId, false, true, true);
jmgJobBundle.addJob(
JmgJobTable::find(JmgIpcActivity::findSignInJobId()));
jmgJobBundle.makeRegistrations();
Community Additions
ADD
Show: