class sap.ui.model.json.JSONListBinding

Visiblity: protected
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/model/json/JSONListBinding
Application Component: CA-UI5-COR

List binding implementation for JSON format.


Constructor

Creates a new JSONListBinding.

This constructor should only be called by subclasses or model implementations, not by application or control code. Such code should use JSONModel#bindList on the corresponding model instance instead.

new sap.ui.model.json.JSONListBinding(oModel, sPath, oContext, aSorters?, aFilters?, mParameters?)
Param Type Default Value Description
oModel sap.ui.model.json.JSONModel

Model instance that this binding is created for and that it belongs to

sPath string

Binding path to be used for this binding

oContext sap.ui.model.Context

Binding context relative to which a relative binding path will be resolved

aSorters? sap.ui.model.Sorter sap.ui.model.Sorter[]

Initial sort order (can be either a sorter or an array of sorters)

aFilters? sap.ui.model.Filter sap.ui.model.Filter[]

Predefined filter/s (can be either a filter or an array of filters)

mParameters? object

Map of optional parameters as defined by subclasses; this class does not introduce any own parameters


Methods Overview

Method Description
getContexts

Return contexts for the list or a specified subset of contexts

getContexts

Return contexts for the list or a specified subset of contexts

Param Type DefaultValue Description
iStartIndex int 0

the startIndex where to start the retrieval of contexts

iLength int length of the list

determines how many contexts to retrieve beginning from the start index. Default is the whole list length.