ParamQuery grid support forum

General Category => Bug Report => Topic started by: vsa on October 22, 2021, 03:35:38 pm

Title: Error in formula parsing
Post by: vsa on October 22, 2021, 03:35:38 pm
Hello,

There is an important and quite weird bug giving an error if there is a specific string ("F" and probably others?):

Code: [Select]
var data = [
    { col1: "S", col2: null, col3: null, col4: null,           
        pq_fn: {                     
                col2: 'IF(A1="S", 1, 0)',// OK
                col3: 'IF(A1="F", 2, 0)',// NOT OK . Returns: Unexpected token ')'
                col4: 'IF(A1="f", 3, 0)',// OK
        }
    }
];

Here is a link to jsFiddle:
https://jsfiddle.net/93pe4n7v/ (https://jsfiddle.net/93pe4n7v/)

Thank you in advance.

Sincerely
Title: Re: Error in formula parsing
Post by: paramvir on October 24, 2021, 09:55:29 pm
Thanks for reporting issue, it has been fixed in the upcoming version and would be released in few days.
Title: Re: Error in formula parsing
Post by: paramvir on November 29, 2021, 10:57:10 pm
This has been fixed in v8.2.0