TTMSFNCFilterRulesManager Class
Published filter rules manager that exposes Rules and all events in the DFM designer; drop on a form to configure filter rules at design time.
API unit family: TMS.TMSFNCFilterRulesManager
Inherits from: TTMSFNCCustomFilterRulesManager
Syntax
TTMSFNCFilterRulesManager = class(TTMSFNCCustomFilterRulesManager)
Properties
Name
Description
Placeholders
Collection of named text sources whose values are substituted into rule text before a rule is applied. (inherited from TTMSFNCCustomFilterRulesManager)
Rules
Collection of filter rules applied by this manager. (inherited from TTMSFNCCustomFilterRulesManager)
Methods
Name
Description
AddRule
Adds a rule with a raw filter-text expression and one action (match value only); returns the new rule. (inherited from TTMSFNCCustomFilterRulesManager)
Apply
Applies all active rules in order, firing OnBeforeApply and OnAfterApply events. (inherited from TTMSFNCCustomFilterRulesManager)
ApplyActiveRules
Applies active rules whose Name matches APattern using SQL-LIKE wildcards (% = any sequence, _ = one char); prefix with ! to invert the match. (inherited from TTMSFNCCustomFilterRulesManager)
ApplyInactiveRule
Pushes inactive values for one rule regardless of its Active flag; fires rule-level events. (inherited from TTMSFNCCustomFilterRulesManager)
ApplyRule
Applies a single rule, respecting its Active flag; fires rule-level events. (inherited from TTMSFNCCustomFilterRulesManager)
GetRuleByName
Returns the first rule whose Name matches AName (case-insensitive), or nil when not found. (inherited from TTMSFNCCustomFilterRulesManager)
Events
Name
Description
OnAfterApply
Raised after Apply has finished all rules. (inherited from TTMSFNCCustomFilterRulesManager)
OnAfterApplyItem
Raised after an item has been processed; AMatched is False for inactive rules. (inherited from TTMSFNCCustomFilterRulesManager)
OnAfterApplyRule
Raised after a rule has been applied. (inherited from TTMSFNCCustomFilterRulesManager)
OnBeforeApply
Raised before Apply runs all rules; set AAllow to False to cancel. (inherited from TTMSFNCCustomFilterRulesManager)
OnBeforeApplyItem
Raised before an item is processed; set AAllow to False to skip it. (inherited from TTMSFNCCustomFilterRulesManager)
OnBeforeApplyRule
Raised before a rule is applied; set AAllow to False to skip that rule. (inherited from TTMSFNCCustomFilterRulesManager)
OnMatchItem
Raised after filter evaluation; set AMatched to override the result before callbacks and actions run. (inherited from TTMSFNCCustomFilterRulesManager)
Used by