Use the <previewList> tag to display table items as a customizable list.

Available attributes:

AttributeTypeMandatoryDescription
classStringNSpecify a CSS class name defined in the CSS field of the widget.
conditionStringN

Specify a condition to apply to the list. This attribute must contain a condition string.

tableNameStringYSpecify a table that contains output items to display. 
viewStringNSpecify a list view to use. Note that first you need to create this view in the List View (sys_ui_list) table. The default value is Default.
elementCountStringNSpecify the number of items per page. The default value is 5.
subjectColumnStringNSpecify a column that contains item subjects.
dateColumnStringNSpecify a column that contains dates related to list items. 
stateColumnStringNSpecify a column that contains item states.
transparentBooleanN

Set the value to true to change the style of the list and make its background transparent. The default value is false.

wrapBooleanNSet the value to true to set up the quick view. The default value is false.
itemViewStringNSpecify the view used for item rendering.

To display the table header, specify it in the <ListHeader> child tag, as in the example below.

previewList
<previewList
    tableName="announcement"
    itemPage="announcement"
    view="Default"
    elementCount="{data.count}"
    subjectColumn="subject"
    dateColumn="published_at"
    stateColumn="announcement_type"
    wrap="true"
    transparent="true"
    title="{data.Title}"
    allLinkTitle="{data.allLinkTitle}"
    allLinkPage="/portal/announcements"
    condition="(via_portal=1^state=3)">
</previewList>

The template above displays the following element on the page:


  • No labels