Sounds like you aren't passing the SO number as a parameter.
There is a tech tip that might give you an idea, however, this is one of those things that always seems to be WAY more difficult than I expected.
Reference Page No: 3527ESC
CUST Code Examples to Launch Reports from a Button Click Event
There is a tech tip that might give you an idea, however, this is one of those things that always seems to be WAY more difficult than I expected.
Reference Page No: 3527ESC
CUST Code Examples to Launch Reports from a Button Click Event
--- In vantage@yahoogroups.com, Keith Walter <keithfwalter@...> wrote:
>
> Hi Gang,
>
> I am trying to setup my first auto-print in vantage. we want to automate
> printing of the Sales Order Acknowledgement from SO Entry and have it print to
> the APM printer for auto-emailing/faxing.
>
> So Far: report is built with custom style and data def, and apm is setup.Â
> everything is fine so it works, just takes several mouse-clicks to fire it off.Â
> we want a "print button".
>
> So I have a bam that fires when orderhed.Checkbox01Â is TRUE, toggled by a button
> on form. this fires the SOA report via the Report Data Def rules. create a
> printer in Vantage for the apm printer. everying looks just dandy, as far as i
> can tell.
>
> When i toggle a Checkbox01 for a SO that I know produces a fine SOA report that
> can be successfully printed and routed through APM, i get an error in the sys
> mon stating "no records selected". When i look at the xml file for the report,
> it has a data def part of the xml, but no data...Â
>
> Any ideas on where I can look to get this fixed? what am i missing?
>
> Any thoughts or ideas are more than welcome!Â
>
> Keith Walter
> Vantage Coordinator
> Norgren Automation Solutions, Saline Division
> keith.walter@...
>
> [Non-text portions of this message have been removed]
>