Skip to main content

Posts

Showing posts with the label ax datasource control

Programmatically reading data from AxDataSourceControl in EP Axapta

To get details about Programmatically  reading data from AxDataSourceControl you can refer below code privatevoid GetData() { DataSourceViewSelectCallback callback = newDataSourceViewSelectCallback(PrintData); AxDataSource1.GetDataSourceView("CustTable").Select(DataSourceSelectArguments.Empty,callback); } privatevoidPrintData(IEnumerable data) { IEnumerator i = data.GetEnumerator(); while (i.MoveNext()) { Response.Write(DataBinder.Eval(i.Current, "AccountNum").ToString() + “<BR/>”); } }