CFLOOP w / FileExists, coding presence or not of color

Hello

CF Version: 8

I have fifty (50) records returned by the query below. I want to loop through those

documents to see if the file actually exists on the server. If the file is

There are, then show the name of file in green text if it does not so red.

My current code takes the first file exists, and that it defines the color green

as well as all of the information in the document. I know for a fact that some of

the documents are missing, so the names of documents should be displayed

in red. The output is correctly display all records, but not changing colors

with respect to the presence of the file.

What I am doing wrong? Am I going about this all wrong?

< cfloop query = "rsDocuments" >

< cfoutput >

< div style = "" margin-bottom: 15px; ">"

#disp_title # < br / >

< Cfif FileExists(#FilePath#) >

< span style = "" color: # 093; ' > #doc_file # </span > "

< cfelse >

< span style = "" color: #F00 #; ' > #doc_file # </span > "

< / cfif >

< / div >

< / cfoutput >

< / cfloop >

Thanks in advance for an overview.

Leonard B

First thing I would do is screen #FilePath # as you loop, just to make sure that it contains what you are expectign it contains. Then you can see if there is a model which are and which are not.

-Ben

Tags: ColdFusion

Similar Questions

  • HP pavilion 096sa-15: cool presence is not install

    recently, I had upgraded to windows 10 when I tried to install hp cool presence is not install, I am attaching the picture of it.

    I'm not undersstanding problem. someone help me.

    Hello

    Please wait a few more weeks/months and use the following discussions:

    http://h30434.www3.HP.com/T5/notebook-operating-systems-and-software/unable-to-install-HP-coolsense-on-Windows-10/TD-p/5193084

    Kind regards.

  • icons on the toolbar (Messaging, quickfilter etc.) are not in color

    Mozilla Thunderbird, the toolbar icons are simply not in colour.

    The deletion is not red... they are all just... austere black.

    Color helps recognize that the function involved by the icon easier I think.
    But the belief is not the same as knowledge and I'm not a fundamentalist of the color.

    icons on the toolbar (Messaging, quickfilter etc.) are not in color

    I guess the color black and white icons of the toolbar is intentionally in the current default theme.
    You can search another theme.
    https://addons.Mozilla.org/en-us/Thunderbird/complete-themes/

  • HP deskjet 960C does not print color

    My printer goldie oldie suddenly decided to not print color since I plugged my new MacBook Pro.  When I used my old laptop from Apple, there is no problem.  I downloaded the driver (I hope that the right one) and replace the color cartridge.  What I am doing wrong?  Any ideas?

    WoooWhoo!

    I am happy to help and thank you for being a teacher. It's hard work, but so important.

    As the person who started this thread, you may have marked it solved by clicking to the right of your response, I think.

  • DeskJet 3520: Deskjet 3520 not printing color

    Hey,.

    My deskjet 3520 printer is not printing color.

    I didn't use color for a long time and recently exchanged all the white genuine hp new hp ones.  I run all the updates of status indicating that all cartridges are ready and complete, but unfurtunatly no color comes out. All the test pages have only black color. Tried different devices with different drivers, but without success to get the color.

    Can you please help with some advice.

    The printhead has dried, check your warranty status: http://h20564.www2.hp.com/hpsc/wc/public/home

  • DV6 quick launch button mute does not work properly. He puts the speakers muted, but does not change color.

    Laptop quick launch mute my computer Pavilion dv6-1050us button does not work properly. He puts the speakers muted, but does not change color.  It's still orange, not mater if your speakers are on or off.   His other (white) State works because it is white to start windows, but then goes to orange and does not change when selected but by selecting the button speaker turn the speakers on and outside as it should.

    I've loaded and reinstalled the quick launch driver software (sp46731.exe), but the problem is still there.  The problem is about 2 weeks old.   Have not added any new software that I know.  But computer installs updates as received.

    Simon

    Hello

    First download the audio driver by using the links below and save the installer to your desktop.

    Audio driver - Windows 7

    Audio driver - Windows Vista

    Once the download is complete, right-click on the Setup program and select "Run as Administrator" to launch the installation - ignore the warnings that you can see everything that is an earlier version.  Once the installation is complete, restart the laptop.

    Kind regards

    DP - K

  • Does not print color

    First, it started with my HP 6700 (driver ver 2.1) and now I just tried with my HP Envy 7640 (driver ver 2.0) on a 2nd network.

    • It prints color as gray or half-tone scale (don't know what you call it - it's not color).
    • Both printers print test ok colors page from the printer configuration options.
    • Both printers copy ok color documents.
    • Ink colors are in full in two printers (from the printer check ink level option).
    • Only when I try to print color on my computer (tried with both my MacBook Pro and MacBook Air + MacBook Air my wife). I tried printing photos (which is where I first noticed the problem) and Web sites and documents. No color.

    I'm under El Capitan 10.11.1 but it started with Yosemite.
     
    I deleted the driver and reinstalled. No resolution of the issue.
     
    I even made a regeneration of permission (just in case). I have all the updates
     
    Thus, it prints but not in color.  Colors print as gray or semitone scale.
     
    A world without color is pretty dull.

    Suggestions welcome ;-)

    Found new driver just released yesterday (25/10/2015), which fixed the problem

  • HP 8600 not print color

    I have a Hp 8600 and I recently changed the black cartridge, the others are setting up those and the printer does not print color more, since I have replaced the black print cartridge (not when I copy or a word in the document). I'm printing off grayscale isn't in printing preferences.

    Hello

    Thanks for providing the details.

    Please try the steps below...

    • on the printer screen, press Setup (wrench), then
    • Touch on TOOLS, then
    • touch the head of PRINTING its OWN.
    • Printer would print a test page, check if all the colors (Cyan Magenta yellow and black are printing).

    Now try to make a color copy and check if the colors are printed.

    If no colors? then its time to replace the cartrdiges Cyan Magenta and yellow.

    Ink level shown are those estimated, the actual level may be lower than what you see on the screen of the printer.

  • DeskJet F4180 does not print color?

    It would not print in color; I checked the settings of the printer.  I did a scan alignment.  I did a test of color.  I went and bought the new cartridge.  Does not print color.   Black prints fine, clear

    help my son has a project for school in the morning

    Thank you

    There is a document on colors missing or faded print quality issues. The document can be accessed here.

    I hope this helps.

  • HP Deskjet 2540 not print color

    Hi all! I bought a printer HP Deskjet 2540. I installed using the diskette provided to me and does not print color. I use a Mac version 10.9.4 and I think I need to download a driver updated online, but if not, what can I do to get it printing color? Thank you!

    Hi @patrick_doll

    You are able to copy in color? If so, you're probably right about the question has something to do with the software or driver.

    If you are unable to copy in color, please use the following document to solve the problem; Printer cannot print black ink or color ink, or prints blank Pages

    If, however, you can copy in color please complete the following steps;

    Reset the printing system

    1. Click on the Apple icon ( ), then click on System Preferences.
  • HP Deskjet 710C does not print colors (also after changing the cartridge with a new one)

    HP Deskjet 710C on Windows XP

    Problem: Printer does not print color. Black printing works. It also does not print color now, I changed the color with a new cartridge. Remove the printer from Windows XP and reinstall also does not resolve it. Also by using the option in Windows/printer driver for the cleaning cartridge has failed. Anyone know a solution to this?

    There is a document about the lack of color of the issues on the printer Deskjet 710C that can be found here.

    I hope this helps!

  • My HP psc 1110 does not print colors when I use the shortcut keyboard F12 key to print. considering that it is p

    I just bought printer HP psc 1110 and despite I loaded the print from the HP website driver and together it up correctly, it has new ink cartridges, it does not print color to color text pages when I use the the keyboard F12 shortcut key to show.  I have the microsoft intelli wireless keyboard.  Although that it prints very well in color while I use the method of dialogue of the system either by pressing "Ctrl + Shift + P" keys together.   I have another canon printer canon pixma 1500 a former model, even this canon allows to print in color using one of the methods above to print.  I'm curious to know why HP is behaving as it is with me.  Can someone knowledgeable enough to enlighten us on this issue and help me on this problem, please.  I would be grateful if someone can send me a response.

    My email is: {deleted personal information}

    Naseer Malik

    Hi Ngoyi-Malik,

    OK, when you right click and select print work properly?

    If you come to open a different document in your Word and press Crtl P it prints correctly?

    The question seems that it is related to the program that you use for your missions. You may need to continue to press the Maj LTRC P in order to get the color to print from this application program. Let me know if the Word printing works well?

  • Spinner widget will not change color

    Hello

    When I copy the entire view changes their color according to the dynamic thresholds spinners.

    However, when I create this spinner by drag-and - drop, it do not change colors.

    So my question is: How do this spinner change dynamically the color?

    Best regards

    Victor

    This widget you drag from a dashboard? I just tested host cpu and it seems to be showing with colors

    Can you please send some screenshots?

    Golan

  • I have HP E809a Officejet of 7000 series, my printer does not print color but black

    I installed the new ink, but the printer does not print color but black. When I do trobleshooting he information I get is all works well.

    Assuming that you have installed the printer using the HP cd or the installation software full on HP site review the HP print settings/diagnosis and test the printing options, or help from HP, all available from the HP shortcuts installed with their software.

    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?OS=4063&LC=en&cc=UK&DLC=&sw_lang=&product=3883002

  • Printer not printing color

    Have Dell V715w printer 3-in-1.  Since arriving in another room, she will not print color. Also, even after installing new ink cartridges, shows ink levels as low. Have uninstalled and reinstalled the software, including updates, nothing helps. Help!

    dearyeats,

    Start, Control Panel devices and printers, your printer, Printer preferences. Make sure that it set to use all of the available ink.

    You can copy a document under the glass? B & W and color?

    Rick

