Update more then one document

HiI will update all document a selected in a view. Problem is that only one document is updated with this code. What did a miss?


FIELD Readers:=Readers;

tst1:=@Prompt([YesNo];“Question”;“Have you select all documents?”);

tst2:=@If(tst1!=“0”;@Prompt([OkCancelList];“Readers”;“Readers belong to the document”;@Environment(“Rgroup”);@DbColumn(“”;“”;“Readersgroups”;1));“”);

@Environment(“Rgroup”;tst2);

@SetField(“Readers”;Author:@DbLookup(“Notes”:“Nocache”;“”;“(groups)”;tst2;2));

@Prompt([Ok];“Updated”;“All documents are updated.”)


I hope a could use forula to this because my LS is not so god yet because i’m new i notesdeveloping.

Kind regards

Leon

Subject: Update more then one document

You have to loop through the result of @DbLookup

Subject: RE: Update more then one document

OK? is it possible with formula or need a use LS

Subject: RE: Update more then one document

You can do it in formula and in LS.