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: Listview question
Topic Summary: Icons by user status
Created On: 5-Aug-2008 11:52
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 Tony Goodman, on Wednesday, August 6, 2008 5:03 PM

Answer:
Douglas,

Change the skip list so that it stores the user variable indexed by user name.

Then check for the user's disabled property to determine which icon to use.
 5-Aug-2008 11:52
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

I created a listview DB for the current DOORS user and i'm looking the way to specify the icons by user.
Example: if a user is disable i want the disable icon.
If someone have a tip let me know.
Report this to a Moderator Report this to a Moderator
 5-Aug-2008 12:57
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Check the DXL Reference manual for the standard Icons. If one you want isn't there, all the icons used by DOORS itself are in DOORSHOME\lib\icons. DOORSHOME being your DOORS install directory. You can manually load an Icon using

Icon i = load(string filename)

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 6-Aug-2008 14:07
User is offline View Users Profile Print this message


Tony Goodman

Posts: 97
Joined: 6-May-2008

Answer Answer
Douglas,

Change the skip list so that it stores the user variable indexed by user name.

Then check for the user's disabled property to determine which icon to use.

-------------------------
Tony Goodman
Smart DXL limited
www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 6-Aug-2008 17:06
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

Can you let me know what is the string key users. I know that users is the skip list but how this act in the script.

BTW Thank You very much this really help me a lot. i'm still a premie in this DXL stuff.
Report this to a Moderator Report this to a Moderator
 7-Aug-2008 12:13
User is offline View Users Profile Print this message


Tony Goodman

Posts: 97
Joined: 6-May-2008

The skip list called users contains the following
DATA = user
KEY = name of the user

When looping througha skip list, the loop variable is the DATA.

You access the KEY of the current entry using "key <skip list>".
The "string" is there to cast the key to a string (not sure if this is necessary, but I have always done it this way.

// So loop through skip list. Sets u to each entry in the skip list in turn, ordered by the KEY value
for u in users do
{
// get key of current entry
uName = (string key users)
}

-------------------------
Tony Goodman
Smart DXL limited
www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 11-Aug-2008 19:57
User is offline View Users Profile Print this message


Douglas Perez

Posts: 47
Joined: 20-Feb-2008

How can I refresh the same list to reflect the changes i've made?
Example: enabling a user.
Report this to a Moderator Report this to a Moderator
 11-Aug-2008 20:29
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

You'd have to either isolate the changes and then delete/readd each row or just empty the entire thing and then rebuild.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
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.