Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Use the <listitems> portal tag to display table records in a list view.
Available attributes:
Attribute | Type | Mandatory | Description |
---|---|---|---|
class | String | N | Specify a CSS class name defined in the CSS field |
. | |||
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 the path to a page in the portal structure. Example: itemPage="page" defines the URL slug as page and the whole path has the following view: https://your_instance_url/your_portal/page |
itemView | String | Y | Specify the view used for item 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.
| |||
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:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<listitems classtableName="custom__listtask" tableNamecondition="task{data.condition}" listView="SP" itemPage="record" itemView="SP" conditionview="stateIN0@-2adjustable" fixedCondition="(callerDYNAMIC156957117519820256^sys_db_table_idIN156950677111866258@156950616617772294)" choiceConditionName="state" dateConditionName="sys_created_at" perPage="105" displayColumnNumber="1" view="adjustable"> </listitems>></listitems > |
The template above displays the following list to the page:
Image Added