Skip to main content
17-Peridot
February 12, 2024
Solved

Type and Attributes

  • February 12, 2024
  • 1 reply
  • 1580 views

Hi Guys,

I am looking for a restriction on 'Reusable Attribute'.

1. For example, my attribute name is Test and its type is String.

2. Then i adding in WT Part, there we have a option Constraint. Right

3. Rule which i want only 3 digits required that mean i can use String Length, but i want only numberic not alphabet which constraint we can use on here.

 

Regards,

Aj

Best answer by HelesicPetr

Hi @Amirtharaj_K 

You can use String format

DDD like decimal decimal decimal

HelesicPetr_0-1707725783094.png

 

PetrH

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
February 12, 2024

Hi @Amirtharaj_K 

You can use String format

DDD like decimal decimal decimal

HelesicPetr_0-1707725783094.png

 

PetrH

17-Peridot
February 12, 2024

Thanks for the Replay @HelesicPetr 

 

Can you give me more details about String Format and also other types.

 

Regards,

Aj

HelesicPetr
22-Sapphire II
22-Sapphire II
February 12, 2024

Hi @Amirtharaj_K 

Check the help.

Attribute Constraint Rules

PTC recommends to user regular expression instead but if it works it is the easiest way how to add a format constraint.

PetrH