cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 exponent in Input field

jakob_steen-petersen
Active Participant
0 Kudos

Hi

I have an Input Field like this:

<Input id="input6" value="{path: 'InputTotal', formatOptions: { minIntegerDigits: 2, maxIntegerDigits:         2, groupingEnabled: false } }"
                                 editable="{Totalaktiv}"
                                 textAlign="Right"
                                 />

Odata InputTotal is defined as edm.Float

Problem is that if value in database i.ex. is 3000 then it is displayed like this:

What is wrong?

boghyon
Product and Topic Expert
Product and Topic Expert

OData spec doesn't mention "Edm.Float" type. Do you mean "Edm.Double"? Is the service OData V2? Or V4?

jakob_steen-petersen
Active Participant
0 Kudos

edm:Float it is...

But never mind - i changed to edm.Decimal and did like this

<Input id="input6"
                                  editable="{Totalaktiv}"
                                  textAlign="Right"
                                  value="{ parts: [{path: 'InputTotal'}], type: 'sap.ui.model.type.Currency', formatOptions: {showMeasure: false } }" 
                            />

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member450774
Participant
0 Kudos

Hi,

Try using

type:'sap.ui.model.odata.type.Decimal'

Hope this helped you!

Rajesh