Save columns settings report

Ray2 years ago

Hello,

I would like to know how to save or edit the marked columns settings in a report.
On every browser refresh the columns are back to standard. I know with cookies some will stay.

Is there any other way??

Anton Tananaev2 years ago

No other way without code changes.

Ray2 years ago

Do you know where to find the right java file for this?

I edit the column names in Reportcontroller in app/view

    routeColumns: [{
        text: Strings.reportDeviceName,
        dataIndex: 'deviceId',
        renderer: Traccar.AttributeFormatter.getFormatter('deviceId')
    },  {
        text: Strings.positionFixTime,
        dataIndex: 'fixTime',
        xtype: 'datecolumn',
        renderer: Traccar.AttributeFormatter.getFormatter('fixTime')
    }, {
        text: Strings.positionLatitude,
        dataIndex: 'latitude',
        renderer: Traccar.AttributeFormatter.getFormatter('latitude')
    }, {
        text: Strings.positionLongitude,
        dataIndex: 'longitude',
        renderer: Traccar.AttributeFormatter.getFormatter('longitude')
    }, {
        text: Strings.positionStatus,
        dataIndex: 'status',
        renderer: Traccar.AttributeFormatter.getFormatter('status')
    }],

But when refresh web all the standard columns are back. Do i need to change app.min file also?

Anton Tananaev2 years ago

You need to compile the minified version. Please read the documentation.

Ray2 years ago

And wich part of the documentation will guide me there. Or do i need to read all the documentation to get there?

Anton Tananaev2 years ago

If you don't want to use search or at least some common sense then probably all.