Langsung ke konten utama

Postingan

Menampilkan postingan dari Maret, 2014

Menambahkan Item Id untuk HTML Attribut

{ border:false, frame:false, width: 225, margin: '5px 0px 10px 9px', items: [{ xtype : 'textfield', fieldLabel : 'Telephone', inputType :'password', id : 'telephone', inputId: 'item_telepon', width: 225, readOnly : true, fieldStyle :'background-image:none;background-color:#BDBDBD', },{ xtype : 'textfield', fieldLabel : 'Office no', inputType :'password', width: 225, id :'office_no', inputId: 'item_office_no', readOnly : true, fieldStyle :'background-image:none;background-color:#BDBDBD', },{ xtype : 'textfield', fieldLabel : 'Mobile no', inputType :'password', width: 225, id:'mobile_no', inputId: 'item_mobile_no', readOnly : true, fieldStyle :'back...

Render tips pada event render

render: function(p) { var theElem = p.getEl(); var theTip = Ext.create('Ext.tip.Tip', { html: 'Tuliskan Sequent Number atau Telephone Number atau Office Number atau Mobile Number atau Customer Number ', margin: '0 0 0 300', shadow: false }); p.getEl().on('mouseover', function(){ theTip.showAt(theElem.getX(), theElem.getY()); }); p.getEl().on('mouseleave', function(){ theTip.hide(); }); }

Form Layout individual margin

var header_form_des = new Ext.FormPanel({ url:'', layout:'column', width:400, border:true, frame:false, items: [{ border:false, margin: '5px 0px 0px 5px', items: [{ xtype : 'fieldcontainer', items: [{ xtype : 'label', width: 50, forId: 'batch_des', text: 'Batch #:', }] }] },{ border:false, margin: '5px 0px 0px 5px', items: [{ xtype : 'fieldcontainer', items: [{ xtype : 'textfield', width: 75, id : 'batch_des', name : 'batch_des', allowBlank : true, readOnly : true, fieldStyle :'background-image:none;background-color:#BDBDBD', }] }] },{ border:false, margin: '5px 0px 0px 5px', items: [{ xtype : 'fieldcontainer', items: [{ xt...

Call Multiple SP

function submit($data) { $vNotes = $data['vNotes']; $vCreated_By = $data['vCreated_By']; $records = $data['records']; $vScript_Id = $data['vScript_Id']; $vBatch_No = ''; $vBatch_Id = ''; try{ $success = true; // Header $sql1 = "CALL sp_Create_SMS_Batch(:vNotes,:vCreated_By,:vBatch_No,:vBatch_Id)"; $stmt1 = oci_parse($this->db->conn_id, $sql1); // Header Bind sql1 the input parameter oci_bind_by_name($stmt1,':vNotes',$vNotes); oci_bind_by_name($stmt1,':vCreated_By',$vCreated_By); // Header Bind sql1 the output parameter oci_bind_by_name($stmt1,':vBatch_No',$Batch_No,32); oci_bind_by_name($stmt1,':vBatch_Id',$vBatch_Id,32); // return sql1 $success = $success && @oci_execute($stmt1); ...

Call Single SP Codeigniter

function insert_out_call($data) { $vPromo_Id = $data['vPromo_Id']; $pCategory_Id = $data['pCategory_Id']; $pMesssage = $data['pMesssage']; $pCreated_By = $data['pCreated_By']; $vCall_Id = ''; try{ $sql = "CALL sp_Insert_Mncshop_Out_Call(:vPromo_Id,:pCategory_Id,:pMesssage,:pCreated_By,:vCall_Id)"; $stmt = oci_parse($this->db->conn_id, $sql); // Bind the input parameter oci_bind_by_name($stmt,':vPromo_Id',$vPromo_Id); oci_bind_by_name($stmt,':pCategory_Id',$pCategory_Id); oci_bind_by_name($stmt,':pMesssage',$pMesssage); oci_bind_by_name($stmt,':pCreated_By',$pCreated_By); // Bind the output parameter oci_bind_by_name($stmt,':vCall_Id',$vCall_Id); if(@!oci_execute($stmt)){ $err = oci_error($stmt); throw new Exceptio...