Cubic Compass Software

- Support Wiki

Dialogue Script : Repeater

Modified: 2008/08/19 02:29 by mleach - Categorized as: Dialogue Script
Edit

Dialogue Script : Repeater

Syntax
<dlog:Repeater id={unique Repeater ID} SOQL={query} GetChildrenByClass={Class Name} 
NoResultsText={text}></dlog:Repeater>

Usage
A data-bound list control that allows custom layout by repeating a specified template for each item displayed in the list.

Attributes
id: (Required) A unique identifier for the control. Multiple repeater displaying the same field may be used on a page, but each Repeater control must have a unique ID.

SOQL: (Optional) The Salesforce SOQL Plus query to be used for data binding.

GetChildrenByClass: (Optional) Retrieves a collection of objects by a declared type. For use by applications that utilize XOS (eXtensible Object Store) object graphs.

LookupReference: (Optional) Specifies the name of a Salesforce field of the current object which will be used in the SOQL Plus query. If this property is specified, any instance of "{LookupReference}" in the SOQL Plus query will be replaced with the value of the specified property.

NoResultsText: (Optional) A text string to be displayed when the query defined by SOQL or SQL returns no results.

HeaderTemplate: If defined, this determines the content and layout of the list header. If not defined, a header is not rendered.

ItemTemplate: Defines the content and layout of items within the list. This template is required.

AlternatingItemTemplate: If defined, this determines the content and layout of alternating (zero-based odd-indexed) items.

SeparatorTemplate: If defined, this is rendered between items (and alternating items). If not defined, a separator is not rendered.

FooterTemplate: If defined, this determines the content and layout of the list footer. If not defined, a footer is not rendered.



Example
<dlog:Repeater id="Repeater1" SOQL="SELECT TOP 10 * FROM Solution WHERE Status='Published' ORDER BY CreatedDate DESC"
NoResultsText="No solutions available">
<HeaderTemplate>
<table>
</HeaderTemplate>
<ItemTemplate>
<tr><td> <dlog:Label id="ItemLabel" FieldName="SolutionName" />  </td></tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</dlog:Repeater>

ScrewTurn Wiki version 2.0.35. Some of the icons created by FamFamFam.