The security ID and parent menu will depend on how your company does stuff. I would look at a menu item that already has the security you want and copy that.
These are the usings. I would guess the last one is the one you need:
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using Ice.BO;
using Ice.UI;
using Ice.Lib;
using Ice.Adapters;
using Ice.Lib.Customization;
using Ice.Lib.ExtendedProps;
using Ice.Lib.Framework;
using Ice.Lib.Searches;
using Ice.UI.FormFunctions;
using Infragistics.Win.UltraWinToolbars;
Is this just a different Report Style of a built-in report? Or, what do you mean by copying the report? If itās a custom report style, then what exactly is the business need for adding a separate Action menu item to launch this as opposed to simply selecting the custom style from the regular print dialog for that report?
When asked to create this, I was under the impression that it was a straight modification of the order entry report for Pro-forma invoice. It is to be a āCommercial Invoiceā that contains data from the pro-forma and some shipping information.
After making most of the modifications, I realized it was wanting specific shipping information that may not have been created at this point.
That meant that it would be better if printed from the Customer Shipment entry so I would be sure that the shipment information was created.
It was then pointed out that it would be better if it showed up as an option in the actions menu.
It may be possible to monkey around with a copy of the report style āPacking slipā but would be messy, in my opinion.
At this point, I may just create a BAQ that would contain all the information I need and then create a BAQ report from that.
If I do that, would I just change the name in the previous code from āOutRptā to whatever the BAQ Report ID is?
If not, then how would I point the code to the BAQ Report I create?
If there is a better way, then please let me know.
Why, though? And as opposed to what? How were you planning to run this before? Iām still not sure what exactly youāve made a copy of.
We are currently using a modified report style of the āPackSlipā report as a commercial invoice (where previously we were using a straight copy of our Order Ack with the title changed). I suppose how messy it gets depends on how extensively you need to modify it. We only had to add one extra table (OrderRelTax) to the custom copy of the Report Data Definition and un-exclude a few columns, so for us, it wasnāt very messy at all. Shipping just picks that Report Style from the report dialog which shows up for Actions > Print in Customer Shipment Entry when they need it.
Iām not sure about the parameters on that ProcessCaller.LaunchForm() method. The āOutRptā string might be the menu ID of the report, shown in Menu Maintenance?