Images of the external file

I have a database that retrieves an image from a folder of images that is not part of the DB. The images are named principal_ID # .png where the principal_id in the DB is a unique number. The corresponding images in the image folder are named after the unique principal_Id of people so when the name is selected in a list trhe good image is selected.

The code used to do this is as follows:

< cfquery name = 'profileImage' >
SELECT DISTINCT dbo. PPS_TRANSCRIPTS. PRINCIPAL_ID
OF (dbo.) JOIN the PPS_SCOS dbo. PPS_TRANSCRIPTS ON dbo. PPS_SCOS. SCO_ID = dbo. PPS_TRANSCRIPTS. SCO_ID)
Join dbo. PPS_PRINCIPALS ON dbo. PPS_TRANSCRIPTS. PRINCIPAL_ID = dbo. PPS_PRINCIPALS. PRINCIPAL_ID
WHERE the dbo. PPS_PRINCIPALS. Name LIKE "#start #
AND dbo. PPS_PRINCIPALS. DISABLED IS NULL
< / cfquery >

Output as follows:

< td width = "22%" rowspan = "5" > < cfoutput query = 'profileimage' >
"< div align ="center"> < img src="images/#profileImage.PRINCIPAL_ID#.png "width ="100"height ="125"> < / div >
< / cfoutput > < table >

This works well when there is a picture. There are however a large number of names in the comic book, where we have no image and would like to be able to pull an image by default when there is none. The default image is called NAP.

I need to find a way for the CF to pull in the default image where the principal_id didn't users correct the image.

Hope it makes sense. Any help appreciated.


Try something like that: -.

Tags: ColdFusion

