Skip to end of banner
Go to start of banner

Example 7 - Using the argv["query"]

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

This example shows you how to limit the value count and filter options by name. You can select the options that contain the specific characters you are looking for when the value count is limited and when you filter options by name.

You must set the Filtering Strategy (from Autocomplete settings) to Datasource to use the argv["query"] routine.

See the following example for more information on using the argv[“query”].

Script details

The video used the following script to limit the value count and filter options by name:

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