This topic is locked

Flexible Login Permissions

5/31/2008 11:20:42
ASPRunnerPro General questions
M
mardisr author

I am using dynamic permissions with these key fields
username: robert

password: password

account: CA12345
all records are displayed where the users account = the account in my orderheader in this case CA12345
works great
what i would like to do is is create a user to be able to see all account that are like CA123
the sql for the above would be "select from orderheader where account = 'CA12345'
the sql for the change would be "select
from orderheader where account like 'CA123%'
I have edited the above user and set the account = CA123% but that returns no records <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=8645&image=1&table=forumtopics' class='bbcemoticon' alt='<<' />
Does anyone know how to accomplish this.

Sergey Kornilov admin 6/3/2008

You can use BeforeSQLQuery event to override default SQL query.
You might want to use session variables like Session("GroupID") to build your own query.

Check this page for more info:

http://www.xlinesoft.com/asprunnerpro/docs...n_variables.htm