Compartilhar via


ProcCategoryPolicyParameter::addCategoryFilterForVendor Method

Adds query ranges to the data source of the specified query to restrict categories to those that are permitted for the given vendor.

Syntax

client server public static void addCategoryFilterForVendor(
    RefRecId _vendorCompany, 
    AccountNum _vendorAccount, 
    RefRecId _ou, 
    Query _query, 
    QueryBuildDataSource _parentDataSource, 
    FieldId _procurementCategoryFieldIdOnParent)

Run On

Called

Parameters

  • _vendorCompany
    Type: RefRecId Extended Data Type
    An instance of the RefRecId class for the CompanyInfo table to represent the given data area of the vendor and the legal entity in which to find the category policy.
  • _ou
    Type: RefRecId Extended Data Type
    An instance of the RefRecId class that represents the operating unit in which to find the category policy.
  • _query
    Type: Query Class
    A query in which to add the category query ranges.
  • _procurementCategoryFieldIdOnParent
    Type: FieldId Extended Data Type
    The field ID of a column in the _parentDataSource parameter that represents the procurement category record ID.

Remarks

It is okay for the given vendor to be empty or non-existent. However, in that case, this method would be effectively a no-op and no filter range would be added.

See Also

Reference

ProcCategoryPolicyParameter Table