We would like to have the index of aggregated element in the template generation. There are a lot of reasons someone needs the index of the aggregation item.
As an example we would like to use the index of aggregation in the name of a TextField
_addressEditFormElementTemplate: function(oController) {
return new sap.ui.commons.form.FormElement(this.createId('fldAddress'), {
label: new sap.ui.commons.Label(this.createId('lblAddress'), {
text: 'Address'
}
}),
fields: [
new sap.ui.commons.TextField(this.createId('inpAddress'), {
value: '{address}',
name: 'addresses[${index}].address'
})
]
});
}
Is it possible now?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
37 | |
10 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
2 | |
2 |