I ended up hiding the native button, creating my own, and calling the same menu with it. I just enable/disable based on if the user has EmpBasic.MaterialHandler = TRUE. The goal was to hide the button entirely for a certain plant and was achieved with a custom button.
Austin Skrepak
Data Specialist / Developer
"Without ambition one starts nothing. Without work one finishes nothing. The prize will not be sent to you. You have to win it."
Ralph Waldo Emerson
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Cathy
Sent: Tuesday, November 27, 2012 11:34 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Access Button on MES Screen Customization
Question - why do you want to disable the Adjust Inventory button?
Have you tried limiting the security to Inventory Adjustments? It is a
combination of the Employee setup plus the Security Group that has access to
Inventory Adjustments.
From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of
Austin Skrepak
Sent: Tuesday, November 27, 2012 8:08 AM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Access Button on MES Screen Customization
Okay, so I've read a bunch of threads on this. My code compiles fine but
doesn't do anything.
Dim btnAdjustInventory as EpiButton =
CType(csm.GetNativeControlReference("2c928ff1-b594-408a-9ee6-f1ea6dbe1eda"),
epibutton)
btnAdjustInventory.visible = false
Austin Skrepak
Data Specialist / Developer
"Without ambition one starts nothing. Without work one finishes nothing. The
prize will not be sent to you. You have to win it."
Ralph Waldo Emerson
-----Original Message-----
From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> ] On
Behalf Of Jose Gomez
Sent: Monday, November 26, 2012 5:37 PM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Access Button on MES Screen Customization
Look around the group for csm.getnativecontrolreference() you'll have to
pass it the buttons epi guid which you can find on the properties panel.
Something like
Epibutton b = csm.getnativecontrolreference("argh-third-66884-898655-9976)
B.enabled = false
On Nov 26, 2012 5:59 PM, "Austin Skrepak" <askrepak@...<mailto:askrepak%40rosenboom.com>
<mailto:askrepak%40rosenboom.com> > wrote:
------------------------------------
Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.<http://groups.yahoo.com/group/vantage/files/>
<http://groups.yahoo.com/group/vantage/files/>
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
Austin Skrepak
Data Specialist / Developer
"Without ambition one starts nothing. Without work one finishes nothing. The prize will not be sent to you. You have to win it."
Ralph Waldo Emerson
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Cathy
Sent: Tuesday, November 27, 2012 11:34 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Access Button on MES Screen Customization
Question - why do you want to disable the Adjust Inventory button?
Have you tried limiting the security to Inventory Adjustments? It is a
combination of the Employee setup plus the Security Group that has access to
Inventory Adjustments.
From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of
Austin Skrepak
Sent: Tuesday, November 27, 2012 8:08 AM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>
Subject: RE: [Vantage] Access Button on MES Screen Customization
Okay, so I've read a bunch of threads on this. My code compiles fine but
doesn't do anything.
Dim btnAdjustInventory as EpiButton =
CType(csm.GetNativeControlReference("2c928ff1-b594-408a-9ee6-f1ea6dbe1eda"),
epibutton)
btnAdjustInventory.visible = false
Austin Skrepak
Data Specialist / Developer
"Without ambition one starts nothing. Without work one finishes nothing. The
prize will not be sent to you. You have to win it."
Ralph Waldo Emerson
-----Original Message-----
From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
[mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com> ] On
Behalf Of Jose Gomez
Sent: Monday, November 26, 2012 5:37 PM
To: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> <mailto:vantage%40yahoogroups.com>
Subject: Re: [Vantage] Access Button on MES Screen Customization
Look around the group for csm.getnativecontrolreference() you'll have to
pass it the buttons epi guid which you can find on the properties panel.
Something like
Epibutton b = csm.getnativecontrolreference("argh-third-66884-898655-9976)
B.enabled = false
On Nov 26, 2012 5:59 PM, "Austin Skrepak" <askrepak@...<mailto:askrepak%40rosenboom.com>
<mailto:askrepak%40rosenboom.com> > wrote:
> **<mailto:askrepak@...<mailto:askrepak%40rosenboom.com> <mailto:askrepak%40rosenboom.com> >
>
>
> Sorry if this is an easy one, but I'm trying to use code to disable
> btnAdjustInventory and it is telling me that the name is not declared.
> What am I missing?
>
> Thank you,
>
> Austin Skrepak
> Data Specialist / Developer
> askrepak@...<mailto:askrepak%40rosenboom.com> <mailto:askrepak%40rosenboom.com>
>[Non-text portions of this message have been removed]
> [Non-text portions of this message have been removed]
>
>
>
------------------------------------
Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.<http://groups.yahoo.com/group/vantage/files/>
<http://groups.yahoo.com/group/vantage/files/>
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/linksYahoo! Groups Links
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]