Hi,
I have a table that has multiple columns. One of the columns is number that is decimal data type. So even if the number is 4 it gets stored in the database as 4.00. I am using the search bar widget to give the user the option to filter the table by any value. What i am facing is that if the user inserts 4 nothing happens, only if the user inserts 4. then then it filters it correct although the user only see 4 and not 4.00. Seems like it does not filter if i just insert one number. Example if i insert 4 i want all rows that have a 4.
Current filter is DecimalToText(Table.Number) like "%" + SearchKeyword + "%"
Any help or workaround would be highly appreciated.
Thank you,
Lourenco Matalonga
Hi @Lourenço Matalonga ,
i can't reproduce, when i test, it just filters correctly, can you share an oml demonstrating the problem ?
some thoughts :
Dorine
Hi @Lourenço Matalonga It is working for me by adding the filter what you have mentioned above and on search client action i am refreshing the aggregateBelow i have attached an oml please check it once.Asad
Hi @Lourenço Matalonga,
Can you try with this:
1. DecimalToText(Trunc(Table.Number)) like "%" + SearchKeyword + "%"
Or
2. DecimalToText(Table.Number) like "%" + DecimalToText(TextToDecimal( SearchKeyword)) + "%"
or
3. Trunc(Table.Number) = Trunc(SearchKeyword) -- it won't work for exact match, instead fetch all matching rows