cancel
Showing results for 
Search instead for 
Did you mean: 

Validation for the Tuple field

0 Kudos

Hi Experts,

The Validation to be written for the Tuple field. The EAN Code is a part of the tuple. If the users maintain the EAN Code which starts with 11 series i.e. first 2 digits only it should throw an error i.e. invalid Bar code. For the other digits it should not throw an error.

Please advice.

Thanks & Regards,

U G

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi UG,

You can write at the Tuple level which can be something like -

LEFT(EAN,2) = "11"

Thanks,

Ravi

0 Kudos

Thanks Ravi.

If additonal has to be added i.e. 21 & 31 then it should be LEFT(EAN,2)="11"&"21"&"31 Right?

former_member193350
Active Participant
0 Kudos

Hello UG,

If you want to keep first two digits only out of these values ("11","21","31")  then you have to write the below expression:-

LEFT(EAN,2)="11" OR "21" OR "31"

Hope it helps.

Regards

Prateek

Former Member
0 Kudos

Hi UG,

You can try -

LEFT(EAN,2) = "11" OR LEFT(EAN,2) = "21" OR LEFT(EAN,2) = "31"

Thanks,

Ravi

Answers (0)