WorkPeriodTemplate::checkExistInCompany Method
Indicates whether a WorkPeriodTemplate record exists for the specified period template recId field in the company.
Syntax
client server public static boolean checkExistInCompany(WorkPeriodTemplateRecId _refRecId, DataAreaId _dataAreaId)
Run On
Called
Parameters
- _refRecId
Type: WorkPeriodTemplateRecId Extended Data Type
A period template recId value.
- _dataAreaId
Type: DataAreaId Extended Data Type
The ID of the company in which to search for the period template.
Return Value
Type: boolean
true if a WorkPeriodTemplate record exists; otherwise, false.
Remarks
If a WorkPeriodTemplate record does not exist, a warning message is displayed.