10-03-2016 07:56 AM
Hi all,
I noticed a different behaviour of numeric control field. I explain:
I have two numeric controls (DBL) whose Display format is set almost in the same way:
Control 1: Display format: %.1f mm/s -> data is shown like this: 3,1 mm/s
Control 2: Display format: %.1f °C -> data is shown like this: 3,1 °C
If I type a number 12,3 (not with unit of measurement) in the control, data is accepted in both controls:
Inserted value: 12,3
Control 1 shows 12,3 mm/s
Controls 2 shows 12,3 °C
If I type <number><space><unit>, data is accepted:
Inserted value: 12,3 mm/s -> Control 1 shows 12,3 mm/s
Inserted value: 12,3 °C -> Control 2 shows 12,3 °C
The problem is when I type <number><unit> (without space), data is accepted by Control2 and refused by Control1:
Inserted value: 12,3mm/s -> Control 1 refuses value and show the previous value
Inserted value: 12,3°C -> Data is accepted and Control 2 shows 12,3 °C.
I think that the problem is the slash character (/) in the unit.
Do you have any workaround for this issue?
10-03-2016 09:06 AM
Hi AC,
Do you have any workaround for this issue?
1. Use a "real" unit display for your numeric control: this way the user doesn't has to input the unit in the control…
2. Use the caption (or a free text label) to display the unit: now the user doesn't has to input the unit in the control…
10-03-2016 10:08 AM - edited 10-03-2016 10:25 AM
@AC_85 wrote:Hi all,
I noticed a different behaviour of numeric control field. I explain:
I have two numeric controls (DBL) whose Display format is set almost in the same way:
Control 1: Display format: %.1f mm/s -> data is shown like this: 3,1 mm/s
Control 2: Display format: %.1f °C -> data is shown like this: 3,1 °C
If I type a number 12,3 (not with unit of measurement) in the control, data is accepted in both controls:
Inserted value: 12,3
Control 1 shows 12,3 mm/s
Controls 2 shows 12,3 °C
If I type <number><space><unit>, data is accepted:
Inserted value: 12,3 mm/s -> Control 1 shows 12,3 mm/s
Inserted value: 12,3 °C -> Control 2 shows 12,3 °C
The problem is when I type <number><unit> (without space), data is accepted by Control2 and refused by Control1:
Inserted value: 12,3mm/s -> Control 1 refuses value and show the previous value
Inserted value: 12,3°C -> Data is accepted and Control 2 shows 12,3 °C.
I think that the problem is the slash character (/) in the unit.
Do you have any workaround for this issue?
I was able to duplicate and find a workaround. NOTE: this is odd behavior and R&D should look into this closer.
The issue is NOT the \B0 (or Alt+0176) it seams to be the darned "/" in the format string! a format string "%,;%.1f mm*s^-1" works with or without space entered between digits and unit string. "%,;%.1f mm/s" needs the space entered. "%,;%.1f mm÷s" doesn't accept typed in digits with units with or without a space between them Go figure