8.6

Table Of Contents
SetValueByID
Updates KeyName with Value in group GroupName, where the keyset's ID matches the ID
parameter. 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.
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117).
JavaScript
repoObject.SetValueByID("Users", "FormOfAddress", "Mr.", 10);
// both methods perform
repoObject.SetValue( "Users", "FormOfAddress", "Mr.", "ID=10" );
// the same task
VB Script
repoObject.SetValueByID "Users", "FormOfAddress", "Mr.", 10 ''
both methods perform
repoObject.SetValue "Users", "FormOfAddress", "Mr.", "ID=10" ''
the same task
Version
Returns the version of the DLL library used by the Repository.
Page 133