Dynamically build report using view definition