Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In case of <em>advanced searching</em> (which you have activated by setting <code>multipleGroup</code> to <code>true</code>) jqGrid is not using the parameters you have mentioned, but it is using <code>filters</code> parameter. This parameter will contain an object describing the selected search options, something similiar to this:</p> <pre><code>{ "groupOp":"OR", "rules":[{"field":"a.id","op":"eq","data":"1"}], "groups":[ { "groupOp":"AND", "rules":[{"field":"a.id","op":"eq","data":"2"}], "groups":[...] } ] } </code></pre> <p>Of course the object will be serialized into JSON so you need to deserialize it on server side. The fields have following meaning: </p> <ul> <li><code>groupOp</code> determines which operator should be used between the rules and groups within the scope</li> <li><code>rules</code> contains an array of filter rulles</li> <li><code>field</code> this is the equivalent of <code>searchField</code> for the rule</li> <li><code>op</code> this is the equivalent of <code>searchOper</code> for the rule</li> <li><code>data this is the equivalent of</code>searchString` for the rule</li> <li><code>groups</code> contains an array of sub groups</li> </ul> <p>You can read more <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki%3aadvanced_searching" rel="nofollow">here</a>.</p> <p><strong>UPDATE</strong></p> <p>You need to add your parameters to the URL you are redirecting for, for example in case of <em>single searching</em> it might look like this:</p> <pre><code>onSearch: function(event,data) { var gridPostData = $("#gridtable").getGridParam("postData"); document.location.href = "jasperPdf?searchField=" + encodeURIComponent(gridPostData.searchField) + "&amp;searchOper=" + encodeURIComponent(gridPostData.searchOper) + "&amp;searchString=" + encodeURIComponent(gridPostData.searchString); } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload