on 03-07-2019 6:15 AM
Remove <items> </items> from XML.
Create & bind template at run time.
this.oTemplate = new sap.m.ColumnListItem({ cells: [ new sap.m.Text({ text: "{ITMU}" }),new sap.m.Text({ text: "{PRMU}" }), ..............] });
this._oTable.bindItems({ path: "/CNST_ER", template: this.oTemplate });
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Abdul WaheedI am sorry, but the result has not changed. Only a blank row is added, which is not editable.
Thanks for your inputs. The issue is resolved. Instead of sap.m.Text, I used sap.m.Input. Now I am able to edit the fields properly. Thank you @Abdul Waheed
@Bopanna D C I saw this one. But it is only adding blank rows, which are not editable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Meenakshi,
You need bind template to table.
For example.
this._oTable.bindItems({ path: "/CNST_ER", template: this.oTemplate });
this.oTemplate will be a sap.m.ColumnListItem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Abdul Waheed, Thanks for your reply. I have added the below code. I am not sure where am I suppose to bind template with table ?
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.