Hello and good Saturday everyone!
I am wondering if it is possible to hang a “print report” action inside a generic inquiry?
I noticed that you can export a GI to the Report Designer and build a report there, that you could upload back to acumatica and create a sitemap entry. But is there a way, like it is in normal screens, that i can hang a action to print the report inside of the inquiry?
Greetings
Report in Generic Inquiries?
Best answer by Nayan Vadher
To make an Action mass action ready, one must code it to handle selected documents. e.g.
public PXAction<POReceipt> MassActionReady;
[PXUIField(DisplayName = "Mass action ready Action")]
[PXButton]
public IEnumerable massActionReady(PXAdapter a)
{
// list will contain selected records
List<POReceipt> list = a.Get<POReceipt>().ToList();
// do your thing with this list
return a.Get();
}
Now this action can be configured in Processing screens. The way processing screen works, it calls the action once by passing the selected records. However, the way GI works, it calls the action multiple times, once for each selected record.
Now, for what you are looking to do, which is printing multiple PRs does not work because it opens a new screen to display the report the first time GI calls it, interrupting the flow of GI. So, you end up seeing only one document in the report.
Thus in short, it is not possible to have such mass actions work as intended from GI.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.




