- Posts: 4
- Thank you received: 0
Hi Support,
I need some assistance in how to link back to your ToolsJX-grid-page and preserving the original search text (data_search).
See the link marked with yellow below…
http://localhost/index.php?option=com_content&view=article&id=9&Itemid=106&lang=en&i=35775
<form action="index.php?option=com_content&view=article&id=2&data_search=<?php echo $session->get('SearchString');?>" method="post" enctype="multipart/form-data">
<input type=submit value="Back"><br>
</form>
// session variables setup for data_search
$session = JFactory::getSession();
$session->set('SearchString', htmlspecialchars($_GET["data_search"]));
Please Log in or Create an account to join the conversation.
Sorry for late response. If you are not using Advanced Filters, you have to set two get parameters in the url: s_f and data_search.
mysite.com/mygridpage?s_f=searchfield&data_search=searchstring
Please Log in or Create an account to join the conversation.
Thanks for your answer.
Now my back-link looks like this and it PARTLY works.
<a href="http://localhost/index.php?option=com_content&view=article&id=2&Itemid=106&lang=en&s_f=searchfield&data_search=YYY">Back2</a><br>
Please Log in or Create an account to join the conversation.
Hi,
It should search automatically. Do you have this somewhere online?
Please Log in or Create an account to join the conversation.
Thank you.
That did the trick.
I forgot to handle the attributes right
/index.php?option=com_content&view=article&id=3&Itemid=107&lang=en&s_f=batch&data_search=1A
Please Log in or Create an account to join the conversation.