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: Populate DBE list
Topic Summary: How to...
Created On: 3-Jan-2008 12:42
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.
 3-Jan-2008 12:42
User is offline View Users Profile Print this message


Doors Group

Posts: 61
Joined: 31-Jan-2007

I'm trying to create an user form to create new users,
What i need to know is how to populate a list box using the code attached. I'm new at this.
Report this to a Moderator Report this to a Moderator
 3-Jan-2008 14:57
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Looks like you got it right. Your code works for me.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 3-Jan-2008 15:23
User is offline View Users Profile Print this message


Doors Group

Posts: 61
Joined: 31-Jan-2007

I know it's right, thanks. I need someone to help me modify this one so the list populate the USERS in my database.
Report this to a Moderator Report this to a Moderator
 3-Jan-2008 15:52
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

The insert command is used to put items in a list DBE. Just loop through the userList as we've previously shown you, inserting the name of each user.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 3-Jan-2008 16:53
User is offline View Users Profile Print this message


Doors Group

Posts: 61
Joined: 31-Jan-2007

Ok I did what you said and is not working. Can you help. Thanks!
Report this to a Moderator Report this to a Moderator
 3-Jan-2008 17:41
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

On this line:
insert(listCopyUser,noElems(listCopyUser),name u)

"name()" is a function to return the name of say, a module. To get a user's name, do:
u.name

But I think you'll have to assign it to a string instead of using it directly in the function call.

You're also missing a close brace in the uList() function, and you probably want to call it! See attached.

Take heart! DXL can be tricky to learn, but stay with it and it'll make more sense as you go.

Hope that helps,
Chris
Report this to a Moderator Report this to a Moderator
 6-Jan-2008 15:16
User is offline View Users Profile Print this message


Jon Martin

Posts: 49
Joined: 22-Nov-2006

Hi,

I've tried the script and I've got:


-R-E- DXL: <Line:10> An unexpected error has occurred: doors.exe caused an EXCEPTION_ACCESS_VIOLATION in module doors.exe at 001B:005A9827

Backtrace:
<Line:19>
-I- DXL: execution halted
Report this to a Moderator Report this to a Moderator
 7-Jan-2008 10:18
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Take out the call to loadDirectory().
You only need to do this if you are going to update the user directory, and you only want to load it once!

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 7-Jan-2008 12:30
User is offline View Users Profile Print this message


Jon Martin

Posts: 49
Joined: 22-Nov-2006

Thank you Tony
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.