oTrans.Update seems different between 9.04 and 9.05

I did look there and I put a ton Message Boxes for debugging and it see
to happen right after the oTrans.Update call.
I will keep digging.

Thanks again.












Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
jrojas@... | www.matsinc.com Ask us about our clean, green and beautiful matting and flooring


This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.



-----Original Message-----

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Jose Gomez
Sent: Wednesday, June 20, 2012 1:58 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] oTrans.Update seems different between 9.04 and
9.05

Yeah I didn't see anything either, in your code while you are looping
through the DataView maybe you are some how changing the Row?

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
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?*



On Wed, Jun 20, 2012 at 1:56 PM, Joe Rojas <jrojas@...> wrote:

> **
>
>
> Thanks Jose.
>
> This was helpful. I don't see anything that would set the Row property

> in the Update method.
> It might be in the poAdapter.Update method. I'll look there next.
>
> The other cool thing is that I now know about diffchecker.com. :) I
> use a locally installed program but diffchecker would be helpful to
> share the results with someone else.
>
>
> Joe Rojas | Director of Information Technology | Mats Inc
> dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
> jrojas@... | www.matsinc.com Ask us about our clean, green and

> beautiful matting and flooring
>
> This message is intended only for the individual named. If you are not

> the named addressee you should not disseminate, distribute or copy
this e-mail.
> Please notify the sender immediately by e-mail if you have received
> this e-mail by mistake. Please note that any views or opinions
> presented in this email are solely those of the author and do not
> necessarily represent those of the company.
>
> -----Original Message-----
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
> Behalf Of Jose Gomez
> Sent: Wednesday, June 20, 2012 1:36 PM
>
> To: vantage@yahoogroups.com
> Subject: Re: [Vantage] oTrans.Update seems different between 9.04 and
> 9.05
>
> Joe,
>
> Here is a Diff of oTrans.Update in PO Entry for 9.04 and 9.05
> 9.04 on the left.
>
> http://diffchecker.com/3YHocxHx
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *checkout my new blog <http://www.usdoingstuff.com> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> 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?*
>
>
> On Wed, Jun 20, 2012 at 11:06 AM, Joe Rojas <jrojas@...>
wrote:
>
> > **
>
> >
> >
> > Hi John,
> >
> > Below is a trimmed portion of my code. This code exists in the
> > AfterAdapterMethod event and I'm only running it if the method was
> > Update.
> > So the user clicks save in PO Entry to save changes which trigger
> > the AfterAdapterMethod.
> >
> > What I didn't include is the code in my PORel_AfterFieldChange
> > method that looks to see if CheckBox01 has changed.
> > It has the follow line of code that bombs out because the Row
> > property
>
> > is -1.
> > DateTime NewDueDate =
> > Convert.ToDateTime(edvPORel.dataView[edvPORel.Row]["DueDate"]).AddDa
> > ys
> > (5
> > );
> >
> > //Below is a trimmed version of oTrans_poAdapter_AfterAdapterMethod
> > for simplicity //These first two Message Boxes show the correct Row
> > values.
> > MessageBox.Show("2 edvPODetail.Row = " +
> > edvPODetail.Row.ToString());
> > MessageBox.Show("2 edvPORel.Row = " + edvPORel.Row.ToString());
> >
> > for(int i=0 ; i < edvPORel.dataView.Count; i++) {
> > edvPORel.dataView[i].BeginEdit(); edvPORel.dataView[i]["CheckBox01"]

> > =
>
> > false; edvPORel.dataView[i].EndEdit(); oTrans.Update();
> >
> > //These Message Boxes show that Row is -1 for both
> > MessageBox.Show("3 edvPODetail.Row = " +
> > edvPODetail.Row.ToString());
> > MessageBox.Show("3 edvPORel.Row = " + edvPORel.Row.ToString());
> >
> > massPORel = i;
> > massPOLine = j;
> > edvPORel.dataView[i].BeginEdit();
> > edvPORel.dataView[i]["CheckBox01"] = true;
> > edvPORel.dataView[i].EndEdit(); oTrans.Update();
> >
> > //These last two confirm that Row is still -1
> > MessageBox.Show("4 edvPODetail.Row = " +
> > edvPODetail.Row.ToString());
> > MessageBox.Show("4 edvPORel.Row = " + edvPORel.Row.ToString());
> >
> > }
> >
> > Joe Rojas | Director of Information Technology | Mats Inc
> > dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
> > jrojas@... | www.matsinc.com Ask us about our clean, green
> > and
>
> > beautiful matting and flooring
> >
> > This message is intended only for the individual named. If you are
> > not
>
> > the named addressee you should not disseminate, distribute or copy
> this e-mail.
> > Please notify the sender immediately by e-mail if you have received
> > this e-mail by mistake. Please note that any views or opinions
> > presented in this email are solely those of the author and do not
> > necessarily represent those of the company.
> >
> > -----Original Message-----
> >
> > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
> > Behalf Of John Driggers
> > Sent: Wednesday, June 20, 2012 10:53 AM
> > To: vantage@yahoogroups.com
> > Subject: Re: [Vantage] oTrans.Update seems different between 9.04
> > and
> > 9.05
> >
> >
> > I haven't tested PO's in particular recently, but I know that on SOs

