cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

How can i add a Validation Expression in an editable Grid?

mazri
7-Bedrock

How can i add a Validation Expression in an editable Grid?

Hi, I'm trying to add a verification expression in an editable grid, but it seems that this is not working very well since it is always showing an error even though my entry respects the regular expression that i defined.

Someone could help?

Thanks!

ACCEPTED SOLUTION

Accepted Solutions
mazri
7-Bedrock
(To:PaiChung)

Oh actually i managed to find the solution , thanks to your answer i tryied this : /^[A-Z][a-zA-Z0-9_]{0,30}$/.test([Name]) and it works

before i was trying this: /^[A-Z][a-zA-Z0-9_]{0,30}$/.test(Name) but it doesn't work.

Thanks !

View solution in original post

4 REPLIES 4
PaiChung
22-Sapphire I
(To:mazri)

What does your regular expression look like and how are you binding your values to the widget?

mazri
7-Bedrock
(To:PaiChung)

                                   

PaiChung
22-Sapphire I
(To:mazri)

I don't think it will be able to use that.

It needs a javascript comparison statement .. like [fieldname] > 30 not even sure if it can do isString or anything like that.

mazri
7-Bedrock
(To:PaiChung)

Oh actually i managed to find the solution , thanks to your answer i tryied this : /^[A-Z][a-zA-Z0-9_]{0,30}$/.test([Name]) and it works

before i was trying this: /^[A-Z][a-zA-Z0-9_]{0,30}$/.test(Name) but it doesn't work.

Thanks !

Announcements


Top Tags