Book a Demo

Author Topic: Auto Counter table  (Read 3250 times)

Uwe Krüger

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Auto Counter table
« on: August 03, 2012, 02:13:52 am »
Hi all.

We are using Auto Names and Counters functionality to create Names and IDs (in the Alias Field) for requirements.

When creating some requirements with a script (based on old ones, that have no number) the auto-numbering is not generating the respective parts of the Name. We have a workaround for this, doing our own auto-counting in a separate number-area. Its o.k. that all the numbers for automatically generated Requirements are 9xxx. But unfortunately while the counter for the name is not altered at all, the counter for the Alias gets increased by every Requirement created from Script.

So when the numbers are say 0456 in both counters and you create 7 Requirements by script, after that operation the counter for name is still 0456, but the counter for the alias (our ID) is 463.

Now I would like to correct the counter from within a script. Has anyone an idea in which table I have to look?

Thx
Uwe

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Re: Auto Counter table
« Reply #1 on: August 03, 2012, 04:42:40 am »
Dear Uwe,

what you search is located in t_trxtypes. There you may find a row for each element type. (e.g.
RequirementAutocount1active=0;prefix_a=REQ-;counter_a=318;active_a=1;
)

Have fun with it.

Uwe, where are you from?

Greetings Stefan

Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website

Uwe Krüger

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Auto Counter table
« Reply #2 on: August 03, 2012, 05:21:11 am »
Thank you so much!

As I'm in Germany I'm not in office right now, but I will try it tomorrow. With your information I think I can handle it.

Warm regards
Uwe