slemmon
23 Jan 2012, 3:19 PM
Did anyone find a workaround for the error:
Ext.util.CSS.getRule("." + Ext.baseCSSPrefix + "form-trigger") is undefined
in B1 or is this a good instance to hold tight for B2 and see what happens?
Ext.widget('window', {
title: 'My Window'
, height: 300
, width: 530
, autoShow: true
, layout: 'fit'
, items: [{
xtype: 'tabpanel'
, items: [{
xtype: 'panel'
, title: 'Tab'
, bodyCls: 'stripey-bg'
, layout: 'hbox'
, bodyPadding: 10
, autoScroll: true
, dockedItems: [{
xtype: 'toolbar'
, dock: 'right'
, cls: 'light-toolbar light-toolbar-right light-toolbar-left'
, items: [{
text: 'Add'
, handler: function (btn) {
var store= btn.up('panel').down('grid').getStore();
store.add({foo: 'bar2'})
}
}, {
text: 'Del'
}]
}]
, items: [{
xtype: 'form'
, border: false
, flex: 2
, defaultType: 'fieldcontainer'
, layout: 'anchor'
, anchor: '100%'
, defaults: {
layout: 'hbox'
, defaultType: 'radiofield'
, labelWidth: 140
, defaults: { flex: 1 }
}
, items: [{
xtype: 'textfield'
, fieldLabel: 'App Name'
, name: 'APP_NM_TXT'
, hidden: true
, validator: function (val) {
if (this.isHidden()) {
return true;
} else {
if (val.length > 0) {
return true;
} else {
return 'The app name field is required.';
}
}
}
}, {
xtype: 'numberfield'
, fieldLabel: 'Max Session Min.'
, name: 'MAX_SESSION_MIN_NO'
, value: 480
, minValue: 0
, allowBlank: false
}, {
xtype: 'numberfield'
, fieldLabel: 'Total Attempts'
, name: 'TTL_ATTEMPTS_NO'
, value: 3
, minValue: 0
, allowBlank: false
}, {
fieldLabel: 'Multi Logon'
, items: [{
boxLabel: 'T'
, name: 'MULTI_LOGON_IND'
, inputValue: 'T'
}, {
boxLabel: 'F'
, name: 'MULTI_LOGON_IND'
, inputValue: 'F'
, checked: true
}]
}, {
fieldLabel: 'Persist Session'
, items: [{
boxLabel: 'T'
, name: 'PERSIST_SESSION_IND'
, inputValue: 'T'
, checked: true
}, {
boxLabel: 'F'
, name: 'PERSIST_SESSION_IND'
, inputValue: 'F'
}]
}, {
fieldLabel: 'Null Token'
, items: [{
boxLabel: 'T'
, name: 'NULL_TOKEN_IND'
, inputValue: 'T'
}, {
boxLabel: 'F'
, name: 'NULL_TOKEN_IND'
, inputValue: 'F'
, checked: true
}]
}, {
fieldLabel: 'Use Last Session'
, items: [{
boxLabel: 'T'
, name: 'USE_LST_SESSION_IND'
, inputValue: 'T'
, checked: true
}, {
boxLabel: 'F'
, name: 'USE_LST_SESSION_IND'
, inputValue: 'F'
}]
}, {
xtype: 'textfield'
, fieldLabel: 'Key Text'
, name: 'KEY_TXT'
}]
}, {
xtype: 'grid'
, flex: 1
, columns: [{text: 'Header', dataIndex: 'foo'}]
, store: {
fields: ['foo']
, data: [{
foo: 'bar'
}]
}
}]
}]
}]
})
Ext.util.CSS.getRule("." + Ext.baseCSSPrefix + "form-trigger") is undefined
in B1 or is this a good instance to hold tight for B2 and see what happens?
Ext.widget('window', {
title: 'My Window'
, height: 300
, width: 530
, autoShow: true
, layout: 'fit'
, items: [{
xtype: 'tabpanel'
, items: [{
xtype: 'panel'
, title: 'Tab'
, bodyCls: 'stripey-bg'
, layout: 'hbox'
, bodyPadding: 10
, autoScroll: true
, dockedItems: [{
xtype: 'toolbar'
, dock: 'right'
, cls: 'light-toolbar light-toolbar-right light-toolbar-left'
, items: [{
text: 'Add'
, handler: function (btn) {
var store= btn.up('panel').down('grid').getStore();
store.add({foo: 'bar2'})
}
}, {
text: 'Del'
}]
}]
, items: [{
xtype: 'form'
, border: false
, flex: 2
, defaultType: 'fieldcontainer'
, layout: 'anchor'
, anchor: '100%'
, defaults: {
layout: 'hbox'
, defaultType: 'radiofield'
, labelWidth: 140
, defaults: { flex: 1 }
}
, items: [{
xtype: 'textfield'
, fieldLabel: 'App Name'
, name: 'APP_NM_TXT'
, hidden: true
, validator: function (val) {
if (this.isHidden()) {
return true;
} else {
if (val.length > 0) {
return true;
} else {
return 'The app name field is required.';
}
}
}
}, {
xtype: 'numberfield'
, fieldLabel: 'Max Session Min.'
, name: 'MAX_SESSION_MIN_NO'
, value: 480
, minValue: 0
, allowBlank: false
}, {
xtype: 'numberfield'
, fieldLabel: 'Total Attempts'
, name: 'TTL_ATTEMPTS_NO'
, value: 3
, minValue: 0
, allowBlank: false
}, {
fieldLabel: 'Multi Logon'
, items: [{
boxLabel: 'T'
, name: 'MULTI_LOGON_IND'
, inputValue: 'T'
}, {
boxLabel: 'F'
, name: 'MULTI_LOGON_IND'
, inputValue: 'F'
, checked: true
}]
}, {
fieldLabel: 'Persist Session'
, items: [{
boxLabel: 'T'
, name: 'PERSIST_SESSION_IND'
, inputValue: 'T'
, checked: true
}, {
boxLabel: 'F'
, name: 'PERSIST_SESSION_IND'
, inputValue: 'F'
}]
}, {
fieldLabel: 'Null Token'
, items: [{
boxLabel: 'T'
, name: 'NULL_TOKEN_IND'
, inputValue: 'T'
}, {
boxLabel: 'F'
, name: 'NULL_TOKEN_IND'
, inputValue: 'F'
, checked: true
}]
}, {
fieldLabel: 'Use Last Session'
, items: [{
boxLabel: 'T'
, name: 'USE_LST_SESSION_IND'
, inputValue: 'T'
, checked: true
}, {
boxLabel: 'F'
, name: 'USE_LST_SESSION_IND'
, inputValue: 'F'
}]
}, {
xtype: 'textfield'
, fieldLabel: 'Key Text'
, name: 'KEY_TXT'
}]
}, {
xtype: 'grid'
, flex: 1
, columns: [{text: 'Header', dataIndex: 'foo'}]
, store: {
fields: ['foo']
, data: [{
foo: 'bar'
}]
}
}]
}]
}]
})