Epicor 905 MES Customization

As for the code syntax below:

 

MESForm(nt sure about the name).Controls.Remove(btnHelp)

 

I don't know how to use it. The compiler does not even recognize MESForm and etc.

 

Thanks for your time.

Does anyone know how to hide the Epicor buttons via MES. I went into the properties and set the Enabled to false and also the Visibility to false.  Also, I did add the reference via code and set the enabled and visibility to false. Everytime I logout and log back in and clicking on the saved customization the buttons keeps showing.

Those buttons get toggled by the UI , your best bet is to move it out of sight.. set the location to -100,-100



Jose C Gomez
Software Engineer



T: 904.469.1524 mobile


Quis custodiet ipsos custodes?


On Tue, Jan 28, 2014 at 2:02 PM, <cyrilz199@...> wrote:

 
<div>
  
  
  <p></p><p>Does anyone know how to hide the Epicor buttons via MES. I went into the properties and set the Enabled to false and also the Visibility to false.&nbsp; Also, I did add the reference via code and set the enabled and visibility to false. Everytime I logout and log back in and clicking on the saved customization the buttons keeps showing.<var></var></p>

</div>
 


<div style="color:#fff;min-height:0;"></div>

Hello Jose. I just did that and closed the MES application.

 

Logging back in and selecting thesame Customization, the MES Menu comes right back reseting everythin back to normal.

are you doing this to a built in menu? You are going to have to use the csm.GetNativeControlReference and do it at run time

EpiButton btn = (EpiButton)csm.GetNativeControlReference("YOUR_BUTTON_GUID");
btn.Location = new Point(-100,-100)

Please note this is from memory and may contain syntax error.s



Jose C Gomez

Software Engineer


T: 904.469.1524 mobile


Quis custodiet ipsos custodes?


On Tue, Jan 28, 2014 at 4:00 PM, <cyrilz199@...> wrote:

 
<div>
  
  
  <p></p><p>Hello Jose. I just did that and closed the MES application.</p><p>&nbsp;</p><p>Logging back in and selecting thesame Customization, the MES Menu comes right back reseting everythin back to normal.<var></var></p>

</div>
 


<div style="color:#fff;min-height:0;"></div>

Yes this is done on a built in menu (MES)

 

I added the code below:

this.btnHelp = (Epicor.Mfg.UI.FrameWork.EpiButton)csm.GetNativeControlReference("b0fa77a4-6c41-47af-81b0-839436338b37");

 

The code below was added in the InitializeCustomCode() and MESMenu_Load

 this.btnHelp.Location  = new Point(-100,-100);

 

I even traced it in VS 2010, Epicor was still over writing the X and Y location.

 

 

That's very strange... try MESForm(nt sure about the name).Controls.Remove(btnHelp)


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile


Quis custodiet ipsos custodes?


On Wed, Jan 29, 2014 at 10:40 AM, <cyrilz199@...> wrote:

 
<div>
  
  
  <p></p><p>Yes this is done on a built in menu (MES)</p><p>&nbsp;</p><p>I added the code below:</p><p>this.btnHelp = (Epicor.Mfg.UI.FrameWork.EpiButton)csm.GetNativeControlReference(&quot;b0fa77a4-6c41-47af-81b0-839436338b37&quot;);</p>

 

The code below was added in the InitializeCustomCode() and MESMenu_Load

 this.btnHelp.Location  = new Point(-100,-100);

 

I even traced it in VS 2010, Epicor was still over writing the X and Y location.

 

 

</div>
 


<div style="color:#fff;min-height:0;"></div>

Have you tried just putting -100, -100 in the Properties Location Tab for the button.  No coding needed.  This is what I do.

 

Then I clear my cache and open it up again.

 

Miguel A. Santillan

Compass Manufacturing Systems

510-661-6666  Office

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Wednesday, January 29, 2014 7:42 AM
To: Vantage
Subject: Re: [Vantage] RE: Epicor 905 MES Customization

 

 

That's very strange... try MESForm(nt sure about the name).Controls.Remove(btnHelp)



Jose C Gomez

