Customization Capture Print button event on order entry

Been traveling - Out of office the past couple weeks :o)
you will need to supply the correct info for <your form info here> in 4 places.....
Disabling standard tools:

Add as custom assembly; Infragistics2.Win.UltraWinToolbars.v6.3.dll
Add near top of module script;

Imports System.Reflection
Imports System.Collections



Module Script


'// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
'// Begin Wizard Added Module Level Variables **

'// End Wizard Added Module Level Variables **


'// Add Custom Module Level Variables Here **
dim tools As Infragistics.Win.UltraWinToolbars.UltraToolbarsManager


Sub InitializeCustomCode()


'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Intialization' lines **
'// Begin Wizard Added Variable Intialization

'// End Wizard Added Variable Intialization
'// Begin Custom Method Calls
dim obj As Object = GetType(<your form info here>).InvokeMember("baseToolbarsManager",BindingFlags.Instance Or BindingFlags.GetField Or BindingFlags.NonPublic, Nothing, <your form info here>, Nothing)
tools = CType(obj,Infragistics.Win.UltraWinToolbars.UltraToolbarsManager)


'// End Custom Method Calls
End Sub

Private Sub <your form info here>_Load(ByVal sender As object, ByVal args As EventArgs) Handles <your form info here>.Load
'//
'// Add Event Handler Code
'//
tools.Tools("CopyTool").SharedProps.Enabled = false
tools.Tools("CutTool").SharedProps.Enabled = false
tools.Tools("PasteTool").SharedProps.Enabled = false
End Sub


Context menus on grids are a whole different animal. They are built as you right click on the grid and are a specialized version of a Infragistics popup tool that is contained within the Epicor.Mfg.UI.EpiClientLib - The grids also have the standard windows context menu and context menu strip, but they are not used. I have found that if you set the Enabled property of the EpiUltraGrid to false then the context menu does not contain the copy, select options....

So the code for that would be:

Private Sub DisableEpiUltraGrids(Optional ByRef ctls As System.Windows.Forms.Control.ControlCollection = Nothing)

' Enumerate the forms controls
If ctls Is Nothing Then ctls = oTrans.EpiBaseForm.Controls
For Each ctl As Control In ctls

If ctl.HasChildren Then DisableEpiUltraGrids(ctl.Controls)

If TypeOf(ctl) Is EpiUltraGrid Then
ctl.Enabled = false
End If

Next

End Sub

Add DisableEpiUltraGrids() to the formLoad event....

Good Luck.

--- In vantage@yahoogroups.com, Chris Thompson <chriselectrix@...> wrote:
>
> Looking at the bottom of this thread, I have a couple of issues that you may be able to solve.
>
> Firstly, having the Delete button next to the Save button on the standard tool bar seems crazy.
>
> Does anyone know a way they can be re-ordered?
>
>
> Also, does anyone know a way I can remove the cut/copy/paste buttons from the toolbar?
>
> If you can add buttons, presumably you can remove them?
>
> If so, how?
>
> Cheers,
>
>
> CHRIS THOMPSON
>
>
>
>
> ________________________________
> From: brychanwilliams <brychanwilliams@...>
> To: vantage@yahoogroups.com
> Sent: Friday, 29 May, 2009 13:27:10
> Subject: [Vantage] Re: Customization Capture Print button event on order entry
>
>
>
>
>
> Hi,
>
> Managed to work it out.... but needed to tie to any event in this getting the project ID
>
> Used pop.InstanceProps. Visible = false
>
> --- In vantage@yahoogroups .com, "brychanwilliams" <brychanwilliams@ ...> wrote:
> >
> > Hi,
> >
> > The problem I have is that I want security linked to the a project manager of a project, so only the project manager can make changes. So at any one time there are 20 active projects and theory there could be 20 different project managers. So at the moment I can do the following;
> >
> > 1) Enable / Disable controls/dataviews depending on the user
> > 2) I can throw exceptions to stop any projects being created and deleted. The actual projects are step up by other people.
> > 3) I just need to stop the actions menu options in the project entry. I suppose I could look at throwing exceptions but it would be neater just to make the actions menu disappear... .
> >
> > I thought the below code could point me in the right direction but I am not the best at coding .
> >
> >
> >
> >
> > --- In vantage@yahoogroups .com, "Bruce Larson" <epicor@> wrote:
> > >
> > > In the security menu you can select the processes to disable for various
> > > users.
> > > Turning off the whole Action menu, not sure if you can do that.
> > >
> > > Bruce
> > > Bruce@
> > > www.ERPgeek. com
> > >
> > >
> > > -----Original Message-----
> > > From: vantage@yahoogroups .com [mailto:vantage@yahoogroups .com] On Behalf Of
> > > brychanwilliams
> > > Sent: Thursday, May 28, 2009 11:21 AM
> > > To: vantage@yahoogroups .com
> > > Subject: [Vantage] Re: Customization Capture Print button event on order
> > > entry
> > >
> > > Hi,
> > >
> > > I was wondering if you could help me out. I am customising the project entry
> > > screen and I need to disable the actions menu. I have tried some syntaxes
> > > but just can't seem to get it to work.
> > >
> > > Thanks
> > >
> > >
> > > --- In vantage@yahoogroups .com, "bw2868bond" <bwalker@> wrote:
> > > >
> > > > Thanks for the update. I am happy you got it to work
> > > >
> > > > In the UI, there is one event handler that captures the click of any of
> > > the 'tools' in a group designated 'misc' tools.
> > > >
> > > > There is a big long Select Case statement that then performs the actions
> > > depending on the tool (button) that was clicked. Many of them call the form
> > > update method, but for whatever reason the two different print tools did
> > > not....
> > > >
> > > > It would be a easy (one line of code) fix for Epicor to implement if
> > > anyone was to report it
> > > >
> > > > --- In vantage@yahoogroups .com, "Ben Hunsberger" <ben@> wrote:
> > > > >
> > > > > Thanks a lot.
> > > > >
> > > > > I was able to get everything to look good except the print button
> > > wouldn't show on the tool bar.
> > > > >
> > > > > With some experimenting I found out the button needed to not only be
> > > added to the list of buttons managed by the "tool bar manager" but also the
> > > instance of the toolbar being used:
> > > > >
> > > > > Tools.Toolbars( "Standard Tools").Tools. Add(printButton)
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > >
> > > ------------ --------- --------- ------
> > >
> > > Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
> > > already linked your email address to a yahoo id to enable access. )
> > > (1) To access the Files Section of our Yahoo!Group for Report Builder and
> > > Crystal Reports and other 'goodies', please goto:
> > > http://groups. yahoo.com/ group/vantage/ files/.
> > > (2) To search through old msg's goto:
> > > http://groups. yahoo.com/ group/vantage/ messages
> > > (3) To view links to Vendors that provide Vantage services goto:
> > > http://groups. yahoo.com/ group/vantage/ linksYahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > > [Non-text portions of this message have been removed]
> > >
> >
>
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
8.03.407 allows you to print the order without saving the current screen. So you can end up with having changed something like the quantity ordered from say 5 to 10, but the document will print 5 as that is what is in the database.

Has anybody figured out how to capture the event of the print button being pushed or an item on the actions menu? These are not exposed to customizations in the form event wizard. If I could capture this event I could force a save on the adapter before the print processed.
> Has anybody figured out how to capture the event of the print button being
> pushed or an item on the actions menu? These are not exposed to
> customizations in the form event wizard. If I could capture this event I
> could force a save on the adapter before the print processed.

