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: Moving Table Rows
Topic Summary:
Created On: 16-Aug-2004 09:49
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.
 16-Aug-2004 09:49
User is offline View Users Profile Print this message


Kim Faint

Posts: 15
Joined: 16-Aug-2004

As we all know Tables in DOORS are simply an Object hierarchy displayed in the form of a table. The top level Object being the Table Header Object which has a sub-object called a Table Row Object for each row and each of these having a sub-object for each of the table cells.

I am trying to reorder the rows of a Table by using the move() function to move a Table Row Object. So if objR1 and objR2 are two Table Row objects and I want to move objR2 to be immediately after objR1 in the table I assumed I could just use the following DXL to do so:

move(objR2, objR1)

However it returns the following DXL error:

cannot move object: object is a table row

Does anybody know how else one might move a DOORS Table Row?

-------------------------
Kim Faint (kim.faint@boeing.com)
Systems Engineer
Boeing Australia
http://www.boeing.com.au
Report this to a Moderator Report this to a Moderator
 16-Aug-2004 16:40
User is offline View Users Profile Print this message


Antonio Norkus

Posts: 109
Joined: 28-Jun-2003

Hi Kim,

I've just tried cutting and pasting table row objects using DXL, and the operations return false.

Given that the move command and cut'n'paste commands are disabled for tables, it looks like the only way of "moving" a row is to:

use "appendRow" or "insertRow" to create a new row
use "for cell in row" to iterate through the old version of the row, copying information to the new row
use "deleteRow" to delete the old version of the row

I suppose that disabling these commands ensures that table structures remain legal, though it's a real pain when it comes to doing this kind of simple manipulation.

Best Regards,
Antonio.
Report this to a Moderator Report this to a Moderator
 17-Aug-2004 00:43
User is offline View Users Profile Print this message


Kim Faint

Posts: 15
Joined: 16-Aug-2004

thanks Antonio,

Inserting a new table row, copying the contents of the attributes and deleting the old row is satisfactory workaround, albeit a bit messy. For the moment I guess that will suffice. However it is highly desirable to be able to keep the history of the row being deleted and not have to create and delete so many objects.

I cannot believe that such a fundamental operation is not possible.

If the documented DXL move() function for table objects is disabled so that it keeps the table structures legal. Surely there is an undocumented DXL function that allows an advanced user to do it?

-------------------------
Kim Faint (kim.faint@boeing.com)
Systems Engineer
Boeing Australia
http://www.boeing.com.au
Report this to a Moderator Report this to a Moderator
 17-Aug-2004 14:20
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Have you tried the object cut/copy/paste functions to do it?
Report this to a Moderator Report this to a Moderator
 18-Aug-2004 01:56
User is offline View Users Profile Print this message


Kim Faint

Posts: 15
Joined: 16-Aug-2004

Antonio (in his reply above) has tried to use cut and paste but also found that it doesn't work. Most likely for the same reason the move() function does not work.

-------------------------
Kim Faint (kim.faint@boeing.com)
Systems Engineer
Boeing Australia
http://www.boeing.com.au
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.