BUG 000 Add validation to print a dynaform

This commit is contained in:
Julio Cesar Laura
2011-12-02 00:53:49 -04:00
parent 07ee0c00ff
commit 816d40f5e5
13 changed files with 290 additions and 941 deletions

View File

@@ -15,9 +15,35 @@ class dashletOpenVSCompleted implements DashletInterface {
private $greenFrom;
private $greenTo;
public static function getAdditionalFields() {
public static function getAdditionalFields($a) {
$additionalFields = array();
$contextTimeStore = new stdclass();
$contextTimeStore->xtype = 'arraystore';
$contextTimeStore->fields = array('id', 'value');
$contextTimeStore->data = array(array('TODAY', 'Today'),
array('YESTERDAY', 'Yesterday'),
array('THIS_WEEK', 'This week'),
array('PREVIOUS_WEEK', 'Previous Week'),
array('THIS_MONTH', 'This Month'),
array('PREVIOUS_MONTH', 'Previous Month'),
array('THIS_YEAR', 'This Year'),
array('PREVIOUS_YEAR', 'Previous Year'));
$contextTime = new stdclass();
$contextTime->xtype = 'combo';
$contextTime->name = 'DAS_INS_CONTEXT_TIME';
$contextTime->fieldLabel = 'Period';
$contextTime->editable = false;
$contextTime->width = 325;
$contextTime->store = $contextTimeStore;
$contextTime->mode = 'local';
$contextTime->triggerAction = 'all';
$contextTime->value = 'TODAY';
$contextTime->valueField = 'id';
$contextTime->displayField = 'value';
$additionalFields[] = $contextTime;
$redFrom = new stdclass();
$redFrom->xtype = 'numberfield';
$redFrom->name = 'DAS_RED_FROM';