Example 6: Use argv["query"] for value filtering

Example 6: Use argv["query"] for value filtering

This example demonstrates how to use argv['query'] to filter autocomplete options and limit result count.

The argv['query'] parameter is only available for PCF - Single Autocomplete and PCF - Multiple Autocomplete fields when Filtering Strategy is set to Data source on the Autocomplete tab.

You can filter options based on specific character sequences. The following SIL data source script retrieves recent issues and filters them by matching user input with issue summaries:

string [] issues = selectIssues("created < now()"); string [] res; for (string iss in issues) { if (contains(iss.summary, argv["query"])) { res = addElementIfNotExist(res, iss); } } return res;

This configuration lets users:

  • Search and filter options by matching specific character sequences in issue summaries.

  • See filtered results based on their input.

  • Access a limited set of matching options.

The following video demonstrates this functionality:

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.