CFC question - dynamically changing more than just an argument

Hopefully this is really simple and obvious but I cna't find anything at the moment.
I have the following query
     <cfquery name="dept" datasource="#dbdsnd#" username="#dbuname#" password="#dbpass#">
            SELECT * from dept
            WHERE deptCurrent = "Y"
             AND deptID <> "0"
            ORDER BY deptName
      </cfquery>
which is currently in my cfm file but I'm trying to move into a cfc. This I can do!
The next stage of this would be to include arguments for the deptID. Again this I can do!
Where I'm struggling is trying use this for many purposes sticking to the deptID in the where clause I'm currently using the following variants (some in psuedo code sorry)
<cfif user neq "michael"><cfelse>And deptID <>"#value#"</cfif> (CFC objects to the cfif)
AND deptID = "#value#" (= rather than <>)
Is there an easy way? Could my argument be the whole line so I could use
SELECT * from dept
WHERE deptCurrent = "Y"
#ARGUMENT.deptIDcode#
ORDER BY deptName
Thanks
Michael

Writing this out seems to have answered my question - I can replace the line with #argument.xxx#

Similar Messages

  • ___When I have a multi page Ai file and 'Save as', it saves more than just the page I specified

    When I have a multi page Ai fil e (50 pages) and 'Save as', it saves more than just the single page I specified (ie. Range 1-1)... it saves all 50 over again? How do I just save 1 of the 50?

    Just answered my own question - if I use 'Save a copy' it works... must be a glitch

  • Syncing iPhone will change more than 5% of your contacts?

    Now when I try to sync my iPhone with my Mac I get the message that more than 5% of my contacts will be changed. I want to keep what's on my Mac and write that to my iPhone. How can I do this? Thanks....

    What the program is telling you is that you have more than 5 for every 100 new contacts, changes within your contacts, contact deletions, etc.
    It is merely giving you a "heads up" that there are more than just "a few" changes to your contacts list. It, and iCal, should follow up that page saying how many additions, changes, and deletions occurs within that 5%.
    For instance, when i add 1 month of my work schedule and sync it to my iPhone, I get that message, as it is adding 30 brand new additions to my phone.
    Does that make sense?
    As above, the suggestion if you are really concerned for overwriting, or just totally neurotic, is appropriate - making routine backups.
    Or just wait until next week for Leopard for your next sync, and Time machine will make sure you never ever delete a contact by mistake.
    Good Luck

  • Is there a way to use locations to do more than just basic network config?

    Hello,
    I'm trying to figure out if the network location can be used to do more than just the basics. For example, is there a way to automatically connect to network drives when I'm at a particular location? Trying to connect to them all the time (as a login item for example) makes the computer slow down whenever I'm at a different location. Also, is there a way to change the default printer or even sharing of pictures or music? It doesn't make sense to have a default printer something that's not available anymore at my new location, right?
    What would be the best way to automatize all this (if it's not already supported?)
    Many thanks in advance,
    Adrian

    You can create many calendars. Here's the tip:
    Example: you have 1 son and 1 daughter.
    In iCloud ( https://www.icloud.com )
    Create 1 calendar called Son ( Choose a color to tell them apart )
    Create 1 calendar called Daughter ( Ditto )
    Create 1 calendar called Kids
    Since you are the creator, you get to see all calendars combined.
    Send invitations to each of them
    Son gets Son and Kids calendars
    Daughter gets Daughter and Kids calendars
    So if there an event for Son, just put in that calendar
    If it's for both then enter it in the Kids calendar
    Likewise for daughter.

  • When ASM reads my block, it will usually read much more than just the block I requested.

    When ASM reads my (8K) block, it will usually read much more than just the block I requested.
    4 questions :
    1) Am I right when I presume ASM will increase my request to 1 complete AU sized retrieval action done on the I/O subsystem? 
    2) Now what interests me is where does the rest of that I/O size sleep / reside ?
    3) Under what circumstances will those poor, initially unused and discarded KB's be revived and be reckognized for their true value. Will only certain actions, like a scan, cause the 'overhead' to be used ?
    kind regards, Niek

    Hi Aman,
    ASM does not do IOs .
    ASM only gives extent map to clients and clients take that pointers and do direct IO on that block.
    This is very much true statement and explains what will happen if data block is not available at buffer .
    That's why most of IO errors are getting printed on rdbms alertlog file ,rather ASM .Which inturn confirms my statement...
    ASM level DBWR ,LGWR are related to ASM level data processing .
    Keeping above things in mind ,it clarifies ASM does not hold any IOs /place on sleep.
    ASM at diskgroup level,always does IOs  as per au_size of  that diskgroup .
    Regards,
    Aritra

  • Alert.Show in more than just one window

    I'm simply curious if it is possible to set up an alert
    dialog box to show up in more than just the main application
    window. This isn't vital to anything I'm doing, just
    curious.

    I completely forgot about this post, well anyhoo, I just
    figured out the answer to my question a few days ago while looking
    up the Alert dialog in the Flex API. All I had to do was specify
    the window the alert pops up in simply by doing this:
    Alert.show("Delete the Selected Item?", "Delete Item"
    , Alert.YES | Alert.NO, this,
    deleteClickHandler, null, Alert.YES);
    Until then I had no idea what the parts in bold were until I
    looked it up out of boredom. Saved me some trouble and wasted
    states it did.

  • After soak test update, I get error messages repeatedly. The majority are "unfortunately, messaging has stopped", but you can replace messaging with "android os", or any other process, as it happens with more than just messaging. I have had numerous peopl

    After soak test update, I get error messages repeatedly. The majority are "unfortunately, messaging has stopped", but you can replace messaging with "android os", or any other process, as it happens with more than just messaging. I have had numerous people call and ask why I didn't reply to their texts...and I look, but have not received any new texts. YES, I have restarted phone. I have cleared data as well as cache on all apps. I have downloaded the vzw messaging app, which seems silly, since it happens with several different processes and apps, but all to no avail. I am missing texts from my employer, from my family. This did happen, but rarely, before this "soak test". It is now Kitkat version 19.6.3.obake_verizon.en.US. THIS is when I started having problems...like 50 times a day kind of problems! I have seen hundreds of posts all over the internet over the past 3 days. Does no one know how to fix this??? Shouldn't there be a way to revert phone to a pre-update state? and no, hard reset did NOT work!!!! I have been with verizon for well over 15 years, but I have not upgraded my lines and will not in July either. This is ridiculous. It's not like my games aren't working, it is my messaging and "android os"...my lifeline at work!

    kristinaf333,
    Oh no, I am sorry to hear your messages are not working since the software update. I greatlly appreciate doing all that troubleshooting to try and get the messaging application back in business. I know how much I rely on my messages so I can understand the urgency to get this resolved. Have you had a resolution ticket opened since you started experiencing issues with your messages? Does this happen with all contacts or just some? Please provide additional information to ensure we get to the bottom of this for you.
    KarenC_VZW
    Follow us on Twitter @VZWSupport

  • Can I change more than one photo from color to black and white at one time?

    can I change more than one photo from color to black and white at one time?

    Check out iPhoto Batch Enhancer
    http://www.feroxsoft.com/ibe/index.php.en
    Regards
    TD

  • Is there a way that I can see more than just the next slide in Presentation mode (as an old version of PowerPoint used to do)?

    Is there a way that I can see more than just the next slide in Presentation mode (as an old version of PowerPoint used to do)?

    Sorry - should have been more specific. As far as I can see, Keynote will only allow me to see the current slide and the next slide on my laptop when I am presenting a slideshow through a projector. But an old version of PowerPoint allowed me to show the current slide....and (adjustable) many more slides ahead (say 10)....so I could simply jump ahead to a 'future' slide and skip several slides in between. Net result being that I was able to matcgh my slides to group discussions rather than stick to a fixed, predetermined slide show.
    As much as it pains me, without this facility - PowerPoint (old verson, not current one) is more useful for me! :-((

  • More than just a $25M fine!

    I just read an article regarding the FCC's "fine" for Verizon Wireless;
    FCC's Fine on Verizon Wireless a $25 Million Joke
    It is a joke.
    But Verizon is going to lose more than just $25M.
    My contract expires in a little less than one year.
    We currently pay around $150 per month.  How much would I pay over years of service if Verizon were actually a good company to do business with?
    It won't be just me.  There are many, many people (just look at the other posts on this forum) that are going to leave Verizon as well.
    Interesting business practice.  Cheat, rob, and steal from your current customers, perhaps hoping they will not leave, and relying on new business to keep coming in?
    Good luck Verizon.
    I have a feeling your going to need it.

    Your statement that I (and others that have stated that they are going to leave Verizon) will not be missed by Verizon, is kind of, part of, my point.  Verizon does not care about their current customer base.  Once you are signed into a contract; they know that "most" people will not leave during their contract because they would have to pay a "fine"; and they count on many people just simply renewing, because that is easier, when the contract comes due.
    Of course; not everyone will be happy with a particular business they decide to do do business with.  What happens when people are not happy with a business though?  They generally leave.  Right?  Sure, there are people who will hang on and just complain and keep doing things the way they do.  I see it all the time.
    That's great that you have not been robbed, cheated, or swindled by VZW.  Other people HAVE!  Clue: that is why the FCC has "fined" them.  That would be for their "less than honest" business practice. 
    Of those amazing numbers you have thrown up, and pretty much indicated that the people who post here are a very, very, small number of VZW customers, how many of those who do not post here do you suppose HAVE been impacted by VZW's less than honest business practice?  Even if only 1% of all subscribers leave, don't you think that will be a much LARGER loss than $25M?
    I read most of the articles concerning the FCC fine on Yahoo news.  People on Yahoo can comment on those articles.  On just ONE article, there were THOUSANDS of people who posted their discontent with VZW (and one or two people who praised them).

  • Syncing will change more than 5% of your calendars on this computer

    Hi all,
    I'm new to iPhone, but very familiar with Mac. When I attempt to sync my iPhone to my calendars in iTunes I get the message that syncing "will change more than 5% of the calendars on this computer."
    What's this mean?
    I always hit cancel because I don't want to lose any calendar info on my Mac.
    I'm attempting to sync 9 or 10 iCal calendars.
    I'm sure this has been well covered in these forums, but I'm able to find my answer.
    Thanks!

    What's this mean?
    Basically you have more or newer info on one side of the syncing devices.
    Click on Details when you get this message and you'll see the entries that differ on the phone based calendars. One solution could be to set up your calendar on your computer as desired and replace the calendar info on the phone during the next sync. Click the option in the info pane/ advanced section in itunes with your phone connected.

  • How to make iTunes support more than just one harddrive

    The title of this topic says it all: How do I make iTunes support more than just one harddrive? I cannot afford to buy a really huge drive just because iTunes doesn't support more than one.
    There must be a way around this! Anyone?

    I sure hope so. I run iTunes on an iBook G4 with limited space. I've got about 15gigs of music on an external harddrive. I only use the harddrive at home so I like to keep a handful of albums with me on the lappy. There should be some way to designate a primary folder on the laptop for imports, and a secondary (external or whatever) for the bulk of the library. Maybe some nifty way to do quick transfers between them within iTunes. Like a relocate function.
    Say I want the new death cab for cutie album on the laptop this week, but next week I want to swap it out with something new that comes out. It would be nice to highlight an album and select "transfer to secondary" so that iTunes can move the files for you, keep them organized, and keep track of them.
    That doesn't sound so difficult...

  • Can I keep more than just 5 entries in the podcast page?

    I noticed that any post in iWeb's podcast page that gets moved to the archive is no longer indexed by iTunes or other aggregators. I was wondering if there is a way to keep more than just 5 entries in the podcast page so that they continue to remain pasrt of the RSS feed and stay indexed on the aggregator.
    Thank you for your help!

    In a similar problem, does subscribing to a podcast with only one or two current episodes listed, allow all the archived episodes to be accessed or visible in the iTunes Store as well?
    I don't really see the purpose of the Archive if it isn't ultimately used for cataloguing available iTunes downloads, and I am thus forced to load all blog entries on the main page.
    Or am I doing something horribly wrong?

  • Want to share more than just a public folder

    I am running Tiger (10.4.11) on my PowerMac and I want to share more than just my public folder. Now I read several support documents from Apple suggesting that if I want that my only option would be giving out full root access to my guest user. I am not doing that.
    I want to share my 2nd hard drive entirely. So is there any work around to share this. Either with or without a remote logon procedure. I tried the netiinfo manager, but couldn't get that to wortk properly. Any help would be greatly appreciated.

    Sharepoints should take care of it easily...
    http://www.hornware.com/sharepoints/
    Choose the whole external drive as a Normal Share & set the Users, groups, AFP, & SMB rights.

  • Joining more than just 2 tracks together

    Is it possible to connect more than just 2 tracks together from a cd? I would like to have a song that is continuous and i wanted it to be longer than just 2 track lengths...so i was just wondering before i wasted a cd and finding out it doesnt work!
    Thanks alot for all of your help!!!!

    Yes, just select all the songs you want to join and go Advanced>join cd tracks. They must be listed right next to each other though.
    bd

Maybe you are looking for

  • False Paper Jam on HP Officejet Pro 8000

    I am getting a paper jam (misfeed) message, but there is no paper jam. The power and the resume lights are both blinking. I have checked everything about the printer, but no paper jam. I push the resume button to turn off the blinking light. I can th

  • Exception while calling BPEL from Java Class

    Hi All, I am trying to call BPEL from my Java Code. but i am getting following exception. java.lang.Exception: Failed to create "ejb/collaxa/system/DomainManagerBean" bean; exception reported is: "javax.naming.NameNotFoundException: ejb/collaxa/syste

  • Third party PREQ in MDO4

    Do the PREQ created in 3 party appears in transaction MD04?

  • How to debug extraction  a datasource in ecc starting execution in bw ?

    HI gurus, how to debug extraction  a datasource in ecc starting execution in bw ? Thanks.

  • ERS checkbox invisible in the contract ME33K

    Dear Friends Please see as below description to understand my problem. In the Customizing choose Material Management/ Purchasing / Contract choose Define Screen Layout at Document Level choose Field Selection Key -> PT8K choose GR/ IR Control right h