Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- initComponent: function() {
- Res.CV.UI.FormDialog.superclass.initComponent.call(this);
- //inject a cv-validation-box into the bottom of the window
- this.add({xtype: 'cv-validation-box'});
- var basic_form = this.getDialogForm().getForm();
- basic_form.on('actioncomplete', function(form, action) {
- if (action.type == 'load') {
- var json = Ext.decode(action.response.responseText);
- var combos = this.getDialogForm().findByType('combo');
- Ext.each(combos, function(combo) {
- if (json.data[combo.displayField]) {
- combo.setRawValue(json.data[combo.displayField]);
- }
- });
- }
- }, this);
Add Comment
Please, Sign In to add comment