Hi all, please consider the following shape data:
whereby PID:1184 has the following definition:
I notice the following Shape data which compares to <Value> instead of <Display> also works:
<A>-A|[cardvar:ElementNameRS2]|1184:TransmitterB/A|=2
Is it possible to share what does DataMiner do, in particular does it first try to compare with all <Display> values and if there is no match it tries with <Value> values?
What happens if we have the exaggerated case whereby:
Does it match with <Display> = 3 or <Value>=3 first?
Hi Bing,
A discreet lookup is performed on the condition to check if a value matches the given display value. If the lookup is successful, the condition is updated to use the corresponding value. If it fails, the condition remains unchanged.
The final comparison is done using the raw value.
In your example, if the condition is =3
, the lookup will identify the corresponding discreet value, which is 2
. The condition will then be internally updated to =2
, and the comparison will be made with that value.
Thanks Sebastiaan for the insights. Knowing this gives me more confidence that the logic I specify is working the way I need it to.