Maybe you are looking for

  • Why firefox has trouble finding Web sites

    Sometimes when I click on a Web site says firefox is it impossible to locate the site. When I click on try again the Web site appears. What is the origin of this

  • SIGNAL PROBLEM

    I BOUGHT THE BIKE MAY 22 G. AFTER ONLY A WEEK, I ENCOUNTERED PROBLEMS OF SIGNAL IN MY DEVICE.IT WENT TO EMERGENCY CALLS ONLY MODE WITH A TRIANGLE GIVEN SIGN MORE RED ON THE INSIDE. I RESTARTED THE PHONE AND THEN AFTER 1 MINUTE SIGNAL CAME. AFTER THAT

  • How to fix error

    How to remove or error alert difficulty with extension ".exe contained a virus and was eliminated.

  • Urgent! Users of remote access VPN connects but cannot access remote LAN (ping, folder,...)

    Hello I am setting up a VPN on a Cisco ASA 5510 version 8.4 remote access (4) 1. When I try to connect via the Cisco VPN client software, I am able to connect however I am unable to access network resources. However, I can ping the servers in the oth

  • Smartphones blackBerry RE: Multi language support for storm exist?

    Hello I use storm blackberry in Australia, I found it's hard that I can't read some of the e-mails his in other languages... I just wonder blackberry is now language support in other languages? for example, Chinese, Korean and Japanese? Thanks for th