Kbase 18641: Apptivity - Blocking Until DataSource Refresh is Complete
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/23/2001 |
|
SUMMARY:
In Apptivity Developer 3.0 and above, the method abDataSource.refresh() does not block the current thread. Additional code is necessary to make sure that the refresh() is complete before continuing.
SOLUTION:
The code below does this using two methods introduced in Apptivity
3.0: abDataSource.blockOnRequeryComplete() and DsUtils.dsWait(ds),
where ds is the DataSource.
if (! ds.setFilter(filter))
{
ds.refresh();
ds.blockOnRequeryComplete();
}
abRecordSet rs = DsUtils.dsWait(ds);
References To Written Documentation:
Apptivity API Reference in online Help