Skip to main content
1-Visitor
January 24, 2014
Question

Unable to rename in the Number Column

  • January 24, 2014
  • 10 replies
  • 3955 views


My predecessor at my current company we are not able to change the Number. We can change the Name and File Name with no problem.


10 replies

1-Visitor
January 24, 2014
Edit the number of an object is achieved through OIR.

Find the Object Initialization Rule related to the object you want to enable
renumbering and comment out the argument below for the AttrConstraint
id="number".



<value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/">



You should check if this change has any affect in previous customizations or
workflows.








12-Amethyst
January 24, 2014

Guilherme, does<value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/"> apply just at time of create or forever afterwards? Regards Darren

22-Sapphire I
January 24, 2014
Rename (renumber) acts on the "master."

User permission (Modify Identity) has to be applied for all states that currently exist for the object in order for the user to be able to perform this action. One can see what states exist for any object from the Maturity History table.


But... (there's always more to the story)
It's fairly common to allow users to rename at the first working state (e.g. In Work) but not at Released or other states that result from promotion or another process. If this is the case in your system the following would be true. This is a very good best practice and should only be changed (if in place) after careful consideration.

Initial Condition: CAD PRT with these Versions exists
A.1 In Work
A.2 In Work
22-Sapphire I
January 24, 2014
In general, OIR's are only involved during creation - and in a very limited way on Revise.
Editing the Number via OIR is something that I cannot see any way to do.
msexton1-VisitorAuthor
1-Visitor
January 24, 2014

Mike


This is exactly were I am trying to get the system set to. But the way it is right now I have admin rights and I can't even renumber a file.



Marshall Sexton
Master Modeler


NABI USA

22-Sapphire I
January 24, 2014
How does your screen differ from this?

[cid:image001.png@01CF18E9.73FE83A0]
msexton1-VisitorAuthor
1-Visitor
January 25, 2014

Mine number column is grayed out.

At one time auto numbering was turned on. We turned the auto number off but missed something in the
process to be able to re-number the existing components.








22-Sapphire I
January 25, 2014
As someone else said earlier today, must be the OIR (I stand corrected). PTC has not been consistent in specifying how to disable autonumbering.
Need to get tech support involved.
msexton1-VisitorAuthor
1-Visitor
January 25, 2014
Will do, thanks all. I'll post the solution when I have one.





1-Visitor
January 29, 2014

It is in the object OIR in each context or organization:


You will see this for autonumber generation for WTPart OIR:


<arg>{GEN:wt.enterprise.SequenceGenerator:WTPARTID_seq:10:0}</arg>
</attrvalue>



Just add this in the bottom of the OIR:



<attrconstraint id="number" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
</attrconstraint>


Hope this helps.


Patrick

In Reply to Marshall Sexton:





My predecessor at my current company we are not able to change the Number. We can change the Name and File Name with no problem.