Hi Frederico,
as I mentioned above, it does not seem to work for me. I use XML:
<StandardListItem title="{path: 'someTitle', type : 'sap.ui.model.odata.type.String'}" description="{path: 'someDesc'}" type="Navigation" press="onSearchListItemPressed" iconDensityAware="false" iconInset="false"/>
Other option I have tried is using a custom formatter:
<StandardListItem title="{path: 'someTitle', type : 'formatter: 'zink.utils.StringFormatter.stringFormat''}" description="{path: 'someDesc'}" type="Navigation" press="onSearchListItemPressed" iconDensityAware="false" iconInset="false"/>
The code of my custom formatter, StringFormatter.js looks like this:
sap.ui.define([ 'sap/ui/model/type/String' ], function (String) { "use strict"; var StringFormatter = { stringFormat : function (v) { return v.toString(); } }; return StringFormatter; }, /* bExport= */ true);
Anyway, it seems that the type change is done too late and therefore it has not impact on the filter. I would like to force the data type when binding the model, but I am not sure how to do that ...