This is an awesome suggestion Ben. Within Epicor 9, the BPM module has
Method Directives (as we have in 8.03) but it also has Data Directives. This
gives hooks to database tables (on write, on delete, on update). I would
like to see Epicor add Action Directives so that we can capture these kinds
of events that happen in the Menu (process launches, steps within
scheduling, MRP, etc.)

If someone wants to start an enhancement request, I'll sign on.

Mark W.
I wonder if you could you the process caller to trigger a save?

--- In vantage@yahoogroups.com, "Mark Wonsil" <mark_wonsil@...> wrote:
>
> > Has anybody figured out how to capture the event of the print button being
> > pushed or an item on the actions menu? These are not exposed to
> > customizations in the form event wizard. If I could capture this event I
> > could force a save on the adapter before the print processed.
>
> This is an awesome suggestion Ben. Within Epicor 9, the BPM module has
> Method Directives (as we have in 8.03) but it also has Data Directives. This
> gives hooks to database tables (on write, on delete, on update). I would
> like to see Epicor add Action Directives so that we can capture these kinds
> of events that happen in the Menu (process launches, steps within
> scheduling, MRP, etc.)
>
> If someone wants to start an enhancement request, I'll sign on.
>
> Mark W.
>
How would one capture the fact that process caller was called before it gets called, I would still need to be in the scope of the order entry form, once the scope is passed to the process caller the data adapter/epidataview wouldn't have the data from the screen.

Has anybody had any luck looping through the components of the form, finding the toolbar and the button on the toolbar then declaring an object of that type, to capture the events?

--- In vantage@yahoogroups.com, "Michael McWilliams" <mmcwilliams22@...> wrote:
>
> I wonder if you could you the process caller to trigger a save?
>
> --- In vantage@yahoogroups.com, "Mark Wonsil" <mark_wonsil@> wrote:
> >
> > > Has anybody figured out how to capture the event of the print button being
> > > pushed or an item on the actions menu? These are not exposed to
> > > customizations in the form event wizard. If I could capture this event I
> > > could force a save on the adapter before the print processed.
> >
> > This is an awesome suggestion Ben. Within Epicor 9, the BPM module has
> > Method Directives (as we have in 8.03) but it also has Data Directives. This
> > gives hooks to database tables (on write, on delete, on update). I would
> > like to see Epicor add Action Directives so that we can capture these kinds
> > of events that happen in the Menu (process launches, steps within
> > scheduling, MRP, etc.)
> >
> > If someone wants to start an enhancement request, I'll sign on.
> >
> > Mark W.
> >
>
I do not think this is what you are looking for , but I have written
BPM's is the past for the ReportMonitor.Update business object.



You might take a look in case.



Thank you,



Dale E. Schuerman

Senior Consultant

Epicor Certified Consulting Partner



RAM Software Systems, Inc.

972-669-0763 x233 (voice)

972-669-9603 (fax)

mailto:dale.schuerman@...
<BLOCKED::blocked::mailto:dale.schuerman@...> (email)

http://www.ramsys.com <BLOCKED::blocked::http://www.ramsys.com/>
(website)





From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Ben Hunsberger
Sent: Friday, April 17, 2009 10:17 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Customization Capture Print button event on order
entry








How would one capture the fact that process caller was called before it
gets called, I would still need to be in the scope of the order entry
form, once the scope is passed to the process caller the data
adapter/epidataview wouldn't have the data from the screen.

Has anybody had any luck looping through the components of the form,
finding the toolbar and the button on the toolbar then declaring an
object of that type, to capture the events?

--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
"Michael McWilliams" <mmcwilliams22@...> wrote:
>
> I wonder if you could you the process caller to trigger a save?
>
> --- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
"Mark Wonsil" <mark_wonsil@> wrote:
> >
> > > Has anybody figured out how to capture the event of the print
button being
> > > pushed or an item on the actions menu? These are not exposed to
> > > customizations in the form event wizard. If I could capture this
event I
> > > could force a save on the adapter before the print processed.
> >
> > This is an awesome suggestion Ben. Within Epicor 9, the BPM module
has
> > Method Directives (as we have in 8.03) but it also has Data
Directives. This
> > gives hooks to database tables (on write, on delete, on update). I
would
> > like to see Epicor add Action Directives so that we can capture
these kinds
> > of events that happen in the Menu (process launches, steps within
> > scheduling, MRP, etc.)
> >
> > If someone wants to start an enhancement request, I'll sign on.
> >
> > Mark W.
> >
>




########################################################################
Attention:
This email message is privileged and confidential. If you are not the
intended recipient please delete the message and notify the sender.
Any views or opinions presented are solely those of the author.

This email message has been scanned for Viruses and Content and cleared
by MailMarshal SMTP

For more information go to http://www.ramsys.com
########################################################################


[Non-text portions of this message have been removed]
Try this on for size:

Removes standard Print Button and Print from Actions Menu.
Adds your own action to action menu and an event handler you can code.

In assembly reference manager add a custom assembly: Infragistics2.Win.UltraWinToolbars.v6.3.dll

'//**************************************************
'// Custom VB.NET code for SalesOrderForm
'// Created: 4/17/2009 1:32:16 PM
'//**************************************************
Imports System
Imports System.Data
Imports System.Diagnostics
Imports System.Windows.Forms
Imports System.ComponentModel
Imports Microsoft.VisualBasic
Imports Epicor.Mfg.UI
Imports Epicor.Mfg.UI.FrameWork
Imports Epicor.Mfg.UI.ExtendedProps
Imports Epicor.Mfg.UI.FormFunctions
Imports Epicor.Mfg.UI.Customization
Imports Epicor.Mfg.UI.Adapters
Imports Epicor.Mfg.UI.Searches
Imports Epicor.Mfg.BO
Imports System.Reflection
Imports System.Collections

Module Script


'// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
'// Begin Wizard Added Module Level Variables **

'// End Wizard Added Module Level Variables **


'// Add Custom Module Level Variables Here **
dim tools as Infragistics.Win.UltraWinToolbars.UltraToolbarsManager
dim printButton as Infragistics.Win.UltraWinToolbars.ButtonTool


Sub InitializeCustomCode()


'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Intialization' lines **
'// Begin Wizard Added Variable Intialization

'// End Wizard Added Variable Intialization
'// Begin Custom Method Calls
dim obj as Object = GetType(Epicor.Mfg.UI.App.SalesOrderEntry.SalesOrderForm).InvokeMember("baseToolbarsManager", BindingFlags.Instance Or BindingFlags.GetField Or BindingFlags.NonPublic, Nothing, SalesOrderForm, Nothing)
tools = ctype(obj,Infragistics.Win.UltraWinToolbars.UltraToolbarsManager)
printButton = addMyPrintButton()
addhandler printButton.ToolClick, addressof printClick
'// End Custom Method Calls
End Sub

Function addMyPrintButton() As Infragistics.Win.UltraWinToolbars.ButtonTool
dim printButton as new Infragistics.Win.UltraWinToolbars.ButtonTool("MyPrintTool")
dim pop as Infragistics.Win.UltraWinToolbars.PopupMenuTool
printButton.SharedProps.Caption = "Print Sales Oder Ack"
if tools.Tools.Exists("MyPrintTool") = false
tools.Tools.Add(printButton)
pop = CType(tools.Tools("ActionsMenu"), Infragistics.Win.UltraWinToolbars.PopupMenuTool)
pop.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase() {printButton})
dim internalFunctionImage As System.Drawing.Image = EpiUIImages.GetImage("InternalFunction")
dim appearance As New Infragistics.Win.Appearance
appearance.Image = internalFunctionImage
tools.Tools("MyPrintTool").SharedProps.AppearancesLarge.Appearance = appearance
tools.Tools("MyPrintTool").SharedProps.AppearancesSmall.Appearance = appearance
end if
if tools.Tools.Exists("SalesOrderPrintTool")
'//MessageBox.Show("SalesOrderPrintTool")
tools.Tools("SalesOrderPrintTool").SharedProps.Visible = false
end if
if tools.Tools.Exists("PrintTool")
'//MessageBox.Show("SalesOrderPrintTool")
tools.Tools("PrintTool").SharedProps.Visible = false
end if
return printButton
End Function

