Versions Compared

Key

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

Use the <listitems> portal tag to display table records in a list view. 

Available attributes:

AttributeTypeMandatoryDescription
classStringNSpecify a CSS class name defined in the CSS field.
See the CSS field value below the table to learn more.
tableNameStringYSpecify a table
containing
that contains output
elements
items to display. 
listViewStringY

Specify a list view to use.

 

Note that first you need to create this

view in

view in the List

Views

View (sys_ui_list)

dictionary

table.

itemPageStringY

Specify the path to a page in the portal structure.

Example:

If you set

itemPage="page"

as shown in the code example below, your URL may look like this

defines the URL slug as page and the whole path has the following view:

https://your_instance_url/your_portal/page

itemViewStringYSpecify the view used for item rendering.
conditionStringN

Specify a condition

applied

to apply to the list. This attribute

should contain data of the Conditions type

must contain a condition string.

fixedConditionStringN

Specify

a

the condition applied to the list. Unlike the condition specified with the condition attribute, this condition is fixed and cannot be removed

; it

. It can be only

specified more precisely

narrowed down.

The

attribute work logic

attribute logic is similar to the

Reference Qualifiers (

fixed

)

reference qualifiers.

choiceConditionNameStringN

Define

columns containing data of

the columns of the Choice type

if you need

to specify choice options in your condition. 

Info

Columns specified in the attribute should be added to the view defined in the

<listView>

<listView> attribute. Otherwise, filtering by columns will not be available.

 


dateConditionNameStringN

Define

columns containing data of

the columns of the Date or Date/Time type

if you need

to specify date ranges in your condition.

 

perPageIntegerNSpecify the number of items per page
items
. The default value is
"
20
"
.
displayColumnNumberIntegerYSpecify
a column number to open a record
the number of the column, by clicking on
it
which the record opens.

Example:

.custom__list td { padding: 50px 0 50px 30px; }
Code Block
languagexml
themeEclipse
titlelistitems
linenumberstrue
<listitems class tableName="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>
Code Block
languagecss
titleCSS
></listitems >

The template above displays the following list to the page:

Image Added