Menu

Any way to change the size of the columns in the tabular result set?

ART Help
2018-08-22
2018-10-15
  • Acy Forsythe

    Acy Forsythe - 2018-08-22

    I have 3 large text columns in a report and one of the columns sizes to about 40 characters wide, but the other two size to like 10 characters wide. Is there anyway that I can manually set the column widths in the result set?

     
  • Timothy Anyona

    Timothy Anyona - 2018-08-22

    This is not currently possible.

     
  • Acy Forsythe

    Acy Forsythe - 2018-08-22

    What does the application base the column width on, it almost seems to be random...

     
  • Timothy Anyona

    Timothy Anyona - 2018-08-22

    There's nothing ART does to fix/change/set column widths. If you're specifically referring to the Data Table report format, the datatables library generates the table. I don't know what considerations it uses.

     
  • Acy Forsythe

    Acy Forsythe - 2018-08-22

    Thanks Timothy, I'll take a look at that library then.

     
  • Timothy Anyona

    Timothy Anyona - 2018-10-09

    In the just released 3.10 version, you should be able to set column widths for the DataTable report format by specifying column definitions in the options section e.g.

    {
        "dtOptions": {
            "columnDefs" : [
                {
                    "targets": 0,
                    "width": "50px"
                },
                {
                    "targets": 1,
                    "width": "300px"
                },
                {
                    "targets": [2,3],
                    "width": "100px"
                }
            ]
        }
    }
    

    See https://sourceforge.net/p/art/wiki/Reports/#tabular-options

     
  • Acy Forsythe

    Acy Forsythe - 2018-10-15

    Thanks Tim! I have not had an opportunity to upgrade since 3.8 so I just have it running in a test environment, but I'm excited to go straight to 3.10 instead and add these options!

     

Log in to post a comment.