The sample code below shows how to retrieve the DataSet of Outstanding Sales Order.
This sample does not filter the result.
publicSystem.Data.DataSetGetOutstandingSODataSet(AutoCount.Authentication.UserSessionuserSession){System.Data.DataSetdsOutStandingSO=newSystem.Data.DataSet("Outstanding SO DataSet");System.Data.DataTabledtMaster=newSystem.Data.DataTable("Master");System.Data.DataTabledtDetail=newSystem.Data.DataTable("Detail");dsOutStandingSO.Tables.Add(dtMaster);dsOutStandingSO.Tables.Add(dtDetail);AutoCount.Invoicing.Sales.SalesOrder.SalesOrderOutstandingReportCommandcmd=AutoCount.Invoicing.Sales.SalesOrder.SalesOrderOutstandingReportCommand.Create(userSession);AutoCount.Invoicing.Sales.SalesOrder.SalesOrderOutStandingReportingCriteriacrit=newAutoCount.Invoicing.Sales.SalesOrder.SalesOrderOutStandingReportingCriteria();cmd.BasicSearch(crit,"DocNo,DocDate,DebtorCode,DebtorName",dsOutStandingSO,"");//Create a new DataRelation to Master and Detail tables in dsOutstandingSOdsOutStandingSO.Relations.Add("MasterDetailRelation",dtMaster.Columns["DocKey"],dtDetail.Columns["DocKey"],false);returndsOutStandingSO;}