Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Thx for your hint! I put the removeDuplicate property into my code as follows but however it does not work:
Table::create(array(
"dataStore"=>$this->dataStore('Reporting.autorep_v_0_Bestaende_Table'),
"showFooter"=>"bottom",
"columns"=>array(
"WerbegruppeVerbund"=>array(
"label"=>"Werbegruppe",
//"formatValue"=>function($value)
//{
// return ""; //Leere Spalte in der Tabelle
//},
//"footerText"=>"<span style='font-size:150%;'><b>".$Werbegruppe_Verbund."</b></span>",
),
"NikonKdName"=>array(
"label"=>"Kundenname",
),
"NikonOrt"=>array(
"label"=>"Kundenort",
),
"NikonArtBez"=>array(
"label"=>"Artikel",
),
"BestandHaendler_aktuell"=>array(
"label"=>"Bestand Händler",
//"footer"=>"sum",
//"footerText"=>"<span style='font-size:150%;'><b>@value</b></span>",
"cssStyle"=>"text-align:right;font-weight:bold;font-size:100%;",
),
"BestandZentrale_aktuell"=>array(
"label"=>"Bestand Zentrale",
//"footer"=>"sum",
//"footerText"=>"<span style='font-size:150%;'><b>@value</b></span>",
"cssStyle"=>"text-align:right;font-weight:bold;font-size:100%;",
),
"removeDuplicate"=>array("WerbegruppeVerbund"),
)));
Here is still the output with 2 x "Einzelhaus", 3 x "Expert Bening", 2 x "Expert Heinze & Bolek" (in the column Werbegruppe):
Any idea how to fix this?
I put it now it directly after the "colums" but the result is excat the same like above:
Table::create(array(
"dataStore"=>$this->dataStore('Reporting.autorep_v_0_Bestaende_Table'),
"showFooter"=>"bottom",
"columns"=>array(
"WerbegruppeVerbund"=>array(
"label"=>"Werbegruppe",
//"formatValue"=>function($value)
//{
// return ""; //Leere Spalte in der Tabelle
//},
//"footerText"=>"<span style='font-size:150%;'><b>".$Werbegruppe_Verbund."</b></span>",
),
"NikonKdName"=>array(
"label"=>"Kundenname",
),
"NikonOrt"=>array(
"label"=>"Kundenort",
),
"NikonArtBez"=>array(
"label"=>"Artikel",
),
"BestandHaendler_aktuell"=>array(
"label"=>"Bestand Händler",
//"footer"=>"sum",
//"footerText"=>"<span style='font-size:150%;'><b>@value</b></span>",
"cssStyle"=>"text-align:right;font-weight:bold;font-size:100%;",
),
"BestandZentrale_aktuell"=>array(
"label"=>"Bestand Zentrale",
//"footer"=>"sum",
//"footerText"=>"<span style='font-size:150%;'><b>@value</b></span>",
"cssStyle"=>"text-align:right;font-weight:bold;font-size:100%;",
),
),
"removeDuplicate"=>array("WerbegruppeVerbund"),
));
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo