mattdahse
05/17/2018, 9:05 PMruntime.getCurrentSession().set()
as I render the page in the Suitelet. Then a function like this just sends a GET request back to the suitelet in the button handler on the client side. The Suitelet composes the file from the session data and does a context.writeFile()