2022.2

Table Of Contents
repoObject.SetValue("Users", "FormOfAddress", "Mr.", "Gender='M'" );
repoObject.SetValue("Users", "FormOfAddress", "Ms.", "Gender='F' AND Mar-
italStatus='Married'" );
repoObject.SetValue("Users", "FormOfAddress", "Miss", "Gender='F' AND Mar-
italStatus=''" );
VB Script
repoObject.SetValue "Users", "FormOfAddress", "Mr.", " Gender=""M"" "
repoObject.SetValue "Users", "FormOfAddress", "Ms.", " Gender=""F"" AND Mar-
italStatus=""Married"" "
repoObject.SetValue "Users", "FormOfAddress", "Miss", " Gender=""F"" AND Mar-
italStatus="""" "
SetValueByID
Updates KeyName with Value in group GroupName, where the KeySet's ID matches the ID para-
meter. KeyName must exist in GroupName, otherwise an error is raised. The method returns the ID of
the keyset that was updated or -1 if the keyset was not updated.
The KeySet ID can be retrieved with GetValue() ("GetValue" on page154).
Note: There is currently no Update feature in the API for a whole KeySet (a row).
Syntax
SetValueByID(GroupName: string, KeyName: string, Value: string, ID: integer):
integer64
Note: This method is functionally equivalent to using "SetValue" on the previous page with its
Condition parameter set to "ID=ID".
Examples
In each of these examples, the object repoObject is deemed having been obtained through a call to
the COM object "RepositoryLib.WorkflowRepository" (see "Obtaining an instance of the Repository
Object" on page147).
JavaScript
/* both methods perform the same task */
repoObject.SetValueByID("Users", "FormOfAddress", "Mr.", 10);
repoObject.SetValue("Users", "FormOfAddress", "Mr.", "ID=10" );
VB Script
Page 161