Perform Click of Clear Tool with code

As always, thanks Jose. Worked like a charm.



________________________________
From: Jose Gomez <jose@...>
To: vantage@yahoogroups.com
Sent: Tuesday, June 19, 2012 9:59 AM
Subject: Re: [Vantage] Perform Click of Clear Tool with code

on 9.05XX

ADd
using System.Reflection;

On Button Click'

private void epiButtonC1_Click(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **
MethodInfo mi =
typeof(Epicor.Mfg.UI.App.IssueMaterialEntry.IssueMaterialForm).GetMethod("OnClickClear",
BindingFlags.NonPublic | BindingFlags.Instance);
mi.Invoke(IssueMaterialForm, new object[] { });
}



*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez>Â <http://www.facebook.com/josegomez>
 <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
 <http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Jun 19, 2012 at 9:54 AM, Rob Bucek <rbucek@...> wrote:

> **
>
>
> This would be for 8.03...
>
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
> [Description: cid:1.234354861@...]<
> http://www.dsmfg.com/>
> (Click the logo to view our site)<http://www.dsmfg.com/>
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Rob Bucek
> Sent: Tuesday, June 19, 2012 8:54 AM
> To: vantage@yahoogroups.com
> Subject: RE: [Vantage] Perform Click of Clear Tool with code
>
>
> Here is some code that I use to suppress some buttons on a tool bar..this
> should get you close...
>
> Imports Infragistics.Win.UltraWinToolBars
>
> Module Script
>
> Dim baseToolbarsManager As
> Infragistics.Win.UltraWinToolbars.UltraToolbarsManager
>
> Sub InitializCustomCode()
> dim obj as Object =
> GetType(Epicor.Mfg.UI.App.UD11Entry.UD11Form).InvokeMember("baseToolbarsManager",
> BindingFlags.Instance Or BindingFlags.GetField Or BindingFlags.NonPublic,
> Nothing, UD11Form, Nothing)
> BaseToolbarsManager =
> ctype(obj,Infragistics.Win.UltraWinToolbars.UltraToolbarsManager)
> HideTools()
>
> Sub HideTools()
> if BaseToolBarsManager.Tools.Exists("NewTool")
> BaseToolBarsManager.Tools("NewTool").SharedProps.Enabled = False
> end if
> if BaseToolBarsManager.Tools.Exists("SaveTool")
> BaseToolBarsManager.Tools("SaveTool").SharedProps.Enabled = false
> end if
>
> End Sub
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
> [Description: cid:1.234354861@...<mailto:
> 1.234354861%40web65412.mail.ac4.yahoo.com>]<http://www.dsmfg.com/>
>
> (Click the logo to view our site)<http://www.dsmfg.com/>
>
> From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:
> vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of
> tkoch77
>
> Sent: Tuesday, June 19, 2012 8:37 AM
> To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
>
> Subject: [Vantage] Perform Click of Clear Tool with code
>
> Anyone have an example on how to click a toolbar button with code? Trying
> to clear the form after a user clicks on a button, oTrans.Clear() isnt
> working.
>
> Thanks,
>
> Ted
>
> [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]



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

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/.%c2%a0
(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]
Anyone have an example on how to click a toolbar button with code? Trying to clear the form after a user clicks on a button, oTrans.Clear() isnt working.

Thanks,

Ted
Which form?

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Jun 19, 2012 at 9:36 AM, tkoch77 <tkoch77@...> wrote:

> **
>
>
> Anyone have an example on how to click a toolbar button with code? Trying
> to clear the form after a user clicks on a button, oTrans.Clear() isnt
> working.
>
> Thanks,
>
> Ted
>
>
>


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



________________________________
From: Jose Gomez <jose@...>
To: vantage@yahoogroups.com
Sent: Tuesday, June 19, 2012 9:41 AM
Subject: Re: [Vantage] Perform Click of Clear Tool with code

Which form?

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez>Â <http://www.facebook.com/josegomez>
 <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
 <http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Jun 19, 2012 at 9:36 AM, tkoch77 <tkoch77@...> wrote:

> **
>
>
> Anyone have an example on how to click a toolbar button with code? Trying
> to clear the form after a user clicks on a button, oTrans.Clear() isnt
> working.
>
> Thanks,
>
> Ted
>

