Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Merged branch "DOC0000070" into parent

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

Available attributes:

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

Specify a condition

applied

to apply to the list. This attribute

should

must contain

data of the Conditions type

a condition string.

tableNameStringYSpecify a table
containing
that contains output items to display
on the list view
. 
viewStringNSpecify a list view
name used
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
items. If not specified, then equal to '5' by default. 
. The default value is 5.
subjectColumnStringNSpecify a
table
column
containing list
that contains item subjects.
dateColumnStringNSpecify
a table column containing
a column that contains dates related to list items. 
stateColumnStringNSpecify a
table
column
containing list
that contains item states.
transparentBooleanN

Set

this attribute  to set up the full view

the value to

'true'

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

wrapBooleanNSet
this attribute to 'true' to
the value to true to set up the quick view. The default value is false.
itemViewStringNSpecify the view used for item rendering.
ListHeaderStringNSpecify the list header

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

Code Block
languagexml
titlepreviewList
linenumberstrue
<previewList
    tableName="announcement"
    itemPage="announcement"
    view="AnnounceViewDefault"
    elementCount="3{data.count}"
    subjectColumn="subject"
    dateColumn="syspublished_created_at"
    stateColumn="stateannouncement_type"
    wrap="true" itemView="announceView"><ListHeader><div>Announcements</div></ListHeader></previewList>
    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:

Image Added