Dashboard to MES?

I have a dashboard i need to push out to someone who is currently using an MES RDP. His computer is not on our domain, but onthe internet and so the other screen can’t connect to the server.

So either I need a way to connect to the server or push the dashboard to the MES. Which one would be best?

I’m not sure about the domain in or out part of it…

But you can add buttons in an MES customization to call dashboards.

make a button and add a click handler, then use this code to call the dashboard.

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

the name comes from your menu maintenance. So the dashboard has to be deployed somewhere or added to “Processes” part of menu maintenance.

image

1 Like

Ok, that looks easy enough. I have not ever needed to customize the MES, so how do I get into it to do so?

Follow the help file. It walks you through it.

They also have a whole section on MES dashboards

3 Likes

Thank you! This has been a lot of help. One last question. It says to Paste the Code into the Script Editor. This is the part I am a little fuzzy on. Where do I need to paste it? Or do I just paste it over what is already there?

Before I go too much farther (I was side tracked by the customization part I forgot to look at the beginning.), I cannot find the Sub Process the article is talking about. SI this an old article and this is no longer used in E10?

So I will admit, I did not read the help file before I posted it, but I figured you didn’t either :wink:

It is a little vague. They are leaving out a couple key things, and doing a copy pasted instead of showing how you would do it normally. (Kind of like a passenger in your car saying “turn left here” instead of “turn left on 10th street”. They both work, but if they aren’t in the car the next time, the added detail helps.

First you need to make the button with the tools. in the help it says “select an open button”, like there would already be one there??? You will have to find a place to put the button. For us, we added a tab (see the sheet editor wizard in customization) for a place to put these buttons since most of the real estate was already taken up. Use the tool box to make a button and set the text and properties.

Then you need to use the wizard to make a click event. The click event wizard will make this for you on the script editor. (The help just has you copy it and set the GUID’s, but it’s better/easier to just let the wizard to it for you if you can. And in this case you can.)

	private void MvWipButton_Click(object sender, System.EventArgs args)
	{
		// ** Place Event Handling Code Here **
	}

Then you add this line.

ProcessCaller.LaunchForm(oTrans, "MvWip");

so it looks like this.

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

that should be it.

After looking at the help code, just don’t use that code. The wizard will set things up better for you, and it using that process will help you in other areas too…

You just need to do that to get a menu ID. If you already have one from the full client, you don’t need to do that. If you don’t have that dashboard in the full client, and you don’t want that menu item, then make a menu item in the Processes folder.

Edit:

More reference.

This is where the tool box is to make a button.
image

Here is where you set up the event handler for the button you make.

This is the tab where you would make new tabs. (do this first if you’re going to, as it’s really hard to move buttons from tab to tab)

4 Likes

Gotcha! Yeah, my help files don’t always work. I need to put a ticket in, but I get busy with more important things. Tried all the things I know to fix it and nothing has helped long term. With us going to 10.2.300 soon, I may just wait it out. Although, with this being a customization, I was thinking it would not be in the help files. Normally I just search the EpicWeb site for info. Anyway, I will give this a shot and see how it works. I have all the steps done then except for the code part.

Epic Web is probably the best place to go. The tools user guide is a lot better than help for teaching you how to do things. Start exploring the customization stuff and you will be able to see the pieces that we talked about here. Epic Web doesn’t rely on the flaky help system either. (we often have problems with it here).

https://epicweb.epicor.com/Education/OnlineHelpFeatureSummary/Epicor%20ERP%2010/10.1.600/Help/enu/Standard/Custom_Advanced/ScriptEditor.html

1 Like

If you use the wizards, you only have to type one line of code!

1 Like

In the Properties of the EpiButton, besides Entering Text, is ther eanythign else that needs to be done? I ask because in the Event Wizard, I selected the EpiButton but no custom controls came up. So something is missing.

You have to save your customization before it will show up. Little quirk.

1 Like

I would change the name of the button too if I were you because it will be easier later. I don’t think you can change the name once that control is used somewhere else

I have it named similar to the dashboard name. I saved it and nothing came up, so I will play with it a bit until it does.

Try closing and re-loading the customization. I think I remember having to do that in 10.1.

This is crazy. I closed it out, opened it up, slected the customization, and still nothing populated. I think it doesn’t like me! :sweat_smile: I am still on 10.1.400.37.:thinking:

Do I need something for the EpiBinding? Reaching for straws here.

Screen shots please. I would like to see the button properties.

I deleted and started over to see if that helped. Anyway, I still need to enter the Text.

Where did that binding come from? I would remove that.

Just automatically came with it. I will delete and try that.