> > and most other forms I've never seen behavior like that.
> >
> > Are you seeing that in an event or just after the update completes?
> > If
>
> > you're wired to an event of some sort you may be catching a refresh
> > that Epicor is doing as part of the Update.
> >
> > *John Driggers*
> > **
> > *Chief Data Wrangler*
> > *
> > *
> > *I have an Epicor blog <http://usdoingstuff.com/>. How useful is
> > that?*
> > *
> > *:: 904.404.9233
> > :: waffqle@...
> > :: http://www.usdoingstuff.com <http://www.usdoingstuff.com/>
> >
> > *
> >
> > *
> >
> > On Wed, Jun 20, 2012 at 10:32 AM, Joe Rojas <jrojas@...>
> wrote:
> >
> > > **
> > >
> > >
> > > Hi All,
> > >
> > > We're working on upgrading to 9.05.700.
> > >
> > > I'm trying to troubleshoot one of my customization.
> > >
> > > In 9.04, when I called oTrans.Update() to save changes, it did not

> > > "reset" the row number in the dataViews.
> > >
> > > For example, if I was on PO Line 3 and call oTrans.Update(), it
> > > would still be on PO Line 3 afterwards.
> > >
> > > Now, in 9.05.700, my customization is throwing an error because it

> > > appears that oTrans.Update() is setting the Row property for the
> > > dataViews to -1.
> > >
> > > I can try to work around this but I wanted to check to see if
> > > anyone
>
> > > else notices this behavior in 9.05 and if maybe I'm missing
> > > something in
> > > 9.05 that I need to know to address this.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Joe Rojas | Director of Information Technology | Mats Inc
> > > dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
> > > jrojas@... | www.matsinc.com Ask us about our clean, green

> > > and
> >
> > > beautiful matting and flooring
> > >
> > > This message is intended only for the individual named. If you are

> > > not
> >
> > > the named addressee you should not disseminate, distribute or copy
> > this e-mail.
> > > Please notify the sender immediately by e-mail if you have
> > > received this e-mail by mistake. Please note that any views or
> > > opinions presented in this email are solely those of the author
> > > and do not necessarily represent those of the company.
> > >
> > > [Non-text portions of this message have been removed]
> > >
> > >
> > >
> >
> > [Non-text portions of this message have been removed]
> >
> > ------------------------------------
> >
> > Useful links for the Yahoo!Groups Vantage Board are: ( Note: You
> > must have already linked your email address to a yahoo id to enable
access.
>
> > )
> > (1) To access the Files Section of our Yahoo!Group for Report
> > Builder and Crystal Reports and other 'goodies', please goto:
> > http://groups.yahoo.com/group/vantage/files/.
> > (2) To search through old msg's goto:
> > http://groups.yahoo.com/group/vantage/messages
> > (3) To view links to Vendors that provide Vantage services goto:
> > http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
> ------------------------------------
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
> have already linked your email address to a yahoo id to enable access.

> )
> (1) To access the Files Section of our Yahoo!Group for Report Builder
> and Crystal Reports and other 'goodies', please goto:
> http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
> http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
>
>


[Non-text portions of this message have been removed]



------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder
and Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
Hi All,



We're working on upgrading to 9.05.700.

