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: DXL attribute and views
Topic Summary: Clarification regarding DXL attribute
Created On: 1-Aug-2008 16:44
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.
Answer This question was answered by Gordon Woods, on Friday, August 1, 2008 6:10 PM

Answer:
Santosh

The filter will work on a dxl attribute.

However, if you created the dxl via the wizard then it may be putting blank lines into the attribute - so it looks like they are empty but are not ( even a "\n" means that it is not empty)
Converting layout dxl to dxl attribute will add an extra "\n"
You can check this by double clicking on the attribute in exclusive edit and see if you can highlight any content. If you can highlight more than one line then thats your problem.

There are a number of solutions to correct this depending on what you are trying to do and your level of dxl experience.

1. re run the wizard with no recursion and One attribute per line turned off
2. modify the dxl code by taking out the lines bsz += "\n" in the functions display and displayRich
3.remove the two lines
adjustLines(depth, 1)
if (depth == 1) display ""

4. post your dxl here and someone will edit it for you.

( 2 & 3 are quick fixes and not what a good dxl programmer would do!)

-------------

Gordon Woods
BAE Systems (Operations) Limited, Warton, UK
gordon.woods2@baesystems.com
 1-Aug-2008 16:44
User is offline View Users Profile Print this message


Santosh Vishwanath

Posts: 5
Joined: 27-Jun-2005

I am trying to apply a filter "Attribute X is empty", but seems like it does not work. Attribute X is a DXL attribute. I thought views are supposed to filter all types of attributes. Am I missing something?
Report this to a Moderator Report this to a Moderator
 1-Aug-2008 17:29
User is offline View Users Profile Print this message


Gordon Woods

Posts: 35
Joined: 2-Mar-2007

Answer Answer
Santosh

The filter will work on a dxl attribute.

However, if you created the dxl via the wizard then it may be putting blank lines into the attribute - so it looks like they are empty but are not ( even a "\n" means that it is not empty)
Converting layout dxl to dxl attribute will add an extra "\n"
You can check this by double clicking on the attribute in exclusive edit and see if you can highlight any content. If you can highlight more than one line then thats your problem.

There are a number of solutions to correct this depending on what you are trying to do and your level of dxl experience.

1. re run the wizard with no recursion and One attribute per line turned off
2. modify the dxl code by taking out the lines bsz += "\n" in the functions display and displayRich
3.remove the two lines
adjustLines(depth, 1)
if (depth == 1) display ""

4. post your dxl here and someone will edit it for you.

( 2 & 3 are quick fixes and not what a good dxl programmer would do!)

-------------

Gordon Woods
BAE Systems (Operations) Limited, Warton, UK
gordon.woods2@baesystems.com
Report this to a Moderator Report this to a Moderator
 1-Aug-2008 18:10
User is offline View Users Profile Print this message


Santosh Vishwanath

Posts: 5
Joined: 27-Jun-2005

Perfect it works. Removed the "\n". Not sure why you said the #2 is not what a good programmer would do.
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.