I have the following code in a button to be triggered via the Notes client. I am selecting 2 or more values from the dialog. However, at the end, the @prompt is only returning the first value in the list. My question is this, when using “multi” here, how can I access the entire returned list?
addrecip := @DbColumn(“”:“nocache”;@Subset(@DbName; 1):@Subset(@DbName; -1);“(profilelookup)”;2);
counter := @Elements(addrecip);
@Prompt([ok];@Text(counter);@Text(counter));
@If(counter < 2; “”;
addrecip := @Prompt([OkCancelListMult]; “Select a Name”; “Select one or more names as recipients.”; “”; @Explode(addrecip; @NewLine))
);
@Implode(addrecip);
@Prompt([ok];“”; addrecip);