revealView.onDataSourcesRequested = function (callback, trigger) {
if(trigger == $.ig.RVDataSourcesRequestedTriggerType.Visualization) {
var inMemoryDSI = new $.ig.RVInMemoryDataSourceItem("employees");
inMemoryDSI.title("My InMemory Title");
inMemoryDSI.description("My InMemory Description");
var sqlDs = new $.ig.RVSqlServerDataSource();
sqlDs.title("Clients");
sqlDs.id("SqlDataSource1");
sqlDs.host("db.mycompany.local");
sqlDs.port(1433);
sqlDs.database("Invoices");
callback(new $.ig.RevealDataSources([sqlDs], [inMemoryDSI], true));
}
};