Skip to content

Commit

Permalink
Fix open report in old GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
jacodg committed Jan 6, 2025
1 parent 8078ba0 commit 985af27
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2020-2024 WeAreFrank!, 2018-2019 Nationale-Nederlanden
Copyright 2020-2025 WeAreFrank!, 2018-2019 Nationale-Nederlanden
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -116,7 +116,7 @@ public class ReportsComponent extends BaseComponent implements BeanParent, Actio
private TransformationWindow transformationWindow;
private WindowPane uploadWindow;
private UploadSelect uploadSelect;
private Object firstValueOfLastSelectedRow;
private String firstValueOfLastSelectedRow;
private SelectField downloadSelectField;
private BeanParent beanParent;
private Echo2Application echo2Application;
Expand Down Expand Up @@ -588,8 +588,8 @@ public void actionPerformed(ActionEvent e) {
View view = getSelectedView();
Table table = (Table)e.getSource();
int selectedIndex = table.getSelectionModel().getMinSelectedIndex();
firstValueOfLastSelectedRow = metadataSortableTableModel.getValueAt(0, selectedIndex);
openReport(view, (Integer)firstValueOfLastSelectedRow);
firstValueOfLastSelectedRow = (String)metadataSortableTableModel.getValueAt(0, selectedIndex);
openReport(view, Integer.valueOf(firstValueOfLastSelectedRow));
} else if (e.getActionCommand().equals("OpenAll")) {
View view = getSelectedView();
for (int i = 0; i < metadataSortableTableModel.getRowCount(); i++) {
Expand Down

0 comments on commit 985af27

Please sign in to comment.