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: How to create new tables in the DOORS database
Topic Summary:
Created On: 13-Dec-2004 17:34
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.
Answer This question was answered by ron lewis, on Friday, March 11, 2005 5:06 PM

Answer:
Based on what you state as you goal you probably should create a module level text attribute.

Write you code to the attribute or set of attributes then access the attributes when you want.

Example:

    Module m = current
    m."Code" = "Some code"
    print m."Code"  ""

 13-Dec-2004 17:34
User is offline View Users Profile Print this message


Rubén Segura

Posts: 3
Joined: 13-Dec-2004

I´m developing a little aplication that it interacts with DOORS thru a DXL layer. I want to extend DOORS database adding new tables to store mi aplication´s data there. Is there a way to add new tables and consult and write them?

Thanks!

Rubén Segura

Report this to a Moderator Report this to a Moderator
 14-Dec-2004 10:13
User is offline View Users Profile Print this message


Paul Worrall

Posts: 87
Joined: 30-Sep-2003

Use the 'table' function to create tables (see the DXL manual). Tables in DOORS are implemented as a hierarchy of DOORS Objects: there is a 'top level' table object with child objects for each row, and each row object has child objects for each cell. If oT is a reference to the table object, then oT[2][3] gives you a reference to the third object of the second row. You can then access and change attribute values as for any other object. But I wonder if it really is a table you are looking for?
Report this to a Moderator Report this to a Moderator
 14-Dec-2004 13:08
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Answer Answer
Based on what you state as you goal you probably should create a module level text attribute.

Write you code to the attribute or set of attributes then access the attributes when you want.

Example:

    Module m = current
    m."Code" = "Some code"
    print m."Code"  ""

Report this to a Moderator Report this to a Moderator
 14-Dec-2004 20:51
User is offline View Users Profile Print this message


Christopher Klansky

Posts: 3
Joined: 22-Nov-2004

I think what you're asking for is to create a new DOORS "module" (a.k.a. database table). Below is the declaration/operation from DOORS DXL Help along with an example:

Declaration
Module create(string name,
              string desc,
              string prefix,
              int absno
               [,bool display]) 
Operation

Creates a formal module with name name, description desc, object prefix prefix and starting absolute number absno. The name argument can be an absolute or relative path. The optional last argument controls whether the module is displayed in the GUI after it has been created.

Example:

Module m = create("/MyProject/MyFolder/MyModule", "Module created for testing", "MM", 1, true)

Report this to a Moderator Report this to a Moderator
 15-Dec-2004 15:47
User is offline View Users Profile Print this message


Rubén Segura

Posts: 3
Joined: 13-Dec-2004

thanks,

but i want to store my info internally, because the users must not have access to these dates. If i use modules this info can be acceded by the users, reason why i want to modify directly DOORS database if it is possible and adapt it to my necessities.
Report this to a Moderator Report this to a Moderator
 15-Dec-2004 15:57
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

Rubén,

You could apply access rights to the module(s), so no others could read them. But, if your users are running the script as themselves, the script could not read the data.

You may want to look into "Configuration file access" in the DXL manual, as it allows one to create files in the database that are not normally visible to users, but are available for reading via the DXL scripting language.

-------------------------
Michael Sutherland
michael@galactic-solutions.com
http://galactic-solutions.com
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.