Sub DestroyCustomCode()


'// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
'// Begin Wizard Added Object Disposal

'// End Wizard Added Object Disposal
'// Begin Custom Code Disposal
removehandler printButton.ToolClick, addressof printClick
'// End Custom Code Disposal
End Sub

Private Sub printClick(sender As Object, e As Infragistics.Win.UltraWinToolbars.ToolClickEventArgs)
oTrans.Update()
dim num as Integer = Integer.Parse(oTrans.CurrentOrderNum)
If (num > 0) Then
Try
Dim options2 As New LaunchFormOptions()
options2.SuppressFormSearch = True
options2.ValueIn = num.ToString

ProcessCaller.LaunchForm(oTrans, "Epicor.Mfg.UIRpt.SalesOrderAck", options2)
Catch
End Try
End If
End Sub

End Module

--- In vantage@yahoogroups.com, "Ben Hunsberger" <ben@...> wrote:
>
> 8.03.407 allows you to print the order without saving the current screen. So you can end up with having changed something like the quantity ordered from say 5 to 10, but the document will print 5 as that is what is in the database.
>
> Has anybody figured out how to capture the event of the print button being pushed or an item on the actions menu? These are not exposed to customizations in the form event wizard. If I could capture this event I could force a save on the adapter before the print processed.
>
You may be able to leverage an epichange notification in some combo of POHeader.PrintAs or POHeader.ReadyToPrint (and then fire off a forced otrans.update() to save the PO).

Rob

--- On Fri, 4/17/09, Dale Schuerman <dale.schuerman@...> wrote:

From: Dale Schuerman <dale.schuerman@...>
Subject: RE: [Vantage] Re: Customization Capture Print button event on order entry
To: vantage@yahoogroups.com
Date: Friday, April 17, 2009, 12:05 PM








I do not think this is what you are looking for , but I have written
BPM's is the past for the ReportMonitor. Update business object.

You might take a look in case.

Thank you,

Dale E. Schuerman

Senior Consultant

Epicor Certified Consulting Partner

RAM Software Systems, Inc.

972-669-0763 x233 (voice)

972-669-9603 (fax)

mailto:dale.schuerman@ ramsys.com
<BLOCKED::blocked: :mailto:dale.schuerman@ ramsys.com> (email)

http://www.ramsys com <BLOCKED::blocked: :http://www.ramsys com/>
(website)

From: vantage@yahoogroups .com [mailto:vantage@yahoogroups .com] On Behalf
Of Ben Hunsberger
Sent: Friday, April 17, 2009 10:17 AM
To: vantage@yahoogroups .com
Subject: [Vantage] Re: Customization Capture Print button event on order
entry

How would one capture the fact that process caller was called before it
gets called, I would still need to be in the scope of the order entry
form, once the scope is passed to the process caller the data
adapter/epidataview wouldn't have the data from the screen.

Has anybody had any luck looping through the components of the form,
finding the toolbar and the button on the toolbar then declaring an
object of that type, to capture the events?

--- In vantage@yahoogroups .com <mailto:vantage% 40yahoogroups. com> ,
"Michael McWilliams" <mmcwilliams22@ ...> wrote:
>
> I wonder if you could you the process caller to trigger a save?
>
> --- In vantage@yahoogroups .com <mailto:vantage% 40yahoogroups. com> ,
"Mark Wonsil" <mark_wonsil@ > wrote:
> >
> > > Has anybody figured out how to capture the event of the print
button being
> > > pushed or an item on the actions menu? These are not exposed to
> > > customizations in the form event wizard. If I could capture this
event I
> > > could force a save on the adapter before the print processed.
> >
> > This is an awesome suggestion Ben. Within Epicor 9, the BPM module
has
> > Method Directives (as we have in 8.03) but it also has Data
Directives. This
> > gives hooks to database tables (on write, on delete, on update). I
would
> > like to see Epicor add Action Directives so that we can capture
these kinds
> > of events that happen in the Menu (process launches, steps within
> > scheduling, MRP, etc.)
> >
> > If someone wants to start an enhancement request, I'll sign on.
> >
> > Mark W.
> >
>

############ ######### ######### ######### ######### ######### ######### ######
Attention:
This email message is privileged and confidential. If you are not the
intended recipient please delete the message and notify the sender.
Any views or opinions presented are solely those of the author.

This email message has been scanned for Viruses and Content and cleared
by MailMarshal SMTP

For more information go to http://www.ramsys com
############ ######### ######### ######### ######### ######### ######### ######

[Non-text portions of this message have been removed]
Looks like we would be real close here, however the inner expection from below:

Inner Exception
===============
Field 'Epicor.Mfg.UI.App.SalesOrderEntry.SalesOrderForm.baseTool\barsManager' not found.

looks like "baseTool\barsManager" doesn't exist.

How did you determine this to be the name to use?



Error Detail
============
Exception has been thrown by the target of an invocation.


Stack Trace
===========
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Epicor.Mfg.UI.Customization.CustomScriptManager.initCustomAssembly(Assembly assm)

Inner Exception
===============
Field 'Epicor.Mfg.UI.App.SalesOrderEntry.SalesOrderForm.baseTool\barsManager' not found.

