RouteOpr.getResource Method
Retrieves the resource that has been scheduled or assigned as the requirement for the current record.
Syntax
public WrkCtrTable getResource(
[boolean _findFirstApplicable,
TransDate _searchFromDate,
TransDate _searchToDate,
InventSiteId _inventSiteId,
boolean _findCostingResource])
Run On
Called
Parameters
- _findFirstApplicable
Type: boolean
A Boolean value that indicates whether to get the first applicable resource for this record if no resource has been assigned and no costing resource is found.
- _searchFromDate
Type: TransDate Extended Data Type
The first date for which to search for resources; optional.
- _searchToDate
Type: TransDate Extended Data Type
The last date for which to search for resources; optional.
- _inventSiteId
Type: InventSiteId Extended Data Type
The ID of the site for which search for resources.
- _findCostingResource
Type: boolean
A Boolean value that indicates whether to get the costing resource for this record.
Return Value
Type: WrkCtrTable Table
A WrkCtrTable record that satisfies the search criteria.