ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 31st, 2005, 09:36 AM
bjm_x037 bjm_x037 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 7 bjm_x037 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 16 m 32 sec
Reputation Power: 0
Recordset - please help me! how to use multifilters on a recordset

Hi
I am building a financial control system which has different user classes. My problem is that i want buttons to appear or not depending on the user profile on the main page after the user logs in to the system. Now, the user profile is determined by different columns on a MS_access database.
(e.g:User.....Admin....Operator....Consultant
.......userX........1..........1..............1
.......userZ........0..........1..............1
)

Is there a way i can declare a recordset with 2 filters?

(e.g. filter 1: Session Variable: Session.MM_USERNAME(WHERE Username = '#SESSION.MM_USERNAME#')
filter 2: Entered Value: 1 for Admin (WHERE SystemAdmin = '1')
)

In other words, the recordset would look on the user that is logged in and see if the user is an admin. That way i could use the recordset being 'not empty' / 'emty' to display the button (or not) and have other recordsets for the other buttons which would then link to other areas of the system.

The result i am trying to obtain is to continue with the same database structure but to make the buttons dynamic so that they appear if '1' is declared on the coulumn of part of their profile and to disapear if '0' is declared.

Can anyone help me?? or maybe suggest any other idea on how to do this...

Thank you!

Last edited by bjm_x037 : March 31st, 2005 at 09:39 AM. Reason: better informative title

Reply With Quote
  #2  
Old March 31st, 2005, 10:36 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,627 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 8 m 55 sec
Reputation Power: 53
Not clear on what you actually need. Why not have the user log in and keep track of their permissions as session variables. Then you can check for any permission you need to and output or not output code to the browser as needed.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old April 2nd, 2005, 11:21 AM
bjm_x037 bjm_x037 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 7 bjm_x037 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 16 m 32 sec
Reputation Power: 0
Quote:
Originally Posted by kiteless
Not clear on what you actually need. Why not have the user log in and keep track of their permissions as session variables. Then you can check for any permission you need to and output or not output code to the browser as needed.


The idea of using permitions as session variables seams to work good. Thanks!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Recordset - please help me! how to use multifilters on a recordset


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway