With the Sales Order Entry - New Line from Quote
"App.SalesOrderEntry.LineFromQuoteForm"
Has anyone figured out how to use a customization with this form as
the default for the end users? It doesn't show up in a menu, and it
doesn't show a "Calling Process".
Part 2: Maybe someone might have a better way to do this, or it might
help someone else.
I duplicated the Quote/Line Button function and added some custom
code to it. The issue is when I do Basic search, it works and brings
back both Qutoenum and QUoteline properly. When I have it launch from
a quicksearch, it only brings back the 1 field properly. (The one
specified in the quicksearch.) So when I do a quicksearch It always
brings back "1" for the QuoteLine. It brings back the right QuoteNum
though.
I've also tried manually creating the adapter for it, but it
complains about not being able to find the .DLL on listlookup. Anyone
have an example for this and can it be done? The adapter works
because I can fill it into a dataset and show it on a ultragrid.
Shown below is the code that I tried with the quick search method
Thanks for any help. Maybe this will help others out as well.
Chris
----------------------------------
Imports System.Data.SQLClient
Private Sub btnEpiCustom1_Click(ByVal Sender As Object, ByVal Args As
System.EventArgs) Handles btnEpiCustom1.Click
'// ** Place Event Handling Code Here **
'Gives Current OrderHed DataView
Dim SalesRS As EpiDataView = CType(oTrans.EpiDataViews("OrderHed"),
EpiDataView)
'Gives Current CustNum Selected
Dim CustNum As Int32 = SalesRS.dataView(SalesRS.Row)("CustNum")
Dim RecSelected As Boolean
Dim showsearch as Boolean = False
dim whereclause as string = "CustNum = " & CustNum
Dim QuoteSearch As DataSet = SearchFunctions.listLookup
(otrans, "QuoteDtlSearchAdapter" , recSelected, True, whereClause)
if (RecSelected) Then
'Get Current Data View for QuoteDTL
Dim QuoteDtl As EpiDataView = CType(oTrans.EpiDataViews("OrderDtl"),
EpiDataView)
'Return the ListLookup Selected QuoteNum to Current QuoteDTL Record
QuoteDtl.dataView(QuoteDTL.ROW)("QuoteNum") = QuoteSearch.Tables
(0).Rows(0)("QuoteNum")
'Return the ListLookup Selected QuoteLine to Current QuoteDTL Record
QuoteDtl.dataView(QuoteDTL.Row)("QuoteLine")= QuoteSearch.Tables
(0).Rows(0)("QuoteLine")
end if
End Sub
"App.SalesOrderEntry.LineFromQuoteForm"
Has anyone figured out how to use a customization with this form as
the default for the end users? It doesn't show up in a menu, and it
doesn't show a "Calling Process".
Part 2: Maybe someone might have a better way to do this, or it might
help someone else.
I duplicated the Quote/Line Button function and added some custom
code to it. The issue is when I do Basic search, it works and brings
back both Qutoenum and QUoteline properly. When I have it launch from
a quicksearch, it only brings back the 1 field properly. (The one
specified in the quicksearch.) So when I do a quicksearch It always
brings back "1" for the QuoteLine. It brings back the right QuoteNum
though.
I've also tried manually creating the adapter for it, but it
complains about not being able to find the .DLL on listlookup. Anyone
have an example for this and can it be done? The adapter works
because I can fill it into a dataset and show it on a ultragrid.
Shown below is the code that I tried with the quick search method
Thanks for any help. Maybe this will help others out as well.
Chris
----------------------------------
Imports System.Data.SQLClient
Private Sub btnEpiCustom1_Click(ByVal Sender As Object, ByVal Args As
System.EventArgs) Handles btnEpiCustom1.Click
'// ** Place Event Handling Code Here **
'Gives Current OrderHed DataView
Dim SalesRS As EpiDataView = CType(oTrans.EpiDataViews("OrderHed"),
EpiDataView)
'Gives Current CustNum Selected
Dim CustNum As Int32 = SalesRS.dataView(SalesRS.Row)("CustNum")
Dim RecSelected As Boolean
Dim showsearch as Boolean = False
dim whereclause as string = "CustNum = " & CustNum
Dim QuoteSearch As DataSet = SearchFunctions.listLookup
(otrans, "QuoteDtlSearchAdapter" , recSelected, True, whereClause)
if (RecSelected) Then
'Get Current Data View for QuoteDTL
Dim QuoteDtl As EpiDataView = CType(oTrans.EpiDataViews("OrderDtl"),
EpiDataView)
'Return the ListLookup Selected QuoteNum to Current QuoteDTL Record
QuoteDtl.dataView(QuoteDTL.ROW)("QuoteNum") = QuoteSearch.Tables
(0).Rows(0)("QuoteNum")
'Return the ListLookup Selected QuoteLine to Current QuoteDTL Record
QuoteDtl.dataView(QuoteDTL.Row)("QuoteLine")= QuoteSearch.Tables
(0).Rows(0)("QuoteLine")
end if
End Sub