How to create a new screen for the MES for EpiBinding

Hi there,

I was wondering if it’s possible to create a new screen for the MES. I’m trying to customize the MES by adding several buttons and for some reason, when I go to bind (through EpiBinding) them to a new screen, I can’t find a relevant screen.

For example, if I’m trying to create an End All button, I’d have to either bind it to the End Activities screen or find the relevant screen to bind it to that would end all open jobs. And if I was to bind it to the End Activities screen, I’d still need to bind it to something to end all open jobs.

Is it possible to create a new screen to bind new buttons to?

Have a look at “Process Calling”. There are a couple threads on this forum related to modifying MES screens. Maybe try searching MES customization

Yes this is possible.

You can add another tab as well to put all of your customer buttons. Like Chris said you need to use the processCaller.LaunchForm to call them. You will need to know the menu id when using the calls. ProcessCaller.LaunchForm(MESMenu, “PMEDBR6”); PMEDBR6 = MenuID

Here is a some sample code to help.

	public void InitializeCustomCode()
	{
		// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
		// Begin Wizard Added Variable Initialization

		// End Wizard Added Variable Initialization

		// Begin Wizard Added Custom Method Calls

		this.btnETKBOM.Click += new System.EventHandler(this.btnETKBOM_Click);


		// End Wizard Added Custom Method Calls

	}

	public void DestroyCustomCode()
	{
		// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
		// Begin Wizard Added Object Disposal

		this.btnETKBOM.Click -= new System.EventHandler(this.btnETKBOM_Click);
		// End Wizard Added Object Disposal

		// Begin Custom Code Disposal

		// End Custom Code Disposal
	}

private void btnETKBOM_Click(object sender, System.EventArgs args)
{
	// ** Place Event Handling Code Here **
	ProcessCaller.LaunchForm(MESMenu, "PMEDBR6");
}
2 Likes

Hello Edward,

I would recommend you to create a new MES customization and in this new customization you can add a custom button to open a new window, and since you are looking for new functionality, I think that the best path to follow would be an UD Customization, so in the custom button you can call it with the ProcessCaller.LaunchForm and if you want to send more than one parameter you can use the EnvironmentVariables to pass them trough…

and to assign this new MES customization, is a little bit tricky since you cannot find the MES screen in the Menu Maintenance of the Epicor client, you have to set in the Environment SysConfig file under the Config Folder in your Epicor Default windows path.

If you want further help with this you can contact me at my email.

Daniel Montemayor
E: dmontemayor@mayantechs.com
Software Developer.

Thank you all for the help, it’s been greatly appreciated