Access Button on MES Screen Customization

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:

> **
>
>
> 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>
<mailto: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]
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@...>



[Non-text portions of this message have been removed]
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@...> wrote:

> **
>
>
> 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@...>
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]
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@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Monday, November 26, 2012 5:37 PM
To: vantage@yahoogroups.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@...> wrote:

> **
>
>
> 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@...>
>
> [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/.
(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
When are you running this piece of code?


*Jose C Gomez*
*Software Engineer*
*
*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Nov 27, 2012 at 10:08 AM, Austin Skrepak <askrepak@...>wrote:

> **
>
>
> 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@yahoogroups.com] On Behalf
> Of Jose Gomez
> Sent: Monday, November 26, 2012 5:37 PM
> To: vantage@yahoogroups.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@...> wrote:
>
> > **
>
> >
> >
> > 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@...>
> >
> > [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/.
> (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]
On form load and when the employee data view is updated. My custom buttons react correctly, but the native buttons will not.

Private Sub MESMenu_Load(ByVal sender As object, ByVal args As EventArgs) Handles MESMenu.Load
Private Sub oTrans_adapter_AfterAdapterMethod(ByVal sender As object, ByVal args As AfterAdapterMethodArgs) Handles oTrans_adapter.AfterAdapterMethod

Austin Skrepak
Data Specialist / Developer


-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Tuesday, November 27, 2012 9:12 AM
To: Vantage
Subject: Re: [Vantage] Access Button on MES Screen Customization

When are you running this piece of code?


*Jose C Gomez*
*Software Engineer*
*
*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Nov 27, 2012 at 10:08 AM, Austin Skrepak <askrepak@...>wrote:

> **
>
>
> 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-f1ea6dbe1
> eda"),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@yahoogroups.com] On
> Behalf Of Jose Gomez
> Sent: Monday, November 26, 2012 5:37 PM
> To: vantage@yahoogroups.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@...> wrote:
>
> > **
>
> >
> >
> > 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@...>
> >
> > [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/.
> (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]



------------------------------------

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/.
(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
So you want to make the button invisible?


*Jose C Gomez*
*Software Engineer*
*
*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Nov 27, 2012 at 10:15 AM, Austin Skrepak <askrepak@...>wrote:

> **
>
>
> On form load and when the employee data view is updated. My custom buttons
> react correctly, but the native buttons will not.
>
> Private Sub MESMenu_Load(ByVal sender As object, ByVal args As EventArgs)
> Handles MESMenu.Load
> Private Sub oTrans_adapter_AfterAdapterMethod(ByVal sender As object,
> ByVal args As AfterAdapterMethodArgs) Handles
> oTrans_adapter.AfterAdapterMethod
>
>
> Austin Skrepak
> Data Specialist / Developer
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Jose Gomez
> Sent: Tuesday, November 27, 2012 9:12 AM
> To: Vantage
> Subject: Re: [Vantage] Access Button on MES Screen Customization
>
> When are you running this piece of code?
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez
> >
> <http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Tue, Nov 27, 2012 at 10:08 AM, Austin Skrepak <askrepak@...
> >wrote:
>
> > **
>
> >
> >
> > 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-f1ea6dbe1
> > eda"),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@yahoogroups.com] On
> > Behalf Of Jose Gomez
> > Sent: Monday, November 26, 2012 5:37 PM
> > To: vantage@yahoogroups.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@...>
> wrote:
> >
> > > **
> >
> > >
> > >
> > > 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@...>
> > >
> > > [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/.
> > (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]
>
> ------------------------------------
>
> 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/.
> (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]
Yes, based on the plant. We have a different icon for each plant with a default auto-sign on user that is logged in to the correct plant. Then, in my customization I want to be able to show and hide certain buttons based on the session plant.


Austin Skrepak
Data Specialist / Developer
askrepak@...

-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Jose Gomez
Sent: Tuesday, November 27, 2012 9:24 AM
To: Vantage
Subject: Re: [Vantage] Access Button on MES Screen Customization

So you want to make the button invisible?


*Jose C Gomez*
*Software Engineer*
*
*
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Tue, Nov 27, 2012 at 10:15 AM, Austin Skrepak <askrepak@...>wrote:

> **
>
>
> On form load and when the employee data view is updated. My custom
> buttons react correctly, but the native buttons will not.
>
> Private Sub MESMenu_Load(ByVal sender As object, ByVal args As
> EventArgs) Handles MESMenu.Load Private Sub
> oTrans_adapter_AfterAdapterMethod(ByVal sender As object, ByVal args
> As AfterAdapterMethodArgs) Handles oTrans_adapter.AfterAdapterMethod
>
>
> Austin Skrepak
> Data Specialist / Developer
>
> -----Original Message-----
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On
> Behalf Of Jose Gomez
> Sent: Tuesday, November 27, 2012 9:12 AM
> To: Vantage
> Subject: Re: [Vantage] Access Button on MES Screen Customization
>
> When are you running this piece of code?
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *
> *T: 904.469.1524 mobile
> E: jose@...
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez>
> <http://www.facebook.com/josegomez
> >
> <http://www.google.com/profiles/jose.gomez>
> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Tue, Nov 27, 2012 at 10:08 AM, Austin Skrepak
> <askrepak@...
> >wrote:
>
> > **
>
> >
> >
> > 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-f1ea6db
> > e1
> > eda"),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@yahoogroups.com] On
> > Behalf Of Jose Gomez
> > Sent: Monday, November 26, 2012 5:37 PM
> > To: vantage@yahoogroups.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@...>
> wrote:
> >
> > > **
> >
> > >
> > >
> > > 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@...>
> > >
> > > [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/.
> > (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]
>
> ------------------------------------
>
> 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/.
> (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]



------------------------------------

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/.
(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
(8.03.410)

[Description: Description: logo]
Austin Skrepak
Data Specialist / Developer
[PHONE] 712.324.4854 Ext: 2019
[EMAIL] askrepak@...<mailto:askrepak@...>

"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 Austin Skrepak
Sent: Tuesday, November 27, 2012 9:32 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Access Button on MES Screen Customization



Yes, based on the plant. We have a different icon for each plant with a default auto-sign on user that is logged in to the correct plant. Then, in my customization I want to be able to show and hide certain buttons based on the session plant.

Austin Skrepak
Data Specialist / Developer
askrepak@...<mailto:askrepak%40rosenboom.com>

-----Original Message-----
From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On Behalf Of Jose Gomez
Sent: Tuesday, November 27, 2012 9:24 AM
To: Vantage
Subject: Re: [Vantage] Access Button on MES Screen Customization

So you want to make the button invisible?

*Jose C Gomez*
*Software Engineer*
*
*
*
*T: 904.469.1524 mobile
E: jose@...<mailto:jose%40josecgomez.com>
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*

On Tue, Nov 27, 2012 at 10:15 AM, Austin Skrepak <askrepak@...<mailto:askrepak%40rosenboom.com>>wrote:

> **
>
>
> On form load and when the employee data view is updated. My custom
> buttons react correctly, but the native buttons will not.
>
> Private Sub MESMenu_Load(ByVal sender As object, ByVal args As
> EventArgs) Handles MESMenu.Load Private Sub
> oTrans_adapter_AfterAdapterMethod(ByVal sender As object, ByVal args
> As AfterAdapterMethodArgs) Handles oTrans_adapter.AfterAdapterMethod
>
>
> Austin Skrepak
> Data Specialist / Developer
>
> -----Original Message-----
> From: vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com> [mailto:vantage@yahoogroups.com<mailto:vantage%40yahoogroups.com>] On
> Behalf Of Jose Gomez
> Sent: Tuesday, November 27, 2012 9:12 AM
> To: Vantage
> Subject: Re: [Vantage] Access Button on MES Screen Customization
>
> When are you running this piece of code?
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
> *
> *T: 904.469.1524 mobile
> E: jose@...<mailto:jose%40josecgomez.com>
> http://www.josecgomez.com
> <http://www.linkedin.com/in/josecgomez>
> <http://www.facebook.com/josegomez
> >
> <http://www.google.com/profiles/jose.gomez>
> <http://www.twitter.com/joc85>
> <http://www.josecgomez.com/professional-resume/>
> <http://www.josecgomez.com/feed/>
> <http://www.usdoingstuff.com>
>
> *Quis custodiet ipsos custodes?*
>
>
> On Tue, Nov 27, 2012 at 10:08 AM, Austin Skrepak
> <askrepak@...<mailto:askrepak%40rosenboom.com>
> >wrote:
>
> > **
>
> >
> >
> > 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-f1ea6db
> > e1
> > eda"),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@yahoogroups.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>
> > 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>>
> wrote:
> >
> > > **
> >
> > >
> > >
> > > 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@...<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/>
> > (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]
>
> ------------------------------------
>
> 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/>
> (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]

------------------------------------

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/>
(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]
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@yahoogroups.com] On Behalf Of
Austin Skrepak
Sent: Tuesday, November 27, 2012 8:08 AM
To: vantage@yahoogroups.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@yahoogroups.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>
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> > wrote:

> **
>
>
> 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@... <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/>
(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]