Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 12-Apr-2007 12:53
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

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
Report this to a Moderator Report this to a Moderator
 12-Apr-2007 13:54
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

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
Report this to a Moderator Report this to a Moderator
 13-Apr-2007 08:27
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

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
Report this to a Moderator Report this to a Moderator
 13-Apr-2007 15:35
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

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
Report this to a Moderator Report this to a Moderator
 20-Apr-2007 13:55
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.