HOW TO to solve problems with exporting?

Talk and info about common issues

Moderators: ne_moj, zewa, vadimako, ne_moj, zewa, vadimako

administrator
Site Admin
Site Admin
Posts: 5992
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO to solve problems with exporting?

Postby administrator » Oct 30th, '11, 22:17

Problem #1:
Some problems with exporting may be caused by errors in passing session variables to script/download.php file.

To solve this issue do following:
1. Open datagrid.class.php file, find

Code: Select all

$this->exportMethod = "session";

and replace it with

Code: Select all

$this->exportMethod = "links";


2. 1. Open scripts/download.php file, find

Code: Select all

$export_method = "session";

and replace it with

Code: Select all

$export_method = "links";


Problem #2:
This exporting links are working, but open an empty(index) page.

If you access the page, where DataGrid is found using some parameters in URL, for example my_page.php?param1=x&param2=y etc.
You must define implicit this variable for datagrid to recognize it.

Example:
You have following URL to access you page: index.php?component=blog&status=1&id=47
The definition must be following:
$http_get_vars = array("component", "status", "id");
$dgrid->SetHttpGetVars($http_get_vars);


Problem #3:
Some browsers (e.g. IE6) block opening of exporting popup window

To solve this issue do following (special thanks for Felipe A.):
1. Open scripts/download.php.
2. Find there following code and remove comments.
## Special headers for IE 6
// header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
// header('Pragma: public');

Return to “ApPHP DataGrid {HOW TO}”