We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There seems to be an issue when using the setRulesFromSQL with the not-group plugin. I tried it on this jsfiddle - https://jsfiddle.net/k2f46297/
For example,
$('#queryBuilderGoesHere').queryBuilder('setRulesFromSQL', 'NOT (price>100)');
would change the query to NOT ( ( NOT ( price > 100 ) ) )
NOT ( ( NOT ( price > 100 ) ) )
Here is the script -
var myFilters = [{ id: 'price', label: 'price', type: 'double' }, { id: 'name', label: 'Name', type: 'string' }, { id: 'email', label: 'email', type: 'string' }]; $("#queryBuilderGoesHere").queryBuilder({ plugins: ['not-group'], filters: myFilters }); $('#queryBuilderGoesHere').queryBuilder('setRulesFromSQL', 'NOT (price>100)'); $("#getsql").on('click', function () { var sqlob = $("#queryBuilderGoesHere").queryBuilder("getSQL", false); $("#sql").text(sqlob.sql); });
Thanks!
The text was updated successfully, but these errors were encountered:
By the way, I am using query-builder.standalone.min.js. This is my workaround for now, not ideal but seems to workaround it -
var rule = $('#queryBuilderGoesHere').queryBuilder('getRulesFromSQL','NOT (price>100)'); if (rule != null) { rule.not=false; $('#queryBuilderGoesHere').queryBuilder('setRules', rule); }
Sorry, something went wrong.
<code> is not how you put code in Github, you must use single or triple back quote https://guides.github.com/features/mastering-markdown/#GitHub-flavored-markdown
<code>
I'll work on this.
Thank you!
c50ebf8
Great! @mistic100 , couple questions -
No branches or pull requests
There seems to be an issue when using the setRulesFromSQL with the not-group plugin. I tried it on this jsfiddle - https://jsfiddle.net/k2f46297/
For example,
would change the query to
NOT ( ( NOT ( price > 100 ) ) )
Here is the script -
Thanks!
The text was updated successfully, but these errors were encountered: