Design Query Results Display
For information about how to create or edit a part, as well as the tabs on the Edit Part screen, see Create and Edit Parts.
|
1.
|
From the Design tab, under General options, the Query type field, select the type of ad-hoc query to display. |
|
2.
|
In the Query field, select the ad-hoc query to display. The available ad-hoc queries are those saved in Blackbaud CRM. |
Note: You can select any type of ad-hoc query to use with the Query Results Display part. For example you can select a Volunteer or an Events ad-hoc query. Smart queries from Blackbaud CRM are not available for use with this part.
|
3.
|
In the Maximum number of results field, enter the maximum number of results to include in the display. If you limit the number of results, they display faster on the web page. |
|
4.
|
In the Results per page field, select the number of results to display on a page. Select Show pagination to include a Next button to allow users to click through the pages to view more results. If you do not select Show pagination, only one page of results appears. |
|
5.
|
If your ad-hoc query contains record output fields, a Context filters section appears. This section allows you to display different ad-hoc query information for different website users. For example, if an event registration ad-hoc query includes the Registrants\Constituent\Constituent record field, you can apply context filters to display registration information based on the user who accesses a page or based on the user associated with the page. To allow context sensitivity, select “Current registrant context” in the Registrants\Registrants record field and then select the context in the Registrants\Constituent\Constituent record field. |
|
•
|
Select “Current user” to display a logged-in user's registration information. Use this option to display data that is relevant only to the logged-in user, such as events that the user registered for, the cost of tickets, and seating assignments. You can select this option for any type of page. |
|
•
|
Select “Current constituent context” to display registration information for the user associated with a profile display page. Use this option to display public data. For example, you can display the events that a user participated in when other users visit that user's profile display page. Only select this option for profile display pages because context sensitivity doesn't work for other pages. |
|
6.
|
Under Result summaries, design the ad-hoc query results display. Use merge fields to define the ad-hoc query output to include. For certain types of ad-hoc queries, the text box includes merge fields by default. To add merge fields, click Merge fields on the Insert tab in the toolbar to open a screen where you can drag and drop fields into the text box. To select additional merge field groups, click Advanced merge fields. |
To format the content’s appearance and layout, use the HTML editor. For more information about the HTML editor, see HTML Editor.
|
7.
|
Click Save. You return to Parts. |