The store has an event to load:
beforeload( Ext.data.Store store, Ext.data.Operation operation, Object eOpts )
listening to this event, I can add my additional parameter to the operation when I execute the request, for example:
store.on('beforeload', function(store, operation) { operation.params = Ext.applyIf({ myParam1: 'param1', myParam2: 'param2' }, operation.params); });
I also need to add my additional parameters when I create, update and destroy an action. However, the synchronization event does not pass the operation or saves:
beforesync( Object options, Object eOpts )
Is there another way?
Tang xx
source share