|
|
@ -224,6 +224,7 @@ function loadDevices(searchType, searchParam) {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Read "analyticsView" from config.json and return value if exists
|
|
|
|
function getAnalyticsView(type) {
|
|
|
|
function getAnalyticsView(type) {
|
|
|
|
var deviceTypes = deviceListing.data("deviceTypes");
|
|
|
|
var deviceTypes = deviceListing.data("deviceTypes");
|
|
|
|
for (var i = 0; i < deviceTypes.length; i++) {
|
|
|
|
for (var i = 0; i < deviceTypes.length; i++) {
|
|
|
@ -347,6 +348,7 @@ function loadDevices(searchType, searchParam) {
|
|
|
|
|
|
|
|
|
|
|
|
if (analyticsEnabled(row.deviceType)) {
|
|
|
|
if (analyticsEnabled(row.deviceType)) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// redirecting to respective analytics view depending on device configs
|
|
|
|
switch (getAnalyticsView(deviceType)) {
|
|
|
|
switch (getAnalyticsView(deviceType)) {
|
|
|
|
case "DAS" : { statURL =portalUrl + "/portal/t/"+ userDomain+ "/dashboards/android-iot/battery?owner=" +currentUser+"&deviceId=";break;}
|
|
|
|
case "DAS" : { statURL =portalUrl + "/portal/t/"+ userDomain+ "/dashboards/android-iot/battery?owner=" +currentUser+"&deviceId=";break;}
|
|
|
|
default : {statURL=context+ "/device/" + row.deviceType +"/analytics?deviceId="}
|
|
|
|
default : {statURL=context+ "/device/" + row.deviceType +"/analytics?deviceId="}
|
|
|
|