widgetArgs.inputSize = OILS_RPT_TRANSFORMS[transform].input_size;
switch(transform) {
+ case 'date':
+ widgetArgs.type = 'date';
+ atomicWidget = oilsRptTruncPicker;
+ break;
case 'hour_trunc':
widgetArgs.type = 'hour';
atomicWidget = oilsRptTruncPicker;
widgetArgs.start = 0;
atomicWidget = oilsRptNumberWidget
break;
+
+
}
if( field.selector ) {
if(this.type == 'month') this.label = 'Month(s)';
if(this.type == 'quarter') this.label = 'Quarter(s)';
if(this.type == 'year') this.label = 'Year(s)';
+ if(this.type == 'date') this.label = 'Day(s)';
}
oilsRptTruncPicker.prototype.draw = function() {