I cannot find anything about how to use sdk com wrapper for javascript.
Does someone can help me with this ?
Regards,
MarLam
With SDK 9.3 (ST2006 R2), documentation is better than with old SDKs.
you have some examples in program files/borland/Starteam SDK 9.3/
samples
StarTeam SDK does not have wrapper api call that I know you can write
java script to work. The Item wrapper is part of the StarTeam
Extension SDK which I do not think you can get to via java script. I
write several applications that use the Item wrapper but they are java
based and I put both SDKs on the class path.
Good Luck.
Tom
It is possible to use the com wrapper directly in javascript see my example.
I use the starteam sdk com wrapper to access StarTeam server.
I can logon, list projects, list views, and i try to search some changerequests....
Does anyone can help me for the rest ?
Here is where my javascript.
// Parameters need
var strAddress = "server";
var nPort = 49000;
var strUser = "user"
var strPassword = "password";
// Create a StarTeam Server object.
var StServerFactory = new ActiveXObject("StarTeam.StServerFactory");
var StServer = StServerFactory.Create(strAddress, nPort);
// Establish a connection to the server.
StServer.connect();
// Logon as the given user.
StServer.logOn(strUser, strPassword);
var strMessage = '<span style="font-size:15pt; font-weight:bold;"><font color="blue">' + "Projects at " + strAddress + "<BR/>"+"</font></span>";
// Enumerate projects
for (var StProject = new Enumerator(StServer.Projects); !StProject.atEnd(); StProject.moveNext() )
{
if (StProject.item().Name == "Specific project")
{
alert("Project Name: "+StProject.item().Name);
for (var StView = new Enumerator(StProject.item().Views); !StView.atEnd(); StView.moveNext() )
{
if (StView.item().Name="Specific View")
{
alert(StView.item().Name);
}
}
}
}
Regards,
Marlam