Skip to content
Snippets Groups Projects
Commit 051e7dd5 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

expression bug correction (TANGOARCH-832)

parent 050af60b
No related branches found
No related tags found
No related merge requests found
...@@ -118,9 +118,13 @@ public class ViewConfigurationAttribute extends Attribute implements DBExtractio ...@@ -118,9 +118,13 @@ public class ViewConfigurationAttribute extends Attribute implements DBExtractio
hasRead = recoveredData[READ_INDEX] != null; hasRead = recoveredData[READ_INDEX] != null;
hasWrite = recoveredData[WRITE_INDEX] != null; hasWrite = recoveredData[WRITE_INDEX] != null;
String nameId = hasRead ? recoveredData[READ_INDEX].getName() : recoveredData[WRITE_INDEX].getName(); String nameId = hasRead ? recoveredData[READ_INDEX].getName() : recoveredData[WRITE_INDEX].getName();
String name = nameId;
nameId = nameId.toLowerCase(); nameId = nameId.toLowerCase();
final ViewConfigurationAttributePlotProperties plotPropertie = properties.getPlotProperties(); final ViewConfigurationAttributePlotProperties plotProperties = properties.getPlotProperties();
final String displayName = plotPropertie.getCurve().getName(); String displayName = plotProperties.getCurve().getName();
if ((displayName == null) || (displayName.trim().isEmpty())) {
displayName = name;
}
if (hasWrite) { if (hasWrite) {
setAttributeDataView(chart, displayName, nameId, true, hasRead); setAttributeDataView(chart, displayName, nameId, true, hasRead);
} }
......
...@@ -233,7 +233,7 @@ public class ViewConfigurationAttributes { ...@@ -233,7 +233,7 @@ public class ViewConfigurationAttributes {
final int index = variable.indexOf(ViewConfigurationAttribute.SUFFIX_READ); final int index = variable.indexOf(ViewConfigurationAttribute.SUFFIX_READ);
attributName = variable.substring(0, index); attributName = variable.substring(0, index);
} }
final ViewConfigurationAttribute attr = attributes.get(attributName); final ViewConfigurationAttribute attr = attributes.get(attributName.toLowerCase());
if (attr != null) { if (attr != null) {
final Integer dataType = dataTypes.get(attr); final Integer dataType = dataTypes.get(attr);
if (dataType != null) { if (dataType != null) {
...@@ -357,7 +357,8 @@ public class ViewConfigurationAttributes { ...@@ -357,7 +357,8 @@ public class ViewConfigurationAttributes {
if (chartData != null) { if (chartData != null) {
for (Map.Entry<String, Object> dataAttribute : chartData for (Map.Entry<String, Object> dataAttribute : chartData
.entrySet()) { .entrySet()) {
if (dataAttribute.getKey().equals(variablesNames[j])) { if (dataAttribute.getKey()
.equalsIgnoreCase(variablesNames[j])) {
Object points = dataAttribute.getValue(); Object points = dataAttribute.getValue();
int[] shape = ArrayUtils.recoverShape(points); int[] shape = ArrayUtils.recoverShape(points);
NullableTimedData[] timedDatas = null; NullableTimedData[] timedDatas = null;
...@@ -421,7 +422,7 @@ public class ViewConfigurationAttributes { ...@@ -421,7 +422,7 @@ public class ViewConfigurationAttributes {
} // end if (chart != null) } // end if (chart != null)
case TangoConst.Tango_DEV_STATE: case TangoConst.Tango_DEV_STATE:
final DbData[] splitedStateData = dataMap.get(attributName); final DbData[] splitedStateData = dataMap.get(attributName.toLowerCase());
if (splitedStateData != null) { if (splitedStateData != null) {
DbData data = null; DbData data = null;
if (isRead) { if (isRead) {
...@@ -452,7 +453,7 @@ public class ViewConfigurationAttributes { ...@@ -452,7 +453,7 @@ public class ViewConfigurationAttributes {
} }
} }
case TangoConst.Tango_DEV_STRING: case TangoConst.Tango_DEV_STRING:
final DbData[] splitedStringData = dataMap.get(attributName); final DbData[] splitedStringData = dataMap.get(attributName.toLowerCase());
if (splitedStringData != null) { if (splitedStringData != null) {
if (isRead) { if (isRead) {
variablesDatas[j] = splitedStringData[0]; variablesDatas[j] = splitedStringData[0];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment