![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() 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. | |
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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? |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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: |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Thank you! I really appreciate this...it works.
Edited: 26-Jan-2004 at 15:30 by Janet Ma |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
GUI with a treeview and another GUI
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.