Inner Stack Trace
=================
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at Script.InitializeCustomCode()
--- In vantage@yahoogroups.com, "bw2868bond" <bwalker@...> wrote:
>
> Try this on for size:
>
> Removes standard Print Button and Print from Actions Menu.
> Adds your own action to action menu and an event handler you can code.
>
> In assembly reference manager add a custom assembly: Infragistics2.Win.UltraWinToolbars.v6.3.dll
>
> '//**************************************************
> '// Custom VB.NET code for SalesOrderForm
> '// Created: 4/17/2009 1:32:16 PM
> '//**************************************************
> Imports System
> Imports System.Data
> Imports System.Diagnostics
> Imports System.Windows.Forms
> Imports System.ComponentModel
> Imports Microsoft.VisualBasic
> Imports Epicor.Mfg.UI
> Imports Epicor.Mfg.UI.FrameWork
> Imports Epicor.Mfg.UI.ExtendedProps
> Imports Epicor.Mfg.UI.FormFunctions
> Imports Epicor.Mfg.UI.Customization
> Imports Epicor.Mfg.UI.Adapters
> Imports Epicor.Mfg.UI.Searches
> Imports Epicor.Mfg.BO
> Imports System.Reflection
> Imports System.Collections
>
> Module Script
>
>
> '// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
> '// Begin Wizard Added Module Level Variables **
>
> '// End Wizard Added Module Level Variables **
>
>
> '// Add Custom Module Level Variables Here **
> dim tools as Infragistics.Win.UltraWinToolbars.UltraToolbarsManager
> dim printButton as Infragistics.Win.UltraWinToolbars.ButtonTool
>
>
> Sub InitializeCustomCode()
>
>
> '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Intialization' lines **
> '// Begin Wizard Added Variable Intialization
>
> '// End Wizard Added Variable Intialization
> '// Begin Custom Method Calls
> dim obj as Object = GetType(Epicor.Mfg.UI.App.SalesOrderEntry.SalesOrderForm).InvokeMember("baseToolbarsManager", BindingFlags.Instance Or BindingFlags.GetField Or BindingFlags.NonPublic, Nothing, SalesOrderForm, Nothing)
> tools = ctype(obj,Infragistics.Win.UltraWinToolbars.UltraToolbarsManager)
> printButton = addMyPrintButton()
> addhandler printButton.ToolClick, addressof printClick
> '// End Custom Method Calls
> End Sub
>
> Function addMyPrintButton() As Infragistics.Win.UltraWinToolbars.ButtonTool
> dim printButton as new Infragistics.Win.UltraWinToolbars.ButtonTool("MyPrintTool")
> dim pop as Infragistics.Win.UltraWinToolbars.PopupMenuTool
> printButton.SharedProps.Caption = "Print Sales Oder Ack"
> if tools.Tools.Exists("MyPrintTool") = false
> tools.Tools.Add(printButton)
> pop = CType(tools.Tools("ActionsMenu"), Infragistics.Win.UltraWinToolbars.PopupMenuTool)
> pop.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase() {printButton})
> dim internalFunctionImage As System.Drawing.Image = EpiUIImages.GetImage("InternalFunction")
> dim appearance As New Infragistics.Win.Appearance
> appearance.Image = internalFunctionImage
> tools.Tools("MyPrintTool").SharedProps.AppearancesLarge.Appearance = appearance
> tools.Tools("MyPrintTool").SharedProps.AppearancesSmall.Appearance = appearance
> end if
> if tools.Tools.Exists("SalesOrderPrintTool")
> '//MessageBox.Show("SalesOrderPrintTool")
> tools.Tools("SalesOrderPrintTool").SharedProps.Visible = false
> end if
> if tools.Tools.Exists("PrintTool")
> '//MessageBox.Show("SalesOrderPrintTool")
> tools.Tools("PrintTool").SharedProps.Visible = false
> end if
> return printButton
> End Function
>
> Sub DestroyCustomCode()
>
>
> '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
> '// Begin Wizard Added Object Disposal
>
> '// End Wizard Added Object Disposal
> '// Begin Custom Code Disposal
> removehandler printButton.ToolClick, addressof printClick
> '// End Custom Code Disposal
> End Sub
>
> Private Sub printClick(sender As Object, e As Infragistics.Win.UltraWinToolbars.ToolClickEventArgs)
> oTrans.Update()
> dim num as Integer = Integer.Parse(oTrans.CurrentOrderNum)
> If (num > 0) Then
> Try
> Dim options2 As New LaunchFormOptions()
> options2.SuppressFormSearch = True
> options2.ValueIn = num.ToString
>
> ProcessCaller.LaunchForm(oTrans, "Epicor.Mfg.UIRpt.SalesOrderAck", options2)
> Catch
> End Try
> End If
> End Sub
>
> End Module
>
> --- In vantage@yahoogroups.com, "Ben Hunsberger" <ben@> wrote:
> >
> > 8.03.407 allows you to print the order without saving the current screen. So you can end up with having changed something like the quantity ordered from say 5 to 10, but the document will print 5 as that is what is in the database.
> >
> > Has anybody figured out how to capture the event of the print button being pushed or an item on the actions menu? These are not exposed to customizations in the form event wizard. If I could capture this event I could force a save on the adapter before the print processed.
> >
>
There should not be a backslash in there...

--- In vantage@yahoogroups.com, "Ben Hunsberger" <ben@...> wrote:
>
> Looks like we would be real close here, however the inner expection from below:
>
> Inner Exception
> ===============
> Field 'Epicor.Mfg.UI.App.SalesOrderEntry.SalesOrderForm.baseTool\barsManager' not found.
>
> looks like "baseTool\barsManager" doesn't exist.
>
> How did you determine this to be the name to use?
>
>
>
> Error Detail
> ============
> Exception has been thrown by the target of an invocation.
>
>
> Stack Trace
> ===========
> at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
> at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
> at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
> at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
> at Epicor.Mfg.UI.Customization.CustomScriptManager.initCustomAssembly(Assembly assm)
>
> Inner Exception
> ===============
> Field 'Epicor.Mfg.UI.App.SalesOrderEntry.SalesOrderForm.baseTool\barsManager' not found.
>
> Inner Stack Trace
> =================
> at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
> at Script.InitializeCustomCode()
> --- In vantage@yahoogroups.com, "bw2868bond" <bwalker@> wrote:
> >
> > Try this on for size:
> >
> > Removes standard Print Button and Print from Actions Menu.
> > Adds your own action to action menu and an event handler you can code.
> >
> > In assembly reference manager add a custom assembly: Infragistics2.Win.UltraWinToolbars.v6.3.dll
> >
> > '//**************************************************
> > '// Custom VB.NET code for SalesOrderForm
> > '// Created: 4/17/2009 1:32:16 PM
> > '//**************************************************
> > Imports System
> > Imports System.Data
> > Imports System.Diagnostics
> > Imports System.Windows.Forms
> > Imports System.ComponentModel
> > Imports Microsoft.VisualBasic
> > Imports Epicor.Mfg.UI
> > Imports Epicor.Mfg.UI.FrameWork
> > Imports Epicor.Mfg.UI.ExtendedProps
> > Imports Epicor.Mfg.UI.FormFunctions
> > Imports Epicor.Mfg.UI.Customization
> > Imports Epicor.Mfg.UI.Adapters
> > Imports Epicor.Mfg.UI.Searches
> > Imports Epicor.Mfg.BO
> > Imports System.Reflection
> > Imports System.Collections
> >
> > Module Script
> >
> >
> > '// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
> > '// Begin Wizard Added Module Level Variables **
> >
> > '// End Wizard Added Module Level Variables **
> >
> >
> > '// Add Custom Module Level Variables Here **
> > dim tools as Infragistics.Win.UltraWinToolbars.UltraToolbarsManager
> > dim printButton as Infragistics.Win.UltraWinToolbars.ButtonTool
> >
> >
> > Sub InitializeCustomCode()
> >
> >
> > '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Intialization' lines **
> > '// Begin Wizard Added Variable Intialization
> >
> > '// End Wizard Added Variable Intialization
> > '// Begin Custom Method Calls
> > dim obj as Object = GetType(Epicor.Mfg.UI.App.SalesOrderEntry.SalesOrderForm).InvokeMember("baseToolbarsManager", BindingFlags.Instance Or BindingFlags.GetField Or BindingFlags.NonPublic, Nothing, SalesOrderForm, Nothing)
> > tools = ctype(obj,Infragistics.Win.UltraWinToolbars.UltraToolbarsManager)
> > printButton = addMyPrintButton()
> > addhandler printButton.ToolClick, addressof printClick
> > '// End Custom Method Calls
> > End Sub
> >
> > Function addMyPrintButton() As Infragistics.Win.UltraWinToolbars.ButtonTool
> > dim printButton as new Infragistics.Win.UltraWinToolbars.ButtonTool("MyPrintTool")
> > dim pop as Infragistics.Win.UltraWinToolbars.PopupMenuTool
> > printButton.SharedProps.Caption = "Print Sales Oder Ack"
> > if tools.Tools.Exists("MyPrintTool") = false
> > tools.Tools.Add(printButton)
> > pop = CType(tools.Tools("ActionsMenu"), Infragistics.Win.UltraWinToolbars.PopupMenuTool)
> > pop.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase() {printButton})
> > dim internalFunctionImage As System.Drawing.Image = EpiUIImages.GetImage("InternalFunction")
> > dim appearance As New Infragistics.Win.Appearance
> > appearance.Image = internalFunctionImage
> > tools.Tools("MyPrintTool").SharedProps.AppearancesLarge.Appearance = appearance
> > tools.Tools("MyPrintTool").SharedProps.AppearancesSmall.Appearance = appearance
> > end if
> > if tools.Tools.Exists("SalesOrderPrintTool")
> > '//MessageBox.Show("SalesOrderPrintTool")
> > tools.Tools("SalesOrderPrintTool").SharedProps.Visible = false
> > end if
> > if tools.Tools.Exists("PrintTool")
> > '//MessageBox.Show("SalesOrderPrintTool")
> > tools.Tools("PrintTool").SharedProps.Visible = false
> > end if
> > return printButton
> > End Function
> >
> > Sub DestroyCustomCode()
> >
> >
> > '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
> > '// Begin Wizard Added Object Disposal
> >
> > '// End Wizard Added Object Disposal
> > '// Begin Custom Code Disposal
> > removehandler printButton.ToolClick, addressof printClick
> > '// End Custom Code Disposal
> > End Sub
> >
> > Private Sub printClick(sender As Object, e As Infragistics.Win.UltraWinToolbars.ToolClickEventArgs)
> > oTrans.Update()
> > dim num as Integer = Integer.Parse(oTrans.CurrentOrderNum)
> > If (num > 0) Then
> > Try
> > Dim options2 As New LaunchFormOptions()
> > options2.SuppressFormSearch = True
> > options2.ValueIn = num.ToString
> >
> > ProcessCaller.LaunchForm(oTrans, "Epicor.Mfg.UIRpt.SalesOrderAck", options2)
> > Catch
> > End Try
> > End If
> > End Sub
> >
> > End Module
> >
> > --- In vantage@yahoogroups.com, "Ben Hunsberger" <ben@> wrote:
> > >
> > > 8.03.407 allows you to print the order without saving the current screen. So you can end up with having changed something like the quantity ordered from say 5 to 10, but the document will print 5 as that is what is in the database.
> > >
> > > Has anybody figured out how to capture the event of the print button being pushed or an item on the actions menu? These are not exposed to customizations in the form event wizard. If I could capture this event I could force a save on the adapter before the print processed.
> > >
> >
>
Thanks a lot.

