[TYPO3-english] Trunk 4.5 - Ext Direct
Kay Strobach
typo3 at kay-strobach.de
Sun Jan 23 11:42:59 CET 2011
Am 21.01.2011 07:13, schrieb Kay Strobach:
Hi Xavier,
I found the bugreport:
http://bugs.typo3.org/bug_view_advanced_page.php?bug_id=17153
I do use ExtDirect with stores and get:
0 [internal function]: t3lib_extjs_ExtDirectRouter->route(Array,
Object(TYPO3AJAX))
#1 <..>\t3-4_5\t3lib\class.t3lib_div.php(5134):
call_user_func_array(Array, Array)
#2 <..>\t3-4_5\typo3\ajax.php(73):
t3lib_div::callUserFunction('t3lib/extjs/cla...', Array,
Object(TYPO3AJAX), false, true)
#3 {main}
I used the following code to register my extdirect functions:
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.ks_sitemgr.tabs']
=
'EXT:ks_sitemgr/lib/class.tx_ks_sitemgr_direct.php:tx_ks_sitemgr_direct';
So where is the problem?
The extension uses the above called class to call subfunctions (routing)
as it allows to register some childrens.
Example store:
store:new Ext.data.DirectStore({
storeId:'customerStore',
directFn:TYPO3.ks_sitemgr.tabs.dispatchPaged,
paramsAsHash: false,
remoteSort :true,
paramOrder:'module,fn,args,start,limit,sort,dir',
baseParams:{
module:'ks_sitemgr_customer',
fn :'getCustomers',
args :ksSitemgrTools.uid,
start: 0,
limit: 25,
sort: 'title',
dir : 'ASC'
},
root: 'rows',
totalProperty: 'count',
idProperty: 'uid',
fields: [{
name: 'uid',
type: 'int'
},
'title',
'pid',
'users'
],
listeners: {
load:function() {
if(ksSitemgrTools.customerId!=0) {
records =
[Ext.getCmp('customerGrid').getStore().getById(ksSitemgrTools.customerId)];
Ext.getCmp('customerGrid').getSelectionModel().selectRecords(records,false)
}
}
}
}),
Regards
Kay
More information about the TYPO3-english
mailing list