Thanks Bernie,
Â
That worked beautifully.Â
Â
Ahmet
Â
That worked beautifully.Â
Â
Ahmet
--- On Mon, 12/1/08, bw2868bond <bwalker@...> wrote:
From: bw2868bond <bwalker@...>
Subject: [Vantage] Re: Search results pop into UltraGrid
To: vantage@yahoogroups.com
Date: Monday, December 1, 2008, 3:19 PM
Try this: ugdEpiCustom1. DataSource = ds
(I am pretty sure the list lookup does not return UD05 table )
--- In vantage@yahoogroups .com, Ahmet Erispaha <ahmeterispaha@ ...>
wrote:
>
> [First off, Do not set a value for recselected - the search box
sets
> that value to let you know if it found anything.
> ]
> Â
> OK, changed btn click event handler to:
> Â
> Â Private Sub btnEpiCustom1_ Click(ByVal Sender As Object, ByVal Args
As System.EventArgs) Handles btnEpiCustom1. Click
> Â Â '// ** Place Event Handling Code Here **
> Â Â Â Â Â Â Â Dim recselected as Boolean
> Â Â Â Â Â Â Â Dim showsearch as Boolean = True
> Â Â Â Â Â Â Â Dim whereclause as String = ""
> Â Â Â Â Â Â Â Dim multirecords as Boolean = False
> Â Â Â Â Â Â Â dim ds as dataset = searchfunctions. listlookup
(otrans,"UD05Adapte r", recselected, showsearch, whereclause,
multirecords)
> Â Â Â Â Â Â Â ugdEpiCustom1. DataSource = ds.Tables("UD05" )
> Â End Sub
>
> [did you actually select some data in the search form and click the
OK
> button?]Â Â Yes.
> Â
>
> --- On Mon, 12/1/08, bw2868bond <bwalker@... > wrote:
>
> From: bw2868bond <bwalker@... >
> Subject: [Vantage] Re: Search results pop into UltraGrid
> To: vantage@yahoogroups .com
> Date: Monday, December 1, 2008, 2:52 PM
>
>
>
>
>
>
> First off, Do not set a value for recselected - the search box sets
> that value to let you know if it found anything.
>
> did you actually select some data in the search form and click the
OK
> button?
>
> --- In vantage@yahoogroups .com, "ahmeterispaha"
<ahmeterispaha@ ...>
> wrote:
> >
> > I tried this with a custom UD05 Maintenance program hoping to get
a
> > better handle on how to work with the UltraGrid programmatically,
> but
> > my grid remained empty after selecting from the search -- no
column
> > headers, no data. Here's my code (which I put in a custom
button's
> > click event):
> > '***********
> > Private Sub btnEpiCustom1_ Click(ByVal Sender As Object, ByVal
> > Args As System.EventArgs) Handles btnEpiCustom1. Click
> > '// ** Place Event Handling Code Here **
> > Dim recselected as Boolean = True
> > Dim showsearch as Boolean = True
> > Dim whereclause as String = ""
> > Dim multirecords as Boolean = False
> > dim ds as dataset = searchfunctions. listlookup
> > (otrans,"UD05Adapte r", recselected, showsearch, whereclause,
> > multirecords)
> > ugdEpiCustom1. DataSource = ds.Tables("UD05" )
> > End Sub
> > '***********
> >
> > I didn't set the Datasource and Datafield properties in the
> > Customization Tools Dialog, expecting that the code above would
do
> > the necessary binding.
> >
> > What am I doing wrong?
> >
> > Ahmet
> >
> > --- In vantage@yahoogroups .com, "Stephen Edginton" <stephene@>
> > wrote:
> > >
> > >
> > >
> > > ugdUltraGrid. DataSource = ds.Tables("SerialNo ")
> > >
> > >
> > >
> > > but that doesn't conform to the Epicor Framework (but will work)
> > >
> > >
> > >
> > > The better way to achieve this is to initiate an EpiDataView
and a
> > > DataView of the table.
> > >
> > > Then you can use notifications and the customization tool to
bind
> > the
> > > new EpiDataView to your grid - once added to the transaction.
> > >
> > > (That should point you in the right direction)
> > >
> > >
> > >
> > > Regards,
> > >
> > > Stephen
> > >
> > >
> > >
> > > From: vantage@yahoogroups .com
[mailto:vantage@ yahoogroups .com] On
> > Behalf
> > > Of dub554
> > > Sent: 10 September 2007 15:57
> > > To: vantage@yahoogroups .com
> > > Subject: [Vantage] Search results pop into UltraGrid
> > >
> > >
> > >
> > > I have code that opens up a search using the SerialNoAdapter.
> > >
> > > dim srlnum as dataset = searchfunctions. listlookup( otrans,
> > > "SerialNoAdapter" , recselected, showsearch, whereclause,
> > multirecords)
> > >
> > > I would like for all the results of this search to go into an
> > UltraGrid.
> > >
> > > Any suggestions?
> > >
> > >
> > >
> > > __
> > >
> > >
> > >
> > > [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]