This topic is locked

Column headers in export

2/22/2015 4:01:26 AM
PHPRunner General questions
W
wpl author

Hi list,
I would like to hide certain columns dynamically (depending on the logged-in user) upon export. I manage to hide the data part by manipulating $values in the "BeforeOut" event. However, the field names are always output (be it xml, xls, csv,...) because they default to the columns configured on the "fields" tab in PHPRunner for the "Export" page and are written to "tablename_export.php" seemingly before "BeforeOut" is called. Where would I start to change this if I do not want to edit dozens of "tablename_export.php" manually (and over and over again)?
I'm on PHPRunner 7.1, latest build.
Thanks

Sergey Kornilov admin 2/22/2015

I guess your best bet is to create a custom view for second group of users that do not have access to all fields. In that custom view you can choose a totally different set of fields to be displayed and exported.

W
wpl author 2/24/2015

Sergey,
thanks. But this seems very tedious when I think of almost hundred tables for which I then would need at least two custom views each. Because this is the only place where column/field visibility cannot be changed programmatically (in contrast to list, add, edit, view, print pages), I think I will live with this fact.
Regards

Sergey Kornilov admin 2/24/2015

We never had such a request but we will consider adding such a functionality.

W
wpl author 2/24/2015



We never had such a request but we will consider adding such a functionality.


Sergey,
thanks. It would really be nice when export would seamlessly intergrate with the events at hand on other pages.
Regards