function pKeuRpt(){ var ds_jkeu = new Ext.data.JsonStore({ //static data //autoDestroy: true, fields: [{ name: 'kode' },{ name: 'nama' }], data: [ { 'kode':'DPK','nama':'DPK'}, { 'kode':'DPP','nama':'DPP'}, { 'kode':'TGK','nama':'Tunggakan Mahasiswa'} ] }); var fpKeuRpt = new Ext.form.FormPanel({ id: 'fp.keu_rpt', title:'Laporan Keuangan', layout: 'form', forceFit: true, autoScroll: true, //width:500, height:400, margin: '0 0 10', frame: true, defaults: { labelWidth: 200, labelAlign: 'right', buttonAlign:'right' }, items: [{ xtype: 'fieldset', height:300, flex: 1, items: [{ xtype: 'container', layout: 'hbox', defaults:{ margins: '30 0 0 15' }, items: [{ xtype: 'label', text:'Pilih Jenis Laporan Keuangan:', align:'bottom' }, { xtype: 'combo', id: 'cb.jkeu-rpt', //fieldLabel: 'Pilih Jenis Laporan Keuangan', store: ds_jkeu, valueField: 'kode', displayField: 'nama', forceSelection: true, triggerAction: 'all', submitValue: true, mode: 'local', editable:false, emptyText:'Pilih...', width: 200, }, { xtype: 'button', text: 'Preview', widht: 120, id: 'bt.preview_keu-rpt', iconCls:'silk-report', listeners:{ click: { fn: function(){ preview_keu_rpt() } } } }] }] }] }); function preview_keu_rpt(){ var jrpt = RH.getCompValue('cb.jkeu-rpt'); if(jrpt=='DPK') report_dpk(); if(jrpt=='DPP') report_dpp(); if(jrpt=='TGK') report_tgk(); } SET_PAGE_CONTENT(fpKeuRpt); }