Monday, March 9, 2009

Reseting values of Fields created by LS using Lotus Script

I had a field in a document called 'ISPENDINGREVISION'. I wanted to change the value of this field to 0 using an agent which would run on selected documents in a view.

I tried with the following code:

@SetField("ISPENDINGREVISION";0)
and then
FIELD ISPENDINGREVISION:=0....

but both didnt work.

Then i realised this field is getting created from the background using Lotus Script. so used the following code and it worked

FIELD ISPENDINGREVISION:=@DeleteField;
FIELD ISPENDINGREVISION:=0;