title: Counting the number of documents in a view with Lotus Notes Formula
body: <p>I have a button in the toolbar that mails selected documents to a mailbox. The Problem is that I have no idea how to make the button formula code run for every selected document. As it stands now it will only ever run once, regardless of how many documents are selected. This  is not ideal as the users often have many documents to mail in.</p>
  
  <p>It is impossible to create an agent to do this as I do not have access to the development access to the database itself. People have also told me that the code will run for each selected document, but I have tested this, and it does not from a toolbar button.</p>
  
  <p>Thanks in advance :)</p>