I want to refresh entire tab records when I click on ReQuery button. Current it retains current row. So I have made below changes which is not working,
adTabbox.getSelectedGridTab().dataRefreshAll(fireEvent, true);
Reason above is not working, when we click on save after changing values, whereclause in GridTable is update with retainedWhere and this whereclause is instance variable.
So I have made below changes in doOnRefresh method of AbstractADWindowContent.java,
GridTable gridTable = adTabbox.getSelectedGridTab().getTableModel();
gridTable.close(false);
gridTable.setSelectWhereClause(adTabbox.getSelectedGridTab().getWhereExtended(), false, -1);
adTabbox.getSelectedGridTab().dataRefreshAll();
I am concerned about the close method and setting of whereclause above. Will this customization hamper anything? Can anyone will please help me to validate if this is fine to do.