I was able to get everything to look good except the print button wouldn't show on the tool bar.

With some experimenting I found out the button needed to not only be added to the list of buttons managed by the "tool bar manager" but also the instance of the toolbar being used:

Tools.Toolbars("Standard Tools").Tools.Add(printButton)

--- In vantage@yahoogroups.com, "bw2868bond" <bwalker@...> wrote:
>
> There should not be a backslash in there...
>
> --- In vantage@yahoogroups.com, "Ben Hunsberger" <ben@> wrote:
> >
> > Looks like we would be real close here, however the inner expection from below:
> >
> > Inner Exception
> > ===============
> > Field 'Epicor.Mfg.UI.App.SalesOrderEntry.SalesOrderForm.baseTool\barsManager' not found.
> >
> > looks like "baseTool\barsManager" doesn't exist.
> >
> > How did you determine this to be the name to use?
> >
> >
> >
> > Error Detail
> > ============
> > Exception has been thrown by the target of an invocation.
> >
> >
> > Stack Trace
> > ===========
> > at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
> > at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
> > at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
> > at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
> > at Epicor.Mfg.UI.Customization.CustomScriptManager.initCustomAssembly(Assembly assm)
> >
> > Inner Exception
> > ===============
> > Field 'Epicor.Mfg.UI.App.SalesOrderEntry.SalesOrderForm.baseTool\barsManager' not found.
> >
> > Inner Stack Trace
> > =================
> > at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
> > at Script.InitializeCustomCode()
> > --- In vantage@yahoogroups.com, "bw2868bond" <bwalker@> wrote:
> > >
> > > Try this on for size:
> > >
> > > Removes standard Print Button and Print from Actions Menu.
> > > Adds your own action to action menu and an event handler you can code.
> > >
> > > In assembly reference manager add a custom assembly: Infragistics2.Win.UltraWinToolbars.v6.3.dll
> > >
> > > '//**************************************************
> > > '// Custom VB.NET code for SalesOrderForm
> > > '// Created: 4/17/2009 1:32:16 PM
> > > '//**************************************************
> > > Imports System
> > > Imports System.Data
> > > Imports System.Diagnostics
> > > Imports System.Windows.Forms
> > > Imports System.ComponentModel
> > > Imports Microsoft.VisualBasic
> > > Imports Epicor.Mfg.UI
> > > Imports Epicor.Mfg.UI.FrameWork
> > > Imports Epicor.Mfg.UI.ExtendedProps
> > > Imports Epicor.Mfg.UI.FormFunctions
> > > Imports Epicor.Mfg.UI.Customization
> > > Imports Epicor.Mfg.UI.Adapters
> > > Imports Epicor.Mfg.UI.Searches
> > > Imports Epicor.Mfg.BO
> > > Imports System.Reflection
> > > Imports System.Collections
> > >
> > > Module Script
> > >
> > >
> > > '// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
> > > '// Begin Wizard Added Module Level Variables **
> > >
> > > '// End Wizard Added Module Level Variables **
> > >
> > >
> > > '// Add Custom Module Level Variables Here **
> > > dim tools as Infragistics.Win.UltraWinToolbars.UltraToolbarsManager
> > > dim printButton as Infragistics.Win.UltraWinToolbars.ButtonTool
> > >
> > >
> > > Sub InitializeCustomCode()
> > >
> > >
> > > '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Intialization' lines **
> > > '// Begin Wizard Added Variable Intialization
> > >
> > > '// End Wizard Added Variable Intialization
> > > '// Begin Custom Method Calls
> > > dim obj as Object = GetType(Epicor.Mfg.UI.App.SalesOrderEntry.SalesOrderForm).InvokeMember("baseToolbarsManager", BindingFlags.Instance Or BindingFlags.GetField Or BindingFlags.NonPublic, Nothing, SalesOrderForm, Nothing)
> > > tools = ctype(obj,Infragistics.Win.UltraWinToolbars.UltraToolbarsManager)
> > > printButton = addMyPrintButton()
> > > addhandler printButton.ToolClick, addressof printClick
> > > '// End Custom Method Calls
> > > End Sub
> > >
> > > Function addMyPrintButton() As Infragistics.Win.UltraWinToolbars.ButtonTool
> > > dim printButton as new Infragistics.Win.UltraWinToolbars.ButtonTool("MyPrintTool")
> > > dim pop as Infragistics.Win.UltraWinToolbars.PopupMenuTool
> > > printButton.SharedProps.Caption = "Print Sales Oder Ack"
> > > if tools.Tools.Exists("MyPrintTool") = false
> > > tools.Tools.Add(printButton)
> > > pop = CType(tools.Tools("ActionsMenu"), Infragistics.Win.UltraWinToolbars.PopupMenuTool)
> > > pop.Tools.AddRange(new Infragistics.Win.UltraWinToolbars.ToolBase() {printButton})
> > > dim internalFunctionImage As System.Drawing.Image = EpiUIImages.GetImage("InternalFunction")
> > > dim appearance As New Infragistics.Win.Appearance
> > > appearance.Image = internalFunctionImage
> > > tools.Tools("MyPrintTool").SharedProps.AppearancesLarge.Appearance = appearance
> > > tools.Tools("MyPrintTool").SharedProps.AppearancesSmall.Appearance = appearance
> > > end if
> > > if tools.Tools.Exists("SalesOrderPrintTool")
> > > '//MessageBox.Show("SalesOrderPrintTool")
> > > tools.Tools("SalesOrderPrintTool").SharedProps.Visible = false
> > > end if
> > > if tools.Tools.Exists("PrintTool")
> > > '//MessageBox.Show("SalesOrderPrintTool")
> > > tools.Tools("PrintTool").SharedProps.Visible = false
> > > end if
> > > return printButton
> > > End Function
> > >
> > > Sub DestroyCustomCode()
> > >
> > >
> > > '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
> > > '// Begin Wizard Added Object Disposal
> > >
> > > '// End Wizard Added Object Disposal
> > > '// Begin Custom Code Disposal
> > > removehandler printButton.ToolClick, addressof printClick
> > > '// End Custom Code Disposal
> > > End Sub
> > >
> > > Private Sub printClick(sender As Object, e As Infragistics.Win.UltraWinToolbars.ToolClickEventArgs)
> > > oTrans.Update()
> > > dim num as Integer = Integer.Parse(oTrans.CurrentOrderNum)
> > > If (num > 0) Then
> > > Try
> > > Dim options2 As New LaunchFormOptions()
> > > options2.SuppressFormSearch = True
> > > options2.ValueIn = num.ToString
> > >
> > > ProcessCaller.LaunchForm(oTrans, "Epicor.Mfg.UIRpt.SalesOrderAck", options2)
> > > Catch
> > > End Try
> > > End If
> > > End Sub
> > >
> > > End Module
> > >
> > > --- In vantage@yahoogroups.com, "Ben Hunsberger" <ben@> wrote:
> > > >
> > > > 8.03.407 allows you to print the order without saving the current screen. So you can end up with having changed something like the quantity ordered from say 5 to 10, but the document will print 5 as that is what is in the database.
> > > >
> > > > Has anybody figured out how to capture the event of the print button being pushed or an item on the actions menu? These are not exposed to customizations in the form event wizard. If I could capture this event I could force a save on the adapter before the print processed.
> > > >
> > >
> >
>
Thanks for the update. I am happy you got it to work

