Robert Bullock
|
| Posted: 08/06/2001, 7:32 AM |
|
Hey guys, I am trying to simulate "field level" security in my CodeCharge
app. (Not sure why this isn't implemented out of the box... seems simple in
theory).
My idea is to do a Before Show event which would check for the security
level of the logged in user. If they are above/below a certain level, I want
to dynamically change certain fields to text box or labels. For example, if
I only want people with security level 2 or above to edit a certain field,
when someone with security level 1 visits the "edit" page, they would see a
label for that field instead of a text box so they can't edit it.
Any easy way to do this? Is there some sort of property you can set for a
field, like fieldtype?
Robert
|
|
|
 |
Alexey Alexapolsky
|
| Posted: 08/08/2001, 2:03 AM |
|
You can use field type Label+html checkbox and stuff any
content there depending on your security options , from pure text to
input textboxes
--
Alex
Robert Bullock <robert@upstateis.com> wrote in message
news:9km9pl$7hm$1@news.codecharge.com...
> Hey guys, I am trying to simulate "field level" security in my CodeCharge
> app. (Not sure why this isn't implemented out of the box... seems simple
in
> theory).
>
> My idea is to do a Before Show event which would check for the security
> level of the logged in user. If they are above/below a certain level, I
want
> to dynamically change certain fields to text box or labels. For example,
if
> I only want people with security level 2 or above to edit a certain field,
> when someone with security level 1 visits the "edit" page, they would see
a
> label for that field instead of a text box so they can't edit it.
>
> Any easy way to do this? Is there some sort of property you can set for a
> field, like fieldtype?
>
> Robert
>
>
|
|
|
 |
|