PurchPolicyRuleCatThresholdForm_PSN::noParentOrChildCategoryIsActive Method [AX 2012]
Verify that no parent of child of a category is active when the selectected category get active.
client server public static container noParentOrChildCategoryIsActive(EcoResCategory _ecoResCategorySelected, SysPolicyRule _policyRule)
Run On
CalledParameters
- _ecoResCategorySelected
- Type: EcoResCategory Table
The selected EcoResCategory record to do the search from.
- _policyRule
- Type: SysPolicyRule Table
The SysPolicyRule associated with the categories.
Return Value
Type: containerReturn a container[bool result, Category Name], result is true when no parent or child of the selected category is active, otherwise return false.
Show: