on 2021 Mar 09 11:26 AM
This is my jason model:
jModel: new sap.ui.model.json.JSONModel(),
_data: {
requestSpecific: [],
items: [],
partner: [],
vatGroups: [],
countries: [],
totals: [],
ttlstotais: []
},
jModel.setData(this._data);
The model is fullfill with data came from SAPB1 and everything is working fine.
This is the comboBox that I need to fullfill with data, who is properly working:
<t:Column width="9rem" id="colCountriesId">
<Label text="País"/>
<t:template>
<ComboBox items="{jModel>/countries}">
<core:Item key="{jModel>code}" text="{jModel>Name}"/>
</ComboBox>
</t:template>
</t:Column>
The problem is that I've got 200 countries, and only shows me 100 (I know that this is the limit by default).
In a normal situation I make something like:
oModel.setSizeLimit(200);
The problem is that I can't solve my issue with this solution, because I don't want to increase my model, but just one property in the model, and from what I can see, I can't do this.
Can you give me some light in how to fullfill my comboBox with 200 entries in a different way?
Request clarification before answering.
Hi 0022266818,
Try this in your binding, it should work
<ComboBox items="{ path:'jModel>/countries', length : 200 }">
Thanks,
Vaibhav Maheshwari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
21 | |
8 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.