Print BAQ Report with Parameters from Button Click

Hope someone can help me out with getting a BAQ report to print from a button click customization. The customization is on the Sales Order Entry screen, and I want to see the BAQ report for just the sales order I am in. I am so close, I get the BAQ Report to load and I can see the ContextValue populate in the Filter Summary on the Selection tab of the BAQ Report print options screen, but the report does not fully filter to the specific sales order ( I am getting all records to preview) . What do I have to do to get the specific order that I want to see?

Here is the code I have:

//Code Placed on Calling Form Customization to set ContextValue to pass to BAQ report

private void epiButtonC2_Click(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **

LaunchFormOptions lfo = new LaunchFormOptions();
EpiDataView edvOH = (EpiDataView)oTrans.EpiDataViews["OrderHed"];
int orderNum = 0;
orderNum = Convert.ToInt32(edvOH.dataView[edvOH.Row]["OrderNum"]);
lfo.ContextValue = orderNum;
ProcessCaller.LaunchForm(oTrans, "UDConRev", lfo);

//Code Placed in BAQ Report Customization to receive ContextValue

private void BAQReportForm_Load(object sender, EventArgs args)
{
// Add Event Handler Code

if ((BAQReportForm.LaunchFormOptions != null))
{

EpiDataView ParamView = (EpiDataView)oTrans.EpiDataViews["ReportParam"];
ParamView.dataView[ParamView.Row]["FilterList1"] = BAQReportForm.LaunchFormOptions.ContextValue.ToString();

}

Thanks in advance,

Erin Freese
Production Control Manager
[Description: Suburban Logo for Signature]
10531 Dalton Ave NE
Monticello MN 55362-8414
E-mail: efreese@...<mailto:efreese@...>
Direct: 763-271-3677 | Main Office: 763.295.5635 or 800.782.5752 |Fax: 763. 295.6601
[Description: webico1] <http://www.gosuburban.com/> [Description: webico2] <http://www.youtube.com/user/GoSuburban> [Description: webico3] <http://www.facebook.com/pages/Suburban-Manufacturing/332071013545769>
www.gosuburban.com|<http://www.gosuburban.com/> Check out our videos<http://www.youtube.com/user/GoSuburban>| Like us on Facebook<http://www.facebook.com/pages/Suburban-Manufacturing/332071013545769>



This communication constitutes an electronic communication within the meaning of the Electronic Communications Act, 18 USC 2510, and its disclosure is strictly limited to the recipient intended by the sender of this message. This communication may contain confidential and privileged material for the sole use of the intended recipient and receipt by anyone other than the intended recipient does not constitute loss of the confidential or privileged nature of the communication. Any review or distribution by others is strictly prohibited. If you are not the intended recipient or an employee or agent responsible for delivering this message to the intended recipient, please contact sender by return electronic mail and delete all copies of this communication.


[Non-text portions of this message have been removed]
1 Like