Obtain selected doc count using @Formula

I’ve got a view. I select documents. I hit a button that prompts the number of documents selected. The code behind the button must be written in @Formula. How do I write the @Formula code?

Subject: obtain selected doc count using @Formula

Subject: RE: obtain selected doc count using @Formula

you could do:

a:= @DbColumn(“” : “NoCache”;“”;“ViewName”;1);

@Prompt([ok];“Number of Documents”;@text(@elements(a)))