Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
List of Workareas
sunil_j
Hi,
Is there someway to get a list of Workarea for a particular branch ?
Kindly reply asap.
Thanx
Sunil
Find more posts tagged with
Comments
Migrateduser
Here's a thread that might help you.
http://devnet.interwoven.com/forums/cgi-bin/showflat.pl?Cat=&Board=NEWSGROUPS_GENERAL&Number=8517&page=0&view=collapsed&sb=5&o=0&part=
Thanks.
sunil_j
I don't see anything relevant on the link provided.
Can someone suggest me some way how can I get a list of Workareas for a particular branch.
For example suppose I select the /default/main/www as the branch, so I want to have a list of all the workareas for the www sub branch.
Migrateduser
It's not clear at all what you are looking for. Do you want a script of some sort? Can you be more specific as far as what mechanism you want to use to get this information?
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
sunil_j
I have a Jsp Page on which I have populated a dropdown of the branches and sub-brancheson the TeamSite server. Once the user select a particular branch or a sub branch, I want to populate another dropdown (combobox) with the list of workareas for the selected branch.
Can i have some script or code which I can use to populate the dropdown with the name of the workareas for the selected branch.
For designing the combobox for the available branches on the teamSite server I have used the following code
use TeamSite::Config;
use TeamSite::Usertask;
my $iwhome = TeamSite::Config::iwgethome();
my($branch_menu) = TeamSite::Usertask::make_branchpathlist("$iwhome");
print $branch_menu;
So similarly can I have code for a list of Workareas?
Migrateduser
You could write some simple code that determines whether a WORKAREA directory exists, and if so scans the WORKAREA directory for all its subdirectories. Those are your workareas.
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
mogoo
sunil_j-
Would iwlist work for you? Here's a code snippet of what I've used before... note that iwlist will return all editions as well, so I filtered them out...
maureen
____________________________________________________
my $list = `$iwhome/bin/iwlist -a main/$branch`;
my
@Was
= split /\n/, $list;
foreach $wa (
@was){
if ($wa !~ /INITIAL|ed_/){
print "...$file, $wa\n";
}
}
Migrateduser
That would work as long as your editions always started with "ed", which may not always be the case. iwlist also returns the names of any sub-branches as well, which makes it even more confusing. iwlist would be a much more effective tool if you could tell it specifically what you wanted returned (show me only the workareas, or only the editions, etc.).
Dave Smith
Sr. Software Engineer
Nike, Inc.
(503) 671-4238
DavidH.Smith@nike.com
mogoo
good points Smitty! We don't have all those sub-complications & whatnot, so I didn't think about that. So many variables, so little time...
thanks!
maureen
Adam Stoller
iwlist
/branchvpath
/WORKAREA
will list all the workareas on that branch.
iwlist -m
/branchvpath
/WORKAREA
should list all the workareas on that branch for which the user has write access.
See
iwlist -h
for more information.
--fish
(Interwoven Senior Technical Consultant)