[fix bug 940277] Build the back-end for viewing reports.