After compiling this code, I get the error messagE:
Error: BC30002 - line 63 (299) - Type 'SalesOrderAdapter' is not
defined.
--SF
Error: BC30002 - line 63 (299) - Type 'SalesOrderAdapter' is not
defined.
--SF
--- In vantage@yahoogroups.com, "bw2868bond" <bwalker@...> wrote:
>
> In your txtEpiCustom1_Leave event, try this code to see if you get
> the comment from your 10000 order in the 22096 comment box.
>
> As the posts wrap quite a bit, each line of code is inbetween
> <codeline>...</codeline>
>
> <codeline>Dim ordhedAdapter as SalesOrderAdapter = New
> SalesOrderAdapter(SalesOrderForm)</codeline>
> <codeline>Dim ohaConnected As Boolean = ordhedAdapter.BOConnect()
> </codeline>
> <codeline>Dim Success As Boolean = ordhedAdapter.GetByID
> (txtEpiCustom1.Text)</codeline>
> <codeline></codeline>
> <codeline>If(Success) Then</codeline>
> <codeline> Dim edvOrderHed As EpiDataView = CType
> (oTrans.EpiDataViews("OrderHed"), EpiDataView)</codeline>
> <codeline> edvOrderHed.dataView(0)("OrderComment") =
> ordhedAdapter.SalesOrderData.Tables("OrdHed").Rows(0)
("OrderComment")
> </codeline>
> <codeline> edvOrderHed.Notify( New EpiNotifyArgs(SalesOrderForm,
> edvOrderHed.Row, edvOrderHed.Column)</codeline>
> <codeline>End If</codeline>
>
> Hope this helps to get you pointed in the right direction.
>
> Bernie.
>
> --- In vantage@yahoogroups.com, "sanfranc415" <sanfranc415@> wrote:
> >
> > What I'm trying to do is create a LostFocus that will pull up the
> > comments for an order I enter in a custom text box. So, if I'm
in
> > order 22096 and enter 10000 in my custom text box, it will copy
> those
> > comments to the 22096 comments box?
> >
> > --SF
> > --- In vantage@yahoogroups.com, "Mark Wonsil" <mark_wonsil@>
wrote:
> > >
> > > > I'd like to see how the Part Entry Screen pulls in the Part
> > Desciption
> > > > after it's entered. Does somebody have an example of how this
> code
> > > > works in the background?
> > >
> > > It's bound to the data view, so it's pulled before the screen
> > is "painted". To
> > > do the same, you'd want to add your user defined field into the
> data
> > view and
> > > then bind it to the field. You're thinking like a VB6
programmer
> and
> > not a
> > > VB.Net programmer. ;-)
> > >
> > > Mark "Who thinks the same way too" W.
> > >
> >
>