Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Ext.define('TUL.controller.Unit', {
- extend: 'Ext.app.Controller',
- views: [
- 'Unit',
- ],
- stores: ['Unit'],
- models: ['Unit'],
- init: function() {
- var b = this;
- this.control({
- 'unittul combo[action=cariUnit]': {
- //click: this.updateUser
- select:b.searchUnit
- }
- });
- },
- searchUnit : function(combo, selection){
- var post = selection[0];
- var ambilCombo= Ext.getCmp('comboUnit');
- var setFoCombo= Ext.getCmp('cobatext');
- ambilCombo.setValue(post.get('strnama_unit'));
- Ext.getCmp('cobatext').Focus();
- },
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement