Solved

Coldfusion SELECT Options

Posted on 2007-03-28
3
218 Views
Last Modified: 2013-12-24
Coldfusion Question SELECT option
I have the following code:
<TD>Fruits</TD>
<cfinclude template="/market/diff_fruits.cfm">
<TD colspan="4">
      <SELECT name="available_fruits">
              <option value="">
         <cfoutput query="diff_fruits.cfm">
             <option value="#code#" >#description#
         </cfoutput>
      </SELECT>
The Query pulls the following records:
Code             Description
B                   Banana
A                   Apple
O                   Orange

I want to base the selections on certain users.  Like User A can only pick Banana and Apple while user B can only pick Orange.  Or User A can see all options but Orange is grayed out.


Any help is appreciated.  Thanks!
0
Comment
Question by:jramos74
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
bwasyliuk earned 500 total points
Comment Utility
Hi,

From the code included so far - it is hard to tell whether your database or user security structure even supports this functionality.  What criteria about a user should restrict or define their access to the given options?

Example: UserA is a member of Group1, UserB is a member of Group2 (groups would likely be another table).
Your Fruits table would need to have a bridge to the Groups table to restrict access by group to the different options.

If you want to explain a little more about your structure, I am happy to assist.

Ben
www.ScheduleForce.net
0
 

Author Comment

by:jramos74
Comment Utility
Thanks, Ben.  I know my explanation was not clear.  But I did figure it out.  
0
 

Author Comment

by:jramos74
Comment Utility
Thanks again for your time looking at it.  
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

This article provides a case study on how our local youth baseball league deployed a new website, including the platform selection, implementation and benefits to the league.
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now