I am new to EP development. I'm trying to loop through a dataset using the following code. However, it is running the loop only for the first record and not looping over the remaining records.
DataSetView salesBasketLines = dsEPCSSSalesBasket.GetDataSourceView("SalesBasketLine").DataSetView;
foreach (DataSetViewRow salesLine in salesBasketLines)
{
IAxaptaRecordAdapter rec = salesLine.GetRecord();
ApplicationProxy.SalesBasketLine sl = ApplicationProxy.SalesBasketLine.findRecId(Convert.ToInt64(rec.GetField("recID").ToString()));
string item = sl.ItemId;
.
.
.
}
Any help would be appreciated!
Thanks,
Charu