Data on screen displays correctly, but when exporting to .pdf or .xls Location column data displayed is repeat of 1st entry for ALL entries. As follows:
SCREEN DISPLAY EXAMPLE
ID STATE LOCATION
1 SD Joes Garage
2 MN Mikes Cafe
3 ND Lost 40
EXPORT DISPLAY EXAMPLE
ID STATE LOCATION
1 SD Joes Garage
2 MN Joes Garage
3 ND Joes Garage
For column Location I have the following settings:
$col = array();
$col["title"] = "Location";
$col["name"] = "loc";
$col["width"] = "30";
$col["editable"] = false; // this column is not editable
$col["search"] = false; // this column is not searchable
$col["export"] = true;
$col["condition"] = array('$row["weblink"] == ""', '{loc}', "<a href='{weblink}' target='_blank'>{loc}</a>");
$cols[] = $col;
The condition statement draws link data from column weblink with following settings:
$col = array();
$col["title"] = "Website";
$col["name"] = "weblink";
$col["width"] = "20";
$col["hidden"] = true;
$col["search"] = false;
$col["sortable"] = false;
$col["editable"] = false; // this column is not editable
$col["link"] = "{weblink}";
$col["linkoptions"] = "target='_blank'"; // extra params with <a> tag
$col["export"] = false;
$cols[] = $col;
Thank you for any time and assistance you can provide.
R