Code Test :
static void jobProgress(Args _args)
{
InventTable inventTable;
SysOperationProgress simpleProgress;
int totalItem;
#AviFiles
SELECT COUNT(recId) FROM inventTable
WHERE inventTable.ItemGroupId == "P:BW";
totalItem = inventTable.recId;
simpleProgress = SysOperationProgress::newGeneral(#aviUpdate, 'Please wait ...', totalItem);
// go through all companies and update temporary table
WHILE SELECT ItemId FROM inventTable
where inventTable.ItemGroupId == "P:BW"
{
simpleProgress.incCount();
simpleprogress.setText(strfmt("Item : %1", inventTable.ItemId));
simpleprogress.update(true);
}
}
No comments:
Post a Comment