[SPAM] Disabling a Field Based on User Group Memb

Great suggestion. That worked. But I'd still like to know how to do this on the client side.

-bws



Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix / Picometrix
    bspolarich@... ~ 734-864-5618 ~ www.advancedphotonix.com


-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Tony Hughes
Sent: Tuesday, April 27, 2010 4:00 PM
To: vantage@yahoogroups.com
Subject: [SPAM] Re: [Vantage] Disabling a Field Based on User Group Membership
Importance: Low

How about using BPM for RMADisp.Update to see if Date04 changed, and if so, raise error unless you are in security group XYZ?





________________________________
From: Brian W. Spolarich <bspolarich@...>
To: vantage@yahoogroups.com
Sent: Tue, April 27, 2010 2:46:47 PM
Subject: RE: [Vantage] Disabling a Field Based on User Group Membership


Thanks Tony, but if I recall correctly, Vantage field-level security doesn't let me set the field (RMAHead.Date04) to be read-only vs. read-write. I don't want to hide the field from folks, just make it so that only authorized users can change it.

Basically I'm trying to setup an approval process. We don't want to use Vantage's built-in RMA disposition process because of accounting issues (it puts customer-owned parts on our books which we don't want), so we're rolling our own.

So what I'm looking to do is have field on a custom tab on the RMA form pointing at RMAHead.Date04 that only users in the "GM" group can modify, and everyone else can view.

-brian



Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix / Picometrix
bspolarich@advanced photonix. com ~ 734-864-5618 ~ www.advancedphotoni x.com


-----Original Message-----
From: vantage@yahoogroups .com [mailto:vantage@yahoogroups .com] On Behalf Of Tony Hughes
Sent: Tuesday, April 27, 2010 3:33 PM
To: vantage@yahoogroups .com
Subject: Re: [Vantage] Disabling a Field Based on User Group Membership

Brian,
Not 100% clear from what you're wanting to do, but if the field ties right in to a table field there's a very easy way:
Go to Field Security in Security maintenance, open the table, select the field, and click 'New'.
Now you can set permissions to a particular group.
Also, if you want to remove the setting, it feels wrong, but highlight the field on left side and Delete it. All you're doing is deleting that there's security on it, putting it back to Everyone can see it.





____________ _________ _________ __
From: Brian W. Spolarich <bspolarich@advanced photonix. com>
To: vantage@yahoogroups .com
Sent: Tue, April 27, 2010 2:10:13 PM
Subject: [Vantage] Disabling a Field Based on User Group Membership


I want to disable a field on a customization on a form (on a new tab,
if that matters) unless the user is a member of a particular Vantage
security group.

I'm assuming that what I should do is set the field's Enabled property
to false, and then add some code to the form's OnLoad event to set the
Enabled property of the control to true if the user is in the "GM" group
in this case.

Does anyone have a detailed enough example that I can hack into
usability?

-bws




Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix /
Picometrix

bspolarich@advanced photonix. com
<mailto:bspolarich@ advanced photonix. com> ~ 734-864-5618 ~
www.advancedphotoni x.com <http://www.advanced photonix. 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/.
(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
I want to disable a field on a customization on a form (on a new tab,
if that matters) unless the user is a member of a particular Vantage
security group.



I'm assuming that what I should do is set the field's Enabled property
to false, and then add some code to the form's OnLoad event to set the
Enabled property of the control to true if the user is in the "GM" group
in this case.



Does anyone have a detailed enough example that I can hack into
usability?



-bws



--

Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix /
Picometrix

bspolarich@...
<mailto:bspolarich@...> ~ 734-864-5618 ~
www.advancedphotonix.com <http://www.advancedphotonix.com>





[Non-text portions of this message have been removed]
Brian,
Not 100% clear from what you're wanting to do, but if the field ties right in to a table field there's a very easy way:
Go to Field Security in Security maintenance, open the table, select the field, and click 'New'.
Now you can set permissions to a particular group.
Also, if you want to remove the setting, it feels wrong, but highlight the field on left side and Delete it. All you're doing is deleting that there's security on it, putting it back to Everyone can see it.





________________________________
From: Brian W. Spolarich <bspolarich@...>
To: vantage@yahoogroups.com
Sent: Tue, April 27, 2010 2:10:13 PM
Subject: [Vantage] Disabling a Field Based on User Group Membership


I want to disable a field on a customization on a form (on a new tab,
if that matters) unless the user is a member of a particular Vantage
security group.

I'm assuming that what I should do is set the field's Enabled property
to false, and then add some code to the form's OnLoad event to set the
Enabled property of the control to true if the user is in the "GM" group
in this case.

Does anyone have a detailed enough example that I can hack into
usability?

-bws

--

Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix /
Picometrix

bspolarich@advanced photonix. com
<mailto:bspolarich@advanced photonix. com> ~ 734-864-5618 ~
www.advancedphotoni x.com <http://www.advanced photonix. com>

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







[Non-text portions of this message have been removed]
Thanks Tony, but if I recall correctly, Vantage field-level security doesn't let me set the field (RMAHead.Date04) to be read-only vs. read-write. I don't want to hide the field from folks, just make it so that only authorized users can change it.

Basically I'm trying to setup an approval process. We don't want to use Vantage's built-in RMA disposition process because of accounting issues (it puts customer-owned parts on our books which we don't want), so we're rolling our own.

So what I'm looking to do is have field on a custom tab on the RMA form pointing at RMAHead.Date04 that only users in the "GM" group can modify, and everyone else can view.

-brian



Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix / Picometrix
    bspolarich@... ~ 734-864-5618 ~ www.advancedphotonix.com


-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Tony Hughes
Sent: Tuesday, April 27, 2010 3:33 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Disabling a Field Based on User Group Membership

