What version are you on? I am on 8.03.409C.
I also need to add that I declaring:
Dim dynQryAD As DynamicQueryAdapter = New DynamicQueryAdapter(UD01Form)
Dim targetRow as DataRow
Dan Godfrey
(805) 389-1935 x 251
________________________________
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Ted Koch
Sent: Monday, August 26, 2013 2:55 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] V8 DynamicQuery issues?
Hi Dan,
If I try this I get the error:
For Each table As DataTable in dynQ.DynamicQueryData.Tables
Next
Error: BC30456 - line 560 (910) - 'DynamicQueryData' is not a member of 'Epicor.Mfg.BO.DynamicQuery'.
________________________________
From: Dan Godfrey <dgodfrey@...<mailto:dgodfrey%40a-m-c.com>>
To: "vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>" <vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>>
Sent: Friday, August 23, 2013 5:37 PM
Subject: RE: [Vantage] V8 DynamicQuery issues?
I am pretty sure that I got this bit of code from this group.
'//copy all data from QueryDesignData tables to DynamicQueryData tables (only
'for tables that exist in both datasets
Dim targetRow as DataRow
For each Table as DataTable in dynQryAD.DynamicQueryData.Tables
If Table.Rows.Count = 0 Then
For Each sourceRow as DataRow in dynQryAD.QueryDesignData.Tables(table.ToString()).Rows
targetRow = table.NewRow()
targetRow.ItemArray = sourceRow.ItemArray
Table.Rows.Add(targetRow)
Next
End If
Next'For each Table as DataTable in dynQryAD.DynamicQueryData.Tables
dynQryAD.Execute(dynQryAD.DynamicQueryData)
Dan Godfrey
(805) 389-1935 x 251
________________________________
From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of tkoch77
Sent: Friday, August 23, 2013 1:52 PM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] V8 DynamicQuery issues?
I using this bit of code below which works fine in E9, I'm wondering what was different in V8 because I am getting the error "Value of type 'Epicor.Mfg.BO.QueryDesignDataSet' cannot be converted to 'Epicor.Mfg.BO.DynamicQueryDataSet'" on the last row below.
Dim QDS As QueryDesignDataSet
QDS = dynQ.GetByID("100-GetQuoteMtl")
QDS.QueryWhereItem(0).RValue = QuoteNum
QDS.QueryWhereItem(1).RValue = QuoteLine
Dim DS As DataSet = dynQ.Execute(QDS)
Thanks,
-Ted
CONFIDENTIALITY NOTICE: The data attached/enclosed may contain information (including technology and technical data) which is subject to the U.S. International Traffic in Arms Regulations (ITAR) or Export Administration Regulations (EAR). This information may not be exported, released, or disclosed to foreign persons either inside or outside the United States without first obtaining the proper U.S. export license or written authorization. In addition, the information and articles described herein are either patented or proprietary, and the copying or reproduction thereof is prohibited without ADVANCED Motion Controls prior written consent. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Thank you for your compliance.
[Non-text portions of this message have been removed]
------------------------------------
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/.
(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]
I also need to add that I declaring:
Dim dynQryAD As DynamicQueryAdapter = New DynamicQueryAdapter(UD01Form)
Dim targetRow as DataRow
Dan Godfrey
(805) 389-1935 x 251
________________________________
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Ted Koch
Sent: Monday, August 26, 2013 2:55 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] V8 DynamicQuery issues?
Hi Dan,
If I try this I get the error:
For Each table As DataTable in dynQ.DynamicQueryData.Tables
Next
Error: BC30456 - line 560 (910) - 'DynamicQueryData' is not a member of 'Epicor.Mfg.BO.DynamicQuery'.
________________________________
From: Dan Godfrey <dgodfrey@...<mailto:dgodfrey%40a-m-c.com>>
To: "vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>" <vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>>
Sent: Friday, August 23, 2013 5:37 PM
Subject: RE: [Vantage] V8 DynamicQuery issues?
I am pretty sure that I got this bit of code from this group.
'//copy all data from QueryDesignData tables to DynamicQueryData tables (only
'for tables that exist in both datasets
Dim targetRow as DataRow
For each Table as DataTable in dynQryAD.DynamicQueryData.Tables
If Table.Rows.Count = 0 Then
For Each sourceRow as DataRow in dynQryAD.QueryDesignData.Tables(table.ToString()).Rows
targetRow = table.NewRow()
targetRow.ItemArray = sourceRow.ItemArray
Table.Rows.Add(targetRow)
Next
End If
Next'For each Table as DataTable in dynQryAD.DynamicQueryData.Tables
dynQryAD.Execute(dynQryAD.DynamicQueryData)
Dan Godfrey
(805) 389-1935 x 251
________________________________
From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of tkoch77
Sent: Friday, August 23, 2013 1:52 PM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] V8 DynamicQuery issues?
I using this bit of code below which works fine in E9, I'm wondering what was different in V8 because I am getting the error "Value of type 'Epicor.Mfg.BO.QueryDesignDataSet' cannot be converted to 'Epicor.Mfg.BO.DynamicQueryDataSet'" on the last row below.
Dim QDS As QueryDesignDataSet
QDS = dynQ.GetByID("100-GetQuoteMtl")
QDS.QueryWhereItem(0).RValue = QuoteNum
QDS.QueryWhereItem(1).RValue = QuoteLine
Dim DS As DataSet = dynQ.Execute(QDS)
Thanks,
-Ted
CONFIDENTIALITY NOTICE: The data attached/enclosed may contain information (including technology and technical data) which is subject to the U.S. International Traffic in Arms Regulations (ITAR) or Export Administration Regulations (EAR). This information may not be exported, released, or disclosed to foreign persons either inside or outside the United States without first obtaining the proper U.S. export license or written authorization. In addition, the information and articles described herein are either patented or proprietary, and the copying or reproduction thereof is prohibited without ADVANCED Motion Controls prior written consent. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Thank you for your compliance.
[Non-text portions of this message have been removed]
------------------------------------
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/.
(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]