刷新调用窗口数据
public void close() { FormDataSource fds; d_SparPartsTable = element.args().record(); super(); if (d_SparPartsTable .isFormDataSource()) { fds = d_SparPartsTable.dataSource(); if (fds) { fds.executeQuery(); } } }
/* #Task FormRun formRun; super(); // Get an instance of the calling form. formRun = element.args().caller(); // If the caller is a form, refresh that form. if(formRun) { formRun.task(#taskF5); } */
Class刷新方式:
classDeclaration:
FormDataSource formDataSource;
main:
dialog.parmFormDataSource(args.record().dataSource());
parmFormDataSource:
FormDataSource parmFormDataSource(FormDataSource _formDataSource = formDataSource) { formDataSource = _formDataSource; return formDataSource; }
active:
#Task if (dataSource.formRun()) { formDataSource.formRun().task(#taskF5); }
留言评论
暂无留言