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. See the CSS field value below the table to learn more. | ||
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 Views 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 specified more preciselynarrowed down. The attribute work logic attribute logic is similar to the fixed reference qualifiers. | ||
choiceConditionName | String | N | Define the columns that contain data of columns of the Choice type to specify choice options in your condition.
| ||
dateConditionName | String | N | Define the columns that contain data of 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. Default number: 20. | ||
displayColumnNumber | Integer | Y | Specify the number of the column, by clicking on which the record opens. |
Example:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
<listitems class="custom__list" tableName="task" listView="SP" itemPage="record" itemView="SP" condition="stateIN0@-2" fixedCondition="(callerDYNAMIC156957117519820256^sys_db_table_idIN156950677111866258@156950616617772294)" choiceConditionName="state" dateConditionName="sys_created_at" perPage="10" displayColumnNumber="1" view="adjustable"> </listitems> |