I'm new at DXL, but am an experienced SWE otherwise. I need a dialog box that will enable the user to select a DOORS document in the same manner as he would a file in the filesystem using "fileName" in a dialog box. I have searched this and other forums as well as the PDF manual, and cannot find what I'm looking for. |
Re: DXL code to choose a DOORS module Golly, with all the DXL I've written I guess I've never actually had to do that. A 'treeView' looks promising, but I see no way to specify the top-most folder for it to display modules; perhaps you have to find all the modules individually and 'insert' them into the the treeView; no doubt after the DB is 'realize'd and before its 'show'n. I predict we are about to get a response explaining how.
|
Re: DXL code to choose a DOORS module
Going brain dead. Did I already say that? There is a DXL written function that does it:
DB db
//***********
void btnSearch(DBE dbeXX)
{ // button callback
string UserSelect = fnMiniExplorer(db,
folder("/Testing/Test"),
MINI_EXP_LINK_MODS | MINI_EXP_FORMAL_MODS,
"Search for Test Modules",
"Search for Modules"
)
print "User selected: <">\n"
}
db = create("Browse Module")
button(db, "Search", btnSearch)
show db
|
Re: DXL code to choose a DOORS module llandale - Mon Aug 24 19:44:50 EDT 2009
Going brain dead. Did I already say that? There is a DXL written function that does it:
DB db
//***********
void btnSearch(DBE dbeXX)
{ // button callback
string UserSelect = fnMiniExplorer(db,
folder("/Testing/Test"),
MINI_EXP_LINK_MODS | MINI_EXP_FORMAL_MODS,
"Search for Test Modules",
"Search for Modules"
)
print "User selected: <">\n"
}
db = create("Browse Module")
button(db, "Search", btnSearch)
show db
The code you provided is ... PERFECT! Thanks! |
Re: DXL code to choose a DOORS module llandale - Mon Aug 24 19:44:50 EDT 2009
Going brain dead. Did I already say that? There is a DXL written function that does it:
DB db
//***********
void btnSearch(DBE dbeXX)
{ // button callback
string UserSelect = fnMiniExplorer(db,
folder("/Testing/Test"),
MINI_EXP_LINK_MODS | MINI_EXP_FORMAL_MODS,
"Search for Test Modules",
"Search for Modules"
)
print "User selected: <">\n"
}
db = create("Browse Module")
button(db, "Search", btnSearch)
show db
Thanks again. |
Re: DXL code to choose a DOORS module SystemAdmin - Mon Aug 24 21:18:36 EDT 2009 The DXL manual has DXL 'perms', basic functions. It does not include clever DXL written functions such as this. Don't know where there's a list.
|
Re: DXL code to choose a DOORS module llandale - Tue Aug 25 09:49:01 EDT 2009
URLhttp://www.smartdxl.com/miniexplorer.html[/URL] it states it fixes a filter issue in the default code so I've just tended to us it out of habit... |