a!recordFilterDateRange_20r2 Function

This page contains information related to an old version of the a!recordFilterDateRange() Function.

Old versions do not appear in category lists; only the newest versions are listed.

To take advantage of the latest features and improvements, we always recommend you use the latest versions of functions whenever possible. See the latest version's page for information about what's been changed.

This function creates a Facet type object, and is used within a Record Type Object for creating and configuring date range user filters. See Expression-Based User Filters for common uses.

Function

a!recordFilterDateRange_20r2( name, field, defaultFrom, defaultTo, isVisible )

Creates a user filter for a record list. This is an older version of the a!recordFilterDateRange() function, which supports record type field references.

Parameters

Keyword Type Description

name

Text

The name of the user filter that displays to end users.

field

Text

The name of the field the filter will apply to.

defaultFrom

Text

Determines which, if any, starting date is applied when a record list first loads.

defaultTo

Text

Determines which, if any, ending date is applied when a record list first loads.

isVisible

Boolean

Determines whether the filter is visible to the user at runtime. Default is true.

Returns

Facet

Example

1
2
3
4
5
6
7
=a!recordFilterDateRange_20r2(
   name: "Hire Date",
   field: "hireDate",
   defaultFrom: "today()",
   defaultTo: "today() + 365",
   isVisible: true
)
Open in Github Built: Thu, Sep 16, 2021 (04:12:04 PM)

On This Page

FEEDBACK