Hi Everyone,
i have 3 customized reports,but i want to display this 3 reports, in salesorder ->postings button->invoice button->in that opened one Posting invoice form in that when i clicked OK button i want to display my 3 reports at a time
can any one tell me this solution
Hi Rama,
As per your requirement go to CustInvoiceJour table → Methods → PrintJournal → in that already standard invoice report has been called by using menuFunction. Instead of that call your 3 reports in different menufunction at the same time run those menufuctions with parameters. You can able to get those 3 reports while posting invoice .
Regards,
Abbas.I
Hi abbas,
thanks for ur reply,but what is run those menufunctions with parameter.
and also is it possiible to print 3 different reports using print management
Hi Rama,
Write like this below format in CustInvoiceJour → PrintJournal method
MenuFunction salesInvoiceMenu; //Standard
MenuFunction report1menu,report2menu,report3menu;
// salesInvoiceMenu = new MenuFunction(menuitemoutputstr(SalesInvoice),MenuItemType::Output); Instead of that
report1menu = new MenuFunction(menuitemoutputstr(Report1),MenuItemType::Output);
report2menu = new MenuFunction(menuitemoutputstr(Report2),MenuItemType::Output);
report3menu = new MenuFunction(menuitemoutputstr(Report3),MenuItemType::Output);
and after the parameters.record(this);
// salesInvoiceMenu.run(parameters); Comment this standard menu function run instead of this
report1menu.run(parameters);
report2menu.run(parameters);
report3menu.run(parameters);
By writing this above code you can able to generate 3 reports at a time.
Regards,
Abbas.I
Hi abbas,
Thanks for ur reply, but actually salesorder->Inquiries ->Invoice button ->opened invoice journal->in that Preview/Print button → Use print management when i clicked this button i want opened this 3 reports
is any option
Hi abbas,
Is there any option in using print management to open 3 different reports
Hi Rama,
AOT → Forms → CustInvoiceJour → Design → Overview Tabpage → ButtonGroup → SalesInvoiceShow → SalesInvoiceOriginal menuitem button.
In this menuitem button control clicked method before super() call those 3 report menu functions and dont forget to remove actual standard MenuItemButton → Properties → MenuItemName .
Regards,
Abbas.I
hi abbas,
thanks for ur reply but without coding ,in accountreceivable->setup->formsetup->printmanagement option is there ,in this option to use,is it posiible to open 3 different reports
Hi Rama,
By using print management also you need to write code for generating 3 different reports.
AR → Setup-> Form setup → PrintMgnt → Documents → SalesInvoice → Orginal report.
here create 2 more controls and give name as Report2 and Report3.
Then Form → CustInmvoiceJour → Design → Overview → Buttongroup → [MenuButton:SalesInvoiceShow] → Button:SalesInvoice-> Methods\clicked
In this method with in the while loop you need to write like below
int i;
i = 1;
if(i == 1)
{
new MenuFunction(menuitemoutputstr(Report1), MenuItemType::Output).run(args);
}
else if(i == 2)
{
new MenuFunction(menuitemoutputstr(Report2), MenuItemType::Output).run(args);
}
else if(i == 3)
{
new MenuFunction(menuitemoutputstr(Report3), MenuItemType::Output).run(args);
}
i++;
This will generate those 3 controls which you have created in Print mgnt .
Regards,
Abbas.I
Hi abbas,
Thanks for your reply and my problem solved