Write this following method any on class:
Public static client SysOperationProgress showWaitDialog(str
_text = "Extracting record for you, please wait...")
{
#AviFiles
SysOperationProgress waitDialog;
waitDialog = new
SysOperationProgress(1, true, strLen(_text));
waitDialog.setCaption("Processing...");
// waitDialog.setTotal(100);
waitDialog.setCount(1);
waitDialog.setAnimation(#AviStopWatch);
waitDialog.setText(_text);
return waitDialog;
}
Call from datasource executequery() method:
public void executeQuery()
{
SysOperationProgress waitdialog;
;
waitdialog =
global::showWaitDialog(); //
startLengthyOperation();
super();
waitdialog.hide(); // endLengthyOperation();
}
No comments:
Post a Comment