Hi Anton,
My devices send fuel used as part of the message so I have created a virtual tank and calculate “Spent Fuel” as per the below computed attribute.
Attribute: fuel
Expression: fuelUsed? 100000000-fuelUsed:null
Type: Number
It works as expected but very rarely a device will send only one “null” value as fuel which then cause the Daily Summary, Summary and Trip reports to show the spent fuel as 0. Summary report show 0, Daily Summary show 0 for the day in question and trip reports show 0 for the particular trip.
How can I overcome this? Should code be changed or is it something that can be fixed by amending the computed attribute.
You can enable attribute copying.
Thanks Anton,
Something like <entry key='processing.copyAttributes'>fuel</entry>
More like below:
<entry key='processing.copyAttributes.enable'>true</entry>
<entry key='processing.copyAttributes'>fuel</entry>
Ill test it and see how it goes. Thanks for your help.
Hi Anton,
My devices send fuel used as part of the message so I have created a virtual tank and calculate “Spent Fuel” as per the below computed attribute.
Attribute: fuel
Expression: fuelUsed? 100000000-fuelUsed:null
Type: Number
It works as expected but very rarely a device will send only one “null” value as fuel which then cause the Daily Summary, Summary and Trip reports to show the spent fuel as 0. Summary report show 0, Daily Summary show 0 for the day in question and trip reports show 0 for the particular trip.
How can I overcome this? Should code be changed or is it something that can be fixed by amending the computed attribute.