Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: nextMajor(suffix) doesn't work
Topic Summary:
Created On: 21-Feb-2006 23:23
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 21-Feb-2006 23:23
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

The "nextMajor()" and "nextMinor()" command correctly get a baseline designation suitable for DXL to create a baseline with the "create(module, bl, annotation)" command.

However, the "nextMajor(suffix)" and "nextMinor(suffix)" commands do NOT retrieve a baseline handle, instead they return a baseline just like the "suffix(suffix)" command: current version with a suffix.

Thus, I cannot find a way to create a new Major or Minor basline using a suffix. Anybody know how to do that?

That is, if the current is "1.2 (a)" I can create "1.2 (b)" but I want to create baselines "2.0 (b)" or "1.3 (b)".

- Louie
Report this to a Moderator Report this to a Moderator
 22-Feb-2006 10:33
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Not sure if I am understanding correctly, but the following seems to work:

create(nextMajor("b"), annot)

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 22-Feb-2006 10:52
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Louie, Hi Tony,

nearly correct, but to create the baselines Louie wants to have, the correct code line would be :
create(nextMajor "(b)", annot)


Greetings
Reik Schröder

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 22-Feb-2006 14:17
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Not so, that would give an error because parentheses are not allowed in suffix strings.

The parentheses are optional, so
create(nextMajor "b", annot)
is syntactically the same as
create(nextMajor("b"), annot)

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 22-Feb-2006 15:36
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

That does seem to work.

What I'm trying to do, however, is build the Baseline variable first, then issue this: create(bl, Annotation). Variable "bl" is a function of "nextMajor" or "nextMinor", but when I do this: bl = nextMajor("a") and then look ath the bl variable, its major and minor parts are wrong and the 'create' function gives a trapped lastError() DXL error.

I guess I'll find a way to recode such that I use "create(nextMajor(Suffix), Annotation)" directly.

Thanks.

- Louie
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.