Need code for button to launch Quick Search or Named Search

Thanks Ted. I'll give this a try.



Dale



_____

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
Ted Koch
Sent: Thursday, September 29, 2011 4:29 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Need code for button to launch Quick Search or Named
Search





Try this. It will launch a customer search. Change "Name" to whatever field
in Customer you want to save to a variable.

Dim FileName as string
Dim opts as new
SearchOptions(Epicor.Mfg.UI.Searches.SearchMode.ShowDialog)
opts.DataSetMode = DataSetMode.ListDataSet
Dim callResult As Object =
ProcessCaller.LaunchSearch(POSuggEntryForm, "CustomerAdapter", opts)
If(TypeOf callResult Is System.Data.DataSet) AndAlso
(DirectCast(callResult, DataSet).Tables(0).Rows.Count > 0) Then
FileName = callResult.Tables(0).Rows(0).Item("Name")
End if

________________________________
From: ddaltonks <daled@...
<mailto:daled%40completehomeconcepts.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Sent: Thursday, September 29, 2011 5:10 PM
Subject: [Vantage] Need code for button to launch Quick Search or Named
Search

Has anyone figured out how to launch a Quick Search or Named Search from an
epibutton that would be willing to share their code???

Our users needed a way to search customers by customer address. My solution;
build a Quick Search that allows users to search by customer address, ship
to address, or customer name. Now I would like to take it a step further and
make accessing it a little more convenient by adding a button on the
customer tracker and customer detail views that launches the quick search
form. I found a UI object in ProcessCaller methods for namedsearches
(ProcessCaller.LaunchNamedSearchForm) but it doesn't work and unsuccessful
so far using other "launch form" UI's.

Thanks in advance for any help or suggestions.

Best regards,

Dale Dalton
Complete Home Concepts

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

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/.
<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]





[Non-text portions of this message have been removed]
Has anyone figured out how to launch a Quick Search or Named Search from an epibutton that would be willing to share their code???

Our users needed a way to search customers by customer address. My solution; build a Quick Search that allows users to search by customer address, ship to address, or customer name. Now I would like to take it a step further and make accessing it a little more convenient by adding a button on the customer tracker and customer detail views that launches the quick search form. I found a UI object in ProcessCaller methods for namedsearches (ProcessCaller.LaunchNamedSearchForm) but it doesn't work and unsuccessful so far using other "launch form" UI's.

Thanks in advance for any help or suggestions.

Best regards,

Dale Dalton
Complete Home Concepts
Try this. It will launch a customer search. Change "Name" to whatever field in Customer you want to save to a variable.



      Dim FileName as string
      Dim opts as new SearchOptions(Epicor.Mfg.UI.Searches.SearchMode.ShowDialog)
      opts.DataSetMode = DataSetMode.ListDataSet
      Dim callResult As Object = ProcessCaller.LaunchSearch(POSuggEntryForm, "CustomerAdapter", opts)
      If(TypeOf callResult Is System.Data.DataSet) AndAlso (DirectCast(callResult, DataSet).Tables(0).Rows.Count > 0) Then
      FileName = callResult.Tables(0).Rows(0).Item("Name")
      End if


________________________________
From: ddaltonks <daled@...>
To: vantage@yahoogroups.com
Sent: Thursday, September 29, 2011 5:10 PM
Subject: [Vantage] Need code for button to launch Quick Search or Named Search

Has anyone figured out how to launch a Quick Search or Named Search from an epibutton that would be willing to share their code???

Our users needed a way to search customers by customer address. My solution; build a Quick Search that allows users to search by customer address, ship to address, or customer name. Now I would like to take it a step further and make accessing it a little more convenient by adding a button on the customer tracker and customer detail views that launches the quick search form. I found a UI object in ProcessCaller methods for namedsearches (ProcessCaller.LaunchNamedSearchForm) but it doesn't work and unsuccessful so far using other "launch form" UI's.

Thanks in advance for any help or suggestions.

Best regards,

Dale Dalton
Complete Home Concepts




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

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/.%c2%a0
(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]