This document contains the code samples used in the Creating a Custom Widget for Web AppBuilder for ArcGIS using the Report Class blog post. You can download this doc to recreate the workflow described in the blog post.
Enjoy,