cancel
Showing results for 
Search instead for 
Did you mean: 

Can I add more then one mask item on the data collection ?

Former Member
0 Kudos

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!

Accepted Solutions (0)

Answers (1)

Answers (1)

sergiy_katerinich
Active Contributor
0 Kudos

Hi Cary,

Not possible.

Use Boolean type once you have only 2 options.

Regards,

Sergiy

0 Kudos

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?

sergiy_katerinich
Active Contributor
0 Kudos

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