This demo demonstrate the use of the QueryOnClick and ResultExtGrid widgets. The list of queryable layers can be found in the dropdown list next to the "i" button in the toolbar. Only the currently visible and queryable layers are queried.
In GeoPrisma 1.4.0, you no longer need to define the fields per resource inside the widget itself. The widget is able to detect resource fields. If present, they are simply used. If a resource field title is set, it's also used as column header. Finally, resource field options can also be detected by the widget, such as "width" to determine the column width in the grid. All of this is demonstrated here, see the config.xml.