The layout of the view dialog can be configued by using the
viewTemplatePath property to specify the virtual path to a
HTML template file. Any elements in the template with an attribute of
columnName will be replaced at runtime with the value of the corresponding column name. In this example the view dialog is further customised using the event
onViewRecordSelected to customise the title of the view dialog. The print output can also be customised by using the
onViewOutput event.