I have two computed fields and want update them. It works great in the browser, but the IBM Notes client gives an error.
Here is the code:
var Admin = @DbColumn("", "GoreAdmins", 1);
var AdminBackup = @DbColumn("", "GoreAdmins", 2);
if (Admin && typeof Admin == "string") Admin = new Array(Admin);
if (AdminBackup && typeof AdminBackup == "string") AdminBackup = new Array(AdminBackup);
if (document1.isNewNote()) {
document1.setValue("Admin", Admin);
document1.setValue("AdminBackup", AdminBackup);
};
I get the error on this line:
document1.setValue("Admin", Admin);