Skip to content

Commit

Permalink
Scripting limit risk of errors when using writeDataPoint function
Browse files Browse the repository at this point in the history
Added XID column in Script Details in Scripting view for easier access to XID of each data point
  • Loading branch information
Patrykb0802 committed May 8, 2024
1 parent 4964307 commit 11e28b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions WebContent/WEB-INF/jsp/scripting.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
pointsArray[i] = {
"id":point.id,
"name":point.extendName,
"xid":point.xid,
"type":point.dataType,
};
}
Expand Down Expand Up @@ -205,6 +206,7 @@
pointId : pointId,
pointName : data.name,
pointType : data.type,
xid : data.xid,
scriptVarName : scriptVarName
};
}
Expand All @@ -230,6 +232,7 @@
dwr.util.addRows("contextTable", contextArray,
[
function(data) { return data.pointName; },
function(data) { return data.xid; },
function(data) { return data.pointType; },
function(data) {
return "<input type='text' value='"+ data.scriptVarName +"' class='formShort' "+
Expand Down Expand Up @@ -427,6 +430,7 @@
<tbody id="contextTableHeaders" style="display:none;">
<tr class="smRowHeader">
<td><fmt:message key="dsEdit.meta.pointName"/></td>
<td><fmt:message key="pointHierarchySLTS.xid"/></td>
<td><fmt:message key="dsEdit.pointDataType"/></td>
<td><fmt:message key="dsEdit.meta.var"/></td>
<td></td>
Expand Down

0 comments on commit 11e28b2

Please sign in to comment.