Does anyone know how to access to Starteam by SDK to see my change request in javascript ?
Thanks
MarLam
You might want to look at the sample with the SDK for examples. My
examples are located at:
C:\Program Files\Borland\StarTeam SDK 2006\samples\CRWatcher\JScript
Tom
STAdvice a-t Unionpoint.net
With your example i have complete my code and it's works fine !
// ----------------------------------------------------------------------------
// Finds ChangeRequest open for automated test.
// ----------------------------------------------------------------------------
function getCR(view)
{
var server = view.Server;
var strType = server.TypeNames.CHANGEREQUEST;
var type = server.typeForName(strType);
// search ChangeRequests.
for (var ep = new Enumerator(view.RootFolder.GetItems(strType)); !ep.atEnd(); ep.moveNext())
{
var CR = ep.item();
//document.write(CR.Number+" "+CR.Synopsis+"<BR/>");
if (CR.ExternalReference.toLowerCase().match("automated test"))
{
if (CR.GetStatusDisplayName(CR.Status)=="Open")
{
// All CR open with automated test string in External Reference
g_strAllOpenCR +="<LI>"+CR.Number + " " + CR.ExternalReference + " " + CR.GetStatusDisplayName(CR.Status) + CR.Synopsis + "</LI>" + "<BR/>";
alert(g_strAllOpenCR);
}
}
}
}
Merci beaucoup Tom!
Mario