on 10-21-2015 1:19 PM
Hi,
In the below example:
var oMatrixLayout = new sap.ui.commons.layout.MatrixLayout();
var oRowTemplate = new sap.ui.commons.layout.MatrixLayoutRow({
cells: [
new sap.ui.commons.layout.MatrixLayoutCell({
content: new sap.ui.commons.Label({text:"Name:"})
}),
new sap.ui.commons.layout.MatrixLayoutCell({
content: new sap.ui.commons.TextView({text:"{name}"})
})
]
});
oMatrixLayout.bindAggregation("rows", "/company/contacts", oRowTemplate);
You will always get two cells in the row.
Ho can i add desired number of cells here?
This example will add one label and its value in one row. I need desirable number of labels and their values in one row.
Plz help!
I did this by changing the model dynamically to have the desired number of properties in the object. This looks like the only way to do this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any one?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please read the following blog, especially section 5.
While bumping is not often considered something to cause deletion or Alerting the Moderator, it is considered rude when it has been less than an hour since the original thread was posted. It does not matter how desperate you may be to find a solution.
Regards, Mike (Moderator)
SAP Technology RIG
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.