listitems
Use the <listitems> tag to display table records in a list view.
Available attributes:
Attribute | Type | Mandatory | Description |
---|---|---|---|
class | String | N | Specify the CSS class name defined in the CSS field of the widget. |
tableName | String | Y | Specify a table that contains output items to display. |
listView | String | Y | Specify a list view to use. Note that first you need to create this view in the List View (sys_ui_list) table. |
itemPage | String | Y | Specify a path to a page in the portal structure. Example: itemPage="page" returns a URL of the search results page containing the page word https://your_instance_url/your_portal/page |
itemView | String | N | Specify the view used for the search results page rendering. |
condition | String | N | Specify a condition to apply to the list. This attribute must contain a condition string. |
fixedCondition | String | N | Specify the condition applied to the list. Unlike the condition specified with the condition attribute, this condition is fixed and cannot be removed. It can be only narrowed down. The attribute logic is similar to the fixed reference qualifiers. |
choiceConditionName | String | N | Define the columns of the Choice type to specify choice options in your condition. Columns specified in the attribute should be added to the view defined in the listView attribute. Otherwise, filtering by columns will not be available. |
dateConditionName | String | N | Define the columns of the Date or Date/Time type to specify date ranges in your condition. |
perPage | Integer | N | Specify the number of items per page. The default value is 20. |
displayColumnNumber | Integer | Y | Specify the number of the column, by clicking on which the record opens. |
Example:
listitems
<listitems
tableName="task"
condition="{data.condition}"
listView="SP"
itemPage="record"
itemView="SP" view="adjustable"
choiceConditionName="state"
dateConditionName="sys_created_at"
perPage="5"
displayColumnNumber="1"
></listitems >
The template above displays the following list to the page: