Skip to content

Changes in the Modal panel preview

Using Modal Panel style preview, the results of a cDRReport run will be presented in a BasicPanel object defined in the DRModalPreview.dg file. The object name in this component is oDRModalPreview, and a reference to this object is stored in the phoPreviewContainer

Changes in the layout of the view can be best achieved by copying the DRModalPreview.dg file and making modifications in that file. Use a different object name for the new dialog and set the phoPreviewContainer property to the object identifier of this new component. Ensure to include the new .DG file with a USE statement.

One potential change is to extend the CodeJock toolbar by adding a new button or removing an existing button if the standard buttons do not meet the needs of the end-users. To extend the toolbar with a new button, simply use the DataFlex Studio to add a button along with the code that needs to be executed when the user clicks the button. If the button should also be used in one or more of the other preview styles, a class (file) should be created instead of coding directly within the dialog object code.