DXL code to choose a DOORS module

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.
"Help!"
thanks
SystemAdmin - Mon Aug 24 16:35:54 EDT 2009

Re: DXL code to choose a DOORS module
llandale - Mon Aug 24 19:29:17 EDT 2009

When you say 'DOORS Document' do you mean 'DOORS Module'? You want something like seen on the Links menu >>Advanced >> CreateLinks dialog? You can browse around looking for a 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.

  • Louie

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:
string UserSelect = fnMiniExplorer(DB, Folder Initial, int Type, string DB Title, string DBE Title)

Type can be or'd combination of: MINI_EXP_LINK_MODS, MINI_EXP_FORMAL_MODS, MINI_EXP_DESCRIPTIVE_MODS
Try this:

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

 

 

  • Louie

 

 

Re: DXL code to choose a DOORS module
SystemAdmin - Mon Aug 24 21:15:53 EDT 2009

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:
string UserSelect = fnMiniExplorer(DB, Folder Initial, int Type, string DB Title, string DBE Title)

Type can be or'd combination of: MINI_EXP_LINK_MODS, MINI_EXP_FORMAL_MODS, MINI_EXP_DESCRIPTIVE_MODS
Try this:

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

 

 

  • Louie

 

 

Yes, "Document" == "Module". My company has its own universe...

The code you provided is ... PERFECT!
Thanks!

Re: DXL code to choose a DOORS module
SystemAdmin - Mon Aug 24 21:18:36 EDT 2009

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:
string UserSelect = fnMiniExplorer(DB, Folder Initial, int Type, string DB Title, string DBE Title)

Type can be or'd combination of: MINI_EXP_LINK_MODS, MINI_EXP_FORMAL_MODS, MINI_EXP_DESCRIPTIVE_MODS
Try this:

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

 

 

  • Louie

 

 

I must ask -- WHERE is that function (and others) documented!?!?!?! I've bruised google searching for DXL with very little success (except for this forum).
Thanks again.

Re: DXL code to choose a DOORS module
llandale - Tue Aug 25 09:49:01 EDT 2009

SystemAdmin - Mon Aug 24 21:18:36 EDT 2009
I must ask -- WHERE is that function (and others) documented!?!?!?! I've bruised google searching for DXL with very little success (except for this forum).
Thanks again.

It was mentioned on the old Telelogic forums, I suspect the person had a de-encrypter and took a look at how some of the interface was implemented.

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.

  • Louie

Re: DXL code to choose a DOORS module
Strad - Wed Aug 26 10:15:45 EDT 2009

llandale - Tue Aug 25 09:49:01 EDT 2009
It was mentioned on the old Telelogic forums, I suspect the person had a de-encrypter and took a look at how some of the interface was implemented.

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.

  • Louie

I've tended to use the kick start from SmartDXL.com

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...