This support forum belongs to the Query Builder Gallery Module.
Query Builder has a bug tracker here: http://github.com/jafl/yui-modules/issues
| Page 1 of 1 | [ 4 posts ] |
|
My page has an instant search and an advanced search. One can switch from the instant to advanced and back.
I would like when switching from the instant to advanced to refresh the advanced query UI to reflect the current instant search criteria. For example, when the instant search query equals "abc", the respective advanced search query should refresh to "Item contains abc". To get the general idea see http://ec2-23-22-204-49.compute-1.amazo ... ntory.html What I do not understand is how to change the query programmatically? Thanks. |
|
Use reset() to clear the QueryBuilder and then appendNew() to add items:
http://jafl.github.com/yui3-gallery/yui ... _appendNew |
|
I must be missing something, because I still do not understand how to set the query builder to display Item contains abc.
Calling appendNew allows to select the Item. But it does not seem to allow to choose the operation. Could you give an example, please? |
|
The "value" argument to appendNew() is passed to the plugin to initialize the values beyond the first column. Each plugin documents what is required. For example, String wants [ operator_name, value ]:
http://jafl.github.com/yui3-gallery/yui ... tring.html And Select wants just the value: http://jafl.github.com/yui3-gallery/yui ... elect.html So, for String, you would call appendNew(var_name, [ operator_name, value ]) |
| Page 1 of 1 | [ 4 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group