Using SfTreeGrid, with SfDataManager (ODataV4Adaptor) datasource, if one filters a string field which contains numeric data, the URI is incorrectly generated without quotes, causing failure.
e.g. 1) If you enable filtering on a SFTreeGrid with OdataV4 datasource, and filter a string column, with the value 1004, the following URI is generated, which fails:
/odata/GlAccounts?$count=true&$filter=(ID%20eq%201001)
however, if one filters for value a1, the correct URI is generated (with quotes)
/odata/GlAccounts?$count=true&$filter=Parent%20eq%20%27a1%27
e.g. 2) the same failure happens if the TreeGrid has a string primary key, populated with numeric looking strings. It tries to call them as integers, which causes OData controllers to fail request.
Please advise.
Hi Pon,
Please find attached example solution to demonstrate the problem.
Hi Phil,
Sorry for
the inconvenience caused.
Due to some internal complexities, we could not include the fix as promised. We are currently working on it high priority and will include it in the weekly patch scheduled to be rolled out by 13th April 2022.
Regards,
Pon selva
Hi Phil,
We appreciate your patience.
We are glad to announce that fix for the issue “Script error thrown while expand and filter the string field records in oDataV4 adaptor” has been rolled out in our patch release. We request you to update to our latest version "20.1.48".
Kindly get back to us for further assistance.
Regards,
Pon selva
Thanks Pon,
I have downloaded & checked functionality, and DOES appear to be working OK now.
Regards,
Phil
Hi Phil,
Thanks for your update. We are glad to know that your reported problem has been resolved. Please get back to us if you need any further assistance.
Regards,
Farveen sulthana T