function loadEmployee(id){
var ds = new Ext.data.Store({
autoLoad: true,
url: 'query.php?page=4&employee='+id+'&records=10',
reader: new Ext.data.XmlReader({
record: 'leaverequest',
}, ['leave_type', 'employee', 'start_date', 'end_date', 'approver', 'date_requested']),
sortInfo: {
field: 'employee',
direction: "ASC"
},
listeners: {
'load': function(){
var grid = Ext.getCmp('leave_history_grid');
grid.reconfigure(this,grid.getColumnModel());
alert("Loaded");
}
}
});
}
0
Featured Post
Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.
Active Directory replication delay is the cause to many problems. Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The purpose of this video is to demonstrate how to set up basic WordPress SEO.
This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast.
Go to your WordPress login page. This will look like the following: myw…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…