This topic is locked
[SOLVED]

 Hide search panel

7/14/2014 4:09:46 PM
PHPRunner General questions
W
wpl author

Hi folks,
can anyone think of a possibility to hide search panel when the page is queried by URL like so:



servername/projectname/items_list.php?q=(field1~equals~value1)(field1~equals~value2)(field1~equals~value3)


This will work fine, lest the search panel will appear in open state with the fields to be queried shown with their respective values. I would prefer to have this hidden. I tried (JavaScript OnLoad)



$("[id^='showOptPanel']").click()


But this seems to be only a toggle which will open the panel again on page reload.
Any hint? Thanks.

W
wpl author 7/16/2014



Hi folks,
can anyone think of a possibility to hide search panel when the page is queried by URL like so:



servername/projectname/items_list.php?q=(field1~equals~value1)(field1~equals~value2)(field1~equals~value3)


This will work fine, lest the search panel will appear in open state with the fields to be queried shown with their respective values. I would prefer to have this hidden. I tried (JavaScript OnLoad)



$("[id^='showOptPanel']").click()


But this seems to be only a toggle which will open the panel again on page reload.
Any hint? Thanks.


Well,
finally got it. I should have searched the manual more thoroughly:



var srch = pageObj.getSearchController();

srch.display("hide");


Sorry for bothering