JmgRegistrationParameters.costCategory Method [AX 2012]
Sets or retrieves the project cost category parameter.
Syntax
public ProjCategoryId costCategory([ProjCategoryId _costCategory])
Run On
Called
Parameters
- _costCategory
Type: ProjCategoryId Extended Data Type
The project cost category parameter to set; optional.
Return Value
Type: ProjCategoryId Extended Data Type
The value of the cost category parameter.
Examples
The following example creates a start job registration on project job ID 1000185 by using the Bulbs cost category.
JmgTermJob jmgTermJob;
JmgRegistrationParameters regParams;
jmgTermJob = JmgTermJob::construct('1000185');
regParams = new JmgRegistrationParameters();
regParams.costCategory('Bulbs');
jmgTermJob.makeRegistration(
jmgWorkerRecId,
today(),
timenow(),
true,
regParams);