![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Display new columns Topic Summary: Created On: 20-Dec-2002 16:03 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Line 2 should read: Column c = column(m, 2). This will return the handle of the EXISTING column #2 (the 3rd column I think) in the module m. Since this line had an error and variable "c" was NOT defined, its no surprise that line 4 had an error, since "c" is not defined. Consider the following overall approach: o Delete all existing columns in the current display: ...as per the DXL manual example in "delete(column)". o Insert(column) the number of times as columns you want in the new view. o For each column (in order), use your code to set its attributes, widths etc. I did stuff like this a long time ago, and it was reasonably tricky. You probably want to develop your code in sections, using print statement liberally and examining the current display to insure you get what you want. - Louie | |
![]() |
|
Hi everybody,
I am a new comer to DOORS. So forgive me if I asked some silly/simple questions. I want to create new columns to display some attributes, then save it as a new view. I am stucked in the first part. Here is my code and the error message (in italic) Module m = current Column c(m,2) -E- DXL: <Line:9> syntax error AttrDef ad=find(m,"Created On") attribute(c,"Created On") <Line:18> incorrect arguments for function (attribute) How can I work it out? Highly appreciated your help!!! hong |
|
![]() |
|
![]() |
|
Line 2 should read: Column c = column(m, 2). This will return the handle of the EXISTING column #2 (the 3rd column I think) in the module m. Since this line had an error and variable "c" was NOT defined, its no surprise that line 4 had an error, since "c" is not defined.
Consider the following overall approach: o Delete all existing columns in the current display: ...as per the DXL manual example in "delete(column)". o Insert(column) the number of times as columns you want in the new view. o For each column (in order), use your code to set its attributes, widths etc. I did stuff like this a long time ago, and it was reasonably tricky. You probably want to develop your code in sections, using print statement liberally and examining the current display to insure you get what you want. - Louie |
|
![]() |
|
![]() |
|
Louie,
I got it! Thanks a lot!!! hong |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Display new columns
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.