I like to use the “units” or “suffix” properties of the numeric label component for displaying my process values with the units in the same field. Unfortunately, the numeric text field component used for entering set points doesn’t have the same options. We discovered that we can manipulate the decimal format string for the component to add units. This appears to work fine in most cases.
However, when we have a set point that has units of percent, this approach doesn’t work out. When I try to force the numeric text field component to display units by adding a “%” symbol to the decimal format property, it interprets the number as a percentage and multiplies it by 100. You might think a solution to this is to scale the tag as 0-100 raw = 0-1. This makes the numeric text field display a correct percentage, but it doesn’t work for input. The numeric text field multiplies by 100 when displaying but does not divide by 100 when the user enters a value. So, if a user enters 12, a value of 1200% is sent. If the user types in .125, then a value of 12.5 percent is entered. If the user enters 12.5 and the % sign, then it is handled correctly. I would like to be able to display the units but not require a user to enter them when entering set points. We need the interface to be intuitive, so the operator shouldn’t have to treat % set points different than others.
Is there some workaround where I can use an escape character or something so the % symbol isn’t interpreted to re-format the number? I’ve tried putting spaces and other characters in there, but if it sees the % symbol anywhere it formats as percentage.
As a feature request, it would be nice to be able to either have a flag to allow input to the numeric label component or add some of the features of the numeric label to the numeric text field (e.g., prefix, suffix, image path, disabled image path, etc.).