Here is small trick to find the datasource in form. Open job node , and a new job and copy paste following code over there,.....
When you run this job you get all data source which is used in CustTable Form
static void AllDataSourcesInForm(Args _args)
{
Args args = new Args();
FormRun fr;
FormBuildDataSource formBuildDataSource;
counter i;
;
args.name("CustTable"); // its your FORM name
fr = ClassFactory.formRunClass(args);
for(i=1 ; i<=fr.form().dataSourceCount();i++) { formBuildDataSource = fr.form().dataSource(i); info(new DictTable(formBuildDataSource.table()).name()); } }
When you run this job you get all data source which is used in CustTable Form
static void AllDataSourcesInForm(Args _args)
{
Args args = new Args();
FormRun fr;
FormBuildDataSource formBuildDataSource;
counter i;
;
args.name("CustTable"); // its your FORM name
fr = ClassFactory.formRunClass(args);
for(i=1 ; i<=fr.form().dataSourceCount();i++) { formBuildDataSource = fr.form().dataSource(i); info(new DictTable(formBuildDataSource.table()).name()); } }
No comments:
Post a Comment