Dec 12, 2013

Epicor Show BAQ Report By Button

if (BAQReportForm.LaunchFormOptions != null)
        {            
            EpiDataView edv = (EpiDataView)oTrans.EpiDataViews["ReportParam"];
            edv.dataView[edv.Row]["field1"] = BAQReportForm.LaunchFormOptions.ContextValue.ToString();
        }


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

        String company = ((Session)POEntryForm.Session).CompanyID;
        //MessageBox.Show(company);
        EpiDataView edvVarName  = (EpiDataView)oTrans.EpiDataViews["POHeader"];
        Int32 VarName = (Int32)edvVarName.dataView[edvVarName.Row]["PONum"];

        if(company=="02")
        {
            LaunchFormOptions lfo = new LaunchFormOptions();
            lfo.ContextValue = VarName; // ** this is where you would set the value to pass to BAQReport
            ProcessCaller.LaunchForm(oTrans, "PANPO", lfo); // ** UD011 would be the MenuID for the BAQReport w/ Customization
               
        }
        else
        {
            LaunchFormOptions lfo = new LaunchFormOptions();
            lfo.ContextValue = VarName; // ** this is where you would set the value to pass to BAQReport
            ProcessCaller.LaunchForm(oTrans, "POV", lfo); // ** UD011 would be the MenuID for the BAQReport w/ Customization
           
        }
    }

0 comments:

Post a Comment

Nam Le © 2014 - Designed by Templateism.com, Distributed By Templatelib