Skip to content

Commit

Permalink
fix: fix #108 - The two-grid demo doesn't empty the lower grid when a…
Browse files Browse the repository at this point in the history
… customer has no orders
  • Loading branch information
hyyan committed Feb 28, 2019
1 parent 5798812 commit 0d115aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Demo/TwoGridsDemo.bbj
Expand Up @@ -70,7 +70,11 @@ showDetails:
sql$="SELECT * FROM ORDER_HEADER WHERE CUST_NUM IN ("+cust$+")"
dsbc! = new SqlQueryBC(BBjAPI().getJDBCConnection("ChileCompany"))
drs! = dsbc!.retrieve(sql$)
dtlgrid!.setData(drs!)
if drs!.count() = 0 then
dtlgrid!.clearRowsData()
else
dtlgrid!.setData(drs!)
fi
else
dtlgrid!.clearRowsData()
fi
Expand Down

0 comments on commit 0d115aa

Please sign in to comment.