In the UI, there is one event handler that captures the click of any of the 'tools' in a group designated 'misc' tools.

There is a big long Select Case statement that then performs the actions depending on the tool (button) that was clicked. Many of them call the form update method, but for whatever reason the two different print tools did not....

It would be a easy (one line of code) fix for Epicor to implement if anyone was to report it

--- In vantage@yahoogroups.com, "Ben Hunsberger" <ben@...> wrote:
>
> Thanks a lot.
>
> I was able to get everything to look good except the print button wouldn't show on the tool bar.
>
> With some experimenting I found out the button needed to not only be added to the list of buttons managed by the "tool bar manager" but also the instance of the toolbar being used:
>
> Tools.Toolbars("Standard Tools").Tools.Add(printButton)
>
>
Hi Dale,

Are you an Epicor 9 user?

If so, have you encountered any bugs / annoyances in E9?

We are considering moving form V8 to E9 before going live to avoid some of the V8 bugs (which Epicor aren't going to fix), but we dont want to end up having more bugs in E9.

Would it be possible for you to compose a semi detailed list of bugs in E9 that you have encountered?

I intend to compile a list of bugs in E9 and approach Epicor to see if/when they will be fixed.

Cheers,


CHRIS THOMPSON





________________________________
From: Dale Schuerman <dale.schuerman@...>
To: vantage@yahoogroups.com
Sent: Friday, 17 April, 2009 17:05:52
Subject: RE: [Vantage] Re: Customization Capture Print button event on order entry





I do not think this is what you are looking for , but I have written
BPM's is the past for the ReportMonitor. Update business object.

You might take a look in case.

Thank you,

Dale E. Schuerman

Senior Consultant

Epicor Certified Consulting Partner

RAM Software Systems, Inc.

972-669-0763 x233 (voice)

972-669-9603 (fax)

mailto:dale.schuerman@ ramsys.com
<BLOCKED::blocked: :mailto:dale.schuerman@ ramsys.com> (email)

http://www.ramsys com <BLOCKED::blocked: :http://www.ramsys com/>
(website)

From: vantage@yahoogroups .com [mailto:vantage@yahoogroups .com] On Behalf
Of Ben Hunsberger
Sent: Friday, April 17, 2009 10:17 AM
To: vantage@yahoogroups .com
Subject: [Vantage] Re: Customization Capture Print button event on order
entry

How would one capture the fact that process caller was called before it
gets called, I would still need to be in the scope of the order entry
form, once the scope is passed to the process caller the data
adapter/epidataview wouldn't have the data from the screen.

Has anybody had any luck looping through the components of the form,
finding the toolbar and the button on the toolbar then declaring an
object of that type, to capture the events?

--- In vantage@yahoogroups .com <mailto:vantage% 40yahoogroups. com> ,
"Michael McWilliams" <mmcwilliams22@ ...> wrote:
>
> I wonder if you could you the process caller to trigger a save?
>
> --- In vantage@yahoogroups .com <mailto:vantage% 40yahoogroups. com> ,
"Mark Wonsil" <mark_wonsil@ > wrote:
> >
> > > Has anybody figured out how to capture the event of the print
button being
> > > pushed or an item on the actions menu? These are not exposed to
> > > customizations in the form event wizard. If I could capture this
event I
> > > could force a save on the adapter before the print processed.
> >
> > This is an awesome suggestion Ben. Within Epicor 9, the BPM module
has
> > Method Directives (as we have in 8.03) but it also has Data
Directives. This
> > gives hooks to database tables (on write, on delete, on update). I
would
> > like to see Epicor add Action Directives so that we can capture
these kinds
> > of events that happen in the Menu (process launches, steps within
> > scheduling, MRP, etc.)
> >
> > If someone wants to start an enhancement request, I'll sign on.
> >
> > Mark W.
> >
>

############ ######### ######### ######### ######### ######### ######### ######
Attention:
This email message is privileged and confidential. If you are not the
intended recipient please delete the message and notify the sender.
Any views or opinions presented are solely those of the author.

This email message has been scanned for Viruses and Content and cleared
by MailMarshal SMTP

For more information go to http://www.ramsys com
############ ######### ######### ######### ######### ######### ######### ######

[Non-text portions of this message have been removed]







[Non-text portions of this message have been removed]
We just moved to version 9 and have not found any bugs yet but support
has hinted they are there.



dale



From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Chris Thompson
Sent: Wednesday, April 29, 2009 10:49 AM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Re: Customization Capture Print button event on
order entry








Hi Dale,

Are you an Epicor 9 user?

If so, have you encountered any bugs / annoyances in E9?

We are considering moving form V8 to E9 before going live to avoid some
of the V8 bugs (which Epicor aren't going to fix), but we dont want to
end up having more bugs in E9.

Would it be possible for you to compose a semi detailed list of bugs in
E9 that you have encountered?

I intend to compile a list of bugs in E9 and approach Epicor to see
if/when they will be fixed.

Cheers,

CHRIS THOMPSON

________________________________
From: Dale Schuerman <dale.schuerman@...
<mailto:dale.schuerman%40ramsys.com> >
To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Sent: Friday, 17 April, 2009 17:05:52
Subject: RE: [Vantage] Re: Customization Capture Print button event on
order entry

I do not think this is what you are looking for , but I have written
BPM's is the past for the ReportMonitor. Update business object.

You might take a look in case.

Thank you,

Dale E. Schuerman

Senior Consultant

Epicor Certified Consulting Partner

RAM Software Systems, Inc.

972-669-0763 x233 (voice)

972-669-9603 (fax)

mailto:dale.schuerman@ ramsys.com
<BLOCKED::blocked: :mailto:dale.schuerman@ ramsys.com> (email)

http://www.ramsys com <BLOCKED::blocked: :http://www.ramsys com/>
(website)

From: vantage@yahoogroups .com [mailto:vantage@yahoogroups .com] On
Behalf
Of Ben Hunsberger
Sent: Friday, April 17, 2009 10:17 AM
To: vantage@yahoogroups .com
Subject: [Vantage] Re: Customization Capture Print button event on order
entry

How would one capture the fact that process caller was called before it
gets called, I would still need to be in the scope of the order entry
form, once the scope is passed to the process caller the data
adapter/epidataview wouldn't have the data from the screen.

Has anybody had any luck looping through the components of the form,
finding the toolbar and the button on the toolbar then declaring an
object of that type, to capture the events?

--- In vantage@yahoogroups .com <mailto:vantage% 40yahoogroups. com> ,
"Michael McWilliams" <mmcwilliams22@ ...> wrote:
>
> I wonder if you could you the process caller to trigger a save?
>
> --- In vantage@yahoogroups .com <mailto:vantage% 40yahoogroups. com> ,
"Mark Wonsil" <mark_wonsil@ > wrote:
> >
> > > Has anybody figured out how to capture the event of the print
button being
> > > pushed or an item on the actions menu? These are not exposed to
> > > customizations in the form event wizard. If I could capture this
event I
> > > could force a save on the adapter before the print processed.
> >
> > This is an awesome suggestion Ben. Within Epicor 9, the BPM module
has
> > Method Directives (as we have in 8.03) but it also has Data
Directives. This
> > gives hooks to database tables (on write, on delete, on update). I
would
> > like to see Epicor add Action Directives so that we can capture
these kinds
> > of events that happen in the Menu (process launches, steps within
> > scheduling, MRP, etc.)
> >
> > If someone wants to start an enhancement request, I'll sign on.
> >
> > Mark W.
> >
>

############ ######### ######### ######### ######### ######### #########
######
Attention:
This email message is privileged and confidential. If you are not the
intended recipient please delete the message and notify the sender.
Any views or opinions presented are solely those of the author.

This email message has been scanned for Viruses and Content and cleared
by MailMarshal SMTP

For more information go to http://www.ramsys com
############ ######### ######### ######### ######### ######### #########
######

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]
Hi,

I was wondering if you could help me out. I am customising the project entry screen and I need to disable the actions menu. I have tried some syntaxes but just can't seem to get it to work.

Thanks


--- In vantage@yahoogroups.com, "bw2868bond" <bwalker@...> wrote:
>
> Thanks for the update. I am happy you got it to work
>
> In the UI, there is one event handler that captures the click of any of the 'tools' in a group designated 'misc' tools.
>
> There is a big long Select Case statement that then performs the actions depending on the tool (button) that was clicked. Many of them call the form update method, but for whatever reason the two different print tools did not....
>
> It would be a easy (one line of code) fix for Epicor to implement if anyone was to report it
>
> --- In vantage@yahoogroups.com, "Ben Hunsberger" <ben@> wrote:
> >
> > Thanks a lot.
> >
> > I was able to get everything to look good except the print button wouldn't show on the tool bar.
> >
> > With some experimenting I found out the button needed to not only be added to the list of buttons managed by the "tool bar manager" but also the instance of the toolbar being used:
> >
> > Tools.Toolbars("Standard Tools").Tools.Add(printButton)
> >
> >
>
In the security menu you can select the processes to disable for various
users.
Turning off the whole Action menu, not sure if you can do that.

Bruce
Bruce@...
www.ERPgeek.com


-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
brychanwilliams
Sent: Thursday, May 28, 2009 11:21 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Customization Capture Print button event on order
entry

Hi,

I was wondering if you could help me out. I am customising the project entry
screen and I need to disable the actions menu. I have tried some syntaxes
but just can't seem to get it to work.

Thanks


--- In vantage@yahoogroups.com, "bw2868bond" <bwalker@...> wrote:
>
> Thanks for the update. I am happy you got it to work
>
> In the UI, there is one event handler that captures the click of any of
the 'tools' in a group designated 'misc' tools.
>
> There is a big long Select Case statement that then performs the actions
depending on the tool (button) that was clicked. Many of them call the form
update method, but for whatever reason the two different print tools did
not....
>
> It would be a easy (one line of code) fix for Epicor to implement if
anyone was to report it
>
> --- In vantage@yahoogroups.com, "Ben Hunsberger" <ben@> wrote:
> >
> > Thanks a lot.
> >
> > I was able to get everything to look good except the print button
wouldn't show on the tool bar.
> >
> > With some experimenting I found out the button needed to not only be
added to the list of buttons managed by the "tool bar manager" but also the
instance of the toolbar being used:
> >
> > Tools.Toolbars("Standard Tools").Tools.Add(printButton)
> >
> >
>




------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links





[Non-text portions of this message have been removed]
Hi,

The problem I have is that I want security linked to the a project manager of a project, so only the project manager can make changes. So at any one time there are 20 active projects and theory there could be 20 different project managers. So at the moment I can do the following;

1) Enable / Disable controls/dataviews depending on the user
2) I can throw exceptions to stop any projects being created and deleted. The actual projects are step up by other people.
3) I just need to stop the actions menu options in the project entry. I suppose I could look at throwing exceptions but it would be neater just to make the actions menu disappear....

