Details
-
Type: Improvement
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: unspecified
-
Fix Version/s: None
-
Component/s: Performance Reports
-
Labels:None
-
Environment:
Operating System: Windows XP
Platform: PC
-
Bugzilla Id:375
Description
Collapsable Columns can be acheived through PHP conditional (if-else) logic.
By simply setting a column to "no" (either by URL or session variable), you can
set a report to load again and omit a particular column. The condition would
have to be set twice. One for the contents of column header. The other for the
column's looped data.
For example:
// Stupid Silly Talky Quick Code
// For Header
if (show_column_x = no)
{ return $rowspans $uncollapse_image $nbsp }else
{ $show_column header && $collapse_image };
// For Looped Data
if (show_column_x = no)
{ return $rowspans and $nbsp }else
{ $show_column_loopy_data && $collapse_image };
// Of course untested and not real. But the logic gets the point across.