Support Article

Custom width provided in the report definition does not work

SA-26616

Summary



When custom width is set for a column, the width change is getting reflected in preview. Though at run-time the changes are not visible.

When the column has data that needs greater width, it's not getting wrapped up according to given width. 

Error Messages



Not Applicable

Steps to Reproduce

  1. Create a Report Definition rule. 
  2. In Edit Column setting, provide the desired column width. 
  3. Save and run it in the browser.


Root Cause



From Pega 7.1.7 onwards, grids are used to display report data. The grid accommodates the columns based on the availability of space rather than being forced to a specific width. If there are longer values in the first column, then the width increases as required.

Resolution



Perform a private edit on "workform_pyReportingSkin" CSS in the application and add the following CSS:

table.gridTable[pl_prop="pyReportContentPage.pxResults"] {
table-layout: fixed;
}
table.gridTable[pl_prop="pyReportContentPage.pxResults"] th, table.gridTable[pl_prop="pyReportContentPage.pxResults"] td {
overflow-x: hidden;
text-overflow: ellipsis;
height: auto;
}

table.gridTable[pl_prop="pyReportContentPage.pxResults"] td .oflowDivM{
text-overflow: ellipsis;
}

div.gridDefault div.divCont {
white-space: normal;
}
div.gridDefault div.oflowDiv {
height: auto !important;
}
textarea {
white-space: pre-wrap;
}

Published August 10, 2016 - Updated August 15, 2016


50% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.