Hi,
I need to link to a php page and pass the cell value as a URL parameter. In the forum I found this answer from Abu:
$col["link"] = "link.php?list1_columname={columname}&c=". $_GET["code"];
But I'm unclear what some of the variables are:
list1_coulumname
{columname} and
"code"
In my application the table field is "idx" the title of the column on the grid is "App Number" and the URL parameter I want to pass is "app=insert value of idx here" to a php page named edit.php. For example, if the cell contained the value 1234 I want the cell to become a link to edit.php?app=1234 when the user clicked the cell.
How do I do that? Thanks in advance for any help. Sorry, still a NOOB here and trying to learn as fast as I can.
It works this way:
$col["link"] = "http://google.com/?id={client_id}";
Where client_id is $col["name"] property of grid column.
I guess this feature is part of full version. Please verify.
along with link set linkoptions:
$col["link"] = "http://google.com/?id={client_id}";
$col["linkoptions"] = "target='_blank'"; // extra params with <a> tag
You can also use persist settings feature. Refer demos/misc/persist-settings.php
Well, after all this doesn't quite solve the problem. When the use clicks the link it does take them to the intended page. But when they use the back button to get back to the grid, the grid has lost all it's filter settings, column sizing, etc.
a) is there a way to preserve those settings in session variables/cookies?
b) is there a way to open the selected URL in a new window/browser session?