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