on 01-27-2011 10:03 AM
Hi,
I have a requirement, for example as follows.
ex.
Data collection: DC01
Parameter 1: P1 and Type is text.
P1 parameter just only allow two values, "AB" or "CD".
Data collection's mask can do that? If not, any good soultion can do that?
thanks!
Hi Cary,
Not possible.
Use Boolean type once you have only 2 options.
Regards,
Sergiy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have a requirement to allow 3 options. "red", "green", "blue". I was trying to use regular expression: red | green | blue to accomplish but " | " is interpreted as a literal.
Does data collection parameter mask support logical operaters in a regular expression like:
X|Y validates Either X or Y
Any other workarounds exist to accomplish this?
Hi,
There might be the case to use Formula to interpret the input value to one of 3 possible options.
Though, you can consider the easier approach:
- set the parameter type to Numeric;
- set MIN = 1;
- set MAX = 3;
- set Mask = #.
This implies that only 1, 2, or 3 can be entered.
In Data Collection Prompt, you can decribe which number corresponds to which colour.
Regards,
Sergiy
User | Count |
---|---|
94 | |
11 | |
10 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.