This connects to
Set TDConnection = CreateObject("TDApiOle.TDConnection")
TDConnection.InitConnection "http://yovav/tdbin" ' URL for the DB
TDConnection.ConnectProject "TD76","bella","pino" ' Valid login information
If TDConnection.Connected Then
MsgBox("Connected to " + chr (13) + "Server " + TDConnection.ServerName _
+ chr (13) +"Project " + TDConnection.ProjectName )
Set BugFactory = TDConnection.BugFactory
Set Bug = BugFactory.AddItem (Nothing)
'Fill the bug with relevant parameters
Bug.Summary = "Connecting to TD"
Bug.Priority = "4-Very High" ' depends on the DB
Bug.AssignedTo = "admin" ' user that must exist in the DB's users list
Bug.DetectedBy = "admin" ' user that must exist in the DB's users list
'Post the bug to database (commit)
1 comment:
It is a very good post. I am sharing this code to my blog here-https://www.techtravelhub.com/2019/02/frequently-asked-coding-questions.html
I have attached t your link as well.
Regards,
Animesh
Post a Comment