diff --git a/WebContent/WEB-INF/jsp/dataSourceEdit/editBacnetIp.jsp b/WebContent/WEB-INF/jsp/dataSourceEdit/editBacnetIp.jsp index 8d9736957..bcc3eda9f 100644 --- a/WebContent/WEB-INF/jsp/dataSourceEdit/editBacnetIp.jsp +++ b/WebContent/WEB-INF/jsp/dataSourceEdit/editBacnetIp.jsp @@ -176,8 +176,21 @@ } function appendPointListColumnFunctions(pointListColumnHeaders, pointListColumnFunctions) { - pointListColumnHeaders[pointListColumnHeaders.length] = ""; - pointListColumnFunctions[pointListColumnFunctions.length] = function(p) { return p.pointLocator.remoteDeviceIp; }; + pointListColumnHeaders[pointListColumnHeaders.length] = ""; + pointListColumnFunctions[pointListColumnFunctions.length] = function(p) { return '
' + p.pointLocator.remoteDeviceIp + '
';}; + pointListColumnHeaders[pointListColumnHeaders.length] = ""; + pointListColumnFunctions[pointListColumnFunctions.length] = function (p) { + const element = document.createElement("div"); + element.style.textAlign = "center"; + + DataSourceEditDwr.getObjectTypeName(p.pointLocator.objectTypeId, function (result) { + element.innerHTML = result; + }); + + return element; + }; + pointListColumnHeaders[pointListColumnHeaders.length] = ""; + pointListColumnFunctions[pointListColumnFunctions.length] = function(p) {return '
' + p.pointLocator.objectInstanceNumber + '
';}; } function editPointCBImpl(locator) { diff --git a/src/com/serotonin/mango/web/dwr/DataSourceEditDwr.java b/src/com/serotonin/mango/web/dwr/DataSourceEditDwr.java index a15f525fe..849695491 100644 --- a/src/com/serotonin/mango/web/dwr/DataSourceEditDwr.java +++ b/src/com/serotonin/mango/web/dwr/DataSourceEditDwr.java @@ -43,6 +43,7 @@ import javax.management.remote.JMXServiceURL; import javax.script.ScriptException; +import com.serotonin.bacnet4j.type.enumerated.ObjectType; import com.serotonin.db.KeyValuePair; import com.serotonin.mango.util.LoggingUtils; import com.serotonin.mango.web.dwr.beans.*; @@ -2990,4 +2991,8 @@ public DwrResponseI18n copyDataPoint(final int dataSourceId, final int dataPoint return response; } + public String getObjectTypeName(int objectTypeId) { + ObjectType objectType = new ObjectType(objectTypeId); + return objectType.toString(); + } } \ No newline at end of file