on ‎2016 Nov 08 1:27 PM
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
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.