Get multiple selected Items from DOORS Explorer

Hi,

with getSelectedItem() it is possible to get the item which is currently selected in the DOORS explorer.
My question: Is it possible to get a list of selected items in the DOORS explorer? A user has the possibility to make a multi selection, but I can not find the DXL function (undocumented?) to get all those selected items.

Many thanks in advance, Helko
Helko - Wed Feb 22 12:21:42 EST 2012

Re: Get multiple selected Items from DOORS Explorer
Mathias Mamsch - Wed Feb 22 12:25:08 EST 2012

In a hurry, so very shortly answered: Skip getSelectedListItemNames()

Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Re: Get multiple selected Items from DOORS Explorer
Steve.requiremore - Tue Jan 13 08:25:29 EST 2015

Mathias Mamsch - Wed Feb 22 12:25:08 EST 2012
In a hurry, so very shortly answered: Skip getSelectedListItemNames()


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS

Hi,

I stumbled on this just today and thought I would provide some more info. The following demo function lists the selected items:

void getSelectedItemsDemo(void)
{
    Item i = getSelectedItem()
    if (i!=null) { //anything selected?
        // get path from root
        Folder pf = getParentFolder(i)
        string fn = ""
        if (pf != null) fn = fullName(pf)
        print "Folder is " fn "\n"
        
        // get item names
        Skip sk = createString()
        sk = getSelectedListItemNames()
        string s
        int count=0
        for s in sk do {
            count = count+1
            // key is the same as value!
            string k = (string key sk) // just for fun
            print "selection # " count " = " s "\n"
        }
    }    
}

 

Any comments? (allthough it's been a while :-)

Stefan

Re: Get multiple selected Items from DOORS Explorer
Wolfgang Uhr - Tue Jan 13 11:16:11 EST 2015

DBEcoffeeList;

 

void showSelectionList(DBExx) {

string sHelp;

for sHelp in coffeeList do {

print sHelp "\n";

}

}

 

voidshowCoffeList() {

 

DB coffeeBox = create "Coffees";

string coffees[] = {"Mocha", "Sumatra Blue", "Jamaica Mountain", "Mysore", "Kenya", "Java"};

 

coffeeList = multiList(coffeeBox, "Choose one of:", 5, coffees);

button(coffeeBox, "Show", showSelectionList);

 

show coffeeBox;

 

 

print "x";

 

 

}

 

showCoffeList();