MES / Start Setup Activity

That's pretty slick. (I'll be 'borrowing' that code some day I'm sure.)
Thx for sharing it.
Rob

--- On Fri, 4/17/09, Bartosz Niemczewski <bartoszniemczewski@...> wrote:

From: Bartosz Niemczewski <bartoszniemczewski@...>
Subject: Re: [Vantage] MES / Start Setup Activity
To: vantage@yahoogroups.com
Date: Friday, April 17, 2009, 2:43 PM








That line of code solved my problem,

edvact.dataView( 0)("StartActivit ySetup")= false

Before I tried set false for that line:

edvact.dataView( edvact.Row) ("StartActivityS etup") = false

what was wrong.

Thnaks.

Â

____________ _________ _________ __
From: Bartosz Niemczewski <bartoszniemczewski@ yahoo.com>
To: vantage@yahoogroups .com
Sent: Friday, April 17, 2009 11:32:17 AM
Subject: Re: [Vantage] MES / Start Setup Activity

I am trying to disable "Start Setup Activity" button for emplyee using that code:
(It is set for EmpBasic_AfterRowCh ange)

...

Dim edvact As EpiDataView = CType(oTrans. EpiDataViews( "MESControl" ), EpiDataView)
Dim act As Boolean = edvact.dataView( edvact.Row) ("StartActivityS etup")

...

After that code and condition I am trying to set Enabled to false but it is not working.
Is there any way to do that?

When I put message box it is going to show up in right moment but instead of showing message box I'd like to lock "Start Setup Activity" button.

Thanks.

____________ _________ _________ __
From: Robert Brown <robertb_versa@ yahoo.com>
To: vantage@yahoogroups .com
Sent: Thursday, April 16, 2009 5:28:59 PM
Subject: Re: [Vantage] MES / Start Setup Activity

If they have unique login/usernames (not just employee IDs), you can assign ONLY them a security role to execute the underlying business object methods for the MES app.

If that is the case, it might just be easier to give them their own common MES menu w/ Start Setup (and everyone else no longer has access).

If they don't have unique login/usernames, I think you'll have to resort to code (check the Employee ID perhaps against an employee table ud checkbox field to indicate/assess if they can execute the Set up app).

That gets ugly over time to maintain.

Rob

--- On Thu, 4/16/09, Bartosz Niemczewski <bartoszniemczewski @ yahoo.com> wrote:

From: Bartosz Niemczewski <bartoszniemczewski @ yahoo.com>
Subject: [Vantage] MES / Start Setup Activity
To: "Vantage Group" <vantage@yahoogroup s .com>
Date: Thursday, April 16, 2009, 6:07 PM

I am looking the way to lock Start Setup Activity (button, option)Â for (e.g)Â 10 shop employees.
Is any easy way to do that without using custom code?

Thanks.

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

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

[Non-text portions of this message have been removed]
I am looking the way to lock Start Setup Activity (button, option)Â for (e.g)Â 10 shop employees.
Is any easy way to do that without using custom code?

Thanks.




[Non-text portions of this message have been removed]
If they have unique login/usernames (not just employee IDs), you can assign ONLY them a security role to execute the underlying business object methods for the MES app.

If that is the case, it might just be easier to give them their own common MES menu w/ Start Setup (and everyone else no longer has access).

If they don't have unique login/usernames, I think you'll have to resort to code (check the Employee ID perhaps against an employee table ud checkbox field to indicate/assess if they can execute the Set up app).

That gets ugly over time to maintain.

Rob



--- On Thu, 4/16/09, Bartosz Niemczewski <bartoszniemczewski@...> wrote:

From: Bartosz Niemczewski <bartoszniemczewski@...>
Subject: [Vantage] MES / Start Setup Activity
To: "Vantage Group" <vantage@yahoogroups.com>
Date: Thursday, April 16, 2009, 6:07 PM










I am looking the way to lock Start Setup Activity (button, option)Â for (e.g)Â 10 shop employees.
Is any easy way to do that without using custom code?

Thanks.

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




________________________________
From: Robert Brown <robertb_versa@...>
To: vantage@yahoogroups.com
Sent: Thursday, April 16, 2009 5:28:59 PM
Subject: Re: [Vantage] MES / Start Setup Activity






If they have unique login/usernames (not just employee IDs), you can assign ONLY them a security role to execute the underlying business object methods for the MES app.

If that is the case, it might just be easier to give them their own common MES menu w/ Start Setup (and everyone else no longer has access).

If they don't have unique login/usernames, I think you'll have to resort to code (check the Employee ID perhaps against an employee table ud checkbox field to indicate/assess if they can execute the Set up app).

That gets ugly over time to maintain.

Rob

