Customization EPICOR 9

Need a bit more details. How did you attempt to use it? What errors did you get? Did you change the references to refer to the names you gave things? It was a quick cut and paste as I mentioned and does need adjustment to fit your needs but it is code I have used quite a few times.

Jim K.
--- In vantage@yahoogroups.com, "przemyslawhinz" <przemyslawhinz@...> wrote:
>
> Did you try this code?
> It doesn't work in my system or I don,t know how to use it :-/
>
> Przemek
>
> --- In vantage@yahoogroups.com, "jckinneman" <jckinneman@> wrote:
> >
> >
> >
> >
> > From a copy paste so may have to do some syntax fixing.
> >
> > Put this in your initialization code making the appropriate changes, also need
> > this in the using area
> > using Infragistics.Win.UltraWinToolbars;
> >
> > // add a new menu choice to the actions menu
> > Infragistics.Win.UltraWinToolbars.PopupMenuTool PopMenu;
> > Infragistics.Win.UltraWinToolbars.ButtonTool custButton = new Infragistics.Win.UltraWinToolbars.ButtonTool("NewReport");
> > custButton.SharedProps.Caption = "My Report";
> > if (baseToolbarsManager.Tools.Exists("NewReport) == false)
> > {
> > baseToolbarsManager.Tools.Add(custButton);
> > baseToolbarsManager.Tools["ActionsMenu"].SharedProps.Enabled = true;
> >
> > PopMenu = (Infragistics.Win.UltraWinToolbars.PopupMenuTool)
> > baseToolbarsManager.Tools["ActionsMenu"];
> > PopMenu.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[]{custButton});
> > Image extProcImage = EpiUIImages.GetImage("ExternalProcess");
> > Infragistics.Win.Appearance extProcApp = new Infragistics.Win.Appearance();
> > extProcApp.Image = extProcImage;
> >
> > baseToolbarsManager.Tools["NewReport"].SharedProps.AppearancesLarge.Appearance = extProcApp;
> >
> > baseToolbarsManager.Tools["NewReport"].SharedProps.AppearancesSmall.Appearance = extProcApp;
> > }
> >
> > Then using the wizards add a toolclick event and then call your report from the
> > toolclick event. Use a switch to find your report
> > switch(args.Tool.Key.ToString())
> > {
> > case "NewReport":
> > // call report
> > break;
> > }
> > There is a file I uploaded in the Epicor 9 section that shows how to call the
> > report itself.
> >
> > En>compass Solutions Inc.
> > Tel 336.298.1296 (Google Voice)
> > Fax 336.217.7983
> > E-mail jimki@
> > www.encompass-inc.com
> >
> >
> >
> >
> > --- In vantage@yahoogroups.com, "przemyslawhinz" <przemyslawhinz@> wrote:
> > >
> > > Hi all,
> > > if anyone knows how I can add a custom report (made in the CR) to the Actions menu?
> > > In program Opportunity/Quote in Actions menu is option to print a form. I need similar functionality but in Customer Shipment Entry or Issue Material.
> > >
> > > best ragards
> > > Przemek
> > >
> >
>
Hi all,
if anyone knows how I can add a custom report (made in the CR) to the Actions menu?
In program Opportunity/Quote in Actions menu is option to print a form. I need similar functionality but in Customer Shipment Entry or Issue Material.

best ragards
Przemek
From a copy paste so may have to do some syntax fixing.

Put this in your initialization code making the appropriate changes, also need
this in the using area
using Infragistics.Win.UltraWinToolbars;

// add a new menu choice to the actions menu
Infragistics.Win.UltraWinToolbars.PopupMenuTool PopMenu;
Infragistics.Win.UltraWinToolbars.ButtonTool custButton = new Infragistics.Win.UltraWinToolbars.ButtonTool("NewReport");
custButton.SharedProps.Caption = "My Report";
if (baseToolbarsManager.Tools.Exists("NewReport) == false)
{
baseToolbarsManager.Tools.Add(custButton);
baseToolbarsManager.Tools["ActionsMenu"].SharedProps.Enabled = true;

PopMenu = (Infragistics.Win.UltraWinToolbars.PopupMenuTool)
baseToolbarsManager.Tools["ActionsMenu"];
PopMenu.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[]{custButton});
Image extProcImage = EpiUIImages.GetImage("ExternalProcess");
Infragistics.Win.Appearance extProcApp = new Infragistics.Win.Appearance();
extProcApp.Image = extProcImage;

baseToolbarsManager.Tools["NewReport"].SharedProps.AppearancesLarge.Appearance = extProcApp;

baseToolbarsManager.Tools["NewReport"].SharedProps.AppearancesSmall.Appearance = extProcApp;
}

Then using the wizards add a toolclick event and then call your report from the
toolclick event. Use a switch to find your report
switch(args.Tool.Key.ToString())
{
case "NewReport":
// call report
break;
}
There is a file I uploaded in the Epicor 9 section that shows how to call the
report itself.

En>compass Solutions Inc.
Tel 336.298.1296 (Google Voice)
Fax 336.217.7983
E-mail jimki@...
www.encompass-inc.com




--- In vantage@yahoogroups.com, "przemyslawhinz" <przemyslawhinz@...> wrote:
>
> Hi all,
> if anyone knows how I can add a custom report (made in the CR) to the Actions menu?
> In program Opportunity/Quote in Actions menu is option to print a form. I need similar functionality but in Customer Shipment Entry or Issue Material.
>
> best ragards
> Przemek
>
Did you try this code?
It doesn't work in my system or I don,t know how to use it :-/

Przemek

--- In vantage@yahoogroups.com, "jckinneman" <jckinneman@...> wrote:
>
>
>
>
> From a copy paste so may have to do some syntax fixing.
>
> Put this in your initialization code making the appropriate changes, also need
> this in the using area
> using Infragistics.Win.UltraWinToolbars;
>
> // add a new menu choice to the actions menu
> Infragistics.Win.UltraWinToolbars.PopupMenuTool PopMenu;
> Infragistics.Win.UltraWinToolbars.ButtonTool custButton = new Infragistics.Win.UltraWinToolbars.ButtonTool("NewReport");
> custButton.SharedProps.Caption = "My Report";
> if (baseToolbarsManager.Tools.Exists("NewReport) == false)
> {
> baseToolbarsManager.Tools.Add(custButton);
> baseToolbarsManager.Tools["ActionsMenu"].SharedProps.Enabled = true;
>
> PopMenu = (Infragistics.Win.UltraWinToolbars.PopupMenuTool)
> baseToolbarsManager.Tools["ActionsMenu"];
> PopMenu.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase[]{custButton});
> Image extProcImage = EpiUIImages.GetImage("ExternalProcess");
> Infragistics.Win.Appearance extProcApp = new Infragistics.Win.Appearance();
> extProcApp.Image = extProcImage;
>
> baseToolbarsManager.Tools["NewReport"].SharedProps.AppearancesLarge.Appearance = extProcApp;
>
> baseToolbarsManager.Tools["NewReport"].SharedProps.AppearancesSmall.Appearance = extProcApp;
> }
>
> Then using the wizards add a toolclick event and then call your report from the
> toolclick event. Use a switch to find your report
> switch(args.Tool.Key.ToString())
> {
> case "NewReport":
> // call report
> break;
> }
> There is a file I uploaded in the Epicor 9 section that shows how to call the
> report itself.
>
> En>compass Solutions Inc.
> Tel 336.298.1296 (Google Voice)
> Fax 336.217.7983
> E-mail jimki@
> www.encompass-inc.com
>
>
>
>
> --- In vantage@yahoogroups.com, "przemyslawhinz" <przemyslawhinz@> wrote:
> >
> > Hi all,
> > if anyone knows how I can add a custom report (made in the CR) to the Actions menu?
> > In program Opportunity/Quote in Actions menu is option to print a form. I need similar functionality but in Customer Shipment Entry or Issue Material.
> >
> > best ragards
> > Przemek
> >
>