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: Passing a variable into Layout DXL?
Topic Summary:
Created On: 14-Mar-2008 17:04
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.
 14-Mar-2008 17:04
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

K...So maybe I'm having some kind of brain fart.

I'm trying to create some columns that are populated by layout DXL via a DXL script.

Basically I have a for loop that is looping through some attribute names that I want displayed in color using the displayRichWithColor (string s) method. The title of the column is the same as that of the attribute. The problem is that I can't seem to get text from the correct attribute, because I can't seem to pass the attribute name into the layout dxl from my script or get the name of the "current" column.

Here's an example of what I'm trying to do:

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com
Report this to a Moderator Report this to a Moderator
 14-Mar-2008 18:34
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Fixed it for you. You were putting the word "attr" in place of the actual attribute name. You needed to end the string, get the name of the attrdef and concatenate it with the code string.

Up to you, but I'd also use a buffer instead of a string.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com

Edited: 14-Mar-2008 at 18:35 by David Pechacek
Report this to a Moderator Report this to a Moderator
 14-Mar-2008 18:43
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Heh...

Figured it out shortly after I posted... Did it a little bit differently though:

-------------------------
Scott Boisvert
Engineering Tools Administrator
L-3 Communications - Avionics Systems
scott.boisvert@l-3com.com

Edited: 14-Mar-2008 at 18:45 by Scott Boisvert
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 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 1 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.