on 08-08-2019 11:16 AM
Hello Experts,
I have a requirement to create a table which has initially two empty row. I have achieved this with below mentioned code. Is there any better way to achieve this?
<items>
<ColumnListItem>
<cells>
<Input type="Text"/>
<Input type="Text"/>
</cells>
</ColumnListItem>
<ColumnListItem>
<cells>
<Input type="Text"/>
<Input type="Text"/>
</cells>
</ColumnListItem>
</items>
Hi,
Instead of having multiple columnlistitem, just define a (new sap.ui.model.json.JSONModel())json model which is having an array with two empty objects with null values.
Set this model to the table control. So empty rows will be added based on the number of objects.
this will work.
Regards,
Raghavendra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.