Update query builder filters
Is it possible to update filters after already done so? How can I go about doing that?
If not, is it possible to remove query builder (not same as reset) from element so that I can set a new filter to it?
Reason being is that my query builder filters are dependent on another value that will be selected by a user.
Doc, doc, doc
Update filters : http://querybuilder.js.org/plugins.html#change-filters
Destroy: http://querybuilder.js.org/index.html#methods
My apology but this is perfect. Thanks so much.
I have a MVC site and am using queryBuilder to display rows and then in the rows displayed there is an Edit button where the user can Edit that specific row, which takes them to a new page. Once they are done editing the row and click save they are brought back to the queryBuilder page.
How do I repopulate the queryBuilder object with the users previous filters. I tried using the jqueryQueryBuilder.queryBuilder('setFilters', true, {} ) but it gives me the following error: jQuery.Deferred exception: e.forEach is not a function TypeError: e.forEach is not a function at c.checkFilters
I have retained the filterRules as a json object and pass it to the edit page and back to the queryBuilder page and it all valid JSON so not sure what I am missing?
Use "setRules" not "setFilters"
And please to not dig 4 years old closed issues.
Thanks so much it works perfectly!!!
Bob Van Roekel, MSIS Senior Programmer/Analyst, Application Engineering Center of Excellence Syneos Health Mobile +1 605 215 1997 [email protected]mailto:[email protected]
From: Damien Sorel [mailto:[email protected]] Sent: Thursday, June 06, 2019 12:17 PM To: mistic100/jQuery-QueryBuilder Cc: Van Roekel, Robert; Comment Subject: [EXTERNAL] Re: [mistic100/jQuery-QueryBuilder] Update query builder filters (#168)
Use "setRules" not "setFilters"
And please to not dig 4 years old closed issues.
— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_mistic100_jQuery-2DQueryBuilder_issues_168-3Femail-5Fsource-3Dnotifications-26email-5Ftoken-3DAMIKGZG44NUO2L5VED7VOBDPZFBA5A5CNFSM4BPUURC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXDRP2I-23issuecomment-2D499587049&d=DwMCaQ&c=wqGKYhkKSiiQIQmEqzxu6JwrDQmsHd7dKjIGzaVtjMI&r=umgnKvnEQ1csQ4e3Pza-vT5-DoTCP2swBwFnIOoATsPGWxrNBR8mqbFey20MzJFc&m=jLCnei235UgSb49JNr16i1dEv79O3_7wUHHslm2xyBw&s=GpzBn6oYZDO6Qo_WPu8n8FQcY7ZbGJeTKr6HZg7BACI&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AMIKGZGSSVO4TGQXSVHVLILPZFBA5ANCNFSM4BPUURCQ&d=DwMCaQ&c=wqGKYhkKSiiQIQmEqzxu6JwrDQmsHd7dKjIGzaVtjMI&r=umgnKvnEQ1csQ4e3Pza-vT5-DoTCP2swBwFnIOoATsPGWxrNBR8mqbFey20MzJFc&m=jLCnei235UgSb49JNr16i1dEv79O3_7wUHHslm2xyBw&s=quPtjn3oA3H6lxxOnb_HhrcKjaYbWOOgg-hoM2AFW5U&e=.