QuoteDataSet QuoteMtl

Doing some customizations on Quote Entry and cannot figure out which method returns the Material details of a quote.

Erp.Proxy.BO.QuoteImpl quote = Ice.Lib.Framework.WCFServiceSupport.CreateImpl<Erp.Proxy.BO.QuoteImpl>((Ice.Core.Session)oTrans.Session, Epicor.ServiceModel.Channels.ImplBase<Erp.Contracts.QuoteSvcContract>.UriPath);
Erp.BO.QuoteDataSet ds = new Erp.BO.QuoteDataSet();
ds = quote.GetByID(intQuoteNum); //assuming something else than GetByID needs to be used here

for (int i = 0; i < ds.Tables["QuoteMtl"].Rows.Count; i++) //crashes as QuoteMtl table doesnt exist
{
...
}

Thanks in advance

Have you run a trace to see which methods Epicor thinks you should use?

Thanks, it seems to be the method GetDatasetForTree from Erp.Proxy.BO.QuoteAsm

That method needs a few more parameters. I opened the method in a BPM designer just to see what parameters are required. You need quote num, quote line, and start/current asm sequence numbers. If you have all that, then you should be able to use that method. something along the lines of:

ds = quote.GetDatasetForTree(intQuoteNum, QuoteLine, StartAsm, CurAsm, true); 

Thanks