Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
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
Solved! Go to Solution.
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.
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.
thanks a lot hart