Similar Questions

  • store list with image to the external file data

    using director 11.5

    Windows xp pro

    How can I store a list that contains the image data to an external file

    using vlist or boyfriend xtra file I get an error

    -"vlist_xtra.write - 2147211470".

    Which means:

    put vList_errorString(-2147211470)
    -- " kLstErr_LockVoidImage (-2147211470)"
    

    When I re - write your code slightly:

    global vlist_xtra
    
    on startmovie
      tImage = duplicate( member(2, 1).image )
      tList = [tImage]
      tFile = _movie.path & "image_data_list.lst"
      vlist_xtra = new xtra ("vList", tFile)
      --  put "vlist_xtra ", vlist_xtra
      put "tList.ilk", ilk(tList)
      put "tList[1].ilk", ilk(tList[1])
      --  put "tList", tList
      --  put "tList[1].rect", tList[1].rect
      OK = vlist_xtra.write(tList)
      put "vlist_xtra.write", vList_errorString(OK)
      vlist_xtra = 0
      _movie.newMember(#bitmap).image = tImage
    end
    

    I see the following in my message window (and a new, valid, bitmap created in my cast):

     -- "tList.ilk" #list
     -- "tList[1].ilk" #image
     -- "vlist_xtra.write" " kLstErr_LockVoidImage (-2147211470)"
    

    You have found a bug in the xtra. What version do you use?

    put vList_version()
     -- "2.0"
    

    You should contact Mauricio Tabuleiro and report to him so it can be fixed. Please let me know if you do not, because I'm in this case - it must be fixed, and the person has reported yet shows how few users have migrated to D11.5.

    FWIW: your code works correctly in D10 with vList 1.8.5, 1.8.6 and 2.0.0, so this seems like a bug introduced with D11 or 11.5 (and probably related to Unicode)

  • How to insert images from the external file in the block of text using AppleScript

    the value myFile to null

    say application 'Finder '.

    the value ArtFolder to choose a folder with guest "Select the folder of Art: - > >".

    the value Chap1 to (get 1 folder from the folder ArtFolder)

    the value myFile to (Download file 1 to file (chap1 as alias))

    end say

    say application "Adobe InDesign CS5.5.

    set myDoc for the active document

    say myDoc

    set figureNode to XML element 1 of XML element 2 of XML element 1 of myDoc

    the value myFrame to do text block with properties {the geometric limits: {-13, 13, 3, -3}}

    tell text frame myFrame place (file (myFile))

    markup myFrame with figureNode

      end say

    end say


    ==========================================

    Condition: I want to Insert a picture of external & case content currently in the text frame... document node

    I am using above code but belowe the line does not...

    : - tell text frame myFrame place (file (myFile))

    Can someone help me please...

    Thank you

    Problem solved by code below :===>>

    say application "Adobe InDesign CS5.5.

    set myDoc to the active document

    myDoc say

    set figureNode to 1 to 2 to 1 of myDoc XML element XML element XML element

    set ArtFrame on to do text block with properties {geometric limits: {-13, 13, 3, -3}}-{y, w, h, x}

    Select ArtFrame

    Place (myArtFile as alias) on ArtFrame

    say fit myFrame given frame to content

    end say

    end say

  • Export of collections to the external file allows only export as a jpeg image and not the original file types?

    Export of collections to the external file allows only export as a jpeg image and not the original file types?

    Why is this?

    DOOH-just found out why. the video bar was enabled prevail so on options-now them it works thank you for your answers.

    George

  • event.target.content.loaderInfo gives error if I'm to access images of the external field (SecurityErr

    I'm working on OSMF-based player. I added the image of the logo at the top right of my player. Now, I want to open a link when you click on the logo image.

    I wrote a script code Action in onMouse during the event

    CODE:

    private void onMainClick(event:MouseEvent):void {}

    If (Event.Target.hasOwnProperty ('Content'))

    {

    var info: LoaderInfo = event.target.content.loaderInfo;

    var imageUrl:String = configuration. LogoImage; Logo url to view the player

    imageUrl = imageUrl.split("/").splice(1).join("/"); "

    If (info. URL. Search (ImageUrl) > = 0)

    {

    var url: String = configuration. LogoLink; Logo link to open it in a new tab

    var request: URLRequest = new URLRequest (url);

    Try

    {

    navigateToURL (request, "_blank");

    }

    catch(Error:Error)

    {

    trace ("Error occurred!");

    }

    }

    }

    }

    When I give the url of the Logo of the same domain, it works very well (given the url will open in a new tab). Problem occure when I access the image of the external domain. A field that doesn't support request to my domain.

    More information: the Logo image appears correctly on the upper right of my player. On clcik logo url, I am getting error below. I am providing the url of the logo of my config file

    SecurityError: Error #2123: security sandbox violation: Loader.content: http://10.1.0.126/release/XYZPlayer.swf Can't access to http://www.esnipe.com/shared/help_icon.gif . Access granted to no political file.

    to flash. display::Loader / get content())

    to StrobeMediaPlayback / onMainClick)

    Please can someone help me out of this error.

    use:

    var info: LoaderInfo = event.target.contentLoaderInfo;

  • Qosmio X 305-bad image on the external monitor quality

    My x 305-701 has excellent image on the original monitor, but if I connect the laptop to Acer 22 ' VGA cable I get a blurry image on the external monitor only.

    It does not matter if I use two monitors at the same time or just the Acer, the external monitor is always blurred the laptop monitor is always perfect. I tried the external monitor in 1440 x 900 and 1680 x 1050 and have adjusted the frequency of refresh of all available parameters, 59 Hz, 60 Hz and 75 Hz, and the blurred image is still there.

    I love this Qosmio and appreciate it even more on the widescreen monitor any help would be greatly appreciated.

    I know that LCD screens are blurry if set to non-native resolution. I think you need to set the correct resolution for the external monitor. Check your external display native resolution and set in display settings.

  • Portege R500 - no image on the external monitor

    Hello everyone

    There is no image on the external monitor on my Portege R500 with Win XP SP3.
    The screen seems to receive the signal, but the screen remains black.

    Anyone know a solution for this problem?
    Sorry for my bad English.

    Thank you.
    Daniel

    Hello

    How have you tried to exit from display on an external monitor?
    Usually, you use the FN + F5 key combination.
    This allows you to switch between the two screens; laptop + external display.

    I had a problem to view a video on the external monitor because the video is already running. You must switch to the external display until you start the movie, etc.

  • Shaking image on the external monitor when the Satellite A200 is running on AC

    Hello

    I have this problem that drives me crazy... I bought an external monitor for my laptop Toshiba Satellite A200-1 9 s, but the problem is that the image on the external monitor, shakes. I tried another monitor, the same, another cable, same problem; the only way to stop it is to unplug the AC of the laptop.

    I also tried to move the monitor further away from the laptop, but nothing.
    I can stop shaking so hard that if I switch to the profile AC from FULL POWER to save power... but even with this image is still shaking a little.

    So basically there is a magnetic field around here, probably in the portable, which makes my picture shaking like crazy... someone knows how to stop it?
    TX

    Hello

    Hmmm...
    I don't think it has to do something with magnetic fields.

    Cause she is related to the energy consumption of the computer, it seems that there is a problem with the AC adapter.
    If he needs to deliver all the 'juice', this is capacitors to keep absolutely stable voltage may be too low.
    These instabilities (with the frequency of 50 Hz supply) can parasitize the signal on the screen.

    A solution for this?... If you know how to solder some fat capacitors somehow between the two...

    Or:
    It is a grounding problem
    I have never heard of such problems with the LCD (VGA monitors?) monitors. Generally, this is the case when you use an analog video output,
    leading to no color on TV.
    You have an annoying hum when you connect the audio output to an amplifier? It would be a sign for it.
    I had such a problem and solved by plugging my laptop on the sector on another circuit in the House as my audio devices
    So experiment with it.
    First: unplug all the other stuff (printer, Poles, antennas, all) these are unpleasant problems with a lot of possible interference.

    Let me know!

    Welcomes Matz

  • Image of the attribute: file is not found in the list of the packaged files:

    When Build in Webworks already, I still have the following 2 lines in the config.xml file, but it said ' image of the attribute: file is not found in the list of the packaged files.


     

    My full config.xml:


    "xmlns ="http://www.w3.org/ns/widgets "
    xmlns:CDV ="http://cordova.apache.org/ns/1.0" > "
      CarlogPro
      Service and gas logs
      http://Cordova.IO "> XpertLulu"
     
     
     
     
      subdomains of http://xpertlulu.com"="true"/ >
     
     

    Need help!

    Nevermind, I've upgraded v2.0.0.54 to v2.0.0.71 Webworks and it worked.

  • Need help to open two images with the same file with different exposures on the screen at the same time in the Photoshop creative cloud (in previous versions we could open two images of the same nef (raw) file and then combine them on the screen with the

    Need help to open two images with the same file with different exposures on the screen at the same time in the Photoshop creative cloud (in previous versions we could open two images of the same nef (raw) file and then combine them on the screen with the move tool. They have become a composite of two layers which could be developed further with the mask tool.

    Hello

    Please go to the preferences > workspace and uncheck the option 'open the document in the tabs '.

    Now you can click on file and choose file > open and open the two images in two different windows which can be arranged side by side.

    Thank you

  • How to insert a preview of the image in the mucow file

    Hello

    I would like to insert a preview image when I add the muse of adobe mucow file.

    I know how it fits in the preview of the library, but cannot add the preview page. For example:

    Cattura2.PNG

    Hello

    Thanks for the reply, but I found another solution:

    (1) I create a preview of my widget (e.g. with photoshop) image.

    (2) insert an image in a server or ftp;

    (3) I add the image in the .mucow file in this mode:

    ]]>

    ]]>

    4) SAVE THE .mucow FILE and the preview widget is fine.

    In any case thanks a lot Daniel, with your answer, I solve this little problem!

    Thank you

  • LoadVars update of the external file

    Hello

    I don't know that it's easy. I created a loadVars that reads an external file in a [] table. It works very well.
    The external file updates every 20 seconds. My loadVars does not work.

    I don't know if I need to add a listener object or what to check the file every n seconds.

    Any idea?

    Thank you

    Sky

    Figured it out. I put it simply:

    onEnterFrame = function() {}
    my_lv. Load ("filename.txt");
    }

  • The external file shortcut

    Hi all

    I chose to use the shortcut to link an external file of the chm.
    The external file is a .exe file so if I use the normal hyperlink, it will show a popup to save or open to users who I don't want that.

    When I put the shortcut, I found that:

    (1) open the chm directly from Windows Explorer, navigate to the page with the shortcut, click the shortcut, the exe file is opened.

    (2) if I open the application (for example, F1) chm file, go to the same page, click on the shortcut, the exe file is not open. It has no effect.

    It seems that it's because of that if I open chm of the application, he doesn't know what work path is used.
    However, the application has its directory to help located in the environment already.
    But maybe I'm wrong. And there is another thing, what does not.
    Grateful if someone can let me know.

    Thank you
    Karen

    Hi Karen

    Take a look at the link below and see if it answers your questions.

    Click here to view the corresponding article

    See you soon... Rick :)

  • Distribute an image with the AIR file

    Hello-

    Is there anyway that I can broadcast an image with the .air file (without incorporating the image in the .swf)?

    Thank you for your help.

    Hello-

    Is there anyway that I can broadcast an image with the .air file (without incorporating the image in the .swf)?

    Thank you for your help.

  • Create Adobe Muse Widget with images and the external JS file.

    Hello, I want to create widget that include all about 7-8 images and 1 JS file.

    I read the documentation, but I have a few questions.

    Is there any way to import images of widget (no link to them)?

    Y at - it means to import the folder 'images' with pictures on it and this folder to extract to which I have 'say' (for example level even where is the page or file in the folder root of the site)?

    Is there a way to include the JS file?

    In my opinion, that these things are possible, but with Adobe Muse themes.

    How to manipulate the page with the options for the widget?

    For example, in the options, you can choose between 2-3 options and the option to apply to the page.

    I want the option widget that can change 1 variable JS variable will be in the script that is added to the page (not external JS file). I know how to add this script to the page, but I don't know how to handle with the widget options. Here's another example, I have this:

    ...........

    < bodyEndHTML >

    <! [CDATA [< script type = "text/javascript" >]]

    $(function() {})

    var someVar = "somevalue1";

    });

    < /script >]] >

    < / bodyEndHTML >

    < / HTMLWidget >

    I want with option widget to manipulate this variable 'someVar' (its value), between the selected values.

    You work with html exported Muse,

    It would be a complete customization with form action, you can try to use the coding corner

    Thank you

    Sanjit

Maybe you are looking for

  • Apple music does not work

    Apple's music doesn't let me download new songs or browse newsongs but I can play my downloaded good media

  • Z420: Z420 different revisions?

    Hi all Question Are there two different revisions of the platform Z420 as with the Z400? I have two different pdf for this product and a list of the Sandy Bridge E5 Xeons with 1600 Mhz memory and another inscription Ivy Bridge E5 V2 Xeons with 1866 M

  • My Airport extreme and Time Cap. both lasted 14 months, what happens with that. Time to change brands?

    My last two routers in Apple both lasted 14 months more I had an arrival of DAO. Of course, both just went out of warranty. My current A.E. seems must be reset to zero every day even if it is shows that it works, my devices loose their connection. Re

  • Missing NationalInstruments.DAQmx.DLL

    Hello I use VB .NET with Visual Studio 2010. I have downloadad the last version of the NOR-DAQmx driver, but when I call the library of NationalInstruments.DAQmx.DLL program this component could not be found. Where can I find this library? Thank you.

  • Cannot access my WRT54GL site

    I have two new computers, and when I go to access the router it ask on connection news. I know that I put in the info just because I can get by using my old computer. I have to give permissions somehwere allowing access to new computers? The router i