question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't filter Edm.Decimal in sap.ui.table.Table

See original GitHub issue

OpenUI5 version: 1.48.5

Browser/version (+device/version): Chrome Version 60.0.3112.101 Windows 7

Any other tested browsers/devices(OK/FAIL): Not yet

Steps to reproduce the problem:

Using: sap.ui.table.Table

XML:

<table:Column app:persoKey="Delivery-Column-Quantity" hAlign="End" sortProperty="Quantity" filterProperty="Quantity" width="10%">
    <Label text="{i18n>delivery.content.table.column.qty}"/>
    <table:template>
        <Text text="{Quantity}"/>
    </table:template>
</table:Column>

Using oData to get the values from the Backend via a callFunction. The entityset in the SEGW of the SAP Netweaver backend looks like: image

What is the expected result? Values will be filtered correctly.

What happens instead? Javascript not handled exception will be thrown in the console when I want to filter a colum: image

Any other information? (attach screenshot if possible)

If you want I can try to reproduce it on codepen for example, but It should be very complicated, because the problem is that the type from the backend (Edm.Decimal) will be converted into an string in javascript. Maybe this is the problem?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
goligocommented, Nov 19, 2018

Indeed it should - I just verified that operation mode “Client” is working correctly.

0reactions
mxschmittcommented, Nov 20, 2018

Oh, okay. Issue seems to be fixed now. We also used an real OData v2 service 1 year ago. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

not accepting decimal values in Gateway Calls
But If I remove the decimal values, it is working fine. /sap/opu/odata/sap/ZUI5_MAIN_SRV/salesColl_saveInvoicesSet?$filter=AmountCol eq 1.
Read more >
Visual Filters does not show up in Analytical List Page
Hi, I am trying to make a ALP with compact and visual filters. I have a chart and a table in the content...
Read more >
Smart Table
The sap.ui.comp.smarttable.SmartTable control is used to create different types of tables based on OData metadata. The control allows the user to define ...
Read more >
Smart Table - Fiori Design Guidelines
Sorting, filtering, and column settings are automatically available for all columns in all tables. For single columns, you can remove the sort ...
Read more >
binding type with decimal
The problem is however that the "attachValidationError" event is raised as soon as I type an decimal value in the input field. A...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found