Jeremy,
As I stated before do the code in a BPM and it will be as efficient as
possible in terms of Performance.
*Jose C Gomez*
*Software Engineer*
*
*
*
*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?*
As I stated before do the code in a BPM and it will be as efficient as
possible in terms of Performance.
*Jose C Gomez*
*Software Engineer*
*
*
*
*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, Mar 27, 2013 at 2:16 PM, chan213419 <chan213419@...> wrote:
> **
>
>
> Thanks for all your help everyone!
>
> This UD will have CustID's saved to it that are considered "Return To
> Customers". I believe Mr. Giese is correct in that these records should be
> built into the Customer Maintenance screen negating the need for the
> Bor.GetRows portion of the code. The code below, thanks to Mr. tkoch77,
> worked. After brainstorming more over this and paying close attention to
> Jose's mention of performance issues I am beginning to wonder if the code
> below is efficient. Certainly it's more efficient than my fist crack, but
> now I am wondering if I have to use the BoReader at all. What do you guys
> think?
>
>
> Private Sub edvCustomer_EpiViewNotification(ByVal view As EpiDataView,
> ByVal args As EpiNotifyArgs)
> If (args.Row > -1 AndAlso
> edvCustomer.DataView(edvCustomer.Row)("ShortChar05") <> "" AndAlso
> edvCustomer.DataView(edvCustomer.Row)("ShortChar06") = "") Then
>
> Dim bor As BOReader = New BOReader(oTrans.Session.ConnectionPool)
> Dim wc as String = String.Format("CustID = '{0}'",
> edvCustomer.DataView(edvCustomer.Row)("ShortChar05"))
> Dim ds as DataSet = bor.GetRows("Customer", wc,
> ("Name,Address1,Address2,Address3,City,State,Zip,Country"))
>
> If ds.Tables(0).Rows.Count > 0 Then
> txtboxLIMSRetToAddr.Value = ds.Tables(0).Rows(0)("Name") &
> Environment.NewLine & ds.Tables(0).Rows(0)("Address1") &
> ds.Tables(0).Rows(0)("Address2") & Environment.NewLine &
> ds.Tables(0).Rows(0)("Address3") & Environment.NewLine &
> ds.Tables(0).Rows(0)("City") & Environment.NewLine &
> ds.Tables(0).Rows(0)("State") & Environment.NewLine &
> ds.Tables(0).Rows(0)("Zip") & Environment.NewLine &
> ds.Tables(0).Rows(0)("Country")
> End If
> End IF
>
> End Sub
>
>
> --- In vantage@yahoogroups.com, Joshua Giese <jgiese@...> wrote:
> >
> > What will the UD field be used for? Epicor already has linking from
> customer record to customer record built in depending on what you are
> trying to do
> >
> >
> >
> > Joshua Giese
> >
> > CTO
> >
> > 920.437.6400 Ext. 337
> >
> > Site ID: 27450-E905700B2-SQL64
> >
> > ----- Original Message -----
> >
> > From: "chan213419" <chan213419@...>
> > To: vantage@yahoogroups.com
> > Sent: Wednesday, March 27, 2013 8:33:30 AM
> > Subject: [Vantage] Re: VB Code help... looks sloppy to me
> >
> >
> >
> > Customer Maintenance screen. Goal: populate a UD field (ShortChar05)
> with another CustID, and display address information for that UD-CustID
> (need to keep UD-CustID totally separate with CustID loaded in Customer
> Maintenance screen).
> >
> > It does work... but as Jose pointed out, I am hitting the server
> multiple times for the same thing... I don't want to slow their system down
> with something so simple.
> >
> > Thanks sir!
> >
> > --- In vantage@yahoogroups.com , Joshua Giese <jgiese@> wrote:
> > >
> > > Ha it's certainly a good attempt but a bit sloppy yes. Let's start
> with what screen that is in? Depending what you have available to you you
> might be able to really sand this down to something simple
> > >
> > >
> > >
> > > Joshua Giese
> > >
> > > CTO
> > >
> > > 920.437.6400 Ext. 337
> > >
> > > Site ID: 27450-E905700B2-SQL64
> > >
> > > ----- Original Message -----
> > >
> > > From: "chan213419" <chan213419@>
> > > To: vantage@yahoogroups.com
> > > Sent: Wednesday, March 27, 2013 8:06:35 AM
> > > Subject: [Vantage] VB Code help... looks sloppy to me
> > >
> > >
> > >
> > > Good morning!
> > >
> > > I achieved creating a textbox that displays multiple fields (address
> fields). The code below is how I got it to work. As you can see I am
> linking/writing column individually (see dim ds1-7). I believe there should
> be a simpler way. Instead of coding each column, can I condense this into
> one line? Like I said, the code works but I am looking for a simpler way to
> code this.
> > >
> > > Private Sub edvCustomer_EpiViewNotification(ByVal view As EpiDataView,
> ByVal args As EpiNotifyArgs)
> > >
> > > If (args.Row > -1 AndAlso
> edvCustomer.DataView(edvCustomer.Row)("ShortChar05") <> "" AndAlso
> edvCustomer.DataView(edvCustomer.Row)("ShortChar06") = "") Then
> > > Dim bor As BOReader = New BOReader(oTrans.Session.ConnectionPool)
> > > Dim wc as String = String.Format("CustID = '{0}'",
> edvCustomer.DataView(edvCustomer.Row)("ShortChar05"))
> > > Dim ds as DataSet = bor.GetRows("Customer", wc, "Name")
> > > Dim ds1 as DataSet = bor.GetRows("Customer", wc, "Address1")
> > > Dim ds2 as DataSet = bor.GetRows("Customer", wc, "Address2")
> > > Dim ds3 as DataSet = bor.GetRows("Customer", wc, "Address3")
> > > Dim ds4 as DataSet = bor.GetRows("Customer", wc, "City")
> > > Dim ds5 as DataSet = bor.GetRows("Customer", wc, "State")
> > > Dim ds6 as DataSet = bor.GetRows("Customer", wc, "Zip")
> > > Dim ds7 as DataSet = bor.GetRows("Customer", wc, "Country")
> > > If ds.Tables(0).Rows.Count > 0 Then
> > >
> > > txtboxLIMSRetToAddr.Value = ds.Tables(0).Rows(0)(0) &
> Environment.NewLine & ds1.Tables(0).Rows(0)(0) & Environment.NewLine &
> ds2.Tables(0).Rows(0)(0) & Environment.NewLine & ds3.Tables(0).Rows(0)(0) &
> Environment.NewLine & ds4.Tables(0).Rows(0)(0) & Environment.NewLine &
> ds5.Tables(0).Rows(0)(0) & Environment.NewLine & ds6.Tables(0).Rows(0)(0) &
> Environment.NewLine & ds7.Tables(0).Rows(0)(0)
> > > End If
> > > End IF
> > >
> > > If (args.Row > -1)
> > > IF edvCustomer.DataView(edvCustomer.Row)("ShortChar05") = ""
> > > txtboxLIMSRetToAddr.Value = ""
> > > End IF
> > > End If
> > >
> > > End Sub
> > >
> > >
> > >
> > >
> > >
> > > [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]