Hello,
I would like to cal a php function using this method:
$col = array();
$col[“title”] = “Gender”;
$col[“name”] = “gender”;
$col[“width”] = “100”;
$col[“search”] = true;
$col[“editable”] = true;
$col[“export”] = false; // this column will not be exported
$col[“link”] = “http://localhost/?id={gender}”; // e.g. http://domain.com?id={id} given that, there is a column with $col[“name”] = “id” exist
$col[“linkoptions”] = “target=’_blank'”; // extra params with <a> tag
$cols[] = $col;
The parameter {gender}, will be received by the function to execute MySQL Query
Regards!
Hi,
For this you can call a JS function on click. Inside JS you need to call ajax to some URL which transfers control to php where you can execute your php code.
You need to write custom code as it is not supported by library itself.
Ref: Get Next ID to autofill Add form, See line 25,35,63 – https://www.gridphp.com (github.com)