Query Builder

<< Click to Display Table of Contents >>

Navigation:  User Interface Reference > Spreadsheet > Mail Merge >

Query Builder

Interface Elements for Desktop > Spreadsheet > Query Builder

When the data source is configured, you can use the built-in Query Builder dialog to select required data.

To invoke the Query Builder window, select the Manage Queries item from the Manage Relations drop-down menu.

img25605

In the Manage Queries dialog, click the ellipsis button in the query list to edit the selected query.

img25606

The Query Editor window appears.

img25263

To modify the query, invoke the Query Builder window by clicking the Run Query Builder... button.

img25610

To add a data table to the query, drag the required table from the list of available tables on the left and drop it onto the list of data tables to be used. Select the check box near the field to include this field in the query. A green plus symbol near the field indicates that you can join tables using this field.

Click Preview Results... to invoke a dialog displaying the first 1000 records of the resulting table.

img25619

Click the Filter... button in the Query Builder to invoke the Filter Editor window that allows you to specify a filtering criterion or create a parametrized query.

img25623

For more information on parameters, review the Parameters Panel document.

When all the necessary changes are made, click OK to close the window and save the query in the document.

Tip

All queries are stored in an .xls or .xlsx file. You can save the workbook after creating the data source. Subsequently, you can start performing a mail merge immediately after the XLSX/XLS file is loaded into the Spreadsheet control.

Copyright (c) 1998-2016 Developer Express Inc. All rights reserved.

Send Feedback on this topic to DevExpress.