Hello,
I have implemented the QueryBuilder with a method for the ruleChange event that is supposed to use getSqlFromRules to display the SQL query in a separate div on the page.
However, when I create a boolean condition and try to set the value to False, I am not getting the updated SQL query. The same thing happens if I try to select a different boolean field and set that to either value.
I see the following errors in the log, maybe they are related?
Thank you,
KS
Hi KS,
We have attempted to replicate the issue on our end but were unable to do so. We have prepared a sample based on your provided information and to show how QueryBuilder returns SQL query from ruleChange event component without any error on our end.
Sample link: https://stackblitz.com/edit/angular-fuo8mm?file=src%2Fapp.component.html
If still you’re facing the issue, please share the issue replicable sample or replicate the issue on our sample with replication steps. Based on that we will check and provide you a better solution quickly.
Regards,
YuvanShankar A
Hello,
The sample link you provided has nothing to do with the Query Builder, which is what I am having an issue with.
Here is a sample I have altered to show the issue: https://stackblitz.com/edit/angular-unapaj-3phuo9?file=app.component.html,app.component.ts,app.component.css,app%2Fapp.module.ts
Please follow the below steps to see what I mean:
Please see below for the screenshot of the errors that occur following the above steps (up to step 6):
And this is what happens when the value is toggled to anything else after this point:
Thank you,
KS
KS,
We have confirmed the issue as “script error thrown while changing Boolean value in dropdowntree fieldMode of QB" and logged a defect report. We will include the fix for this issue in upcoming weekly patch release scheduled for 16th of August 2023.
You will be informed regarding this once the fix is published.
Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”
Hi KS,
We are glad to announce that our weekly patch release (22.2.9) has been rolled out. We have included the fix for this “script error thrown while changing Boolean value in dropdowntree fieldMode of QB” issue in this release. So, we suggest you upgrade our Syncfusion packages to our latest version to resolve this issue on your end (22.2.9).
Release notes: https://ej2.syncfusion.com/angular/documentation/release-notes/22.2.9/?type=all#querybuilder
Sample link: https://stackblitz.com/edit/angular-unapaj-cnfr3t?file=app.component.html
Package link: https://www.npmjs.com/package/@syncfusion/ej2-angular-querybuilder