Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 73760

Enterprise Portal looping through data set issue

$
0
0

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


Viewing all articles
Browse latest Browse all 73760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>