![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Remove columns for a filtered view Topic Summary: Created On: 21-Jul-2006 23:56 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I create filtered views for modules each time the module is updated. We need to have only specific columns (about 7) in the filtered view created from the Evaluation view which contains upto 30 columns. I am able to do the filtering using the DBEs. How do I remove the columns not required for the filtered view by DXL code? Presently I am removing them manually. |
|
![]() |
|
![]() |
|
If you know which column you want to be deleted you can use:
delete(column 1) //removes the second column If you want to search thru the columns for an attribute examine the following code for an approach Column col for col in current Module do { string att = attrName(col) if (null att) { if (main(col)) { print "main\t" } else { print dxl(col) "\t" } } else { print att "\t" } } |
|
![]() |
|
![]() |
|
Thanks, Ron , for the suggestion. I could not delete the columns by delete(column 1) method, because the column numbers vary after each deletion. I got around the problem by deleting all the columns except column 0 (which I need anyway) and then added the six columns I need. The code is attached. Module m = current // Insert a copy of column 0 six times in the module. main(column 1) print "All columns created.\n" |
|
![]() |
|
![]() |
|
In connection with this topic, I added
title(column 6, "Doc/Req Control") and this works fine. - Krishna |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Remove columns for a filtered view
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.