Refresh or Requery entire tab records on ReQuery Button

22 views
Skip to first unread message

Pritesh Shah

unread,
Sep 2, 2015, 3:30:59 AM9/2/15
to iDempiere
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.

Reply all
Reply to author
Forward
0 new messages