So we did the same thing you are doing with the DMR Form.. We created a BAQ Report, created a menu item so we can launch it from the form.. This method is called in the initialization. This sets up the tool click event so when you select your action menu, it will run the method for the launch form. the Value In will be your pack num This goes into your transfer Order Customization private void InitializePrintNCRActionID() { try { ButtonTool printNCRForm = new ButtonTool(printNCRFormToolName); printNCRForm.SharedProps.Caption = "Print NCR Form"; PopupMenuTool actionsMenu = (PopupMenuTool)baseToolbarsManager.Tools["ActionsMenu"]; baseToolbarsManager.Tools.Add(printNCRForm); actionsMenu.Tools.Add(printNCRForm); Image imageI = EpiUIImages.GetImage("InternalFunction"); Image ImageE = EpiUIImages.GetImage("ExternalProcess"); Infragistics.Win.Appear
The way we do it is, use the launch form options and pass the value into the form .. LaunchFormOptions lfo = new LaunchFormOptions(); lfo.CallBackToken = "CallMeAnytime"; lfo.ValueIn = “FieldValue”; ProcessCaller.LaunchForm(oTrans, "MENUID", lfo); then in the report form, in the form load method you add this. EpiDataView edv = (EpiDataView)oTrans.EpiDataViews["ReportParam"]; int TranID = 0; if (BAQReportForm.LaunchFormOptions != null && BAQReportForm.LaunchFormOptions.ValueIn != null) { TranID = Convert.ToInt32(BAQReportForm.LaunchFormOptions.ValueIn); } edv.dataView[edv.Row]["Field1"] = TranID;
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.