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: GUI with a treeview and another GUI
Topic Summary:
Created On: 15-Jun-2003 17:39
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 Michael Sutherland, on Monday, June 16, 2003 6:20 PM

Answer:
Mary,

What you are asking for sounds similar to the interface of our "Copy Views" utility available here.

In this interface, you can "Browse" for a Target Module, and the Target Module name is inserted into the Target Module name field with the following command:

set( targetModuleFieldDBE, targetModuleName )

As for the alignment of buttons, I'm not sure what you are asking for. A screen snapshot would help.
 15-Jun-2003 17:39
User is offline View Users Profile Print this message


Mary Miller

Posts: 36
Joined: 12-Sep-2002

Hello,

I am attempting to create a GUI that will allow users to select a module and when they hit the OK button, the column in one module is summed.

So, I have a GUI that has a text field so that the user can enter the name of the module (programming for that isn't completely set up yet). Then there is a browse button that will load the treeView. Upon selecting the module and hitting the OK button, the module pathname would show up in the text field and the treeView would close.

My question is, how do I get the selected module name into the textfield of the previous GUI? Also, how do I align the OK button so that it is right next to the Close button in the treeView?

A good example of what I am attempting to do is illustrated by a piece of the Analysis Wizard. The section I am referring to is the one where you get to the section where you get to pick the specific module you want to analyze. Then you get to browse for the module.

Thanks,

Mary
Report this to a Moderator Report this to a Moderator
 15-Jun-2003 23:19
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

Answer Answer
Mary,

What you are asking for sounds similar to the interface of our "Copy Views" utility available here.

In this interface, you can "Browse" for a Target Module, and the Target Module name is inserted into the Target Module name field with the following command:

set( targetModuleFieldDBE, targetModuleName )

As for the alignment of buttons, I'm not sure what you are asking for. A screen snapshot would help.


-------------------------
Michael Sutherland
michael@galactic-solutions.com
http://galactic-solutions.com
Report this to a Moderator Report this to a Moderator
 16-Jun-2003 18:24
User is offline View Users Profile Print this message


Mary Miller

Posts: 36
Joined: 12-Sep-2002

I don't have to worry about that button any longer with this solution to the problem. Is there any documentation the miniExplorer? I noticed that it does not appear to be in the DXL Reference Manual.

I appreciate this. The script has exactly what I was looking for.

Mary
Report this to a Moderator Report this to a Moderator
 16-Jun-2003 19:52
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

Mary,

Below is some documentation on the miniExplorer() that I received from Telelogic.

-------------------------------------------------------------------------------------

There are four available interfaces for the mini explorer window...

1. string fnMiniExplorer(DB dlgParent, Folder fldFolder, int iItemFilter,
string sTitleBar, string sUserPrompt)
2. string fnMiniExplorer(Folder fldFolder, int iItemFilter, string
sTitleBar, string sUserPrompt)
3. string fnMiniExplorer(DB dlgParent, int iItemFilter, string sTitleBar,
string sUserPrompt)
4. string fnMiniExplorer(int iItemFilter, string sTitleBar, string
sUserPrompt)

The four interfaces are explained as follows...

* dlgParent - dialog box used as parent for any info boxes, etc.
* fldFolder - initial folder selection (i.e. the tree is expanded to this
level - defaults to the current if null or non-existent)
* iItemFilter - display option for tree view (see below)
* sTitleBar - user defined string for window title (defaults to "DOORS
Database Mini-Viewer" if null)
* sUserPrompt - user defined string for user prompt (defaults to "Please
make your selection..." if null)

The iItemFilter is an integer value that allows the user to filter the
display to show specific items (if desired). It should be constructed (i.e.
and OR'd value) using the following constants...

MINI_EXP_FP // projects and folders (undeleted)
MINI_EXP_LINK_MODS // link (undeleted)
MINI_EXP_FORMAL_MODS // formal (undeleted)
MINI_EXP_DESCRIPTIVE_MODS // descriptive (undeleted)
MINI_EXP_SHOW_DELETED // deleted items

Also (appropriate super-sets of these values)...

MINI_EXP_SHOW_ALL_NO_DELETED
MINI_EXP_SHOW_ALL

At a minimum it will always show projects and folders (for which the user
has read access obviously). It should also observe Project / Database View
options made in the DOORS Explorer top-level.

The return value for this call is a string representing the fully qualified
name of the selected item (or null if CANCEL).

It is best to validate this item name using "bool project(string)", "bool
folder(string)" or "bool module(string)" prior to use with other DXL
functions.

-------------------------
Michael Sutherland
michael@galactic-solutions.com
http://galactic-solutions.com
Report this to a Moderator Report this to a Moderator
 16-Dec-2003 21:57
User is offline View Users Profile Print this message


Douglas Zawacki

Posts: 97
Joined: 14-Aug-2003

Michael,

I have asked Telelogic for more documentation on the MiniExplorer() and I have been told there is none.
Did you actually get this documentation from telelogic? What hoops do I need to jump through to do the same?
Report this to a Moderator Report this to a Moderator
 16-Dec-2003 23:16
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

Douglas,

Yes, I did get the documentation from Telelogic based on an email to Telelogic support. It was quite a long time ago. I'm sure it was nothing personal when they didn't do the same for you.

-------------------------
Michael Sutherland
michael@galactic-solutions.com
http://galactic-solutions.com
Report this to a Moderator Report this to a Moderator
 22-Jan-2004 21:53
User is offline View Users Profile Print this message


Janet Ma

Posts: 115
Joined: 12-Sep-2002

I am trying the miniExplorer and using the code from Michael Sutherland's Copy Views in a more simpler GUI to test this out, but am stuck.

I get this message:
-R-E- DXL: <standard/itemProperties/linkSetsTab.inc:181> unassigned variable (createLSMapDB)

when I hit the "Browse" button, what am I missing

Here's my code:



Report this to a Moderator Report this to a Moderator
 23-Jan-2004 08:32
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

The problem is caused by the order in which you are declaring things.
You must declare the callback function before it is referenced in the DBE declaration.

I suggest that you do things inm the following order:

Declare the DB and DBE elements and set them to null.

Declare callback functions.

Create DBE elements.

I have attached your code with corrections.

regards

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 26-Jan-2004 15:29
User is offline View Users Profile Print this message


Janet Ma

Posts: 115
Joined: 12-Sep-2002

Thank you! I really appreciate this...it works.

Edited: 26-Jan-2004 at 15:30 by Janet Ma
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.