Hey Amritha_B ,
Something like this should work (atleast it does for me). Make sure the IDs and datasource names are correct.
export const dynamicElastiCubeSettings = {
// If you would like to use URL params, modify here.
urlParamName: 'data',
// Default behavior uses dashboard OID as security object key.
// Disabling this option uses dashboard titles as security object keys.
configureByDashOID: true,
// If enabled, throws errors in console. Disabled by default.
throwErrors: false,
// Mask data if error occurs. Disabled by default.
maskDataOnError: false,
// Confirms the server location of an ElastiCube.
// Enable if your ElastiCubes migrate between servers.
verifyECLocation: true,
// // Example security definition structure
// // dashboardOID: (or title if configureByDashOID disabled)
// // { userGroupId: elastiCubeTitle, ... } ...
security: {
'63f23282c0ccfb1af49a1a14': { //dashboard id
'63ca109c5ce6523bd0aa4043': { //group id
dashboardDatasource: {
title: 'Org1',
address: 'LocalHost', // if the address doesn't exist, data source be chosen by default from localhost
},
},
'63ca0d3e7dce523bc0545bff': { //group id
dashboardDatasource: {
title: 'Org2',
address: 'LocalHost', // if the address doesn't exist, data source be chosen by default from localhost
},
}
}
},
// Will take latest ElastiCube and set it as dataSource.
selectMostRecent: false,
// Roles for which ignore ElastiCube updates.
mostRecentRolesBlackList: []
};