Nov 16, 2012, 9:54 AM
[CLOSED] Aborting Transactions
Hi All,
I have a slight issue with transactions. I have grid from which users can select rows. Once a user selects a row it fire off load requests to 3 store which populate with information about that row in a second grid. The problem I'm having is if the user quickly selects different rows, requests are fired off to the back end for each row selected and there is a possibility that the data being displayed in the second grid is not for the row the finally selects (due to network conditions, store size etc). What I was planning on doing and so far unable to do is if a new row is select whilst a request for previous row is still being processed abort the previous rows transactions and only load the currently selected row. I have tried auto-abort on the store but for some reason this aborts the wrong store. I'm just wondering if what I'm trying to do is possible? and how would I go about doing it?
Thanks
I have a slight issue with transactions. I have grid from which users can select rows. Once a user selects a row it fire off load requests to 3 store which populate with information about that row in a second grid. The problem I'm having is if the user quickly selects different rows, requests are fired off to the back end for each row selected and there is a possibility that the data being displayed in the second grid is not for the row the finally selects (due to network conditions, store size etc). What I was planning on doing and so far unable to do is if a new row is select whilst a request for previous row is still being processed abort the previous rows transactions and only load the currently selected row. I have tried auto-abort on the store but for some reason this aborts the wrong store. I'm just wondering if what I'm trying to do is possible? and how would I go about doing it?
Thanks
Last edited by Daniil; Nov 23, 2012 at 10:45 AM.
Reason: [CLOSED]