Hello every one,
I am new to mell…
I am trying to make two text scroll list displaying folder and sub folder when selected.
what i am trying to get is… when i select element from first scroll list “which is having a folder dir” the second scroll list should display sub folders of the selected element folder. here is a code i made but sadly both the TCL are showing only folder list… i used
string $scrollListSelection = textScrollList -q -si folderTSL;
for getting selection of first scroll list and tried to use the name to append on sub folder path… but dny worked out 
Here is a code i tried
global proc linkTextScrollList(){
// create a window
window;
columnLayout -adjustableColumn true;
frameLayout -label "Text scroll List linking" -w 841 -bs "etchedIn" -cll 1 -cl 1;
text -align "left" " folder sub-folder";
rowLayout
-numberOfColumns 2;
string $folderList = `textScrollList -w 200 -allowAutomaticSelection on folderTSL`;
string $subfolderList = `textScrollList -w 200 -allowAutomaticSelection on subfolderTSL`;
setParent ..;
setParent ..;
// show the window we last created
showWindow;;
//getting folder dir
string $folderPath = “F:/build/”;
string $Folders[] = getFileList -folder $folderPath;
for ($all in $Folders){
textScrollList -e -append $all folderTSL;
}
//getting subfolder dir on selecting folders from folder list
string $scrollListSelection = textScrollList -q -si folderTSL;
string $subFolderPath = (“F:/build/” + $scrollListSelection);
string $subfolders[] = getFileList -folder $subFolderPath;
for ($all in $subfolders){
textScrollList -e -append $all subfolderTSL;
}
}
linkTextScrollList()
i am a new noob
please can any one help me out where i am killing the sheep.

