@THE_DK I agree with @Eric_Vidana that you need call your Datasource
before executing GetOffer() and How you call GetOffer() depends on What
data you are going get and what are you going to use it for ?For Example
: If on your site, a dynamic view will load based on the data coming
from your data source then you can choose the selector of that view and
make your getoffer() exceute when that view loads. Above is just a
random example for a SPA, I would appreciate if you can share your use
case in...