Button to trigger report

I tried implementing this for our sales team and still having trouble with it. Do I need to create an Event with the addition to the button?

--- In vantage@yahoogroups.com, "pklein256" <pklein@...> wrote:
>
>
> Added Orderhed.Checkbox 01 on order entry screen – check to print the pick ticket
> Create a BAM for Orderhed
> Event Tab – selected fields – checkbox01
> On Action Tab, check Auto-print
> Fill in Auto-Print Report ID and Data Definition id. (note, Report Data Definition ID must already exist)
> On Rules Tab – check `for print' if Checkbox01 = True
>
> Process uses auto-print function of Vantage.
>
> Other setup involved. Use auto print function
> On Report Data Definition set up an auto-print rule tab selecting report, style, printer set up rule condition if necessary.
> Printer is set up via company maintenance/printer ( note make sure the printer itself's path is set up correctly. (when installed by Epicor – it was wrong))
>
> If your form doesn't work – try the standard form. (We had problems with our custom form – the crystal is a lot more particular when ran thru the auto-print than when ran thru regular vantage)
>
> When copying an order to the next, that checkbox is filled and a pick ticket auto-prints, which is not what we want, but I haven't had time to go back and fix it.
>
> Also, I think it takes into consideration the parameters of the pick list print pgm. So your report defaults should reflect what you want to print Bar codes etc, and that your date parameters are covered. (we use dynamic month – 3 and end of month + 4)
>
> Hopefully system monitor will help you trouble shoot if needed.
>
>
>
>
>
> --- In vantage@yahoogroups.com, "gmack110256" <genemack@> wrote:
> >
> > We are trying to place a button on the Sales Order Entry Form which will lauch the Sales Order Pick List Report. This is the Code we have tried so far.
> >
> > Private Sub btnEpiCustom1_Click(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles btnEpiCustom1.Click
> > '// ** Place Event Handling Code Here **
> >
> > ProcessCaller.LaunchForm("OMRP4002")
> > End Sub
> > On the event wizard it says it is compiling OK, but it doesn't work.
> >
> > This is giving us the following error. (Object reference not set to an instance of an object.)
> >
> > Anybody got a How To that will make this work?
> >
> > Thank You
> > Gene Mack
> > Johnson Systeminc.
> >
>
We are trying to place a button on the Sales Order Entry Form which will lauch the Sales Order Pick List Report. This is the Code we have tried so far.

Private Sub btnEpiCustom1_Click(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles btnEpiCustom1.Click
'// ** Place Event Handling Code Here **

ProcessCaller.LaunchForm("OMRP4002")
End Sub
On the event wizard it says it is compiling OK, but it doesn't work.

This is giving us the following error. (Object reference not set to an instance of an object.)

Anybody got a How To that will make this work?

Thank You
Gene Mack
Johnson Systeminc.
Maybe this example will help:

BUTTON TO LAUNCH A REPORT WITH PARAMS:

Private Sub btnEpiCustom2_Click(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles btnEpiCustom2.Click
'// ** Place Event Handling Code Here **

Dim opts As LaunchFormOptions = New LaunchFormOptions()
opts.IsModal = False
opts.ValueIn = "000001-1-1" '// Parameter

ProcessCaller.LaunchForm(oTrans, "Epicor.Mfg.UIRpt.JobProdDtl", opts)

End Sub

You should be able to substitute "OMRP4002" for "Epicor.Mfg.....", just make sure you have a menu ID of the same name.



________________________________
From: gmack110256 <genemack@...>
To: vantage@yahoogroups.com
Sent: Thursday, June 25, 2009 10:17:00 AM
Subject: [Vantage] Button to trigger report





We are trying to place a button on the Sales Order Entry Form which will lauch the Sales Order Pick List Report. This is the Code we have tried so far.

Private Sub btnEpiCustom1_ Click(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles btnEpiCustom1. Click
'// ** Place Event Handling Code Here **

ProcessCaller. LaunchForm( "OMRP4002" )
End Sub
On the event wizard it says it is compiling OK, but it doesn't work.

This is giving us the following error. (Object reference not set to an instance of an object.)

Anybody got a How To that will make this work?

Thank You
Gene Mack
Johnson Systeminc.







[Non-text portions of this message have been removed]
Added Orderhed.Checkbox 01 on order entry screen – check to print the pick ticket
Create a BAM for Orderhed
Event Tab – selected fields – checkbox01
On Action Tab, check Auto-print
Fill in Auto-Print Report ID and Data Definition id. (note, Report Data Definition ID must already exist)
On Rules Tab – check `for print' if Checkbox01 = True

Process uses auto-print function of Vantage.

Other setup involved. Use auto print function
On Report Data Definition set up an auto-print rule tab selecting report, style, printer set up rule condition if necessary.
Printer is set up via company maintenance/printer ( note make sure the printer itself's path is set up correctly. (when installed by Epicor – it was wrong))

If your form doesn't work – try the standard form. (We had problems with our custom form – the crystal is a lot more particular when ran thru the auto-print than when ran thru regular vantage)

When copying an order to the next, that checkbox is filled and a pick ticket auto-prints, which is not what we want, but I haven't had time to go back and fix it.

Also, I think it takes into consideration the parameters of the pick list print pgm. So your report defaults should reflect what you want to print Bar codes etc, and that your date parameters are covered. (we use dynamic month – 3 and end of month + 4)

Hopefully system monitor will help you trouble shoot if needed.





--- In vantage@yahoogroups.com, "gmack110256" <genemack@...> wrote:
>
> We are trying to place a button on the Sales Order Entry Form which will lauch the Sales Order Pick List Report. This is the Code we have tried so far.
>
> Private Sub btnEpiCustom1_Click(ByVal Sender As Object, ByVal Args As System.EventArgs) Handles btnEpiCustom1.Click
> '// ** Place Event Handling Code Here **
>
> ProcessCaller.LaunchForm("OMRP4002")
> End Sub
> On the event wizard it says it is compiling OK, but it doesn't work.
>
> This is giving us the following error. (Object reference not set to an instance of an object.)
>
> Anybody got a How To that will make this work?
>
> Thank You
> Gene Mack
> Johnson Systeminc.
>