Software Engineer

 


T: 904.469.1524 mobile


Quis custodiet ipsos custodes?

 

On Wed, Jan 29, 2014 at 10:40 AM, <cyrilz199@...> wrote:

 

Yes this is done on a built in menu (MES)

 

I added the code below:

this.btnHelp = (Epicor.Mfg.UI.FrameWork.EpiButton)csm.GetNativeControlReference("b0fa77a4-6c41-47af-81b0-839436338b37");

 

The code below was added in the InitializeCustomCode() and MESMenu_Load

 this.btnHelp.Location  = new Point(-100,-100);

 

I even traced it in VS 2010, Epicor was still over writing the X and Y location.

 

 

 

I could never get them out of the way. So I simply set the button text to nothing and remove the binding so that the button doesn't do anything at all. Now they have a few blank buttons but that doesn't bother them.

Tom Christie | Information Technology Manager | AGM Container Controls, Inc.<http://www.agmcontainer.com/> | tchristie@...<mailto:tchristie@...> | t: 520.881.2130 ext 2176

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Miguel Santillan
Sent: Wednesday, January 29, 2014 9:38 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] RE: Epicor 905 MES Customization


Have you tried just putting -100, -100 in the Properties Location Tab for the button. No coding needed. This is what I do.

Then I clear my cache and open it up again.

Miguel A. Santillan
Compass Manufacturing Systems
510-661-6666 Office

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Wednesday, January 29, 2014 7:42 AM
To: Vantage
Subject: Re: [Vantage] RE: Epicor 905 MES Customization


That's very strange... try MESForm(nt sure about the name).Controls.Remove(btnHelp)


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile
E: jose@...<mailto:jose@...>
http://www.josecgomez.com
[Image removed by sender.]<http://www.linkedin.com/in/josecgomez> [Image removed by sender.] <http://www.facebook.com/josegomez> [Image removed by sender.] <http://www.google.com/profiles/jose.gomez> [Image removed by sender.] <http://www.twitter.com/joc85> [Image removed by sender.] <http://www.josecgomez.com/professional-resume/> [Image removed by sender.] <http://www.josecgomez.com/feed/>

Quis custodiet ipsos custodes?

On Wed, Jan 29, 2014 at 10:40 AM, <cyrilz199@...<mailto:cyrilz199@...>> wrote:


Yes this is done on a built in menu (MES)



I added the code below:

this.btnHelp = (Epicor.Mfg.UI.FrameWork.EpiButton)csm.GetNativeControlReference("b0fa77a4-6c41-47af-81b0-839436338b37");



The code below was added in the InitializeCustomCode() and MESMenu_Load

this.btnHelp.Location = new Point(-100,-100);



I even traced it in VS 2010, Epicor was still over writing the X and Y location.








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

Jose this is what I did. The code below worked for the Help button. 

 

 private void MESMenu_Load(object sender, EventArgs args)
 {
  // Add Event Handler Code
          //this.btnHelp.PerformClick();
           this.btnHelp.Location  = new Point(-100,-100);
           this.btnHelp.Size = new Size(0,0);
           this.btnHelp.Visible = false;
 }

 

For the rest of the other buttons I could not hide, I placed them at the back of the buttons I am using by simply positoning the buttons thesame and sending the ones I don't use to the back ( right click and send to back).



---In vantage@yahoogroups.com, <jose@...> wrote:

That's very strange... try MESForm(nt sure about the name).Controls.Remove(btnHelp)


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile

Quis custodiet ipsos custodes?


On Wed, Jan 29, 2014 at 10:40 AM, <cyrilz199@...> wrote:
 

Yes this is done on a built in menu (MES)

 

I added the code below:

this.btnHelp = (Epicor.Mfg.UI.FrameWork.EpiButton)csm.GetNativeControlReference("b0fa77a4-6c41-47af-81b0-839436338b37");

 

The code below was added in the InitializeCustomCode() and MESMenu_Load

 this.btnHelp.Location  = new Point(-100,-100);

 

I even traced it in VS 2010, Epicor was still over writing the X and Y location.