Premahari
5th October 2018, 12:23
Hi,
I have 4 reports for printing invoices. I want to show only one report for one of my company when they print and all other for other companies. Can anyone help how to do this
Thanks in advance

tmannais
5th October 2018, 13:54
Try hardcode the condition before printing each report to check if this report should be printed in current company.

To prevent the standard print command to print, use this in the before.choice of the print button or form command.
choice.again()

To get current company, use this predefined function.
get.compnr()

Premahari
5th October 2018, 14:01
I cannot hardcode it. Because script is standard one. Only reports I have made customised.
Thanks in advance

Ajesh
5th October 2018, 16:05
You can use extensibility for that right? Session Extensibility, on.command for Print Data

Premahari
8th October 2018, 07:40
Hi,
Thanks Ajesh.
Can you please explain how to use application extensibility
Thanks in advance

Ajesh
8th October 2018, 15:52
Hi PRemahari.. There is a DOcument on Application Extensibility named "Infor LN Extensions Development Guide". You can find that document from Infor Xtreme Site. My Guess is that Extensibility is already initialized in your system, its 10.5 right? Please consult rest of your team member. And in that you can use Session Extensibility for this standard Session and in that you can use Standard Print Command, You can use hook, on.command for that...

Ajesh
8th October 2018, 21:34
Whats the Session Code??