export (pdf or xls) displays different data than screen

Questionsexport (pdf or xls) displays different data than screen
Roger Schroeder asked 9 years ago

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

1 Answers
Abu Ghufran answered 9 years ago

Emailed you updated build, that should fix it.

Your Answer

15 + 2 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?