if(valid)
{
String url = URLBuilder.getInstance().getReportURL(reportRef.getReportFileName());
RenderDispatchEvent eventPayload = new RenderDispatchEvent(reportRef.getTitle(), url);
eventPayload.setParameters(fieldValues2PostParams(paramValues));
controller.handleEvent( new Event(RenderReportAction.ID, eventPayload));
}
else
{
MessageBox.alert("Report Parameters", "Please provide the required input parameters");
}