multiple filters on recordset by user

B

Bryan Harrington

Hello all.. I'm working on an application that has a worklist of items for
users to work on. I'd like to, based on user security, to filter a worklist
based on between 1 and 8 items (i.e., location, category, alpha split).

That first part is no problem.. the problem is.. how to then allow that user
that is (for example) restricted to work 3 locations, to then further filter
that worklist to just one location?

Yes.. I can use the ADO filter.. but.. that won't work if you extend the
filter beyond one element (i.e., location and category).

Suggestions?

TIA
 
C

Cowboy \(Gregory A. Beamer\) [MVP]

You have two ways to filter: Server and Client.

In the Server methodology, you would firther filter by taking another trip
to the server and issuing the proper SQL command. You can also use tricks,
like ADO filters, et al. (NOTE: .NET allows for multiple filters on a single
DataView, or the creation of different views for different purposes).

In the Client, you have to loop through data to reduce it. JavaScript arrays
created by your recordset are the most common. Realize, this is heavy
programming, can tax the browser and leads to rather weighty pages.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
 
B

Bob Barrows [MVP]

Bryan said:
Hello all.. I'm working on an application that has a worklist of
items for users to work on. I'd like to, based on user security, to
filter a worklist based on between 1 and 8 items (i.e., location,
category, alpha split).

That first part is no problem.. the problem is.. how to then allow
that user that is (for example) restricted to work 3 locations, to
then further filter that worklist to just one location?

Yes.. I can use the ADO filter.. but.. that won't work if you extend
the filter beyond one element (i.e., location and category).
Yes it will. It's only Find that's restricted to a single Field.

Bob Barrows
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,408
Latest member
AlenaRay88

Latest Threads

Top