[IMP]Improved code to set view id in action of report.