QPM Package /
QSummaryGrid (Custom QForm and QControls)
This is a basic QDataGrid with an optional footer that allows for you to Sum or average the column by default or use your own custom function on the column array.
There are 3 basic functions: SumTotal, AverageTotal, ShowString
* If you want to sum the data in the columns:
* $this->dtgDefault->AddColumn(new QDataGridColumn('Score', '<?= $_ITEM->Score ?>'), 'SumTotal');
* If you want to average the data in the columns:
* $this->dtgDefault->AddColumn(new QDataGridColumn('Percentage', '<?= $_ITEM->Percentage ?>'), 'AverageTotal');
* If you just want to put a string in the column footer:
* $this->dtgDefault->AddColumn(new QDataGridColumn('Id', '<?= $_ITEM->Id ?>', 'Width=200'), 'ShowString', 'Totals:');
* If you want to create/use your own custom function....
* $this->dtgDefault->AddColumn(new QDataGridColumn('Score', '<?= $_ITEM->Score ?>'), 'CustomSumFunction', 'additional_args', $this);
To download and install any of the QPM packages below, use the qpm-download command in your Qcodo installation, for example:
qcodo qpm-download socc78/qsummarygrid
To upload your own update or version for this QPM package, use the qpm-upload command in your Qcodo installation, for example:
qcodo qpm-upload -p your-password your-username/qsummarygrid
(Note that the "qcodo" command refers to the qcodo or qcodo.bat script in your cli directory.)
Comments
comments:
2 comments
|
last: about 2 years ago
#1 | ‹‹ Qcodo System Message ››
Monday, January 3, 2011, 12:06 PM PST
A new version of this package was uploaded by Chris Peterson
#2 | ‹‹ Qcodo System Message ››
Tuesday, January 4, 2011, 12:08 AM PST
A new version of this package was uploaded by Chris Peterson