![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Problems with sorting by attribute Topic Summary: Created On: 18-Jul-2006 15:58 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
In the code Ref refers to a column - not an attribute
To sort by attribute you will need an attribute named Ref |
|
![]() |
|
![]() |
|
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? |
|
![]() |
|
![]() |
|
Neal, I just tried your code and there is nothing wrong with it!
It works fine. ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
AAAAAaaaaaaarrrrrrggghhhhhhh!!!!
It's just me that it doesn't work for then!! Mum, mum - DOORS doesn't like me!! Thanks for the response Tony. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Problems with sorting by attribute
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.