method SetRangeAndCritSetUser | |
Syntax: | object.SetRangeAndCritSetUser UserID, Password |
Parameters: |
UserID As
String -
Password As
String -
|
Description: | The SetRangeAndCritSetUser method sets the Range and Criteria Set username and passwords. This must be called prior to adding or deleting a Range or Criteria Set with the Item Agent. Example: Dim oTrkItemAgent As Object Dim oTrkSession As Object Dim oTrkItems As Object Set oTrkItemAgent =
CreateObject("Tracker.TrkItemAgent") Set oTrkSession =
CreateObject("Tracker.TrkSession") oTrkSession.AddProject ProjectName, "ADMINISTRATOR",
"" oTrkSession.SetRangeAndCritSetUser "ADMINISTRATOR",
"TEST" oTrkItemAgent.SessionId = oTrkSession.SessionId oTrkItemAgent.SaveRange "RNG1" oTrkSession.Clear oTrkItemAgent.Execute oTrkItems |