>


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



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

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/.%c2%a0
(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]
What version? 8x? 9x? 9.05X?

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Jun 19, 2012 at 9:49 AM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> Issue Material
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: vantage@yahoogroups.com
> Sent: Tuesday, June 19, 2012 9:41 AM
> Subject: Re: [Vantage] Perform Click of Clear Tool with code
>
> Which form?
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *checkout my new blog <http://www.usdoingstuff.com> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <
> http://www.facebook.com/josegomez>
> <http://www.google.com/profiles/jose.gomez> <
> http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Tue, Jun 19, 2012 at 9:36 AM, tkoch77 <tkoch77@...> wrote:
>
> > **
>
> >
> >
> > Anyone have an example on how to click a toolbar button with code? Trying
> > to clear the form after a user clicks on a button, oTrans.Clear() isnt
> > working.
> >
> > Thanks,
> >
> > Ted
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
> ------------------------------------
>
>
> 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]
Sorry, 9.05.607B



________________________________
From: Jose Gomez <jose@...>
To: vantage@yahoogroups.com
Sent: Tuesday, June 19, 2012 9:50 AM
Subject: Re: [Vantage] Perform Click of Clear Tool with code

What version? 8x? 9x? 9.05X?

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez>Â <http://www.facebook.com/josegomez>
 <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
 <http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
 <http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Jun 19, 2012 at 9:49 AM, Ted Koch <tkoch77@...> wrote:

> **
>
>
> Issue Material
>
> ________________________________
> From: Jose Gomez <jose@...>
> To: vantage@yahoogroups.com
> Sent: Tuesday, June 19, 2012 9:41 AM
> Subject: Re: [Vantage] Perform Click of Clear Tool with code
>
> Which form?
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *checkout my new blog <http://www.usdoingstuff.com> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez>Â <
> http://www.facebook.com/josegomez>
>Â <http://www.google.com/profiles/jose.gomez> <
> http://www.twitter.com/joc85>
>Â <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
>Â <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Tue, Jun 19, 2012 at 9:36 AM, tkoch77 <tkoch77@...> wrote:
>
> > **
>
> >
> >
> > Anyone have an example on how to click a toolbar button with code? Trying
> > to clear the form after a user clicks on a button, oTrans.Clear() isnt
> > working.
> >
> > Thanks,
> >
> > Ted
> >
> >
> >
>
> [Non-text portions of this message have been removed]
>
> ------------------------------------
>
>
> 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]



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

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/.%c2%a0
(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]
Here is some code that I use to suppress some buttons on a tool bar..this should get you close...

Imports Infragistics.Win.UltraWinToolBars

Module Script

Dim baseToolbarsManager As Infragistics.Win.UltraWinToolbars.UltraToolbarsManager

Sub InitializCustomCode()
dim obj as Object = GetType(Epicor.Mfg.UI.App.UD11Entry.UD11Form).InvokeMember("baseToolbarsManager", BindingFlags.Instance Or BindingFlags.GetField Or BindingFlags.NonPublic, Nothing, UD11Form, Nothing)
BaseToolbarsManager = ctype(obj,Infragistics.Win.UltraWinToolbars.UltraToolbarsManager)
HideTools()


Sub HideTools()
if BaseToolBarsManager.Tools.Exists("NewTool")
BaseToolBarsManager.Tools("NewTool").SharedProps.Enabled = False
end if
if BaseToolBarsManager.Tools.Exists("SaveTool")
BaseToolBarsManager.Tools("SaveTool").SharedProps.Enabled = false
end if

End Sub


Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-0590
FAX: (715)284-4084
[Description: cid:1.234354861@...]<http://www.dsmfg.com/>
(Click the logo to view our site)<http://www.dsmfg.com/>

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of tkoch77
Sent: Tuesday, June 19, 2012 8:37 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Perform Click of Clear Tool with code



Anyone have an example on how to click a toolbar button with code? Trying to clear the form after a user clicks on a button, oTrans.Clear() isnt working.

Thanks,

Ted



[Non-text portions of this message have been removed]
This would be for 8.03...

Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-0590
FAX: (715)284-4084
[Description: cid:1.234354861@...]<http://www.dsmfg.com/>
(Click the logo to view our site)<http://www.dsmfg.com/>

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Rob Bucek
Sent: Tuesday, June 19, 2012 8:54 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Perform Click of Clear Tool with code



Here is some code that I use to suppress some buttons on a tool bar..this should get you close...

Imports Infragistics.Win.UltraWinToolBars

Module Script

