BAQ views work great in 9, though I would tie them to something more useful such as a form event than an oject event such as a button click.
Here is an example I did in job manager where I wanted to bring in planning parameters from the partplant table that I wrote in the form of a baq.
public class Script
my sub baq creation sub
// create the baq view and add it to the transaction
baqView = new BAQDataView("DSM97012-PartPlantInfo");
// publish the part number from JMPartSum
string pubBinding = "JMPartSum.PartNum";
IPublisher pub = oTrans.GetPublisher(pubBinding);
if (pub == null)
pub = oTrans.GetPublisher(pubBinding);
// subscribe the BAQ view
if (pub != null)
// bind the grid
Part_Plant_Info.EpiBinding = "MyBAQView";
Part_Plant_Info.EpiTransaction = oTrans;
Form load event
private void JobManagerForm_Load(object sender, EventArgs args)
The magic is at the end of the createbaqview sub where (Part_Plant_Info) is the name of the unbound epigrid and the last two lines do the binding for the grid. You will actually see this on the properties page as well, but donâ€™t set anything in there, let the code do the work for you.
So essentially you call that sub under any event object or formâ€¦ but it does work in 9 (as well as 10) just fineâ€¦
Production Control Manager
301 E. Main St. | PO Box 279
Black River Falls, WI 54615
715-284-5376 Ext. 311
Sent: Thursday, October 1, 2015 2:45 PM
Subject: [Vantage] Troubles Using BAQDataView
I'm trying to implement a BAQDataView as was implemented in the Insights Extended Education class "Customization to the Max". That workshop used similar code to what I could find here. The class, though, called the following in a button click event to load data into the BAQDataView:
I get the following compiler error:
Error: CS0122 - line 188 (937) - 'Epicor.Mfg.UI.FrameWork.BAQDataView.OnSearch(string, string)' is inaccessible due to its protection level
Using .NET Reflector, I confirmed that this method is 'protected internal.'
Is this method only available in E10? If so, how do I get the BAQDataView to load data in E9?
[Non-text portions of this message have been removed]