Free cookie consent management tool by TermsFeed a!listViewItem() Function
a!listViewItem() Function
This function cannot be used with Custom Record Field Expressions. It can only be used with Offline Mobile if it is loaded at the top of the form.
For a full list of functions and their feature compatibility, explore the Appian Functions table.

Function

a!listViewItem( title, details, image, timestamp )

Creates a value of type ListViewItem for use with record type definitions.

See also: Create a Feed-Style Record List, ListViewItem

Parameters

Keyword Type Description

title

Text

The name or short text description of the item.

details

Text

A longer text description of the item.

image

Document or User

The image to appear in the record list next to each item. Value must be entered as an expression. If left null or empty, the first two letters of the record title display. For image file types, a thumbnail of the document displays. For user values, the user's avatar displays.

timestamp

Date and Time

The creation or modification timestamp of the item.

Returns

ListViewItem

Examples

NOTE: This examples use the Employee record type for the purpose of illustration only. If you copy and paste the expression below into the Expression Rule Interface, it will not evaluate in your Test Rules interface. Use it as a reference only.

1
2
3
4
5
6
a!listViewItem(
  title: rv!record[recordType!Customer.fields.firstname] & " " & rv!record[recordType!Customer.fields.lastname],
  details: rv!record[recordType!Customer.fields.title] & " | " & rv!record[recordType!Customer.fields.department] & " | " & rv!record[recordType!Customer.fields.phonenumber],
    image: rule!getCustomerImage(rv!record[recordType!Customer.fields.imageId]),
  timestamp: "Start date: " & rv!record[recordType!Customer.fields.startdate],
)

When this function is used in a feed-style record list, it appears like this:

listviewitem-result

Open in Github Built: Fri, Sep 22, 2023 (07:57:45 PM)

a!listViewItem() Function

FEEDBACK