Share via


ProcCategoryAccessPolicyParameter::procurementCategoryAllowedByPolicy Method

Checks whether the category access policy allows the given procurement category.

Syntax

client server public static boolean procurementCategoryAllowedByPolicy(
    RefRecId _procurementCategoryRecId, 
   [RecId _employerRecId, 
    RecId _departmentRecId])

Run On

Called

Parameters

  • _procurementCategoryRecId
    Type: RefRecId Extended Data Type
    The record ID for the EcoResCategory table that indicates a procurement category.

Return Value

Type: boolean
false if a CatProcurementCache record with valid data is not found for the current user, or if there is currently an effective purchasing policy but the given category is not explicitly allowed by the policy; otherwise, true.

Remarks

If the _employerRecId and _departmentRecId parameters are not specified the record in the CatProcurementCache table the current logon user is used to obtain the policy.

If_employerRecId and _departmentRecId are not specified and the record is not found, false is always returned.

See Also

Reference

ProcCategoryAccessPolicyParameter Table