Moving tables in DOORS

Hello DOORS community,

I am having difficulty with moving tables in DOORS. I would like to be able to manage moving a DOORS table with the same ease I have with moving a normal object. I also have to repeat this action for a lot of tables. Are there any recommendations for handling tables? Are there any DXL examples that help automate the movement of a table up a hierarchy?
best regards

Colm
MyDeveloerWorks - Tue Apr 27 11:51:28 EDT 2010

Re: Moving tables in DOORS
Mathias Mamsch - Tue Apr 27 14:37:45 EDT 2010

Every table has a header object which in DXL you can get using the getTable(Object) perm. You can move this object like any other object and the table will move with it. Regards, Mathias


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and DOORS

Re: Moving tables in DOORS
llandale - Tue Apr 27 17:46:58 EDT 2010

Understand that the table cells you see in DOORS have a parent 'row' object which you never see, and each row has a 'table' header object you rarely see. Cells are two levels down from the header. When you grab the 'table' you grab all the rows and cells also.

With the GUI, if you turn OFF showing Table Cells (View menu >Show >Table cells..), you end up displaying the table header objects itself. Click and drag it elsewhere, and select move.

With DXL you must get a handle on the table object. If you have a cell or row object, you can get the table object: Object getTable(Object tableCell). You may also want to make sure you have a table header object with bool table(Object).

Object o, oTable
for o in entire (current Module) do
{  if (table(o)) print identifier(o) "\tis a table header\n"
   elseif(row(o) or cell(o))
   {  oTable = getTable(o)
      print identifier(oTable) "\tis table header for object: " identifier(o) "\n"
   }
}

 

 

  • Louie

 

 

Re: Moving tables in DOORS
MyDeveloerWorks - Fri Apr 30 03:11:25 EDT 2010

llandale - Tue Apr 27 17:46:58 EDT 2010

Understand that the table cells you see in DOORS have a parent 'row' object which you never see, and each row has a 'table' header object you rarely see. Cells are two levels down from the header. When you grab the 'table' you grab all the rows and cells also.

With the GUI, if you turn OFF showing Table Cells (View menu >Show >Table cells..), you end up displaying the table header objects itself. Click and drag it elsewhere, and select move.

With DXL you must get a handle on the table object. If you have a cell or row object, you can get the table object: Object getTable(Object tableCell). You may also want to make sure you have a table header object with bool table(Object).

Object o, oTable
for o in entire (current Module) do
{  if (table(o)) print identifier(o) "\tis a table header\n"
   elseif(row(o) or cell(o))
   {  oTable = getTable(o)
      print identifier(oTable) "\tis table header for object: " identifier(o) "\n"
   }
}

 

 

  • Louie

 

 

Thanks to you both, the suggesiions helped.

Colm