Dim baseToolbarsManager As Infragistics.Win.UltraWinToolbars.UltraToolbarsManager

Sub InitializCustomCode()
dim obj as Object = GetType(Epicor.Mfg.UI.App.UD11Entry.UD11Form).InvokeMember("baseToolbarsManager", BindingFlags.Instance Or BindingFlags.GetField Or BindingFlags.NonPublic, Nothing, UD11Form, Nothing)
BaseToolbarsManager = ctype(obj,Infragistics.Win.UltraWinToolbars.UltraToolbarsManager)
HideTools()

Sub HideTools()
if BaseToolBarsManager.Tools.Exists("NewTool")
BaseToolBarsManager.Tools("NewTool").SharedProps.Enabled = False
end if
if BaseToolBarsManager.Tools.Exists("SaveTool")
BaseToolBarsManager.Tools("SaveTool").SharedProps.Enabled = false
end if

End Sub

Rob Bucek
Production Control Manager
PH: (715) 284-5376 ext 311
Mobile: (715)896-0590
FAX: (715)284-4084
[Description: cid:1.234354861@...<mailto:1.234354861%40web65412.mail.ac4.yahoo.com>]<http://www.dsmfg.com/>
(Click the logo to view our site)<http://www.dsmfg.com/>

From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of tkoch77
Sent: Tuesday, June 19, 2012 8:37 AM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
Subject: [Vantage] Perform Click of Clear Tool with code

Anyone have an example on how to click a toolbar button with code? Trying to clear the form after a user clicks on a button, oTrans.Clear() isnt working.

Thanks,

Ted

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



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

ADd
using System.Reflection;

On Button Click'

private void epiButtonC1_Click(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **
MethodInfo mi =
typeof(Epicor.Mfg.UI.App.IssueMaterialEntry.IssueMaterialForm).GetMethod("OnClickClear",
BindingFlags.NonPublic | BindingFlags.Instance);
mi.Invoke(IssueMaterialForm, new object[] { });
}



*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Jun 19, 2012 at 9:54 AM, Rob Bucek <rbucek@...> wrote:

> **
>
>
> This would be for 8.03...
>
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
> [Description: cid:1.234354861@...]<
> http://www.dsmfg.com/>
> (Click the logo to view our site)<http://www.dsmfg.com/>
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Rob Bucek
> Sent: Tuesday, June 19, 2012 8:54 AM
> To: vantage@yahoogroups.com
> Subject: RE: [Vantage] Perform Click of Clear Tool with code
>
>
> Here is some code that I use to suppress some buttons on a tool bar..this
> should get you close...
>
> Imports Infragistics.Win.UltraWinToolBars
>
> Module Script
>
> Dim baseToolbarsManager As
> Infragistics.Win.UltraWinToolbars.UltraToolbarsManager
>
> Sub InitializCustomCode()
> dim obj as Object =
> GetType(Epicor.Mfg.UI.App.UD11Entry.UD11Form).InvokeMember("baseToolbarsManager",
> BindingFlags.Instance Or BindingFlags.GetField Or BindingFlags.NonPublic,
> Nothing, UD11Form, Nothing)
> BaseToolbarsManager =
> ctype(obj,Infragistics.Win.UltraWinToolbars.UltraToolbarsManager)
> HideTools()
>
> Sub HideTools()
> if BaseToolBarsManager.Tools.Exists("NewTool")
> BaseToolBarsManager.Tools("NewTool").SharedProps.Enabled = False
> end if
> if BaseToolBarsManager.Tools.Exists("SaveTool")
> BaseToolBarsManager.Tools("SaveTool").SharedProps.Enabled = false
> end if
>
> End Sub
>
> Rob Bucek
> Production Control Manager
> PH: (715) 284-5376 ext 311
> Mobile: (715)896-0590
> FAX: (715)284-4084
> [Description: cid:1.234354861@...<mailto:
> 1.234354861%40web65412.mail.ac4.yahoo.com>]<http://www.dsmfg.com/>
>
> (Click the logo to view our site)<http://www.dsmfg.com/>
>
> From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:
> vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of
> tkoch77
>
> Sent: Tuesday, June 19, 2012 8:37 AM
> To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
>
> Subject: [Vantage] Perform Click of Clear Tool with code
>
> Anyone have an example on how to click a toolbar button with code? Trying
> to clear the form after a user clicks on a button, oTrans.Clear() isnt
> working.
>
> Thanks,
>
> Ted
>
> [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]