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

Translate the entire conversation x

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

Durga
13-Aquamarine

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

 

ACCEPTED SOLUTION

Accepted Solutions
rhart
16-Pearl
(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
16-Pearl
(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
13-Aquamarine
(To:rhart)

thanks a lot hart

Announcements

Top Tags