![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: layout DXL: get text from another layout DXL column Topic Summary: "text(Column c, Object obj)" fails when called inside layout DXL Created On: 12-Apr-2007 12:53 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi all,
when I am using the perm "string text(Column c, Object obj)" inside the layout DXL code of a column different then the Column c, the DXL execution for the layout DXL stops. A simple example: Let's say Column 2 is layout DXL and just contains "display "hello world", then, Column 3 is also layout DXL and contains the attached code. The perm "ppp" just prints both into the column and into the DXL window. While column 3 just shows Reading column 2 ... the DXL Interaction window properly shows Reading column 2 ... ... done. Column 2 shows hallo Any hint? Regards, Peter |
|
![]() |
|
![]() |
|
I copied and pasted your code, changing only the column to be a text column in the module I had open. Worked fine. Did you possibly have "hallo" in the column to the right of the column you thought was column two? column(2) gets the third column in the view, not the 2nd.
------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
I think I have the order and number of columns correct ...
I am not quite sure what you mean with "text column". If it is a column showing a text attribute, yes, than all is fine, as the problem only occurs if the column in question contains layout DXL, too. Regards, Peter |
|
![]() |
|
![]() |
|
OK. I duplicated the problem. It probably has to do with the fact that layout DXL column values are calculated on the fly. And when the text is calculated for column two, its nothing (at least I get nothing when I do it).
To do what you want, make the column that has the text you want to read a DXL attribute. That is calculated when the module is opened or refreshed. Then for your layout DXL column, instead of getting the text of the dxl attribute column, you can just get the value of the dxl attribute. I tested it and it worked. ------------------------- David Pechacek AAI Services Textron dpechacek@sc-aaicorp.com David.Pechacek@gmail.com |
|
![]() |
|
![]() |
|
Thank you for your time and effort. The solution with DXL attributes works of course. But I am still wondering what is going on, as not only is the text retrieved from the layout DXL column empty, but DXL fully stops as regards layout DXL. I.e., in the above example, the "print" command is executed, while the "display" command is not.
Regards, Peter |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.