Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
wiki:advanced_searching [2011/06/19 10:17] tony |
wiki:advanced_searching [2017/12/09 14:47] admin |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Installation ===== | ===== Installation ===== | ||
- | In order to use this method the following modules should be included when downloading the grid: Common, Form Edit, filter Plugin. For more information refer to [[Download]] | + | In order to use this method the following modules should be included when downloading the grid: Common, Form Edit, filter Plugin. For more information refer to [[Download]]. |
===== Calling Conventions ===== | ===== Calling Conventions ===== | ||
<code javascript> | <code javascript> | ||
Line 58: | Line 58: | ||
<code html> | <code html> | ||
filters = | filters = | ||
- | {"groupOp":"AND", | + | { |
- | "rules":[ | + | "groupOp":"OR", |
- | {"field":"invdate","op":"ge","data":"2007-10-06"}, | + | "rules":[{"field":"a.id","op":"eq","data":"1"}], |
- | {"field":"invdate","op":"le","data":"2007-10-20"}, | + | "groups":[ |
- | {"field":"name","op":"bw","data":"Client 3"} | + | { |
- | ] | + | "groupOp":"AND", |
- | } | + | "rules":[{"field":"a.id","op":"eq","data":"2"}], |
+ | "groups":[...] | ||
+ | } | ||
+ | ] | ||
+ | } | ||
</code> | </code> | ||
Line 74: | Line 78: | ||
* op - determines the condition of the searching. see the sopt in the [[:wiki:singe_searching#options | options]] | * op - determines the condition of the searching. see the sopt in the [[:wiki:singe_searching#options | options]] | ||
* data - is the entered data to be searched on | * data - is the entered data to be searched on | ||
+ | * groups - set of other // groupOp, rules // elements to define a complex search query |