HomeActive Query Builder - HowTos and TroubleshootingActive Query Builder ASP.NET EditionHow to prompt the end-user for query parameters?

3.4. How to prompt the end-user for query parameters?

This task is illustrated in the Query Results demo project that included in the installation package. Below are the step to take in order to cope with this task.

  1. Use the QB.Web.Application.getQueryParams(callback) asynchronous function to receive the list of parameters in callback function.
  2. Prompt the end user for parameter values.
  3. Use the QB.Web.Application.setQueryParamValues(newParams, callback) function to pass the list of parameter values to the server.
  4. Handle the QueryBuilderControl.OnQueryParamValuesChanged event to receive the list of parameter values.
  5. Execute the query and display results to the end-user.

Related Pages
This page was: Helpful | Not Helpful