I want to show the selected search options in table header when I export a table. For example if I select a date range in search, the exported table should display the selected date range in the header of table.
You can get your where clause by:
$this->getSessionWhere();And use Page_DataRendering server event to add your header when export. See Server event and Client script in help file.
This method shows part of SQL request and is bad for multi-language projects.
Very good method is in PHP Report Maker. Advanced Setting → “Show current filter” .
Can this be done in PHPMaker ?
I don’t see there is such option for PHPMaker. If you want to export with your filter setting, you have to add by Page_DataRendering server event.
danielc wrote:
You can get your where clause by:
$this->getSessionWhere();> And use Page_DataRendering server event to add your header when export. See Server event and Client script in help file.
Useful.