Database Programming with Access XP/SQL Server 7:: Function AddAdrKey() Dim rec1 As New ADODB.Recordset Dim ProgCtr As Integer Dim recctr As You are not only giving up your ability to handle errors, http://answers.google.com/answers/threadview/id/92582.htmlHOME | Hey guys,
I am trying to add a search functionality in my grid as shown in this tutorial:
http://extjs.com/learn/Tutorial:Grid_PHP_SQL_Part8
But when I click on the Search button, I get the following error in Firebug:
this.handler.call is not a function
http://localhost/sfExtjs2Plugin/extjs/ext-all-debug.js
Line 19386
onClick()(Object browserEvent=Event blur button=-1 type=blur)
h()()
getViewWidth()()
this.handler.call(this.scope this, this,
Here is my code:
// sfExtjs2Helper: v0.58
Ext.BLANK_IMAGE_URL = '/sfExtjs2Plugin/extjs/resources/images/default/s.gif';
// application: App
var App = function (){
return {
init: function (){
Ext.QuickTips.init();
var ds = new Ext.data.Store ({
proxy: new Ext.data.HttpProxy ({
url: '/channels/list',
method: 'GET'
}),
reader: new Ext.data.JsonReader ({
root: 'list',
totalProperty: 'total',
id: 'id',
fields: [{
name: 'ID',
mapping: 'id',
type: 'int'
},{
name: 'Name',
mapping: 'name',
type: 'string'
},{
name: 'Slug',
mapping: 'slug',
type: 'string'
},{
name: 'Active',
mapping: 'active',
type: 'string'
},{
name: 'Created',
mapping: 'created_at',
type: 'string'
},{
name: 'Updated',
mapping: 'updated_at',
type: 'string'
},{ Transferring Information using the Internet:: This is easily solved by the server keeping track of the journal entries. If the last one was a few hours ago, then the user in store two could call to see http://answers.google.com/answers/threadview/id/502173.htmlHOME | JavaScript: Form: Time from first answer to submit:: All it would require is adding the call to the StartTimer() function to that events handler. All the elements of your form call the StartTimer() function, http://answers.google.com/answers/threadview/id/183251.htmlHOME |
name: 'Deleted',
mapping: 'deleted_at',
type: 'string'
}]
})
});
var cm = new Ext.grid.ColumnModel ([{
header: 'ID',
dataIndex: 'ID',
width: 30,
sortable: true
},{ Visual Basic or C++ Source Code - Convert ASCII :: Or that the program we're writing should just move them and not worry about .. Enabled = True End Sub Private Function ProcessFileXNC(ByVal fi As System. http://answers.google.com/answers/threadview/id/209182.htmlHOME |
header: 'Name',
dataIndex: 'Name',
width: 325,
sortable: true
},{
header: 'Slug',
dataIndex: 'Slug',
width: 325,
sortable: true
},{
header: 'Active',
dataIndex: 'Active',
width: 50,
sortable: true,
resizable: false
},{
header: 'Created',
dataIndex: 'Created',
width: 125,
sortable: true,
resizable: false
},{
header: 'Updated',
dataIndex: 'Updated',
width: 125,
sortable: true,
resizable: false
},{
header: 'Deleted',
dataIndex: 'Deleted',
width: 125,
sortable: true,
resizable: false
}]);
var bbar = new Ext.PagingToolbar({
pageSize: 10,
store: ds,
displayInfo: true
}); software to organize text:: What I did not notice is the ability to search all DOCUMENTS for words or phrases, which I think is an important function. http://answers.google.com/answers/threadview?id=64989HOME | Optimization of IIS 6.0 to improve download reliablity:: If the data in a page is specific to the user or session, but not highly time resources to browsers that were not actually able to handle them. http://answers.google.com/answers/threadview?id=528912HOME |
new Ext.grid.GridPanel ({
title: 'Channels',
autoHeight: true,
renderTo: 'grid',
emptyText: 'No channels found!',
loadMask: true,
ds: ds,
cm: cm,
tbar: [{
text: 'Add',
tooltip: 'Add a channel',
iconCls: 'add'
},{
text: 'Edit',
tooltip: 'Edit a channel',
iconCls: 'edit'
},{
text: 'Delete',
tooltip: 'Delete a channel',
iconCls: 'delete'
},{
xtype: 'tbseparator'
},{
text: 'Activate',
tooltip: 'Activate all selected channels',
iconCls: 'activate'
},{
text: 'Deactivate',
tooltip: 'Deactivate all selected channels',
iconCls: 'deactivate'
},{
xtype: 'tbseparator'
},{
text: 'Search',
tooltip: 'Search channels',
iconCls: 'search',
handler: 'advancedSearch'
}],
bbar: bbar
});
ds.load({params: {start: 0, limit: 10}});
function advancedSearch(){
function listSearch(){
var created = '';
var updated = '';
var deleted = '';
if(searchCreated.getValue() !== ''){
created_at = searchCreated.getValue().format('Y-m-d');
}
if(searchUpdated.getValue() !== ''){
updated_at = searchUpdated.getValue().format('Y-m-d');
}
if(searchDeleted.getValue() !== ''){
deleted_at = searchUpdated.getValue().format('Y-m-d');
}
ds.baseParams = {
name: searchName.getValue(),
slug: searchSlug.getValue(),
created_at: created,
updated_at: updated,
deleted_at: deleted
};
ds.reload({params: {start: 0, limit: 10}});
}
function resetSearch(){
ds.baseParams = {
name: '',
slug: '',
created_at: '',
updated_at: '',
deleted_at: ''
};
ds.reload({params: {start: 0, limit: 10}});
searchWindow.close();
}
var searchName;
var searchSlug;
var searchCreated;
var searchUpdated;
var searchDeleted;
var searchForm;
var searchWindow;
searchName = new Ext.form.TextField ({
fieldLabel: 'Name',
maxLength: 20,
anchor: '95%',
maskRe: '/([a-zA-Z0-9s]+)$/'
});
searchSlug = new Ext.form.TextField ({
fieldLabel: 'Slug',
maxLength: 20,
anchor: '95%',
maskRe: '/([a-zA-Z0-9s]+)$/'
});
searchCreated = new Ext.form.DateField ({
fieldLabel: 'Created at',
format: 'm-d-Y',
anchor: '95%'
});
searchUpdated = new Ext.form.DateField ({
fieldLabel: 'Updated at',
format: 'm-d-Y',
anchor: '95%'
});
searchDeleted = new Ext.form.DateField ({
fieldLabel: 'Deleted at',
format: 'm-d-Y',
anchor: '95%'
});
searchForm = new Ext.FormPanel({
labelAlign: 'top',
bodyStyle: 'padding: 5px',
width: 300,
items: [{
layout: 'form',
border: false,
items: [
searchName,
searchSlug,
searchCreated,
searchUpdated,
searchDeleted
],
buttons: [{
text: 'Search channels',
handler: listSearch
},{
text: 'Close',
handler: resetSearch
}]
}]
});
searchWindow = new Ext.Window ({
constrain: true,
layout: 'fit',
width: 200,
height: 400,
closeAction: 'hide',
plain: true,
title: 'Channel Search',
closable: true,
items: searchForm
});
searchWindow.show();
}
}
}
}();
Ext.onReady(App.init, App);
Any possible help would be much appreciated! :)
Thank you
Maybe you need handler: this.listSearch, to reference the function.
On Edit: never mind, better answer above this one.
change it from a string to a reference.
handler: advancedSearch // NO TICKS
Thant was it my friend! Thanks a ton :)
change it from a string to a reference.
handler: advancedSearch // NO TICKS
How much does getting a small tattoo on your hip/stomach hurt?
Do anyone else have an itchy anus? ?
|