I'm trying to troubleshoot one of my customization.



In 9.04, when I called oTrans.Update() to save changes, it did not
"reset" the row number in the dataViews.

For example, if I was on PO Line 3 and call oTrans.Update(), it would
still be on PO Line 3 afterwards.



Now, in 9.05.700, my customization is throwing an error because it
appears that oTrans.Update() is setting the Row property for the
dataViews to -1.



I can try to work around this but I wanted to check to see if anyone
else notices this behavior in 9.05 and if maybe I'm missing something in
9.05 that I need to know to address this.










Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
jrojas@... | www.matsinc.com Ask us about our clean, green and beautiful matting and flooring


This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


[Non-text portions of this message have been removed]
I haven't tested PO's in particular recently, but I know that on SOs and
most other forms I've never seen behavior like that.

Are you seeing that in an event or just after the update completes? If
you're wired to an event of some sort you may be catching a refresh that
Epicor is doing as part of the Update.



*John Driggers*
**
*Chief Data Wrangler*
*
*
*I have an Epicor blog <http://usdoingstuff.com/>. How useful is that?*
*
*:: 904.404.9233
:: waffqle@...
:: http://www.usdoingstuff.com <http://www.usdoingstuff.com/>

*

*



On Wed, Jun 20, 2012 at 10:32 AM, Joe Rojas <jrojas@...> wrote:

> **
>
>
> Hi All,
>
> We're working on upgrading to 9.05.700.
>
> I'm trying to troubleshoot one of my customization.
>
> In 9.04, when I called oTrans.Update() to save changes, it did not
> "reset" the row number in the dataViews.
>
> For example, if I was on PO Line 3 and call oTrans.Update(), it would
> still be on PO Line 3 afterwards.
>
> Now, in 9.05.700, my customization is throwing an error because it
> appears that oTrans.Update() is setting the Row property for the
> dataViews to -1.
>
> I can try to work around this but I wanted to check to see if anyone
> else notices this behavior in 9.05 and if maybe I'm missing something in
> 9.05 that I need to know to address this.
>
>
>
>
>
>
>
> Joe Rojas | Director of Information Technology | Mats Inc
> dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
> jrojas@... | www.matsinc.com Ask us about our clean, green and
> beautiful matting and flooring
>
> This message is intended only for the individual named. If you are not the
> named addressee you should not disseminate, distribute or copy this e-mail.
> Please notify the sender immediately by e-mail if you have received this
> e-mail by mistake. Please note that any views or opinions presented in this
> email are solely those of the author and do not necessarily represent those
> of the company.
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]
Hi John,

Below is a trimmed portion of my code. This code exists in the
AfterAdapterMethod event and I'm only running it if the method was
Update.
So the user clicks save in PO Entry to save changes which trigger the
AfterAdapterMethod.

What I didn't include is the code in my PORel_AfterFieldChange method
that looks to see if CheckBox01 has changed.
It has the follow line of code that bombs out because the Row property
is -1.
DateTime NewDueDate =
Convert.ToDateTime(edvPORel.dataView[edvPORel.Row]["DueDate"]).AddDays(5
);


//Below is a trimmed version of oTrans_poAdapter_AfterAdapterMethod for
simplicity
//These first two Message Boxes show the correct Row values.
MessageBox.Show("2 edvPODetail.Row = " + edvPODetail.Row.ToString());
MessageBox.Show("2 edvPORel.Row = " + edvPORel.Row.ToString());

for(int i=0 ; i < edvPORel.dataView.Count; i++)
{
edvPORel.dataView[i].BeginEdit();
edvPORel.dataView[i]["CheckBox01"] = false;
edvPORel.dataView[i].EndEdit();
oTrans.Update();

//These Message Boxes show that Row is -1 for both
MessageBox.Show("3 edvPODetail.Row = " + edvPODetail.Row.ToString());
MessageBox.Show("3 edvPORel.Row = " + edvPORel.Row.ToString());

massPORel = i;
massPOLine = j;
edvPORel.dataView[i].BeginEdit();
edvPORel.dataView[i]["CheckBox01"] = true;
edvPORel.dataView[i].EndEdit();
oTrans.Update();

//These last two confirm that Row is still -1
MessageBox.Show("4 edvPODetail.Row = " + edvPODetail.Row.ToString());
MessageBox.Show("4 edvPORel.Row = " + edvPORel.Row.ToString());
}












Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
jrojas@... | www.matsinc.com Ask us about our clean, green and beautiful matting and flooring


This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.



-----Original Message-----

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of John Driggers
Sent: Wednesday, June 20, 2012 10:53 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] oTrans.Update seems different between 9.04 and
9.05

I haven't tested PO's in particular recently, but I know that on SOs and
most other forms I've never seen behavior like that.

Are you seeing that in an event or just after the update completes? If
you're wired to an event of some sort you may be catching a refresh that
Epicor is doing as part of the Update.



*John Driggers*
**
*Chief Data Wrangler*
*
*
*I have an Epicor blog <http://usdoingstuff.com/>. How useful is that?*
*
*:: 904.404.9233
:: waffqle@...
:: http://www.usdoingstuff.com <http://www.usdoingstuff.com/>

*

*



On Wed, Jun 20, 2012 at 10:32 AM, Joe Rojas <jrojas@...> wrote:

> **
>
>
> Hi All,
>
> We're working on upgrading to 9.05.700.
>
> I'm trying to troubleshoot one of my customization.
>
> In 9.04, when I called oTrans.Update() to save changes, it did not
> "reset" the row number in the dataViews.
>
> For example, if I was on PO Line 3 and call oTrans.Update(), it would
> still be on PO Line 3 afterwards.
>
> Now, in 9.05.700, my customization is throwing an error because it
> appears that oTrans.Update() is setting the Row property for the
> dataViews to -1.
>
> I can try to work around this but I wanted to check to see if anyone
> else notices this behavior in 9.05 and if maybe I'm missing something
> in
> 9.05 that I need to know to address this.
>
>
>
>
>
>
>
> Joe Rojas | Director of Information Technology | Mats Inc
> dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
> jrojas@... | www.matsinc.com Ask us about our clean, green and

> beautiful matting and flooring
>
> This message is intended only for the individual named. If you are not

> the named addressee you should not disseminate, distribute or copy
this e-mail.
> Please notify the sender immediately by e-mail if you have received
> this e-mail by mistake. Please note that any views or opinions
> presented in this email are solely those of the author and do not
> necessarily represent those of the company.
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]



------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder
and Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
Joe,

Here is a Diff of oTrans.Update in PO Entry for 9.04 and 9.05
9.04 on the left.

http://diffchecker.com/3YHocxHx




*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
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?*



On Wed, Jun 20, 2012 at 11:06 AM, Joe Rojas <jrojas@...> wrote:

> **
>
>
> Hi John,
>
> Below is a trimmed portion of my code. This code exists in the
> AfterAdapterMethod event and I'm only running it if the method was
> Update.
> So the user clicks save in PO Entry to save changes which trigger the
> AfterAdapterMethod.
>
> What I didn't include is the code in my PORel_AfterFieldChange method
> that looks to see if CheckBox01 has changed.
> It has the follow line of code that bombs out because the Row property
> is -1.
> DateTime NewDueDate =
> Convert.ToDateTime(edvPORel.dataView[edvPORel.Row]["DueDate"]).AddDays(5
> );
>
> //Below is a trimmed version of oTrans_poAdapter_AfterAdapterMethod for
> simplicity
> //These first two Message Boxes show the correct Row values.
> MessageBox.Show("2 edvPODetail.Row = " + edvPODetail.Row.ToString());
> MessageBox.Show("2 edvPORel.Row = " + edvPORel.Row.ToString());
>
> for(int i=0 ; i < edvPORel.dataView.Count; i++)
> {
> edvPORel.dataView[i].BeginEdit();
> edvPORel.dataView[i]["CheckBox01"] = false;
> edvPORel.dataView[i].EndEdit();
> oTrans.Update();
>
> //These Message Boxes show that Row is -1 for both
> MessageBox.Show("3 edvPODetail.Row = " + edvPODetail.Row.ToString());
> MessageBox.Show("3 edvPORel.Row = " + edvPORel.Row.ToString());
>
> massPORel = i;
> massPOLine = j;
> edvPORel.dataView[i].BeginEdit();
> edvPORel.dataView[i]["CheckBox01"] = true;
> edvPORel.dataView[i].EndEdit();
> oTrans.Update();
>
> //These last two confirm that Row is still -1
> MessageBox.Show("4 edvPODetail.Row = " + edvPODetail.Row.ToString());
> MessageBox.Show("4 edvPORel.Row = " + edvPORel.Row.ToString());
>
> }
>
> Joe Rojas | Director of Information Technology | Mats Inc
> dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
> jrojas@... | www.matsinc.com Ask us about our clean, green and
> beautiful matting and flooring
>
> This message is intended only for the individual named. If you are not the
> named addressee you should not disseminate, distribute or copy this e-mail.
> Please notify the sender immediately by e-mail if you have received this
> e-mail by mistake. Please note that any views or opinions presented in this
> email are solely those of the author and do not necessarily represent those
> of the company.
>
> -----Original Message-----
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of John Driggers
> Sent: Wednesday, June 20, 2012 10:53 AM
> To: vantage@yahoogroups.com
> Subject: Re: [Vantage] oTrans.Update seems different between 9.04 and
> 9.05
>
>
> I haven't tested PO's in particular recently, but I know that on SOs and
> most other forms I've never seen behavior like that.
>
> Are you seeing that in an event or just after the update completes? If
> you're wired to an event of some sort you may be catching a refresh that
> Epicor is doing as part of the Update.
>
> *John Driggers*
> **
> *Chief Data Wrangler*
> *
> *
> *I have an Epicor blog <http://usdoingstuff.com/>. How useful is that?*
> *
> *:: 904.404.9233
> :: waffqle@...
> :: http://www.usdoingstuff.com <http://www.usdoingstuff.com/>
>
> *
>
> *
>
> On Wed, Jun 20, 2012 at 10:32 AM, Joe Rojas <jrojas@...> wrote:
>
> > **
> >
> >
> > Hi All,
> >
> > We're working on upgrading to 9.05.700.
> >
> > I'm trying to troubleshoot one of my customization.
> >
> > In 9.04, when I called oTrans.Update() to save changes, it did not
> > "reset" the row number in the dataViews.
> >
> > For example, if I was on PO Line 3 and call oTrans.Update(), it would
> > still be on PO Line 3 afterwards.
> >
> > Now, in 9.05.700, my customization is throwing an error because it
> > appears that oTrans.Update() is setting the Row property for the
> > dataViews to -1.
> >
> > I can try to work around this but I wanted to check to see if anyone
> > else notices this behavior in 9.05 and if maybe I'm missing something
> > in
> > 9.05 that I need to know to address this.
> >
> >
> >
> >
> >
> >
> >
> > Joe Rojas | Director of Information Technology | Mats Inc
> > dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
> > jrojas@... | www.matsinc.com Ask us about our clean, green and
>
> > beautiful matting and flooring
> >
> > This message is intended only for the individual named. If you are not
>
> > the named addressee you should not disseminate, distribute or copy
> this e-mail.
> > Please notify the sender immediately by e-mail if you have received
> > this e-mail by mistake. Please note that any views or opinions
> > presented in this email are solely those of the author and do not
> > necessarily represent those of the company.
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
> ------------------------------------
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
> have already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report Builder
> and Crystal Reports and other 'goodies', please goto:
> http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
> http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
>
>


[Non-text portions of this message have been removed]
Thanks Jose.

This was helpful. I don't see anything that would set the Row property
in the Update method.
It might be in the poAdapter.Update method. I'll look there next.

The other cool thing is that I now know about diffchecker.com. :)
I use a locally installed program but diffchecker would be helpful to
share the results with someone else.












Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
jrojas@... | www.matsinc.com Ask us about our clean, green and beautiful matting and flooring


This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.



-----Original Message-----

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Jose Gomez
Sent: Wednesday, June 20, 2012 1:36 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] oTrans.Update seems different between 9.04 and
9.05

Joe,

Here is a Diff of oTrans.Update in PO Entry for 9.04 and 9.05
9.04 on the left.

http://diffchecker.com/3YHocxHx




*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
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?*



On Wed, Jun 20, 2012 at 11:06 AM, Joe Rojas <jrojas@...> wrote:

> **
>
>
> Hi John,
>
> Below is a trimmed portion of my code. This code exists in the
> AfterAdapterMethod event and I'm only running it if the method was
> Update.
> So the user clicks save in PO Entry to save changes which trigger the
> AfterAdapterMethod.
>
> What I didn't include is the code in my PORel_AfterFieldChange method
> that looks to see if CheckBox01 has changed.
> It has the follow line of code that bombs out because the Row property

> is -1.
> DateTime NewDueDate =
> Convert.ToDateTime(edvPORel.dataView[edvPORel.Row]["DueDate"]).AddDays
> (5
> );
>
> //Below is a trimmed version of oTrans_poAdapter_AfterAdapterMethod
> for simplicity //These first two Message Boxes show the correct Row
> values.
> MessageBox.Show("2 edvPODetail.Row = " + edvPODetail.Row.ToString());
> MessageBox.Show("2 edvPORel.Row = " + edvPORel.Row.ToString());
>
> for(int i=0 ; i < edvPORel.dataView.Count; i++) {
> edvPORel.dataView[i].BeginEdit(); edvPORel.dataView[i]["CheckBox01"] =

> false; edvPORel.dataView[i].EndEdit(); oTrans.Update();
>
> //These Message Boxes show that Row is -1 for both
> MessageBox.Show("3 edvPODetail.Row = " + edvPODetail.Row.ToString());
> MessageBox.Show("3 edvPORel.Row = " + edvPORel.Row.ToString());
>
> massPORel = i;
> massPOLine = j;
> edvPORel.dataView[i].BeginEdit();
> edvPORel.dataView[i]["CheckBox01"] = true;
> edvPORel.dataView[i].EndEdit(); oTrans.Update();
>
> //These last two confirm that Row is still -1
> MessageBox.Show("4 edvPODetail.Row = " + edvPODetail.Row.ToString());
> MessageBox.Show("4 edvPORel.Row = " + edvPORel.Row.ToString());
>
> }
>
> Joe Rojas | Director of Information Technology | Mats Inc
> dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
> jrojas@... | www.matsinc.com Ask us about our clean, green and

> beautiful matting and flooring
>
> This message is intended only for the individual named. If you are not

> the named addressee you should not disseminate, distribute or copy
this e-mail.
> Please notify the sender immediately by e-mail if you have received
> this e-mail by mistake. Please note that any views or opinions
> presented in this email are solely those of the author and do not
> necessarily represent those of the company.
>
> -----Original Message-----
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
> Behalf Of John Driggers
> Sent: Wednesday, June 20, 2012 10:53 AM
> To: vantage@yahoogroups.com
> Subject: Re: [Vantage] oTrans.Update seems different between 9.04 and
> 9.05
>
>
> I haven't tested PO's in particular recently, but I know that on SOs
> and most other forms I've never seen behavior like that.
>
> Are you seeing that in an event or just after the update completes? If

> you're wired to an event of some sort you may be catching a refresh
> that Epicor is doing as part of the Update.
>
> *John Driggers*
> **
> *Chief Data Wrangler*
> *
> *
> *I have an Epicor blog <http://usdoingstuff.com/>. How useful is
> that?*
> *
> *:: 904.404.9233
> :: waffqle@...
> :: http://www.usdoingstuff.com <http://www.usdoingstuff.com/>
>
> *
>
> *
>
> On Wed, Jun 20, 2012 at 10:32 AM, Joe Rojas <jrojas@...>
wrote:
>
> > **
> >
> >
> > Hi All,
> >
> > We're working on upgrading to 9.05.700.
> >
> > I'm trying to troubleshoot one of my customization.
> >
> > In 9.04, when I called oTrans.Update() to save changes, it did not
> > "reset" the row number in the dataViews.
> >
> > For example, if I was on PO Line 3 and call oTrans.Update(), it
> > would still be on PO Line 3 afterwards.
> >
> > Now, in 9.05.700, my customization is throwing an error because it
> > appears that oTrans.Update() is setting the Row property for the
> > dataViews to -1.
> >
> > I can try to work around this but I wanted to check to see if anyone