Brian,
Not 100% clear from what you're wanting to do, but if the field ties right in to a table field there's a very easy way:
Go to Field Security in Security maintenance, open the table, select the field, and click 'New'.
Now you can set permissions to a particular group.
Also, if you want to remove the setting, it feels wrong, but highlight the field on left side and Delete it. All you're doing is deleting that there's security on it, putting it back to Everyone can see it.





________________________________
From: Brian W. Spolarich <bspolarich@...>
To: vantage@yahoogroups.com
Sent: Tue, April 27, 2010 2:10:13 PM
Subject: [Vantage] Disabling a Field Based on User Group Membership


I want to disable a field on a customization on a form (on a new tab,
if that matters) unless the user is a member of a particular Vantage
security group.

I'm assuming that what I should do is set the field's Enabled property
to false, and then add some code to the form's OnLoad event to set the
Enabled property of the control to true if the user is in the "GM" group
in this case.

Does anyone have a detailed enough example that I can hack into
usability?

-bws




Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix /
Picometrix

bspolarich@advanced photonix. com
<mailto:bspolarich@advanced photonix. com> ~ 734-864-5618 ~
www.advancedphotoni x.com <http://www.advanced photonix. 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/.
(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
How about using BPM for RMADisp.Update to see if Date04 changed, and if so, raise error unless you are in security group XYZ?





________________________________
From: Brian W. Spolarich <bspolarich@...>
To: vantage@yahoogroups.com
Sent: Tue, April 27, 2010 2:46:47 PM
Subject: RE: [Vantage] Disabling a Field Based on User Group Membership


Thanks Tony, but if I recall correctly, Vantage field-level security doesn't let me set the field (RMAHead.Date04) to be read-only vs. read-write. I don't want to hide the field from folks, just make it so that only authorized users can change it.

Basically I'm trying to setup an approval process. We don't want to use Vantage's built-in RMA disposition process because of accounting issues (it puts customer-owned parts on our books which we don't want), so we're rolling our own.

So what I'm looking to do is have field on a custom tab on the RMA form pointing at RMAHead.Date04 that only users in the "GM" group can modify, and everyone else can view.

-brian

--
Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix / Picometrix
bspolarich@advanced photonix. com ~ 734-864-5618 ~ www.advancedphotoni x.com


-----Original Message-----
From: vantage@yahoogroups .com [mailto:vantage@yahoogroups .com] On Behalf Of Tony Hughes
Sent: Tuesday, April 27, 2010 3:33 PM
To: vantage@yahoogroups .com
Subject: Re: [Vantage] Disabling a Field Based on User Group Membership

Brian,
Not 100% clear from what you're wanting to do, but if the field ties right in to a table field there's a very easy way:
Go to Field Security in Security maintenance, open the table, select the field, and click 'New'.
Now you can set permissions to a particular group.
Also, if you want to remove the setting, it feels wrong, but highlight the field on left side and Delete it. All you're doing is deleting that there's security on it, putting it back to Everyone can see it.





____________ _________ _________ __
From: Brian W. Spolarich <bspolarich@advanced photonix. com>
To: vantage@yahoogroups .com
Sent: Tue, April 27, 2010 2:10:13 PM
Subject: [Vantage] Disabling a Field Based on User Group Membership


I want to disable a field on a customization on a form (on a new tab,
if that matters) unless the user is a member of a particular Vantage
security group.

I'm assuming that what I should do is set the field's Enabled property
to false, and then add some code to the form's OnLoad event to set the
Enabled property of the control to true if the user is in the "GM" group
in this case.

Does anyone have a detailed enough example that I can hack into
usability?

-bws

--

Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix /
Picometrix

bspolarich@advanced photonix. com
<mailto:bspolarich@ advanced photonix. com> ~ 734-864-5618 ~
www.advancedphotoni x.com <http://www.advanced photonix. 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/.
(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]
I just tried this and the field-security disabled the field (I wasn't in the GM group), but didn't hide the data. I thought for some reason that field-level security disabled *all* access to a field, not just making it read-only. However I was logged in as a security manager.

When I logged in as a non-security manager, the field was disabled and I couldn't see the data.

So field-level security basically completely hides the field.

-bws



Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix / Picometrix
    bspolarich@... ~ 734-864-5618 ~ www.advancedphotonix.com


-----Original Message-----
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Tony Hughes
Sent: Tuesday, April 27, 2010 3:33 PM
To: vantage@yahoogroups.com
Subject: Re: [Vantage] Disabling a Field Based on User Group Membership

Brian,
Not 100% clear from what you're wanting to do, but if the field ties right in to a table field there's a very easy way:
Go to Field Security in Security maintenance, open the table, select the field, and click 'New'.
Now you can set permissions to a particular group.
Also, if you want to remove the setting, it feels wrong, but highlight the field on left side and Delete it. All you're doing is deleting that there's security on it, putting it back to Everyone can see it.





________________________________
From: Brian W. Spolarich <bspolarich@...>
To: vantage@yahoogroups.com
Sent: Tue, April 27, 2010 2:10:13 PM
Subject: [Vantage] Disabling a Field Based on User Group Membership


I want to disable a field on a customization on a form (on a new tab,
if that matters) unless the user is a member of a particular Vantage
security group.

I'm assuming that what I should do is set the field's Enabled property
to false, and then add some code to the form's OnLoad event to set the
Enabled property of the control to true if the user is in the "GM" group
in this case.

Does anyone have a detailed enough example that I can hack into
usability?

-bws




Brian W. Spolarich ~ Manager, Information Services ~ Advanced Photonix /
Picometrix

bspolarich@advanced photonix. com
<mailto:bspolarich@advanced photonix. com> ~ 734-864-5618 ~
www.advancedphotoni x.com <http://www.advanced photonix. 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/.
(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