Skip to Content
0

Format Label Currency - SAPUI5

Oct 11, 2017 at 03:04 PM

43

avatar image

I am trying format a LABEL text like a currency, but It's not working

Bellow my JS View

new sap.m.Label({
text: "{MyModel>TOTAL_1}",
type: "sap.ui.model.type.Currency",
formatOptions: {
minIntegerDigits: 3
}
 }),

				
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Rubens Pereira Oct 11, 2017 at 06:10 PM
0

I solved it

	 			  new sap.m.Label({
				       text: {
				       path: "MyModel>TOTAL_1",
				       type: new sap.ui.model.type.Float({
					   maxFractionDigits: 2
				       })
				       }
				  })
Share
10 |10000 characters needed characters left characters exceeded