I thought the below code could point me in the right direction but I am not the best at coding .




--- In vantage@yahoogroups.com, "Bruce Larson" <epicor@...> wrote:
>
> In the security menu you can select the processes to disable for various
> users.
> Turning off the whole Action menu, not sure if you can do that.
>
> Bruce
> Bruce@...
> www.ERPgeek.com
>
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
> brychanwilliams
> Sent: Thursday, May 28, 2009 11:21 AM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Re: Customization Capture Print button event on order
> entry
>
> Hi,
>
> I was wondering if you could help me out. I am customising the project entry
> screen and I need to disable the actions menu. I have tried some syntaxes
> but just can't seem to get it to work.
>
> Thanks
>
>
> --- In vantage@yahoogroups.com, "bw2868bond" <bwalker@> wrote:
> >
> > Thanks for the update. I am happy you got it to work
> >
> > In the UI, there is one event handler that captures the click of any of
> the 'tools' in a group designated 'misc' tools.
> >
> > There is a big long Select Case statement that then performs the actions
> depending on the tool (button) that was clicked. Many of them call the form
> update method, but for whatever reason the two different print tools did
> not....
> >
> > It would be a easy (one line of code) fix for Epicor to implement if
> anyone was to report it
> >
> > --- In vantage@yahoogroups.com, "Ben Hunsberger" <ben@> wrote:
> > >
> > > Thanks a lot.
> > >
> > > I was able to get everything to look good except the print button
> wouldn't show on the tool bar.
> > >
> > > With some experimenting I found out the button needed to not only be
> added to the list of buttons managed by the "tool bar manager" but also the
> instance of the toolbar being used:
> > >
> > > Tools.Toolbars("Standard Tools").Tools.Add(printButton)
> > >
> > >
> >
>
>
>
>
> ------------------------------------
>
> Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
> already linked your email address to a yahoo id to enable access. )
> (1) To access the Files Section of our Yahoo!Group for Report Builder and
> Crystal Reports and other 'goodies', please goto:
> http://groups.yahoo.com/group/vantage/files/.
> (2) To search through old msg's goto:
> http://groups.yahoo.com/group/vantage/messages
> (3) To view links to Vendors that provide Vantage services goto:
> http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
Hi,

