Hello colleagues,
I found the solution for the “type:'sap.ui.model.type.Float'” with TwoWay DataBinding.
I use a changeHandle and I do rebinding for my inputField in this changeHandler:
for(...){ // loop whole list of items
sPathNetAmount = sPathItems +"/"+ zl + "/myField";
var netAmount =//here read the UIControl from the view
netAmount.bindProperty("value", {
path:sPathNetAmount, model: "####",
type: new sap.ui.model.type.Float (
{minFractionDigits:oCurrency.CurrencyDec,
maxFractionDigits:oCurrency.CurrencyDec}), mode:sap.ui.model.BindingMode.TwoWay
});
}
And everything is working fine.
Regards,
Mihai