I got around it, but basically as soon as you call update it throws the
error. I got around it by instantiating another adpter doing all the
processing there then calling GetByID it works fine but I hate having to do
crap like that.
*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*
error. I got around it by instantiating another adpter doing all the
processing there then calling GetByID it works fine but I hate having to do
crap like that.
*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*
On Tue, Jun 7, 2011 at 3:51 PM, Kevin Simon <ksimon@...> wrote:
>
>
> Jose,
>
> Out of curiosity, have you tried issuing an oTrans.Refresh() at the end,
> that may eliminate the index issue.
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of
> Jose Gomez
> Sent: Tuesday, June 07, 2011 1:21 PM
> To: Vantage
> Subject: [Vantage] Deleting Dtls from Code Behind
>
>
> Has anyone had the need to delete dtls from Order or Quote from code
> behind?
> I have written the code which does it but it causes other problems, I was
> wondering if anyone knew an easier way?
>
> foreach(DataRow dr in oTrans_adapter.QuoteData.QuoteDtl)
> {
> dr.Delete();
> }
> oTrans.Update();
> oTrans.NotifyAll();
>
> That code will indeed delete the rows, but it throws an Index -1 error at
> the end.
>
> Thanks!
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *NEED HELP WITH AN EPICOR ISSUE THAT CAN NOT BE SOLVED ON THE LIST?
> CHECK OUT MY NEW BLOG <http://www.usdoingstuff.com> OR CONTACT ME
> DIRECTLY*
>
> *
> *T: 904.469.1524 mobile
> E: jose@... <mailto:jose%40josecgomez.com>
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez
> >
> <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
> [Non-text portions of this message have been removed]
>
> [Non-text portions of this message have been removed]
>
>
>
[Non-text portions of this message have been removed]