cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAPUI5 Complex Binding Syntax used with 'parameters'

Former Member
0 Likes
9,501

Hi Experts,

when I recently browsed the SAPUI5 Explored section I found some code in the tree table (XML View for Tree Table) I didn't understand:

<TreeTable 
 id="TreeTableBasic"
 rows="{path:'/catalog/clothing', parameters: {arrayNames:['categories']}}"
 selectionMode="MultiToggle"
 enableSelectAll="false"
 ariaLabelledBy="title">
 ....

It aparrently uses a complex binding syntax for the "rows" aggregation. I am familiar with the "path" notation along with formatters. But I never saw the "parameters" notation before. Can someone enlighten me and provide some information about it? I could not find some documentation in the SAPUI5 developers guide.


Regards

Tobias

View Entire Topic
jamie_cawley
Product and Topic Expert
Product and Topic Expert

The parameters option is mostly used to add additional odata options

https://help.sap.com/saphelp_uiaddon10/helpdata/en/91/f11c116f4d1014b6dd926db0e91070/content.htm

The arrayNames is specific to the tree

* @see sap.ui.model.Model.prototype.bindTree * * @param {object} * [mParameters=null] additional model specific parameters (optional) * If the mParameter <code>arrayNames</code> is specified with an array of string names this names will be checked against the tree data structure * and the found data in this array is included in the tree but only if also the parent array is included. * If this parameter is not specified then all found arrays in the data structure are bound. * If the tree data structure doesn't contain an array you don't have to specify this parameter.

Regards,

Jamie

SAP - Technology RIG