'|xns' : 'Roo.data',
data : [
[ 'ComboBox', "ComboBox"],
+ [ 'ComboBoxArray', "ComboBoxArray"]
[ 'TextField' , "TextField"],
[ 'NumberField', "NumberField"],
[ 'TextArea', "TextArea"],
var r = data[k];
var has_s = typeof(r.relates_to_schema) != 'undefined';
+ Roo.log(r.Type);
var field_type = 'TextField';
if (r.Type == 'text'){
field_type = 'ComboBox';
}
+ if(r.Field == 'id'){ // usually 'id' is hidden on the form
+ field_type = 'Hidden';
+ }
+
var o = {
type : r.Type,
title : r.Field,
width : 200,
- ftype : 'TextField',
+ ftype : field_type,
display_field : rc, //r.Field + '_display_name',
relates_to_table : rt,
relates_to_col : rc,