Hi, I found some information about this question at this forum but could not realize till the end.
I have the following task:
With the following code, I can get almost I would like to have
Table::create(array(
"dataStore" => $this->dataStore('recipeDirect'),
"columns" => array(
"recipeName" => array(
"label" => "Name",
"formatValue"=>function($value)
{
return ""; //Make empty column on Table
},
),
"itemName" => array(
"label" => "Item Name"
),
"RecQty" => array(
"type" => "string",
"label" => "Amount",
)
),
"grouping"=>array(
"recipeName"=>array(
"top"=>"<b>{recipeName} Production: $production</b>",
),
),
"removeDuplicate"=>array("recipeName"),
));
I know how to hide repeated values, how to put the recipe name to the group header but how to get the $production value for each recipeName?
Regards, Eugene