I know how to do this if I could get the maxuser who requested the report. Is there a way to reliably get this?
I've figured out how to get it some of the time. The following code works when a report is requested for Immediate printing, but not if the report is scheduled and emailed.
var maxuser = reportContext.getHttpServletRequest().getParameter( "userName")
The problem is that if it is scheduled and emailed then getHttpServletRequest() returns null (which makes sense).
Any ideas would be greatly appreciated.