These are the steps I am taking -
- Create a new document and fill in a few fields
- Save the document
- Click the copy button which I inserted as action bar (asks how many copies to make)
- The document is then duplicated X amount of times
I am trying to carry over certain fields from the original document that I copied to minimize data entry. I am new to Lotus Notes Formula also.
The code I have so far for the copy action bar button:
num := @Prompt([OkCancelList]; "Choose amount"; "How many copies?"; "3"; "1":"2":"3":"4");
@For(n := 1; n <= @TextToNumber(num); n := n + 1; @PostedCommand([Compose]; ""; "Form1"); @PostedCommand([FileSave]))
The document copies itself with no problem but the fields remain empty. I have tried using @SetField but I think something is wrong while in the loop?
Any help is much appreciated.