function getMhsSlta(){ /** STORES */ var ds_jslta = store_jslta(); var ds_stakrslta = store_stakrslta(); var ds_years = store_tahun(); /** FORM SLTA */ var fSlta = { //new Ext.form.FormPanel({ //{ xtype: 'panel', //'container', id: 'content.slta', layout: 'form', margin: '0 0 10', defaults: { labelWidth: 130, labelAlign: 'right' }, items: [{ xtype: 'fieldset', flex: 1, title: '', defaults: { labelWidth: 120, labelAlign: 'right', width: 150 }, items: [{ xtype: 'textfield', id: 'tf.nmslta', fieldLabel: 'Nama Sekolah', width: 550, }, { xtype: 'container', fieldLabel: 'Kota/Kabupaten', layout: 'hbox', defaultType: 'textfield', width: 350, defaults: { hideLabel: 'true'}, items: [ { id: 'tf.kdkotaslta', width: 80, readOnly: true, hidden: true } , { id: 'tf.kotaslta', width: 300, readOnly: true } , { xtype: 'button', id: 'btn.kotaslta', iconCls: 'silk-find', margins: '0 0 0 6', width: 30, hidden: false, handler: function() { lookup_kota_mhs(4); } }] }, { xtype: 'combo', id: 'cb.jnslta', fieldLabel: 'Jenis SLTA', width:250, editable: false, store: ds_jslta, triggerAction: 'all', valueField: 'id', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', //selectOnFocus:true, },{ xtype: 'combo', id: 'cb.stakrslta', fieldLabel: 'Status Akreditasi', editable: false, store: ds_stakrslta, triggerAction: 'all', valueField: 'id', displayField: 'nama', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', //selectOnFocus:true, },{ xtype: 'combo', id: 'cb.thlulusslta', fieldLabel: 'Tahun Lulus', editable: false, store: ds_years, triggerAction: 'all', valueField: 'tahun', displayField: 'tahun', forceSelection: true, submitValue: true, mode: 'local', emptyText:'Pilih...', //selectOnFocus:true, },{ xtype: 'textfield', id: 'tf.nemslta', fieldLabel: 'NEM', },{ xtype: 'textfield', id: 'tf.rankslta', fieldLabel: 'Rangking', },{ xtype: 'textfield', id: 'tf.noijzslta', fieldLabel: 'No. Ijazah', width: 350, },{ xtype: 'container', fieldLabel: 'Tanggal Ijazah', id: 'cmpst-tglijazahslta-mhs', layout: 'hbox', width: 500, //lebar > default yg diset di parent (300) defaultType: 'textfield', defaults: { hideLabel: false }, items: [{ xtype: 'datefield', id: 'df.tgijzslta', fieldLabel: 'Tanggal Ijazah', value: new Date() }, { xtype: 'label', margins: '0 0 0 5', text: '(Format: mm/dd/yyyy)' }] }] }] }; //); return fSlta; }