Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.

Init Script to configure a Mobile Custom Query not working

johntalbott

Support,

Modifying config.dataSource in the Init Script for a Mobile Custom Query does not work. It seems to be a timing issue in that the Kendo dataSource has already initialized so it's too late to change the configuration.

I'm using v8.1.

Thanks,
JT


aware_support

Try setting the new dataSource into parser.m_dataSource as well as in the config:

config.dataSource = newDataSource;
parser.m_dataSource = newDataSource;