This is a migrated thread and some comments may be shown as answers.

callback after datasource READ completed?

1 Answer 346 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Rich
Top achievements
Rank 1
Rich asked on 31 Jul 2012, 05:44 PM
Hi All,

I have a datasource that is defined and under a specific circumstance i need to run a function after a read() is completed.

Is something like this possible:

dsCommodities.read(function () {
                //do stuff
            });


I have the ds defined normally but need to dynamically execute a function for one particular read scenario. thanks!

1 Answer, 1 is accepted

Sort by
0
Rich
Top achievements
Rank 1
answered on 01 Aug 2012, 01:54 PM
.fetch() has a callback option for those interested.
Tags
Data Source
Asked by
Rich
Top achievements
Rank 1
Answers by
Rich
Top achievements
Rank 1
Share this question
or