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: Problems with sorting by attribute
Topic Summary:
Created On: 18-Jul-2006 15:58
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.
 18-Jul-2006 15:58
User is offline View Users Profile Print this message


Neal Middlemore

Posts: 35
Joined: 24-Mar-2005

Hi,

I am creating a new view in an empty module, I have removed the columns from the standard view, created the columns that I want and then attempt to set a sort based on an attribute value by using the syntax:
set ascending "Ref"
sorting on.

The bit of code that creates the columns and the sort is attached.

The columns are created but the sort is not working though, as usual I am probably doing something embarassingly stupid and I would appreciate it if somebody could help me out please?

Regards

Neal

Edited: 18-Jul-2006 at 15:59 by Neal Middlemore
Report this to a Moderator Report this to a Moderator
 18-Jul-2006 18:21
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

In the code Ref refers to a column - not an attribute

To sort by attribute you will need an attribute named Ref
Report this to a Moderator Report this to a Moderator
 20-Jul-2006 08:45
User is offline View Users Profile Print this message


Neal Middlemore

Posts: 35
Joined: 24-Mar-2005

I do have an attribute called 'Ref', the name of the column is 'Ref.' and therefore different.

I have changed the column title to "Num" but it made no difference.

The strange thing is that when I went in to the new module I had created, I went to Tools, Sort and the dialogue box showed the current sort as Ascending Ref, clicking the Re-apply button correctly sorted the module, Why can't I do this from DXL?
Report this to a Moderator Report this to a Moderator
 20-Jul-2006 09:51
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Neal, I just tried your code and there is nothing wrong with it!
It works fine.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 20-Jul-2006 15:02
User is offline View Users Profile Print this message


Neal Middlemore

Posts: 35
Joined: 24-Mar-2005

AAAAAaaaaaaarrrrrrggghhhhhhh!!!!


It's just me that it doesn't work for then!!

Mum, mum - DOORS doesn't like me!!


Thanks for the response Tony.
Report this to a Moderator Report this to a Moderator
 20-Jul-2006 21:25
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

After taking out the references to the other attributes (and turning Autodeclare back on), the attached code works for me.

Those other attributes 'Doc Num', 'Document Name', 'Date' sure look like module level attributes, not object level ones. Am investing a bug about putting such attributes in a column

- Louie
Report this to a Moderator Report this to a Moderator
 20-Jul-2006 21:34
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Running v7.1 only.
The attached code creates a column with attribute 'Prefix', which is a module level attribute only. The column is created OK and saved in the view. You can edit values, insert any text. When you look at the object's last History entry, you get this error:

-R-E- DXL: <standard/history/historyTab.inc:527> unknown Object attribute (Prefix)

Will someone try to run in in v8.1 please? I figure to submit a bug report

- Louie
Report this to a Moderator Report this to a Moderator
 21-Jul-2006 10:02
User is offline View Users Profile Print this message


Neal Middlemore

Posts: 35
Joined: 24-Mar-2005

Sorry Louie, I don't have v8.1 only 7.1.

I have looked further at my own problem and discovered this:

If I have a module with all the attributes I need created and run the code in that module, it works.

What I actually want to do though is to run the code from a source module and actually create the module and attributes I want, the sort doesn't work even though the module, attributes and view is created correctly.

I have attached the code to do this little operation, I must be doing something wrong.......

Regards

Neal
Report this to a Moderator Report this to a Moderator
 21-Jul-2006 12:25
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Louie,

I ran you code on DOORS 8.1.
DXL error on viewing object history:
-R-E- DXL: <standard/history/historyTab.inc:786> unknown Object attribute (Prefix)

Also, this changed the cursor to an hour glass and it remained that way, even though I was able to continue working.

-------------------------
Tony Goodman
http://www.smartdxl.com

Edited: 21-Jul-2006 at 12:27 by Tony Goodman
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.