This topic is locked
[SOLVED]

 Table in dashboard

10/13/2014 12:35:38 PM
PHPRunner General questions
W
wpl author

Hello list,
first, congratulations to the developers for having done a really good job with PHPRunner 8: a new library for pdf generation (which seems to run much better with dompdf than before), smoother interface for the developer in many places, dashboards. This brings me to my question: how can I tell if a table is displayed inside a dashboard or not? I would like to show/hide columns of a listpage in a dashboard depending on the logged-in user, but different from the situation when the table is displayed "stand-alone". I.e. when displayed "normally", show columns A, B, C to user X but when in dashboard, show only columns A and C to the same user. Is this possible?
Thanks

Sergey Kornilov admin 10/13/2014

Here is how you can do this:

if (postvalue("table")=="Dashboard") {

// do something

}
W
wpl author 10/13/2014



Here is how you can do this:

if (postvalue("table")=="Dashboard") {

// do something

}




Sergey,
looks good, I will give it a try.
Thanks

W
wpl author 10/14/2014



Here is how you can do this:

if (postvalue("table")=="Dashboard") {

// do something

}




Sergey,
it works - thanks a lot.