Description:-
Sometimes may be there would be need to get the names of the DataSource used in the form. Here is a small snippet that would get you the list of the data source. Here is the Solution to How to get Data Source’s table Name in the form.
Sometimes may be there would be need to get the names of the DataSource used in the form. Here is a small snippet that would get you the list of the data source. Here is the Solution to How to get Data Source’s table Name in the form.
Create Job:-
static void getdatasourceslist(Args _args) { FormRunformRun; FormBuildDataSourcefbds; Args args = newArgs(); Counter i; ; args.name('SalesTable'); //FormName formRun = classFactory.formRunClass(args); for (i = 1; i<= formRun.form().dataSourceCount(); i++) { fbds = formRun.form().dataSource(i); info(new DictTable(fbds.table()).name()); } }
Output:-
Thanks for comments.....