on 09-08-2014 4:03 PM
Hello,
I have a dailog where I have the title which should be loaded from i18n model. It doesnt display anything. The other xml views works properly except fragments.
<core:FragmentDefinition
xmlns="sap.m"
xmlns:core="sap.ui.core">
<SelectDialog
noDataText="{i18n>NoProducts}"
title="{i18n>SelectProductName}"
search="handleSearch"
confirm="handleClose"
close="handleClose"
items="{
path: '/Products'
}" >
<StandardListItem
title="{ProdGroupName}"
description="{ProductGroup}"
type="Active" />
</SelectDialog>
</core:FragmentDefinition>
Fragment code is as shown above. Any idea why localization doesnt work only with fragments?
Thanks,
Rashmi
probably the fragment need an explicit 'set' to the i18n model.
You need to set the fragment as dependant of view, so that it gets the model reference
this.getView().addDependent(fragment);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.