ComponentOne Query 8.0
Item Template Attributes

Using item template attributes, you can change the display of query items. You can change the order of the elements in an item, hide some elements, change the texts accompanying item elements, and add images and other display elements to item display.

For example, the default template for elementary condition items is (simplified):

Example Title
Copy Code
Records where <C1Q_LEFT> <C1Q_COMPARISON> <C1Q_RIGHT>

It means that condition CustomerID = ‘ALFKI’ is displayed as:

Example Title
Copy Code
Records where CustomerID equals ALFKI

Changing the elementary condition template to:

Example Title
Copy Code
Field <C1Q_LEFT> <C1Q_COMPARISON> <C1Q_RIGHT>

Renders the same condition as:

Example Title
Copy Code
Field CustomerID equals ALFKI

Changing the CompMenu attribute (see Menu attributes) we can also replace the word ‘equals’ with some other text, for example, ‘=’.

C1QueryFrame supports the following item template attributes:

ComplexTemplate

Complex condition item

ComplexResFieldTemplate

The root item in a C1QueryFrame control with ContentsType=c1qResultFields

ElemTemplate

Elementary condition item

AdvElemTemplate

Advanced elementary condition item

ResFieldTemplate

Result field item

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback