Vb customization - data not saving to ud table unless

I believe that's correct...the string I had in there was this...

edvUD11.Notify( New EpiNotifyArgs(oTrans, edvUD11.Row,edvUD11.Column) )

Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-0590
FAX: (715)284-4084

(Click the logo to view our site)


-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Tuesday, December 20, 2011 3:36 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] vb customization - data not saving to ud table unless..

Yeha you need to notify, is Notify not working for you?

*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 Tue, Dec 20, 2011 at 4:09 PM, Rob Bucek <rbucek@...> wrote:

> **
>
>
> Ok..
> Step 1 user types empnum into text box bound to shortchar07 tabs out,
> event fires a list lookup, their name populates a text box bound to
> shortchar08..works great. Click save, nothing happens. Refresh and
> data reverts back to previous values.
>
> If they do step one AND enter data into a text box bound to
> shortchar05 say, and then click save, the data sticks.
>
> Sent from my Verizon Wireless 4G LTE Phone
>
>
> -----Original message-----
> From: Jose Gomez <jose@...>
> To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
> Sent: Tue, Dec 20, 2011 20:51:31 GMT+00:00
> Subject: Re: [Vantage] vb customization - data not saving to ud table
> unless..
>
> I am not sure I understand, where does the record stick?
>
> *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 Tue, Dec 20, 2011 at 3:48 PM, Rob Bucek <rbucek@...> wrote:
>
> > **
> >
> >
> > Jose,
> >
> > Thanks for quick reply, had that in there before, yanked it because
> > it wasn't effective. Started digging in the archives.. found an old
> > post by bwBond on what seemed to be a similar issue..took a while to
> > find
> it..you
> > know how searching those is.
> >
> > I had to put the row in an edit mode..
> >
> > EdvUD11.dataview(edvUd11.Row)beginedit() etc....
> >
> > Which I know works great but drives me nuts because im still trying
> > to learn the fundumentals of this stuff lol... the record sticks
> > without
> that
> > code if I manually enter data into another field before saving the
> entire
> > record..
> >
> > I have it working, but am still curious if you might have some
> > insight into what is causing that behavior..
> >
> >
> > Rob Bucek
> > Production Control Manager
> > PH: (715) 284-5376 ext 311
> > Mobile: (715)896-0590
> > FAX: (715)284-4084
> >
> > (Click the logo to view our site)
> >
> > -----Original Message-----
> > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
> Behalf
> > Of Jose Gomez
> > Sent: Tuesday, December 20, 2011 2:38 PM
> > To: vantage@yahoogroups.com
> > Subject: Re: [Vantage] vb customization - data not saving to ud
> > table unless..
> >
> > try
> > edvYourVIew.Notify(new
> > EpiNotifyArgs(oTrans,edvYourView.Row,edvYourView.Column))
> >
> > *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 Tue, Dec 20, 2011 at 3:33 PM, Rob Bucek <rbucek@...> wrote:
> >
> > > **
> >
> > >
> > >
> > > So I have a ud table that users are entering data into. A
> > > shortchar field where they type their employee number into, when
> > > they tab it does a list look up, validates, and populates that
> > > field with the number, and another with their name. Unless I
> > > manually enter data into another native control, say a date/time
> > > editor or another text box tied to a shortchar field before I
> > > attempt to save, it won't save the data populated from the list
> > > lookup (char 7 & 8), though in either instance you do see the
> > > information fill into the controls.. do I need to do some type of
> > > notification to the row in order to cement the
> > changes (before saving)?
> > >
> > > Private Sub txtEmpNum_LostFocus(ByVal Sender As Object, ByVal Args
> > > As
> > > System.EventArgs) Handles txtEmpNum.LostFocus '// ** Place Event
> > > Handling Code Here ** Dim txtEmp As EpitextBox =
> > > ctype(csm.GetNativeControlReference("cbdc76bb-a22a-4476-a294-80829
> > > e6df
> > > c16"),EpitextBox) Dim whereClause As String = "EmpID = '" +
> > > txtEmp.Text + "'"
> > > Dim recSelected As Boolean
> > > Dim dsEmpSearch As DataSet
> > > If (txtEmp.Text <> String.Empty) Then dsEmpSearch =
> > > Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(oTrans,
> > > "EmpBasicAdapter", recSelected, False, whereClause) If
> > > (recSelected =
> > > False) Then MessageBox.Show("Employee does not exist")
> > > txtEmp.Clear()
> > > txtEmp.Focus()
> > > Else
> > > Dim edvUD11 As EpiDataView = CType(oTrans.EpiDataViews("UD11"),
> > > EpiDataView)
> > > edvUD11.dataView(edvUD11.Row)("ShortChar08") =
> > > dsEmpSearch.Tables(0).Rows(0)("EmpID")
> > > edvUD11.dataView(edvUD11.Row)("ShortChar07") =
> > > dsEmpSearch.Tables(0).Rows(0)("Name")
> > > End If
> > > End If
> > > End Sub
> > >
> > > Rob Bucek
> > > Production Control Manager
> > > PH: (715) 284-5376 ext 311
> > > Mobile: (715)896-0590
> > > FAX: (715)284-40
>
> [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
So I have a ud table that users are entering data into. A shortchar field where they type their employee number into, when they tab it does a list look up, validates, and populates that field with the number, and another with their name. Unless I manually enter data into another native control, say a date/time editor or another text box tied to a shortchar field before I attempt to save, it won't save the data populated from the list lookup (char 7 & 8), though in either instance you do see the information fill into the controls.. do I need to do some type of notification to the row in order to cement the changes (before saving)?


Private Sub txtEmpNum_LostFocus(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles txtEmpNum.LostFocus
'// ** Place Event Handling Code Here **
Dim txtEmp As EpitextBox = ctype(csm.GetNativeControlReference("cbdc76bb-a22a-4476-a294-80829e6dfc16"),EpitextBox)
Dim whereClause As String = "EmpID = '" + txtEmp.Text + "'"
Dim recSelected As Boolean
Dim dsEmpSearch As DataSet
If (txtEmp.Text <> String.Empty) Then
dsEmpSearch = Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(oTrans, "EmpBasicAdapter", recSelected, False, whereClause)
If (recSelected = False) Then
MessageBox.Show("Employee does not exist")
txtEmp.Clear()
txtEmp.Focus()
Else
Dim edvUD11 As EpiDataView = CType(oTrans.EpiDataViews("UD11"), EpiDataView)
edvUD11.dataView(edvUD11.Row)("ShortChar08") = dsEmpSearch.Tables(0).Rows(0)("EmpID")
edvUD11.dataView(edvUD11.Row)("ShortChar07") = dsEmpSearch.Tables(0).Rows(0)("Name")
End If
End If
End Sub

Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-0590
FAX: (715)284-4084
[Description: cid:1.234354861@...]<http://www.dsmfg.com/>
(Click the logo to view our site)<http://www.dsmfg.com/>



[Non-text portions of this message have been removed]
try
edvYourVIew.Notify(new
EpiNotifyArgs(oTrans,edvYourView.Row,edvYourView.Column))

*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 Tue, Dec 20, 2011 at 3:33 PM, Rob Bucek <rbucek@...> wrote:

> **
>
>
> So I have a ud table that users are entering data into. A shortchar field
> where they type their employee number into, when they tab it does a list
> look up, validates, and populates that field with the number, and another
> with their name. Unless I manually enter data into another native control,
> say a date/time editor or another text box tied to a shortchar field before
> I attempt to save, it won't save the data populated from the list lookup
> (char 7 & 8), though in either instance you do see the information fill
> into the controls.. do I need to do some type of notification to the row in
> order to cement the changes (before saving)?
>
> Private Sub txtEmpNum_LostFocus(ByVal Sender As Object, ByVal Args As
> System.EventArgs) Handles txtEmpNum.LostFocus
> '// ** Place Event Handling Code Here **
> Dim txtEmp As EpitextBox =
> ctype(csm.GetNativeControlReference("cbdc76bb-a22a-4476-a294-80829e6dfc16"),EpitextBox)
> Dim whereClause As String = "EmpID = '" + txtEmp.Text + "'"
> Dim recSelected As Boolean
> Dim dsEmpSearch As DataSet
> If (txtEmp.Text <> String.Empty) Then
> dsEmpSearch =
> Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(oTrans,
> "EmpBasicAdapter", recSelected, False, whereClause)
> If (recSelected = False) Then
> MessageBox.Show("Employee does not exist")
> txtEmp.Clear()
> txtEmp.Focus()
> Else
> Dim edvUD11 As EpiDataView = CType(oTrans.EpiDataViews("UD11"),
> EpiDataView)
> edvUD11.dataView(edvUD11.Row)("ShortChar08") =
> dsEmpSearch.Tables(0).Rows(0)("EmpID")
> edvUD11.dataView(edvUD11.Row)("ShortChar07") =
> dsEmpSearch.Tables(0).Rows(0)("Name")
> End If
> End If
> End Sub
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
> [Description: cid:1.234354861@...]<
> http://www.dsmfg.com/>
> (Click the logo to view our site)<http://www.dsmfg.com/>
>
> [Non-text portions of this message have been removed]
>
>
>


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

Thanks for quick reply, had that in there before, yanked it because it wasn't effective. Started digging in the archives.. found an old post by bwBond on what seemed to be a similar issue..took a while to find it..you know how searching those is.

I had to put the row in an edit mode..

EdvUD11.dataview(edvUd11.Row)beginedit() etc....

Which I know works great but drives me nuts because im still trying to learn the fundumentals of this stuff lol... the record sticks without that code if I manually enter data into another field before saving the entire record..

I have it working, but am still curious if you might have some insight into what is causing that behavior..

Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-0590
FAX: (715)284-4084

(Click the logo to view our site)

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Tuesday, December 20, 2011 2:38 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] vb customization - data not saving to ud table unless..

try
edvYourVIew.Notify(new
EpiNotifyArgs(oTrans,edvYourView.Row,edvYourView.Column))

*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 Tue, Dec 20, 2011 at 3:33 PM, Rob Bucek <rbucek@...> wrote:

> **
>
>
> So I have a ud table that users are entering data into. A shortchar
> field where they type their employee number into, when they tab it
> does a list look up, validates, and populates that field with the
> number, and another with their name. Unless I manually enter data into
> another native control, say a date/time editor or another text box
> tied to a shortchar field before I attempt to save, it won't save the
> data populated from the list lookup (char 7 & 8), though in either
> instance you do see the information fill into the controls.. do I need
> to do some type of notification to the row in order to cement the changes (before saving)?
>
> Private Sub txtEmpNum_LostFocus(ByVal Sender As Object, ByVal Args As
> System.EventArgs) Handles txtEmpNum.LostFocus '// ** Place Event
> Handling Code Here ** Dim txtEmp As EpitextBox =
> ctype(csm.GetNativeControlReference("cbdc76bb-a22a-4476-a294-80829e6df
> c16"),EpitextBox) Dim whereClause As String = "EmpID = '" +
> txtEmp.Text + "'"
> Dim recSelected As Boolean
> Dim dsEmpSearch As DataSet
> If (txtEmp.Text <> String.Empty) Then
> dsEmpSearch =
> Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(oTrans,
> "EmpBasicAdapter", recSelected, False, whereClause) If (recSelected =
> False) Then MessageBox.Show("Employee does not exist")
> txtEmp.Clear()
> txtEmp.Focus()
> Else
> Dim edvUD11 As EpiDataView = CType(oTrans.EpiDataViews("UD11"),
> EpiDataView)
> edvUD11.dataView(edvUD11.Row)("ShortChar08") =
> dsEmpSearch.Tables(0).Rows(0)("EmpID")
> edvUD11.dataView(edvUD11.Row)("ShortChar07") =
> dsEmpSearch.Tables(0).Rows(0)("Name")
> End If
> End If
> End Sub
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
> [Description: cid:1.234354861@...]<
> http://www.dsmfg.com/>
> (Click the logo to view our site)<http://www.dsmfg.com/>
>
> [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
I am not sure I understand, where does the record stick?

*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 Tue, Dec 20, 2011 at 3:48 PM, Rob Bucek <rbucek@...> wrote:

> **
>
>
> Jose,
>
> Thanks for quick reply, had that in there before, yanked it because it
> wasn't effective. Started digging in the archives.. found an old post by
> bwBond on what seemed to be a similar issue..took a while to find it..you
> know how searching those is.
>
> I had to put the row in an edit mode..
>
> EdvUD11.dataview(edvUd11.Row)beginedit() etc....
>
> Which I know works great but drives me nuts because im still trying to
> learn the fundumentals of this stuff lol... the record sticks without that
> code if I manually enter data into another field before saving the entire
> record..
>
> I have it working, but am still curious if you might have some insight
> into what is causing that behavior..
>
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
>
> (Click the logo to view our site)
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Jose Gomez
> Sent: Tuesday, December 20, 2011 2:38 PM
> To: vantage@yahoogroups.com
> Subject: Re: [Vantage] vb customization - data not saving to ud table
> unless..
>
> try
> edvYourVIew.Notify(new
> EpiNotifyArgs(oTrans,edvYourView.Row,edvYourView.Column))
>
> *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 Tue, Dec 20, 2011 at 3:33 PM, Rob Bucek <rbucek@...> wrote:
>
> > **
>
> >
> >
> > So I have a ud table that users are entering data into. A shortchar
> > field where they type their employee number into, when they tab it
> > does a list look up, validates, and populates that field with the
> > number, and another with their name. Unless I manually enter data into
> > another native control, say a date/time editor or another text box
> > tied to a shortchar field before I attempt to save, it won't save the
> > data populated from the list lookup (char 7 & 8), though in either
> > instance you do see the information fill into the controls.. do I need
> > to do some type of notification to the row in order to cement the
> changes (before saving)?
> >
> > Private Sub txtEmpNum_LostFocus(ByVal Sender As Object, ByVal Args As
> > System.EventArgs) Handles txtEmpNum.LostFocus '// ** Place Event
> > Handling Code Here ** Dim txtEmp As EpitextBox =
> > ctype(csm.GetNativeControlReference("cbdc76bb-a22a-4476-a294-80829e6df
> > c16"),EpitextBox) Dim whereClause As String = "EmpID = '" +
> > txtEmp.Text + "'"
> > Dim recSelected As Boolean
> > Dim dsEmpSearch As DataSet
> > If (txtEmp.Text <> String.Empty) Then
> > dsEmpSearch =
> > Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(oTrans,
> > "EmpBasicAdapter", recSelected, False, whereClause) If (recSelected =
> > False) Then MessageBox.Show("Employee does not exist")
> > txtEmp.Clear()
> > txtEmp.Focus()
> > Else
> > Dim edvUD11 As EpiDataView = CType(oTrans.EpiDataViews("UD11"),
> > EpiDataView)
> > edvUD11.dataView(edvUD11.Row)("ShortChar08") =
> > dsEmpSearch.Tables(0).Rows(0)("EmpID")
> > edvUD11.dataView(edvUD11.Row)("ShortChar07") =
> > dsEmpSearch.Tables(0).Rows(0)("Name")
> > End If
> > End If
> > End Sub
> >
> > Rob Bucek
> > Production Control Manager
> > PH: (715) 284-5376 ext 311
> > Mobile: (715)896-0590
> > FAX: (715)284-4084
> > [Description: cid:1.234354861@...]<
> > http://www.dsmfg.com/>
> > (Click the logo to view our site)<http://www.dsmfg.com/>
> >
> > [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]
Ok..
Step 1 user types empnum into text box bound to shortchar07 tabs out, event fires a list lookup, their name populates a text box bound to shortchar08..works great. Click save, nothing happens. Refresh and data reverts back to previous values.

If they do step one AND enter data into a text box bound to shortchar05 say, and then click save, the data sticks.

Sent from my Verizon Wireless 4G LTE Phone


-----Original message-----
From: Jose Gomez <jose@...>
To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
Sent: Tue, Dec 20, 2011 20:51:31 GMT+00:00
Subject: Re: [Vantage] vb customization - data not saving to ud table unless..

I am not sure I understand, where does the record stick?

*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 Tue, Dec 20, 2011 at 3:48 PM, Rob Bucek <rbucek@...> wrote:

> **
>
>
> Jose,
>
> Thanks for quick reply, had that in there before, yanked it because it
> wasn't effective. Started digging in the archives.. found an old post by
> bwBond on what seemed to be a similar issue..took a while to find it..you
> know how searching those is.
>
> I had to put the row in an edit mode..
>
> EdvUD11.dataview(edvUd11.Row)beginedit() etc....
>
> Which I know works great but drives me nuts because im still trying to
> learn the fundumentals of this stuff lol... the record sticks without that
> code if I manually enter data into another field before saving the entire
> record..
>
> I have it working, but am still curious if you might have some insight
> into what is causing that behavior..
>
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
>
> (Click the logo to view our site)
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Jose Gomez
> Sent: Tuesday, December 20, 2011 2:38 PM
> To: vantage@yahoogroups.com
> Subject: Re: [Vantage] vb customization - data not saving to ud table
> unless..
>
> try
> edvYourVIew.Notify(new
> EpiNotifyArgs(oTrans,edvYourView.Row,edvYourView.Column))
>
> *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 Tue, Dec 20, 2011 at 3:33 PM, Rob Bucek <rbucek@...> wrote:
>
> > **
>
> >
> >
> > So I have a ud table that users are entering data into. A shortchar
> > field where they type their employee number into, when they tab it
> > does a list look up, validates, and populates that field with the
> > number, and another with their name. Unless I manually enter data into
> > another native control, say a date/time editor or another text box
> > tied to a shortchar field before I attempt to save, it won't save the
> > data populated from the list lookup (char 7 & 8), though in either
> > instance you do see the information fill into the controls.. do I need
> > to do some type of notification to the row in order to cement the
> changes (before saving)?
> >
> > Private Sub txtEmpNum_LostFocus(ByVal Sender As Object, ByVal Args As
> > System.EventArgs) Handles txtEmpNum.LostFocus '// ** Place Event
> > Handling Code Here ** Dim txtEmp As EpitextBox =
> > ctype(csm.GetNativeControlReference("cbdc76bb-a22a-4476-a294-80829e6df
> > c16"),EpitextBox) Dim whereClause As String = "EmpID = '" +
> > txtEmp.Text + "'"
> > Dim recSelected As Boolean
> > Dim dsEmpSearch As DataSet
> > If (txtEmp.Text <> String.Empty) Then
> > dsEmpSearch =
> > Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(oTrans,
> > "EmpBasicAdapter", recSelected, False, whereClause) If (recSelected =
> > False) Then MessageBox.Show("Employee does not exist")
> > txtEmp.Clear()
> > txtEmp.Focus()
> > Else
> > Dim edvUD11 As EpiDataView = CType(oTrans.EpiDataViews("UD11"),
> > EpiDataView)
> > edvUD11.dataView(edvUD11.Row)("ShortChar08") =
> > dsEmpSearch.Tables(0).Rows(0)("EmpID")
> > edvUD11.dataView(edvUD11.Row)("ShortChar07") =
> > dsEmpSearch.Tables(0).Rows(0)("Name")
> > End If
> > End If
> > End Sub
> >
> > Rob Bucek
> > Production Control Manager
> > PH: (715) 284-5376 ext 311
> > Mobile: (715)896-0590
> > FAX: (715)284-40


[Non-text portions of this message have been removed]
Yeha you need to notify, is Notify not working for you?

*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 Tue, Dec 20, 2011 at 4:09 PM, Rob Bucek <rbucek@...> wrote:

> **
>
>
> Ok..
> Step 1 user types empnum into text box bound to shortchar07 tabs out,
> event fires a list lookup, their name populates a text box bound to
> shortchar08..works great. Click save, nothing happens. Refresh and data
> reverts back to previous values.
>
> If they do step one AND enter data into a text box bound to shortchar05
> say, and then click save, the data sticks.
>
> Sent from my Verizon Wireless 4G LTE Phone
>
>
> -----Original message-----
> From: Jose Gomez <jose@...>
> To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
> Sent: Tue, Dec 20, 2011 20:51:31 GMT+00:00
> Subject: Re: [Vantage] vb customization - data not saving to ud table
> unless..
>
> I am not sure I understand, where does the record stick?
>
> *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 Tue, Dec 20, 2011 at 3:48 PM, Rob Bucek <rbucek@...> wrote:
>
> > **
> >
> >
> > Jose,
> >
> > Thanks for quick reply, had that in there before, yanked it because it
> > wasn't effective. Started digging in the archives.. found an old post by
> > bwBond on what seemed to be a similar issue..took a while to find
> it..you
> > know how searching those is.
> >
> > I had to put the row in an edit mode..
> >
> > EdvUD11.dataview(edvUd11.Row)beginedit() etc....
> >
> > Which I know works great but drives me nuts because im still trying to
> > learn the fundumentals of this stuff lol... the record sticks without
> that
> > code if I manually enter data into another field before saving the
> entire
> > record..
> >
> > I have it working, but am still curious if you might have some insight
> > into what is causing that behavior..
> >
> >
> > Rob Bucek
> > Production Control Manager
> > PH: (715) 284-5376 ext 311
> > Mobile: (715)896-0590
> > FAX: (715)284-4084
> >
> > (Click the logo to view our site)
> >
> > -----Original Message-----
> > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
> Behalf
> > Of Jose Gomez
> > Sent: Tuesday, December 20, 2011 2:38 PM
> > To: vantage@yahoogroups.com
> > Subject: Re: [Vantage] vb customization - data not saving to ud table
> > unless..
> >
> > try
> > edvYourVIew.Notify(new
> > EpiNotifyArgs(oTrans,edvYourView.Row,edvYourView.Column))
> >
> > *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 Tue, Dec 20, 2011 at 3:33 PM, Rob Bucek <rbucek@...> wrote:
> >
> > > **
> >
> > >
> > >
> > > So I have a ud table that users are entering data into. A shortchar
> > > field where they type their employee number into, when they tab it
> > > does a list look up, validates, and populates that field with the
> > > number, and another with their name. Unless I manually enter data into
> > > another native control, say a date/time editor or another text box
> > > tied to a shortchar field before I attempt to save, it won't save the
> > > data populated from the list lookup (char 7 & 8), though in either
> > > instance you do see the information fill into the controls.. do I need
> > > to do some type of notification to the row in order to cement the
> > changes (before saving)?
> > >
> > > Private Sub txtEmpNum_LostFocus(ByVal Sender As Object, ByVal Args As
> > > System.EventArgs) Handles txtEmpNum.LostFocus '// ** Place Event
> > > Handling Code Here ** Dim txtEmp As EpitextBox =
> > > ctype(csm.GetNativeControlReference("cbdc76bb-a22a-4476-a294-80829e6df
> > > c16"),EpitextBox) Dim whereClause As String = "EmpID = '" +
> > > txtEmp.Text + "'"
> > > Dim recSelected As Boolean
> > > Dim dsEmpSearch As DataSet
> > > If (txtEmp.Text <> String.Empty) Then
> > > dsEmpSearch =
> > > Epicor.Mfg.UI.FormFunctions.SearchFunctions.listLookup(oTrans,
> > > "EmpBasicAdapter", recSelected, False, whereClause) If (recSelected =
> > > False) Then MessageBox.Show("Employee does not exist")
> > > txtEmp.Clear()
> > > txtEmp.Focus()
> > > Else
> > > Dim edvUD11 As EpiDataView = CType(oTrans.EpiDataViews("UD11"),
> > > EpiDataView)
> > > edvUD11.dataView(edvUD11.Row)("ShortChar08") =
> > > dsEmpSearch.Tables(0).Rows(0)("EmpID")
> > > edvUD11.dataView(edvUD11.Row)("ShortChar07") =
> > > dsEmpSearch.Tables(0).Rows(0)("Name")
> > > End If
> > > End If
> > > End Sub
> > >
> > > Rob Bucek
> > > Production Control Manager
> > > PH: (715) 284-5376 ext 311
> > > Mobile: (715)896-0590
> > > FAX: (715)284-40
>
> [Non-text portions of this message have been removed]
>
>
>


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