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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Check in of EPM document to fail in workspace if File name contains any string.

Durga
12-Amethyst

Check in of EPM document to fail in workspace if File name contains any string.

Hi All,

I'm trying to import a local file epm document in workspace and check-in in windchill.

I'll be creating associated WTPart in process.

The epm document number will be same as file name of epm document.

The requirement is epm document number should be only numeric.

If epm document file name contains any string it shouldn't check-in or throw a error " file name should be numeric"

Any ideas how it could be achieved.

I'm thinking of business rules.

Thank  you in advance.

 

Regards,

durga

 

1 ACCEPTED SOLUTION

Accepted Solutions
rhart
14-Alexandrite
(To:Durga)

A business rule could be written the validate the part number but business rules require a workflow.

Perhaps another simple way is to use a regex constraint, I added this regex to stop special characters ( & % _ < > + ; ~ ) in the WTPart/CAD Number.

Something like [\d]*$ only digits \d are allowed.

Or [^A-Z]*$ the letters A to Z are not ^ allowed.

 

reg_ex.png

View solution in original post

2 REPLIES 2
rhart
14-Alexandrite
(To:Durga)

A business rule could be written the validate the part number but business rules require a workflow.

Perhaps another simple way is to use a regex constraint, I added this regex to stop special characters ( & % _ < > + ; ~ ) in the WTPart/CAD Number.

Something like [\d]*$ only digits \d are allowed.

Or [^A-Z]*$ the letters A to Z are not ^ allowed.

 

reg_ex.png

Durga
12-Amethyst
(To:rhart)

thanks a lot hart

Top Tags