PDA

View Full Version : store load callback



wp.joju
20 Nov 2009, 12:04 AM
hi there, i am using a JSON store which loads different data on several scenarios... my problem is that when i am using the load function's callback function... the new data isn't even loaded once the callback function is called... is there any way to make sure that new data is already loaded when the store.load callback function is called....

as per my observationthe new data can only be seen when the load event listener is called

wp.joju
20 Nov 2009, 12:24 AM
still cannot access clientttstore data on the function "GenerateWorkSheet"




clientttstore.load({params: { 'tooltiptype': 'client-worksheet' }, callback: CheckForDirtyNode(GenerateWorkSheet, n, 'fw') });

fay
20 Nov 2009, 5:05 AM
Think it should be:


clientttstore.load({
params: { 'tooltiptype': 'client-worksheet' },
callback: function(r, options, success)
{
CheckForDirtyNode(GenerateWorkSheet, n, 'fw');
}
});