How to create custom id automatically to artifacts in Doors Next Generation
Accepted answer
Amruta,
when you say "custom id" and automatically, does this mean
a - there is a custom attribute "id" which you want to autofill when the artifact is created?
b - you want an automatically increasing custom ID replacing the system artifact ID?
If a --> easy to create a custom attribute and call it e.g. "custom id". Via JavaScript extensions you could read external sources to find out with what to fill it upon creation ( https://jazz.net/wiki/bin/view/Main/RMExtensionsMain )
If b --> hard to do, since artifacts can be created in parallel. You would have to keep some external counter in e.g. a database and implement some kind of locking etc. You would also have to mask the system ID which does not seem possible or feasible. Not a recommended route at all. Why not use the artifact ID generated by the system?
If a is the answer and it is useful to you please mark this as accepted.
- Arne
Comments
Thanks for the quick response,
I achieved it using section ,but section cannot come in JRS,there is any way to copy section column into another column which will come in JRS?
Section, what's that?
Section is a feature in DNG,that get automatically numbering e.g 1 ->1.1 for parent child artifact
2 other answers
Hi Amruta,
There have been similar questions about custom ID's (well, with a custom prefix)
Links:
Is it possible to add a prefix to the id attribute
How do we create custom prefixes for requirement id numbers
How to add prefix in DNG id number
Hope this helps.