> > else notices this behavior in 9.05 and if maybe I'm missing
> > something in
> > 9.05 that I need to know to address this.
> >
> >
> >
> >
> >
> >
> >
> > Joe Rojas | Director of Information Technology | Mats Inc
> > dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
> > jrojas@... | www.matsinc.com Ask us about our clean, green
> > and
>
> > beautiful matting and flooring
> >
> > This message is intended only for the individual named. If you are
> > not
>
> > the named addressee you should not disseminate, distribute or copy
> this e-mail.
> > Please notify the sender immediately by e-mail if you have received
> > this e-mail by mistake. Please note that any views or opinions
> > presented in this email are solely those of the author and do not
> > necessarily represent those of the company.
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
> ------------------------------------
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
> have already linked your email address to a yahoo id to enable access.

> )
> (1) To access the Files Section of our Yahoo!Group for Report Builder
> and Crystal Reports and other 'goodies', please goto:
> http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
> http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
>
>


[Non-text portions of this message have been removed]



------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder
and Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
Yeah I didn't see anything either, in your code while you are looping
through the DataView maybe you are some how changing the Row?

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
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?*



On Wed, Jun 20, 2012 at 1:56 PM, Joe Rojas <jrojas@...> wrote:

> **
>
>
> Thanks Jose.
>
> This was helpful. I don't see anything that would set the Row property
> in the Update method.
> It might be in the poAdapter.Update method. I'll look there next.
>
> The other cool thing is that I now know about diffchecker.com. :)
> I use a locally installed program but diffchecker would be helpful to
> share the results with someone else.
>
>
> Joe Rojas | Director of Information Technology | Mats Inc
> dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
> jrojas@... | www.matsinc.com Ask us about our clean, green and
> beautiful matting and flooring
>
> This message is intended only for the individual named. If you are not the
> named addressee you should not disseminate, distribute or copy this e-mail.
> Please notify the sender immediately by e-mail if you have received this
> e-mail by mistake. Please note that any views or opinions presented in this
> email are solely those of the author and do not necessarily represent those
> of the company.
>
> -----Original Message-----
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Jose Gomez
> Sent: Wednesday, June 20, 2012 1:36 PM
>
> To: vantage@yahoogroups.com
> Subject: Re: [Vantage] oTrans.Update seems different between 9.04 and
> 9.05
>
> Joe,
>
> Here is a Diff of oTrans.Update in PO Entry for 9.04 and 9.05
> 9.04 on the left.
>
> http://diffchecker.com/3YHocxHx
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *checkout my new blog <http://www.usdoingstuff.com> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> 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?*
>
>
> On Wed, Jun 20, 2012 at 11:06 AM, Joe Rojas <jrojas@...> wrote:
>
> > **
>
> >
> >
> > Hi John,
> >
> > Below is a trimmed portion of my code. This code exists in the
> > AfterAdapterMethod event and I'm only running it if the method was
> > Update.
> > So the user clicks save in PO Entry to save changes which trigger the
> > AfterAdapterMethod.
> >
> > What I didn't include is the code in my PORel_AfterFieldChange method
> > that looks to see if CheckBox01 has changed.
> > It has the follow line of code that bombs out because the Row property
>
> > is -1.
> > DateTime NewDueDate =
> > Convert.ToDateTime(edvPORel.dataView[edvPORel.Row]["DueDate"]).AddDays
> > (5
> > );
> >
> > //Below is a trimmed version of oTrans_poAdapter_AfterAdapterMethod
> > for simplicity //These first two Message Boxes show the correct Row
> > values.
> > MessageBox.Show("2 edvPODetail.Row = " + edvPODetail.Row.ToString());
> > MessageBox.Show("2 edvPORel.Row = " + edvPORel.Row.ToString());
> >
> > for(int i=0 ; i < edvPORel.dataView.Count; i++) {
> > edvPORel.dataView[i].BeginEdit(); edvPORel.dataView[i]["CheckBox01"] =
>
> > false; edvPORel.dataView[i].EndEdit(); oTrans.Update();
> >
> > //These Message Boxes show that Row is -1 for both
> > MessageBox.Show("3 edvPODetail.Row = " + edvPODetail.Row.ToString());
> > MessageBox.Show("3 edvPORel.Row = " + edvPORel.Row.ToString());
> >
> > massPORel = i;
> > massPOLine = j;
> > edvPORel.dataView[i].BeginEdit();
> > edvPORel.dataView[i]["CheckBox01"] = true;
> > edvPORel.dataView[i].EndEdit(); oTrans.Update();
> >
> > //These last two confirm that Row is still -1
> > MessageBox.Show("4 edvPODetail.Row = " + edvPODetail.Row.ToString());
> > MessageBox.Show("4 edvPORel.Row = " + edvPORel.Row.ToString());
> >
> > }
> >
> > Joe Rojas | Director of Information Technology | Mats Inc
> > dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
> > jrojas@... | www.matsinc.com Ask us about our clean, green and
>
> > beautiful matting and flooring
> >
> > This message is intended only for the individual named. If you are not
>
> > the named addressee you should not disseminate, distribute or copy
> this e-mail.
> > Please notify the sender immediately by e-mail if you have received
> > this e-mail by mistake. Please note that any views or opinions
> > presented in this email are solely those of the author and do not
> > necessarily represent those of the company.
> >
> > -----Original Message-----
> >
> > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
> > Behalf Of John Driggers
> > Sent: Wednesday, June 20, 2012 10:53 AM
> > To: vantage@yahoogroups.com
> > Subject: Re: [Vantage] oTrans.Update seems different between 9.04 and
> > 9.05
> >
> >
> > I haven't tested PO's in particular recently, but I know that on SOs
> > and most other forms I've never seen behavior like that.
> >
> > Are you seeing that in an event or just after the update completes? If
>
> > you're wired to an event of some sort you may be catching a refresh
> > that Epicor is doing as part of the Update.
> >
> > *John Driggers*
> > **
> > *Chief Data Wrangler*
> > *
> > *
> > *I have an Epicor blog <http://usdoingstuff.com/>. How useful is
> > that?*
> > *
> > *:: 904.404.9233
> > :: waffqle@...
> > :: http://www.usdoingstuff.com <http://www.usdoingstuff.com/>
> >
> > *
> >
> > *
> >
> > On Wed, Jun 20, 2012 at 10:32 AM, Joe Rojas <jrojas@...>
> wrote:
> >
> > > **
> > >
> > >
> > > Hi All,
> > >
> > > We're working on upgrading to 9.05.700.
> > >
> > > I'm trying to troubleshoot one of my customization.
> > >
> > > In 9.04, when I called oTrans.Update() to save changes, it did not
> > > "reset" the row number in the dataViews.
> > >
> > > For example, if I was on PO Line 3 and call oTrans.Update(), it
> > > would still be on PO Line 3 afterwards.
> > >
> > > Now, in 9.05.700, my customization is throwing an error because it
> > > appears that oTrans.Update() is setting the Row property for the
> > > dataViews to -1.
> > >
> > > I can try to work around this but I wanted to check to see if anyone
>
> > > else notices this behavior in 9.05 and if maybe I'm missing
> > > something in
> > > 9.05 that I need to know to address this.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Joe Rojas | Director of Information Technology | Mats Inc
> > > dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
> > > jrojas@... | www.matsinc.com Ask us about our clean, green
> > > and
> >
> > > beautiful matting and flooring
> > >
> > > This message is intended only for the individual named. If you are
> > > not
> >
> > > the named addressee you should not disseminate, distribute or copy
> > this e-mail.
> > > Please notify the sender immediately by e-mail if you have received
> > > this e-mail by mistake. Please note that any views or opinions
> > > presented in this email are solely those of the author and do not
> > > necessarily represent those of the company.
> > >
> > > [Non-text portions of this message have been removed]
> > >
> > >
> > >
> >
> > [Non-text portions of this message have been removed]
> >
> > ------------------------------------
> >
> > Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
> > have already linked your email address to a yahoo id to enable access.
>
> > )
> > (1) To access the Files Section of our Yahoo!Group for Report Builder
> > and Crystal Reports and other 'goodies', please goto:
> > http://groups.yahoo.com/group/vantage/files/.
> > (2) To search through old msg's goto:
> > http://groups.yahoo.com/group/vantage/messages
> > (3) To view links to Vendors that provide Vantage services goto:
> > http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
> ------------------------------------
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
> have already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report Builder
> and Crystal Reports and other 'goodies', please goto:
> http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
> http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
>
>


[Non-text portions of this message have been removed]