--- On Thu, 4/16/09, Bartosz Niemczewski <bartoszniemczewski@ yahoo.com> wrote:

From: Bartosz Niemczewski <bartoszniemczewski@ yahoo.com>
Subject: [Vantage] MES / Start Setup Activity
To: "Vantage Group" <vantage@yahoogroups .com>
Date: Thursday, April 16, 2009, 6:07 PM

I am looking the way to lock Start Setup Activity (button, option)Â for (e.g)Â 10 shop employees.
Is any easy way to do that without using custom code?

Thanks.

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







[Non-text portions of this message have been removed]
I am trying to disable "Start Setup Activity" button for emplyee using that code:
(It is set for EmpBasic_AfterRowChange)

...

Dim edvact As EpiDataView = CType(oTrans.EpiDataViews("MESControl"), EpiDataView)
Dim act As Boolean = edvact.dataView(edvact.Row)("StartActivitySetup")

...

After that code and condition I am trying to set Enabled to false but it is not working.
Is there any way to do that?

When I put message box it is going to show up in right moment but instead of showing message box I'd like to lock "Start Setup Activity" button.

Thanks.



________________________________
From: Robert Brown <robertb_versa@...>
To: vantage@yahoogroups.com
Sent: Thursday, April 16, 2009 5:28:59 PM
Subject: Re: [Vantage] MES / Start Setup Activity






If they have unique login/usernames (not just employee IDs), you can assign ONLY them a security role to execute the underlying business object methods for the MES app.

If that is the case, it might just be easier to give them their own common MES menu w/ Start Setup (and everyone else no longer has access).

If they don't have unique login/usernames, I think you'll have to resort to code (check the Employee ID perhaps against an employee table ud checkbox field to indicate/assess if they can execute the Set up app).

That gets ugly over time to maintain.

Rob

--- On Thu, 4/16/09, Bartosz Niemczewski <bartoszniemczewski@ yahoo.com> wrote:

From: Bartosz Niemczewski <bartoszniemczewski@ yahoo.com>
Subject: [Vantage] MES / Start Setup Activity
To: "Vantage Group" <vantage@yahoogroups .com>
Date: Thursday, April 16, 2009, 6:07 PM

I am looking the way to lock Start Setup Activity (button, option)Â for (e.g)Â 10 shop employees.
Is any easy way to do that without using custom code?

Thanks.

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







[Non-text portions of this message have been removed]
That line of code solved my problem,

edvact.dataView(0)("StartActivitySetup")= false



Before I tried set false for that line:

edvact.dataView( edvact.Row) ("StartActivityS etup") = false

what was wrong.

Thnaks.



Â



________________________________
From: Bartosz Niemczewski <bartoszniemczewski@...>
To: vantage@yahoogroups.com
Sent: Friday, April 17, 2009 11:32:17 AM
Subject: Re: [Vantage] MES / Start Setup Activity







I am trying to disable "Start Setup Activity" button for emplyee using that code:
(It is set for EmpBasic_AfterRowCh ange)

...

Dim edvact As EpiDataView = CType(oTrans. EpiDataViews( "MESControl" ), EpiDataView)
Dim act As Boolean = edvact.dataView( edvact.Row) ("StartActivityS etup")

...

After that code and condition I am trying to set Enabled to false but it is not working.
Is there any way to do that?

When I put message box it is going to show up in right moment but instead of showing message box I'd like to lock "Start Setup Activity" button.

Thanks.

____________ _________ _________ __
From: Robert Brown <robertb_versa@ yahoo.com>
To: vantage@yahoogroups .com
Sent: Thursday, April 16, 2009 5:28:59 PM
Subject: Re: [Vantage] MES / Start Setup Activity

If they have unique login/usernames (not just employee IDs), you can assign ONLY them a security role to execute the underlying business object methods for the MES app.

If that is the case, it might just be easier to give them their own common MES menu w/ Start Setup (and everyone else no longer has access).

If they don't have unique login/usernames, I think you'll have to resort to code (check the Employee ID perhaps against an employee table ud checkbox field to indicate/assess if they can execute the Set up app).

That gets ugly over time to maintain.

Rob

--- On Thu, 4/16/09, Bartosz Niemczewski <bartoszniemczewski @ yahoo.com> wrote:

From: Bartosz Niemczewski <bartoszniemczewski @ yahoo.com>
Subject: [Vantage] MES / Start Setup Activity
To: "Vantage Group" <vantage@yahoogroup s .com>
Date: Thursday, April 16, 2009, 6:07 PM

I am looking the way to lock Start Setup Activity (button, option)Â for (e.g)Â 10 shop employees.
Is any easy way to do that without using custom code?

Thanks.

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

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







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