Skip to content

Commit

Permalink
fix: 🐛 BBjGridExWidget::clearData does not check for the grid's ready…
Browse files Browse the repository at this point in the history
… state
  • Loading branch information
hyyan committed Feb 10, 2021
1 parent bc4ef78 commit a899f0e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions BBjGridExWidget.bbj
Expand Up @@ -2203,9 +2203,11 @@ class public BBjGridExWidget extends BBjWidget implements GxColumnsManagerInterf
rem * <br><b><small>#API</small></b>
rem */
method public void clearData()
#RS! = new ResultSet()
#RS!.createIndex(err=*next)
#getExecutor().execute("$wnd.gw_setRowData('" + #getRootId() + "', [])",0)
#getRS().clear()

if(#IsReady!) then
#getExecutor().execute("$wnd.gw_setRowData('" + #getRootId() + "', [])",0)
fi
methodend
rem /**
rem * Clear row data (Empty the grid )
Expand Down

0 comments on commit a899f0e

Please sign in to comment.