Skip to content

Commit

Permalink
sortable columns for report preview
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Mar 21, 2023
1 parent 7907ccf commit 21220ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ protected IColumn<PO, String> createCustomExportableColumn(IModel<String> column
return new ConfigurableExpressionColumn<>(columnDisplayModel, getSortProperty(customColumn, expression), customColumn, expression, getPageBase());
}

private String getSortProperty(GuiObjectColumnType customColumn, ExpressionType expressionType) {
protected String getSortProperty(GuiObjectColumnType customColumn, ExpressionType expressionType) {
String sortProperty = customColumn.getSortProperty();
if (sortProperty != null) {
return sortProperty;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ private void processReferenceVariables(VariablesMap variablesMap) {

@Override
protected IColumn<SelectableBean<C>, String> createCustomExportableColumn(IModel<String> columnDisplayModel, GuiObjectColumnType customColumn, ExpressionType expression) {
return new ReportExpressionColumn<>(columnDisplayModel, null, customColumn, expression, getPageBase()) {
return new ReportExpressionColumn<>(columnDisplayModel, getSortProperty(customColumn, expression), customColumn, expression, getPageBase()) {

@Override
protected void processReportSpecificVariables(VariablesMap variablesMap) {
Expand Down

0 comments on commit 21220ac

Please sign in to comment.