文章目录
- 一、在子窗体中调用父窗体公共方法
- 二、刷新 CallerForm 数据源
一、在子窗体中调用父窗体公共方法
Object callerForm = element.args().caller();
if(callerForm is FormRun && formHasMethod(callerForm, identifierStr(parentMethod)))
{callerForm.parentMethod();
}
二、刷新 CallerForm 数据源
callerForm.dataSource().research();
callerForm.dataSource().refresh();