Here is a template to create a suitelet form in NetSuite. This form has 2 componets, a button and a textarea to give the user the option to enter sales orders numbers and to process one order at a time. It also has code to process them when the form is a 'post' method. It will also create a csv file with orders #'s and email the current user.
Source code:https://gist.github.com/cafeasp/799b6...