code: protected void showReportDialog(String jobid) {
  
          CmsPublishReport pReport = new CmsPublishReport(jobid);
          final Window window = CmsBasicDialog.prepareWindow(DialogWidth.wide);
          CmsBasicDialog dialog = new CmsBasicDialog();
          dialog.addButton(
              new Button(
                  CmsVaadinUtils.getMessageText(org.opencms.workplace.Messages.GUI_DIALOG_BUTTON_CLOSE_0),
                  new com.vaadin.ui.Button.ClickListener() {
  
                      private static final long serialVersionUID = -4216949392648631634L;
  
                      public void buttonClick(com.vaadin.ui.Button.ClickEvent event) {
  
                          window.close();
  
                      }
                  }),
              true);
          dialog.setContent(pReport);
          window.setContent(dialog);
          window.setCaption(pReport.getCaption());
          A_CmsUI.get().addWindow(window);
      }
docs: Show report dialog.<p>
  
  @param jobid to show report for