I have added a datasource to a form using the standard pattern:
Args args;
FormRun formRun;
Form form;
FormBuildDataSource formBuildDataSource;
;
form = new Form(formstr(ICS));
formBuildDataSource = form.addDataSource('dbm_ICStmp');
//formBuildDataSource.table(tablenum(dbm_ICStmp));
args = new Args();
args.object(form);
formRun = classfactory.formRunClass(args);
formRun.init();
formRun.run();
formRun.detach();
dbm_ICStmp is a temporary table. How do I call setTmpData?
I can recommend you some things about this: