Orlando
|
| Posted: 11/12/2004, 6:25 AM |
|
How can I make a Record Grid Read Only based in the User Group. Only members of grouo 1 can edit the record, and members of other groups can see it but not modify it.
ASP, SQL
|
|
|
 |
DonB
|
| Posted: 11/12/2004, 7:25 AM |
|
That's controlled by the "Restrict" property of the grid. Exclude the users
by clearing the insert/update/delete checkboxes. They will see the grid
(presumed you mean Editable Grid) but no "Submit" button. They will still
see "editable" controls displayed in the grid but won't be able to submit
any changes.
--
DonB
http://www.gotodon.com/ccbth
"Orlando" <Orlando@forum.codecharge> wrote in message
news:64194c7e975c12@news.codecharge.com...
> How can I make a Record Grid Read Only based in the User Group. Only
members of
> grouo 1 can edit the record, and members of other groups can see it but
not
> modify it.
>
> ASP, SQL
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Orlando
|
| Posted: 11/12/2004, 10:01 AM |
|
Thanks, I found it.... but
What if I want to based it on a Session Variable instead of the group CCS gave me.
In my UsersTable, I have a field "ModXXX" where XXX is the number that identify each page, because my security has to be based in "page acces" not "group access", when the user logon, this value (0 or 1) is saved in a Session Variable, when the page is loaded, it should reads that Session Variable and set the records to "read only" or full access
It can be done? or based in your approuch, how can I hide the submit button...?
|
|
|
 |
DonB
|
| Posted: 11/12/2004, 12:19 PM |
|
You can always use Label1.Value = Session(""ZZZ"") type statements to fetch
session variables for most any destination (not just for Labels).
--
DonB
http://www.gotodon.com/ccbth
"Orlando" <Orlando@forum.codecharge> wrote in message
news:64194fa64401c7@news.codecharge.com...
> Thanks, I found it.... but
> What if I want to based it on a Session Variable instead of the group CCS
gave
> me.
> In my UsersTable, I have a field "ModXXX" where XXX is the number that
identify
> each page, because my security has to be based in "page acces" not "group
> access", when the user logon, this value (0 or 1) is saved in a Session
> Variable, when the page is loaded, it should reads that Session Variable
and
> set the records to "read only" or full access
>
> It can be done? or based in your approuch, how can I hide the submit
button...?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Tuong Do
|
| Posted: 11/12/2004, 3:12 PM |
|
In the before show event of the editable grid
<Code>
If cInt(Session("SecurityLevel")) = 1 Then
' Does not allow make change
EventCaller.YourSubmitbuttonname.visible = false
End If
</code>
"Orlando" <Orlando@forum.codecharge> wrote in message
news:64194fa64401c7@news.codecharge.com...
> Thanks, I found it.... but
> What if I want to based it on a Session Variable instead of the group CCS
gave
> me.
> In my UsersTable, I have a field "ModXXX" where XXX is the number that
identify
> each page, because my security has to be based in "page acces" not "group
> access", when the user logon, this value (0 or 1) is saved in a Session
> Variable, when the page is loaded, it should reads that Session Variable
and
> set the records to "read only" or full access
>
> It can be done? or based in your approuch, how can I hide the submit
button...?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
Orlando
|
| Posted: 11/13/2004, 2:02 PM |
|
I tihink in this approach:
Can I chang a link value depending on a Session Variable, It would be link to Page1 is thw SessionVariable = 1 and linked to Page2 if the value is 0. I tryied, but I cant find a way to keep the parameters in the link.
|
|
|
 |
|