Hello,
I'm calculating a percent-value with a _dp_fct and set the limits of the dp value with _pv_range between 0 and 100.
I did think: If the calculated percent-value goes negative, the value stops at zero and if it goes above 100 it stops at 100. That is the case but also an error is generated. That's bad because the log gets littered.
Am I doing it right? Is there a better way?
Value range of data points
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Value range of data points
If you want to avoid that a value is set by the DP function you can call the function removeDoneCB().
In your function which is called to calculate the percent value you can check the value range and then call removeDoneCB() if the calculated value is outside of the range.
Best Regards
Leopold Knipp
Senior Support Specialist
In your function which is called to calculate the percent value you can check the value range and then call removeDoneCB() if the calculated value is outside of the range.
Best Regards
Leopold Knipp
Senior Support Specialist