How i can customize crosstab-report or list page to show a value of some fields before the main data table or in header and in the footer with ?
You may simply use “Page_DataRendering” and/or “Page_DataRendered” server events.
can any one give any idea or example working? I had tried the following code but it is not working (not showing any thing).
function Page_DataRendering(&$header) {
//$header = “your header”;
$header = "<?php echo '<table style="width: 95%; margin-left: auto; margin-right: auto;">
After removing php echo it is not working also, altho appearing error:
Undefined variable: periodstable_crosstab in … periodstable_crosstab.php on line 2212
Trying to get property ‘officeid’ of non-object in … periodstable_crosstab.php on line 2212
Undefined variable: periodstable_crosstab in … periodstable_crosstab.php on line 2217
Trying to get property ‘cveyear’ of non-object in … periodstable_crosstab.php on line 2217
line 2212 is: $periodstable_crosstab->officeid->GroupValue;
line 2217 is: $periodstable_crosstab->cveyear->GroupViewValue;
line 2219 is: $periodstable_crosstab->vmonth->GroupViewValue;
line 2223 is: $periodstable_crosstab->vweek->GroupViewValue;
The main question is: how I can appear the values of these fields (officeid, cveyear, vmonth and vweek)?
Try CurrentValue:
$periodstable_crosstab->officeid->CurrentValue;
…
Not working, same message but apearing “->CurrentValue;”
Try to display all the properties of the field to make sure which one you can do to get the value, for example:
var_dump($periodstable_crosstab->officeid);
die();