Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9760

Re: sap ui5 - type.Float with dynamical formatOptions value

$
0
0

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



Viewing all articles
Browse latest Browse all 9760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>