Managed to work it out.... but needed to tie to any event in this getting the project ID

Used pop.InstanceProps.Visible = false

--- In vantage@yahoogroups.com, "brychanwilliams" <brychanwilliams@...> wrote:
>
> Hi,
>
> The problem I have is that I want security linked to the a project manager of a project, so only the project manager can make changes. So at any one time there are 20 active projects and theory there could be 20 different project managers. So at the moment I can do the following;
>
> 1) Enable / Disable controls/dataviews depending on the user
> 2) I can throw exceptions to stop any projects being created and deleted. The actual projects are step up by other people.
> 3) I just need to stop the actions menu options in the project entry. I suppose I could look at throwing exceptions but it would be neater just to make the actions menu disappear....
>
> I thought the below code could point me in the right direction but I am not the best at coding .
>
>
>
>
> --- In vantage@yahoogroups.com, "Bruce Larson" <epicor@> wrote:
> >
> > In the security menu you can select the processes to disable for various
> > users.
> > Turning off the whole Action menu, not sure if you can do that.
> >
> > Bruce
> > Bruce@
> > www.ERPgeek.com
> >
> >
> > -----Original Message-----
> > From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
> > brychanwilliams
> > Sent: Thursday, May 28, 2009 11:21 AM
> > To: vantage@yahoogroups.com
> > Subject: [Vantage] Re: Customization Capture Print button event on order
> > entry
> >
> > Hi,
> >
> > I was wondering if you could help me out. I am customising the project entry
> > screen and I need to disable the actions menu. I have tried some syntaxes
> > but just can't seem to get it to work.
> >
> > Thanks
> >
> >
> > --- In vantage@yahoogroups.com, "bw2868bond" <bwalker@> wrote:
> > >
> > > Thanks for the update. I am happy you got it to work
> > >
> > > In the UI, there is one event handler that captures the click of any of
> > the 'tools' in a group designated 'misc' tools.
> > >
> > > There is a big long Select Case statement that then performs the actions
> > depending on the tool (button) that was clicked. Many of them call the form
> > update method, but for whatever reason the two different print tools did
> > not....
> > >
> > > It would be a easy (one line of code) fix for Epicor to implement if
> > anyone was to report it
> > >
> > > --- In vantage@yahoogroups.com, "Ben Hunsberger" <ben@> wrote:
> > > >
> > > > Thanks a lot.
> > > >
> > > > I was able to get everything to look good except the print button
> > wouldn't show on the tool bar.
> > > >
> > > > With some experimenting I found out the button needed to not only be
> > added to the list of buttons managed by the "tool bar manager" but also the
> > instance of the toolbar being used:
> > > >
> > > > Tools.Toolbars("Standard Tools").Tools.Add(printButton)
> > > >
> > > >
> > >
> >
> >
> >
> >
> > ------------------------------------
> >
> > Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
> > already linked your email address to a yahoo id to enable access. )
> > (1) To access the Files Section of our Yahoo!Group for Report Builder and
> > Crystal Reports and other 'goodies', please goto:
> > http://groups.yahoo.com/group/vantage/files/.
> > (2) To search through old msg's goto:
> > http://groups.yahoo.com/group/vantage/messages
> > (3) To view links to Vendors that provide Vantage services goto:
> > http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
Looking at the bottom of this thread, I have a couple of issues that you may be able to solve.

Firstly, having the Delete button next to the Save button on the standard tool bar seems crazy.

Does anyone know a way they can be re-ordered?


Also, does anyone know a way I can remove the cut/copy/paste buttons from the toolbar?

If you can add buttons, presumably you can remove them?

If so, how?

Cheers,


CHRIS THOMPSON




________________________________
From: brychanwilliams <brychanwilliams@...>
To: vantage@yahoogroups.com
Sent: Friday, 29 May, 2009 13:27:10
Subject: [Vantage] Re: Customization Capture Print button event on order entry





Hi,

Managed to work it out.... but needed to tie to any event in this getting the project ID

Used pop.InstanceProps. Visible = false

--- In vantage@yahoogroups .com, "brychanwilliams" <brychanwilliams@ ...> wrote:
>
> Hi,
>
> The problem I have is that I want security linked to the a project manager of a project, so only the project manager can make changes. So at any one time there are 20 active projects and theory there could be 20 different project managers. So at the moment I can do the following;
>
> 1) Enable / Disable controls/dataviews depending on the user
> 2) I can throw exceptions to stop any projects being created and deleted. The actual projects are step up by other people.
> 3) I just need to stop the actions menu options in the project entry. I suppose I could look at throwing exceptions but it would be neater just to make the actions menu disappear... .
>
> I thought the below code could point me in the right direction but I am not the best at coding .
>
>
>
>
> --- In vantage@yahoogroups .com, "Bruce Larson" <epicor@> wrote:
> >
> > In the security menu you can select the processes to disable for various
> > users.
> > Turning off the whole Action menu, not sure if you can do that.
> >
> > Bruce
> > Bruce@
> > www.ERPgeek. com
> >
> >
> > -----Original Message-----
> > From: vantage@yahoogroups .com [mailto:vantage@yahoogroups .com] On Behalf Of
> > brychanwilliams
> > Sent: Thursday, May 28, 2009 11:21 AM
> > To: vantage@yahoogroups .com
> > Subject: [Vantage] Re: Customization Capture Print button event on order
> > entry
> >
> > Hi,
> >
> > I was wondering if you could help me out. I am customising the project entry
> > screen and I need to disable the actions menu. I have tried some syntaxes
> > but just can't seem to get it to work.
> >
> > Thanks
> >
> >
> > --- In vantage@yahoogroups .com, "bw2868bond" <bwalker@> wrote:
> > >
> > > Thanks for the update. I am happy you got it to work
> > >
> > > In the UI, there is one event handler that captures the click of any of
> > the 'tools' in a group designated 'misc' tools.
> > >
> > > There is a big long Select Case statement that then performs the actions
> > depending on the tool (button) that was clicked. Many of them call the form
> > update method, but for whatever reason the two different print tools did
> > not....
> > >
> > > It would be a easy (one line of code) fix for Epicor to implement if
> > anyone was to report it
> > >
> > > --- In vantage@yahoogroups .com, "Ben Hunsberger" <ben@> wrote:
> > > >
> > > > Thanks a lot.
> > > >
> > > > I was able to get everything to look good except the print button
> > wouldn't show on the tool bar.
> > > >
> > > > With some experimenting I found out the button needed to not only be
> > added to the list of buttons managed by the "tool bar manager" but also the
> > instance of the toolbar being used:
> > > >
> > > > Tools.Toolbars( "Standard Tools").Tools. Add(printButton)
> > > >
> > > >
> > >
> >
> >
> >
> >
> > ------------ --------- --------- ------
> >
> > Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
> > already linked your email address to a yahoo id to enable access. )
> > (1) To access the Files Section of our Yahoo!Group for Report Builder and
> > Crystal Reports and other 'goodies', please goto:
> > http://groups. yahoo.com/ group/vantage/ files/.
> > (2) To search through old msg's goto:
> > http://groups. yahoo.com/ group/vantage/ messages
> > (3) To view links to Vendors that provide Vantage services goto:
> > http://groups. yahoo.com/ group/vantage/ linksYahoo! Groups Links
> >
> >
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>







[Non-text portions of this message have been removed]