Is it possible to add a dashboard to MES

I have followed the steps I know to add a dashboard to MES. I am not able to get the customization to display.
I opened MES is customization mode and added a button to reference to the menuID for the dashboard. But I am not sure how to open MES to default to the customization.

Did you set the MES custom menu ID in the sysconfig file?

Thanks Lena. Forgot that step. Phase 2 of this is to get it to display on the EWA version. Do you have any tips for that?

No tips, it is pretty straightforward. Just generate the web form in customization mode.

Hi Lena,

You could add the dashboard in menu maintenance under process.

Then create a button on the MES and create a button click event and call the process.

// **************************************************
// Custom code for MESMenu
// Created: 18/10/2016 17:00:28
// **************************************************
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using Erp.Adapters;
using Ice.Lib;
using Ice.Adapters;
using Ice.Lib.Customization;
using Ice.Lib.ExtendedProps;
using Ice.Lib.Framework;
using Ice.Lib.Searches;
using Ice.UI.FormFunctions;

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

	private EpiDataView edvEmpBasic;
	// End Wizard Added Module Level Variables **

	// Add Custom Module Level Variables Here **
		
	
	public void InitializeCustomCode()
	{
		// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
		// Begin Wizard Added Variable Initialization

		this.edvEmpBasic = ((EpiDataView)(this.oTrans.EpiDataViews["EmpBasic"]));
		this.edvEmpBasic.EpiViewNotification += new EpiViewNotification(this.edvEmpBasic_EpiViewNotification);
		// End Wizard Added Variable Initialization

		// Begin Wizard Added Custom Method Calls

		this.btnFOInspec.Click += new System.EventHandler(this.btnFOInspec_Click);
		
	// End Wizard Added Custom Method Calls
		BtnMtlReview = (EpiButton)csm.GetNativeControlReference("fe187107-b719-4a3d-96a8-5f8505ea65ae");
		BtnMtlReview.Click += new System.EventHandler(this.BtnMtlReview_Click);

	}

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

		this.edvEmpBasic.EpiViewNotification -= new EpiViewNotification(this.edvEmpBasic_EpiViewNotification);
		this.edvEmpBasic = null;
		this.btnFOInspec.Click -= new System.EventHandler(this.btnFOInspec_Click);
		
		// End Wizard Added Object Disposal

		// Begin Custom Code Disposal

		// End Custom Code Disposal
		BtnMtlReview.Click -= new System.EventHandler(this.BtnMtlReview_Click);
		this.btnJOBTRACKSO.Click -= new System.EventHandler(this.btnJOBTRACKSO_Click);

	
		private void MESMenu_Load(object sender, EventArgs args)
	{
		// Add Event Handler Code
		//BtnMtlReview = (EpiButton)csm.GetNativeControlReference("fe187107-b719-4a3d-96a8-5f8505ea65ae");
	
	}

	private void edvEmpBasic_EpiViewNotification(EpiDataView view, EpiNotifyArgs args)
	{
		// ** Argument Properties and Uses **
		// view.dataView[args.Row]["FieldName"]
		// args.Row, args.Column, args.Sender, args.NotifyType
		// NotifyType.Initialize, NotifyType.AddRow, NotifyType.DeleteRow, NotifyType.InitLastView, NotifyType.InitAndResetTreeNodes
		if ((args.NotifyType == EpiTransaction.NotifyType.Initialize))
		{
			if ((args.Row > -1))
			{
				
				btnFOInspec.Enabled = true;
				
			}
			else
			{
				btnFOInspec.Enabled = false;
			}
				
		}
		
	}

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

This is exactly what I did. I get the customization in standard MES. However, we are using the kinetic interface with 10.2.400.4 and EWA interface. I do not believe it is possible to customize these.

Does anyone know if it is possible to customize kinetic versions?

Not yet Marykay.

Thank you Mark.

Are we still unable to customize kinetic MES? We are testing 10.2.500.7 currently with hopes of upgrading to it next month (currently on 10.2.300.12).

Correct. We might see something in 10.2.600 which usually arrives in March/April time frame in time for Insights. This is the usual cadence anyway. Twice a year.

1 Like