add base initializeParameters method on columnForm
@@ -16,11 +16,19 @@ export abstract class ColumnForm {
this.fieldName = ColumnUtil.getColumnFieldName(column);
this.dataType = column.dataType;
this.dataCategory = ColumnUtil.fromDataType(this.dataType);
+ this.initializeParameters();
this.formConfig =this.buildForm();
}
abstract buildForm():FormConfig;
+ /**
+ * initialize any parameters here that you need to reference in the formConfig
+ */
+ initializeParameters():void{
+
+ }
+
getColumnNames() : string[] {
return (<any>this).controller.engine.getCols().map( (f:QueryResultColumn)=> { return f.field });
}
@@ -36,4 +44,5 @@ export abstract class ColumnForm {
});
}
+
}
\ No newline at end of file
