![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Moving Table Rows Topic Summary: Created On: 16-Aug-2004 09:49 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Have you tried the object cut/copy/paste functions to do it?
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Moving Table Rows
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.