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: Covert Table Column to Object
Topic Summary:
Created On: 22-Sep-2008 19:07
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.
 22-Sep-2008 19:07
User is offline View Users Profile Print this message


Deborah Mason

Posts: 1
Joined: 22-Sep-2008

I need to import a word document that contains tables but then I want to convert the tables to objects instead of having each cell assigned an ID.

Some of the tables in this document are setup so the header is in column 1, row 1-x and the data is in column 2, row 1-x. It's a strange setup, but would require alot of rework to manually convert.

For example:

File Test.c Test2.c
Function MyTest MyTest2
Author A. Brown C. Walters
Date 12/1/2006 11/5/2007

I need a DXL script that would convert Column 2 and Column 3 to objects and use the text in Column 1 as attribute text.

I've used the DXL script to convert rows to objects, but I can't find anything to do the same for columns to objects. I tried modifying the DXL script for rows to objects, but I'm just not experienced enough with DXL.
Report this to a Moderator Report this to a Moderator
 23-Sep-2008 07:47
User is offline View Users Profile Print this message


Karl Breuer

Posts: 66
Joined: 11-Jul-2005

It probably would be easier to write a VBA macro and convert the tables in Word, then export the document to DOORS and use the dxl to convert the table rows to objects with attributes.

Karl
Report this to a Moderator Report this to a Moderator
 23-Sep-2008 11:10
User is offline View Users Profile Print this message


Farley Reynolds

Posts: 4
Joined: 5-Dec-2006

You can copy the tables to Excel, then use the copy > paste special to transpose the table then move them back to word. HTH
Report this to a Moderator Report this to a Moderator
 23-Sep-2008 11:39
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

The attached code is a quick hack for transposing a DOORS table. It actually does not transpose the table but creates a new, transposed table below the current table.

You can either transpose your tables and then convert them to objects, or use the code as a basis for your own code which directly creates the desired objects. Please note that the code

- has not been tested
- does not check access rights
- does not check the integrity of the table
- ignores rich text
- ...

Cheers,

Peter

Edited: 23-Sep-2008 at 11:39 by Peter Albert
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.