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: Function to add database items to Favorites menu
Topic Summary:
Created On: 28-Jan-2007 21:37
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 Louie Landale, on Monday, January 29, 2007 11:08 PM

Answer:
I did NOT this, so proceed at your own risk.

See the 'configuration file access' section in General Language Facilities of the DXL manual.

There exists a 'favorites.txt' file in the 'confUser' portion of the database. I added two favorites and the file looks like this:
00000014
DBPS_2007-Jan-11
000096e2
200 Series

The long number is no doubt the 'unique id' of the folder that is a favorite, and the next line is the name. Thus, a single 'favorite' is composed of two lines in the file.

You can open this file for editing and add a favorite with something that looks like this:

Folder fld = folder handle of the folder you wish to add to favorites
ConfString cs = confAppend("favorites.txt", confUser)
cs << uniqueId(fld) "\n"
cs << name(fld) "\n"
close(cs)

- Louie
 28-Jan-2007 21:37
User is offline View Users Profile Print this message


Pete Kowalski

Posts: 301
Joined: 7-Feb-2003

Is there a function that will allow you to add database items to a user's Favorites? I searched the DXL manual and didn't see anything, but then again the DXL manuals sometimes are missing information..cough .. cough.

Here is a picture of what I am talking about.

Thanks.

fav.gif
fav.gif  (6 KB)



-------------------------
pete.kowalski(at)motorola.com
Report this to a Moderator Report this to a Moderator
 29-Jan-2007 00:15
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
I did NOT this, so proceed at your own risk.

See the 'configuration file access' section in General Language Facilities of the DXL manual.

There exists a 'favorites.txt' file in the 'confUser' portion of the database. I added two favorites and the file looks like this:
00000014
DBPS_2007-Jan-11
000096e2
200 Series

The long number is no doubt the 'unique id' of the folder that is a favorite, and the next line is the name. Thus, a single 'favorite' is composed of two lines in the file.

You can open this file for editing and add a favorite with something that looks like this:

Folder fld = folder handle of the folder you wish to add to favorites
ConfString cs = confAppend("favorites.txt", confUser)
cs << uniqueId(fld) "\n"
cs << name(fld) "\n"
close(cs)

- Louie
Report this to a Moderator Report this to a Moderator
 29-Jan-2007 23:08
User is offline View Users Profile Print this message


Pete Kowalski

Posts: 301
Joined: 7-Feb-2003

Louie,

Thanks for this suggestions. The thoughts of checking these files didn't even cross my mind.

I am good at breaking stuff so wish me luck!

-------------------------
pete.kowalski(at)motorola.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.