I have not had any luck with that code for graying of the buttons.
Tim Dines
Information Technology
Steel Parts Manufacturing, Inc.
801 Berryman Pike
Tipton, IN 46072
Direct: 765-675-5201
Cell: 765-437-1402
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of pbriscoe10
Sent: Monday, January 25, 2010 7:34 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Program Multiple MES Buttons
Thank you, this is exactly what I needed!
Now to look at the comments below for greying-out the buttons.
Thanks again for the help.
--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
"Dines, Tim" <tdines@...> wrote:
Behalf
Tim Dines
Information Technology
Steel Parts Manufacturing, Inc.
801 Berryman Pike
Tipton, IN 46072
Direct: 765-675-5201
Cell: 765-437-1402
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of pbriscoe10
Sent: Monday, January 25, 2010 7:34 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Program Multiple MES Buttons
Thank you, this is exactly what I needed!
Now to look at the comments below for greying-out the buttons.
Thanks again for the help.
--- In vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ,
"Dines, Tim" <tdines@...> wrote:
>CType(csm.GetNativeControlReference("c63b952e-e911-49c6-a26b-df34404201c
> You will need to have a separate button tracker statement for each of
> the buttons. Below is my code. It got a little messy in the cut and
> paste, but is readable. We are version 8.03.408B.
>
>
>
> '//**************************************************
>
> '// Custom VB.NET code for MESMenu
>
> '// Created: 11/23/2009 7:53:17 AM
>
> '//**************************************************
>
> 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
>
>
>
>
>
> 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 **
>
>
>
> Private WithEvents btnLaunchTracker As EpiButton
>
> Private WithEvents btnLaunchTracker1 As EpiButton
>
> Private WithEvents btnLaunchTracker2 As EpiButton
>
> Private WithEvents btnLaunchTracker6 As EpiButton
>
> Private WithEvents btnLaunchTracker7 As EpiButton
>
> Private WithEvents btnLaunchTracker8 As EpiButton
>
>
>
> 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
>
>
>
> '// End Custom Method Calls
>
> End Sub
>
>
>
>
>
>
>
> 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
>
>
>
> '// End Custom Code Disposal
>
> End Sub
>
>
>
> Private Sub MESMenu_Load(ByVal sender As object, ByVal args As
> EventArgs) Handles MESMenu.Load
>
> '//
>
> '// Add Event Handler Code
>
> '//
>
> btnLaunchTracker =
>
> 0"), EpiButton)CType(csm.GetNativeControlReference("b76487ac-0725-4359-bd48-27e309699c2
>
> btnLaunchTracker.Enabled = True
>
> btnLaunchTracker1 =
>
> c"), EpiButton)CType(csm.GetNativeControlReference("3091d13d-edd7-4773-9036-eea633900d6
>
> btnLaunchTracker1.Enabled = True
>
> btnLaunchTracker2 =
>
> a"), EpiButton)CType(csm.GetNativeControlReference("4dd9a508-41d1-4a00-90ed-3c64e906866
>
> btnLaunchTracker2.Enabled = True
>
> btnLaunchTracker6 =
>
> e"), EpiButton)CType(csm.GetNativeControlReference("b5a7494b-7c60-4135-ae1e-ff871e11fd9
>
> btnLaunchTracker6.Enabled = True
>
> btnLaunchTracker7 =
>
> 1"), EpiButton)CType(csm.GetNativeControlReference("89873dd8-0acb-42b4-95a5-7dca6254806
>
> btnLaunchTracker7.Enabled = True
>
> btnLaunchTracker8 =
>
> e"), EpiButton)[mailto:vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com> ] On
>
> btnLaunchTracker8.Enabled = True
>
> End Sub
>
>
>
> Private Sub btnLaunchTracker_Click(ByVal Sender As Object, ByVal
> args As EventArgs ) Handles btnLaunchTracker.Click
>
> ProcessCaller.LaunchForm(MESMenu,"MRRP3010")
>
> End Sub
>
>
>
> Private Sub btnLaunchTracker1_Click(ByVal Sender As
> Object, ByVal args As EventArgs ) Handles btnLaunchTracker1.Click
>
> ProcessCaller.LaunchForm(MESMenu, "UD1005") '<==== enter your
> menu Id here
>
> End Sub
>
>
>
>
>
>
>
> Private Sub btnEpiCustom1_Click(ByVal Sender As Object, ByVal Args
> As System.EventArgs) Handles btnEpiCustom1.Click
>
> '// ** Place Event Handling Code Here **
>
>
> Process.start("Outlook.exe")
>
>
>
> End Sub
>
>
>
> Private Sub btnEpiCustom2_Click(ByVal Sender As Object,
> ByVal Args As System.EventArgs) Handles btnEpiCustom2.Click
>
> '// ** Place Event Handling Code Here **
>
>
>
> Process.start("Excel.exe","g:\worksheet.xls")
>
> End Sub
>
>
>
> Private Sub btnEpiCustom3_Click(ByVal Sender As Object, ByVal Args
> As System.EventArgs) Handles btnEpiCustom3.Click
>
> '// ** Place Event Handling Code Here **
>
>
>
> Process.start("Excel.exe","g:\mfg\input-spm.xls")
>
> End Sub
>
>
>
>
>
> Private Sub btnLaunchTracker2_Click(ByVal Sender As
> Object, ByVal args As EventArgs ) Handles btnLaunchTracker2.Click
>
> ProcessCaller.LaunchForm(MESMenu, "JCRP4001")
> '<==== enter your menu Id here
>
> End Sub
>
>
>
>
>
> Private Sub btnEpiCustom6_Click(ByVal Sender As Object,
> ByVal Args As System.EventArgs) Handles btnEpiCustom6.Click
>
> Process.start("Excel.exe","g:\productionshipping.xls")
>
> End Sub
>
>
>
>
>
> Private Sub btnEpiCustom7_Click(ByVal Sender As Object,
> ByVal Args As System.EventArgs) Handles btnEpiCustom7.Click
>
> '// ** Place Event Handling Code Here **
>
>
> ProcessCaller.LaunchForm(MESMenu,
> "JCRP4008")
>
> End Sub
>
>
>
>
>
> Private Sub btnEpiCustom8_Click(ByVal Sender As Object,
> ByVal Args As System.EventArgs) Handles btnEpiCustom8.Click
>
> '// ** Place Event Handling Code Here **
>
>
> ProcessCaller.LaunchForm(MESMenu,
> "JCG3002")
>
> End Sub
>
>
>
>
>
> End Module
>
>
>
> Tim Dines
>
> Information Technology
>
> Steel Parts Manufacturing, Inc.
>
> 801 Berryman Pike
>
> Tipton, IN 46072
>
> Direct: 765-675-5201
>
> Cell: 765-437-1402
>
>
>
> From: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
Behalf
> Of pbriscoe10script
> Sent: Wednesday, January 20, 2010 7:44 PM
> To: vantage@yahoogroups.com <mailto:vantage%40yahoogroups.com>
> Subject: [Vantage] Program Multiple MES Buttons
>
>
>
>
>
> Hello,
>
> I have decided to use up some blank buttons in MES by using them to
> launch custom reports that we've made. I've followed the instructions
> for customizing MES to do this and have had success with one button.
> Now, I want to do this for other buttons too but am running into
> problems. I have copied and edited the script for one button frombuttons,
> AnswerBook and it worked fine, but now that I want to add more
> I'm not sure how to edit the script properly. The AnswerBook entryI've
> read has a blurb on what to do in order to add more buttons, but I'mcurrently
> having trouble understanding how to apply this to my script. Below are
> the instructions from AnswerBook and below that is the code I
> have. Any help is appreciated. Thank you.to
>
> -------AnswerBook Instructions (that I don't understand)--------
> "What if I want to customize more than one button?
>
> You would work with a different set of properties, BUT it would need
> be addressed in this script. You need one procedure, and one pairing,GUID
> per button. You would need one declaration of the procedure for the
> of the button, and another declaration of the procedure for the menuID.
> Also, each procedure needs a unique name, so if it were anothertracker,
> it might be btnLaunchTracker2."CType(csm.GetNativeControlReference("1e025c84-e7f0-45b8-b592-8e8007a72ce
>
> -------My Script (how would I change it to accommodate the other
> buttons?------
> '// Start of Custom report button
> Private WithEvents btnLaunchTracker As EpiButton
>
> Private Sub MESMenu_Load(ByVal sender As object, ByVal args As
> EventArgs) Handles MESMenu.Load
> '//
> '// Add Event Handler Code
> '//
>
> btnLaunchTracker =
>
> 7"), EpiButton)As
>
> btnLaunchTracker.Enabled = True
> End Sub
>
> Private Sub btnLaunchTracker_Click(ByVal Sender As Object, ByVal args
> EventArgs ) Handles btnLaunchTracker.Click[Non-text portions of this message have been removed]
> ProcessCaller.LaunchForm(MESMenu, "UD10004")
> End Sub
> '// End of Custom report button
>
>
>
>
>
> [Non-text portions of this message have been removed]
>