Solved

Coldfusion SELECT Options

Posted on 2007-03-28
3
229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
bwasyliuk earned 500 total points
ID: 18817229
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
ID: 18817577
Thanks, Ben.  I know my explanation was not clear.  But I did figure it out.  
0
 

Author Comment

by:jramos74
ID: 18817588
Thanks again for your time looking at it.  
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Annoying "thing" blocks my view 4 146
Redirect to HTTPS results in Infinite LOOP 4 168
How to set up WAMP on a windows 8.1 IIS machine 14 46
transfer content to new site design 7 49
In this short web based tutorial, I wanted to show users how they can still use the powers of FrontPage in conjunction with Expression Web 3.  Even though Microsoft eliminated the use of Web components, we can still use them with FrontPage and edit …
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
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…

738 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