Hi!
Sorry, but this didn't work for me!
Is there another possibility to turn of the parameters?
Here's my generated code:
Code:
Ext.define('Example.store.EmployeeStore', {
extend: 'Ext.data.Store',
requires: [
'Example.model.Employee'
],
constructor: function(cfg) {
var me = this;
cfg = cfg || {};
me.callParent([Ext.apply({
autoLoad: true,
model: 'Example.model.Employee',
storeId: 'MyJsonPStore',
proxy: {
type: 'jsonp',
noCache: false,
pageParam: 'undefined',
url: 'http://localhost/ExampleService/tester',
reader: {
type: 'json'
}
},
listeners: {
beforeload: {
fn: me.onJsonpstoreBeforeLoad,
scope: me
}
}
}, cfg)]);
},
onJsonpstoreBeforeLoad: function(store, operation, eOpts) {
store.proxy.pageParam = undefined;
store.proxy.limitParam = undefined;
store.proxy.startParam = undefined;
store.proxy.callback = undefined;
}
});
Edit:
even if i change the service to receive the Params like
Code:
[OperationContract]
[WebGet(
BodyStyle = WebMessageBodyStyle.Bare,
ResponseFormat = WebMessageFormat.Json,
RequestFormat = WebMessageFormat.Json,
UriTemplate = "tester?page={page}&start={start}&limit={limit}&callback={callback}"
)]
Employee tester(string page, string start, string limit, string callback);
i get an "Uncaught SyntaxError: Unexpected token :"
what i'm doing wrong?
thanks and regards