Skip to content

KVSPSARes.-List by Skill#

Events#

KVSPSAOnBeforeAddResourceToFilter(Record Resource, Option, Text, Boolean) :#

Summary: Event fired before adding a resource to the filter during skilled resources filtering. Allows extensions to customize or override the validation logic that determines whether a resource should be included in the filter. This event enables custom logic to modify resource inclusion criteria based on skill requirements, certification status, and custom business rules when building the resource filter for skill-based resource selection.

[IntegrationEvent(false, false)]
local procedure KVSPSAOnBeforeAddResourceToFilter(Resource: Record "Resource"; GlobalCertifiedFilter: Option; GlobalResourceFilter: Text; var IsValid: Boolean): 
[EventSubscriber(ObjectType::Page, Page::"KVSPSARes.-List by Skill", 'KVSPSAOnBeforeAddResourceToFilter', '', false, false)]
local procedure DoSomethingKVSPSAOnBeforeAddResourceToFilter(Resource: Record "Resource"; GlobalCertifiedFilter: Option; GlobalResourceFilter: Text; var IsValid: Boolean)
begin
end;

Parameters:

  • Resource: The resource record being evaluated for inclusion in the filter.
  • GlobalCertifiedFilter: The certification filter option indicating whether to filter by Both, Certified, or Non-Certified resources.
  • GlobalResourceFilter: The current resource filter text being built, containing previously added resource numbers.
  • IsValid: Boolean flag indicating whether the resource should be added to the filter. Set to true to include the resource, false to exclude it (passed by reference for modification).