SQL Color Code

Hey,
I'm trying to write a code that changed changed the Color of the results, so if it takes a certain time it comes back red and so on. Heres the code I have right now, but its not working. Is it possible to do it?
select
case when nvl(round(qty_on_hand/daily_usage,1),0) < 1 and qty_due is null and org != 107 then ''
when nvl(round(qty_on_hand/daily_usage,1),0) < 2 then '{{BGCOLOR=#FA3D2A}}'
when round(qty_on_hand/daily_usage,1) < 5 then '{{BGCOLOR=#F5F35A}}'
end as color,
Thanks

To use the forum effectively, please
1. Update your profile with a better handle than "790773".
2. Always provide the information requested in the FAQ and forum sticky threads:
- APEX version?
- DB version and edition?
- Web server architecture (EPG, OHS or APEX listener)?
- Browser(s) used?
- Theme?
- Templates?
- Report type (standard or interactive)?
3. Always post code wrapped in *\...\* tags.
I'm trying to write a code that changed changed the Color of the results, so if it takes a certain time it comes back red and so on....Is it possible to do it?Yes, but how depends on information you have not provided: see above.
'{{BGCOLOR=#F5F35A}}'Where did you come by this? It's not syntax that applies to APEX, HTML, CSS or Javascript...

Similar Messages

  • Where is SQL color coding in Dreamweaver?

    I can't seem to find the SQL color coding in Dreamweaver
    CS4... how can this be omitted from such a product? Is it staring
    me in the face and I am just incredibly dull and can't find
    it?

    Alphom wrote:
    > The idea that Dreamweaver doesn't include simple code
    coloring for SQL files is ridiculous.
    Dreamweaver's SQL creation handles very simple SQL pretty
    easy, think SELECT * FROM or SELECT col1, col2, col3 WHERE id =
    parameter. But beyond that, Dreamweaver just isn't the tool for
    editing/creating SQL.
    I can't think of the last time that I used Dreamweaver to
    create SQL beyond the above. If I need something more complex, I'll
    either enter it in myself into the SQL string in a recordset, or
    use other SQL specific tools to create SQL such as Enterprise
    Manger for SQL Server, or SQL Server Management Studio Express for
    SQL Server 2005, or MySQL Control Center for MySQL, that sort of
    thing. Not every tool can do everything, so I try to use the
    appropriate tool for the appropriate task.
    Now, that doesn't mean that I don't feel like it should allow
    for a better application building experience within Dreamweaver. I
    feel that there should be a full fledged query builder similar to
    the query builder within Access that would allow for complex SQL
    generation. But I've asked for that, and if you want it, or other
    server/database related features, please do ask for it:
    http://www.adobe.com/go/wish/
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Why won't the color code I am trying to use from a windows machine work on my Mac? Code: PMS7409

    Hi I'm an intern at a telecommunications and management company who are about to release an update on their website and server screens. My job is to create the new graphics and remake the presentation layers. I am also assigned to create a business card template, which is where my question comes. I am give a color code, from a Windows OS, and try to input that code into Photoshop CS6. That color code won't appear. It's a deep orange and the code I am being told is; PMS7409. I'm not sure thats a code (atleast on the Mac), but I haven't used a Windows OS in so long I don't even know if Windows has their own color coding system or what. Can someone help me out and tell me if this is me, my boss, or we're missing something and I'm going to look like an idiot?

    Definitely not a colour code for mac, the only thing I suggest you do is if you get the code on your windows version is to get the other values i.e
    instead and input those into it rather than the #colour code (Hue, Sat, B, R, G B) etc.
    Also ... Colour codes are 6 figures long i.e the one displayed and also black #000000 and white #ffffff
    however the one you gave is 7!
    Message was edited by: ConstantAngel

  • How do I replace image color with an exact html color code?

    I simply want to change the color of a small pic to an existing html color code, 3399CC.  The pic is very simple, and only has one color.  In Photoshop CS4, I go to:  Image -> Adjustments -> Replace Color.  For the new replacement color, when I type in 3399CC, it doesn't give me that color - it gives some other shade of that color.  (I can tell because I use a program that tells me the exact html code a color is when I hover my mouse over it).  It seems the only way to really get the color you want is to adjust the sliders (hue, saturation, and lightness).  But it'd be practically impossible to play around with every increment of those sliders until I get the exact color code.  
    There's got to be a way to simply enter the html color code and have the pic changed to that color.  Does anyone have any idea?

    Turns key.  WhirrRRRrrrrRRRrrrr....  Nothing.  (I answered in the other thread)
    Perhaps I've had too much coffee today, because I just got a clear vision of Bart Simpson, at the board, chalk in hand...
    SRGB IS KING!!!  SRGB IS DEAD!!!  LONG LIVE SRGB!!!
    SRGB IS KING!!!  SRGB IS DEAD!!!  LONG LIVE SRGB!!!
    SRGB IS KING!!!  SRGB IS DEAD!!!  LONG LIVE SRGB!!!
    SRGB IS KING!!!  SRGB IS DEAD!!!  LONG LIVE SRGB!!!
    SRGB IS KING!!!  SRGB IS DEAD!!!  LONG LIVE SRGB!!!
    SRGB IS KING!!!  SRGB IS DEAD!!!  LONG LIVE SRGB!!!
    -Noel

  • Best Calendar App to connect to Google Calendar and color code appointments

    I am looking for a replacement calendar app that will connect to Google Calendar and allow me to color code individual appointments.  I have looked at a ton of apps in the app store but none of them talk about the color coding option I am looking for.  I don't want to do the trial and error thing and waste my time and money. 

    Download Gmail app. itunes.apple.com/us/app/gmail/id422689480?mt=8

  • Setting color codes for more than one photo at a time

    Is there any way to set color codes for more than one photo at a time?

    Hi John,
    I will look at keywords. My issue is speed. Right now I am culling and editing an event shoot that spanned a week with 35 separate events and more than 5000 images. So I use the fastest most convenient method I can and it still takes a long time to have a completed and final shoot. On this shoot I will end up with a final set of around 1500 images. Right now I am finishing processing a show that will hang in the Deutsches Amerikanish Zentrum in Stuttgart.
    As I am sure you are aware by now, having seen enough of my inane questions that over the last two years or since Lightroom version 1.xx if I could not figure out how to do something I skipped it. So many things in Lightroom are buried and unless you have a mind like a steel trap (and think that some of you guys in the forum do) locating how to do something is not obvious.
    For example, I only learned (in the last hour) that I could assign colors as a group of selections by using Shift + number. I found this in a side head in Martin Evenings Lightroom book. I still do not know how to find a way to display the color filter "selection" set in Library mode. Is there a way?
    To top it off, Stuttgart Media University asked me if I would add a Lightroom module to my schedule this year. Now I have a compelling reason to learn all those missing pieces that I have created workarounds for. Hence the number of posts you have been seeing from me over the past few of weeks.
    I tell my class that there are no such things as stupid questions, only questions. Now I am practicing what I have been preaching for the last gazillion years. Guys like you have been great.
    My workflow is
    1. I first separate all images by event. I do that at the time of import.
    2. I do a fast pass rejecting all the obviously bad images
    3. I do a second pass grouping the images by sub-group (speeches, people talking, performances, etc.) This is where I run out of selection methods and your key-wording could work but it would probably take too much time to establish a keyword set for a single event. Where I have more than five subgroups I set up different collection sets with one collection for each sub group. However I would like to keep a single event in one collection.
    4. I then select the images to be used by color code.
    5. Next I process the final images (crop develop etc) by collection.
    6. Last I output the set according to client requirement.
    If you have a better workflow, I am all ears.
    By the way, what is your photo specialty and where are you located?
    Jim

  • 3D Map - Color Code and Cursor Tracking

    Hi, I need some help trying to implement some user interface functionality for a program I am developing.
    This will be a tuning tool for automotive ECU. The program will be reading in two signals (Y-axis is RPM, X-Axis is manifold pressure) and use a 2D interpolation to output a Z value to be used in a calculation. There are two pieces I'd like to add to this. 
    1. Color code the cells based on the cell value in relation to the max and in of the entire 2D-Array
    2. Have a live currsor that tracks the current cell of the 2D array and highlights the cells that are being used in the interp calculation so it makes it easier for the user to make changes and calibrate the tables. 
    3. BONUS: An easy way to be able to select a range of cells and increment them by a set amoun or scale them all by an imput amount (like scale range by 90%).
    Basicly, I'd like to recreate some of the user interface functionality of the software shown below in the second picture and the video linked below. 
    VIDEO:    https://www.youtube.com/watch?v=OkVUJCy0sJ4
    VIDEO:   https://www.youtube.com/watch?v=oeZc-ka6ago      (at 16:45 you can see a good example of the currsor tracking through the cells as teh two inputs change)
    -As you drive and the RPM and loading changes there is a blue ball that tracks on the table the current x-y location of the 2D map and the four coresponding cells around the ball are highlighted to show witch of these cells are being used in the calculation so the user can easily alter these cells in real time to tune the output he is looking for. I'd like to be able to highlight, or blink either a single cell closest to the current value, or the 4 corners around it and have it update real time as the user drives the car. 
    Any ideas of how to implement this kind of functionality? The current VI is attached. I should note the x-array and y-array won't necessarily always be constant spacing between cells.
    Thank you for any help in advance!
    Attachments:
    3D Map Color Coded & Currsor.vi ‏17 KB

    Okay, so I made some progress on this. I was able to use an intensity graph to visually color code the relative position of the cells. Is there a way to make the 2D array translucent and overlay the color array intsity graph behind it? is there a better way to do this. 
    I was able to get the closest current cell value to update as black and track around live on the intensity graph. I did this by temporarily setting the cell's value to 0. Is there a way to somehow highlight the actual cell on the 2D-Array instead? 
    The code is attached. I added a random sine wave input to simultate some signals for the x and y input. The Y array now runs in reverse order which made it tricky to get some of the functions to work properly so I had to use a 2D transpose and 1D reverse array to get it back in the right form. There's probably a better way to do this. 
    Any help is great appreciately and rewarded with Kuddos!  
    Attachments:
    3D Map Color Coded & Currsor (Rev B).vi ‏33 KB

  • How to delete other files(yellow color code) from the hard drive, how to delete other files from the hard drive

    how can i delete the yellow color code items from my hard drive? What are these other files anyway? I wanna save some memory space from my storage.

    Macbook Pro community is here
    Following thread could solve your question.
    https://discussions.apple.com/message/19030300#19030300

  • Color Code is not working, please help

    I am using the color code 080808 from adobe photoshop as my background for my template.  When i put the JPG file into dreamweaver and try to set the page properties in dreamweaver (background) to 080808 it is putting me at pure black.  please help me.080808 is not a pure black its a shade of it.  I need a color code that matches 080808 correctly.  thanks
    I am using adobe CS3

    I'm not quite sure I understand exactly what you are doing, but I ran into something like this myself.  I was creating GIFs in Photoshop -- type on a background color.  I then created DW pages.  I used the same color code for the background color in PS and again for the background color in DW, but when I inserted the images in the page, they did not match.  It turned out that when I created a new file in PS, I was creating it in my default color space, Adobe RGB.  I assumed that when Save For Web converted the file to sRGB, the colors would convert perfectly.  What I found is that I should have been creating my PS files by starting with a new file in sRGB color space.  Once I did that, the background color of my images identically matched the background color of my DW page.
    Hope this helps.
    John

  • SQL Error Code: 1461

    We are currently facing a problem in which we are getting “SQL Error Code: 1461
    java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column” . This issue is not happening always and only happens in the PROD environment. We tried to replicate this scenario in our QA and Local and where not able to reproduce it.
    The scenario is we have a web application screen in which the user enters multiple data which includes textarea which supports upto 2000 characters and it is stored in database as varchar2 the other fields are stored as Number and clob datatype. Whenever we perform some changes in a textarea which is varchar2 (2000) in the database we are getting this ORA – 01461. However this scenario is only happening in PROD. In QA whenever the user enters more than 2000 characters the strut level validation handles it.
    We are using Spring framework for DAO operations and the Spring Version is : 1.2.8 , oracle version 9i.
    Oracle NLS setting
    (SELECT * from NLS_SESSION_PARAMETERS)
    PARAMETER,VALUE
    NLS_LANGUAGE,AMERICAN
    NLS_TERRITORY,AMERICA
    NLS_CURRENCY,$
    NLS_ISO_CURRENCY,AMERICA
    NLS_NUMERIC_CHARACTERS,.,
    NLS_CALENDAR,GREGORIAN
    NLS_DATE_FORMAT,DD-MON-RR
    NLS_DATE_LANGUAGE,AMERICAN
    NLS_SORT,BINARY
    NLS_TIME_FORMAT,HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT,DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT,HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT,DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY,$
    NLS_COMP,BINARY
    NLS_LENGTH_SEMANTICS,BYTE
    NLS_NCHAR_CONV_EXCP,FALSE
    Ojdbc.jar version Specification-Version: Oracle JDBC Driver version - "10.2.0.1.0"
    Edited by: Sanu Sasidharan on Apr 6, 2010 11:20 PM

    We further debugged this issue today and checked the ojdbc14.jar which is used in the QA and PROD environment.
    The issues is happening with the jar, Specification-Version: Oracle JDBC Driver version - "10.2.0.1.0"
    But in our QA we are using ojdbc14.jar Specification-Version: "Oracle JDBC Driver version - 9.0.2.0.0" in this version the issues is not happening. We replaced the 9.0 with 10.2 jar in our QA and we were able to reproduce this issue.
    Hence we have localized the issue to be related to version.

  • Created file in illustrator then opened in photoshop but color code changed?

    I Created file in illustrator and then opened the art in photoshop but the wierd thing is that the color code changed. If you look at the image with you eye the color will look the same to the naked but if you use the eye dripper tool you can see that the color code has changed between illustrator and photoshop.
    Is there a way to make the CMYK color code stay the same?

    In Illustrator the "Edit---> color settings" are set to "North America General Purpose 2" and the that is the same color setting choice in Photoshop.
    For example there is a black color in Illustrator that has this CMYK code "60, 49,47, 100"
    but in photoshop the CMYK code for the same part of the graphic changes to "75, 68, 67, 90"
    This is only one example of many color code changes that are happening and this may look like the same color on the screen but I need them to both have the same code because I am doing specialized printing and need no changes in color codes like this to occur.
    If I have the color setting in both photoshop and illustrator both set exactly the same "Edit---> color settings" then do you know why this color shift would be happening. Please help.

  • Color code groups in address book

    Is there any way to color code groups so that when mail comes in I know to associate it with a specific group. I was able to do this in entourage but have switched to apple mail.

    As already described, create a new Rule in Mail.app (Mail -> Preferences -> Rules), that reads:
    if (ANY) of the following conditions are met:
    (Sender is member of group) (xxxxxxxxx)
    Perform the following actions:
    (Set Color) (Of Background (or text as you prefer) to (Any color you wish)
    Save the rule.
    Before doing that, you might want to create a few Groups (or Smart Groups) in Address Book with the people you want to color.
    Hope this helps.
    Message was edited by: Martin Marconcini (changed sqared brackets for parenthesis)

  • Why color code css using powershell command is not visible in email ?

    Hello,
    I am applying color code for disabled status in PS script as  written below :
    $ReportData = Get-SPServiceInstance | Select Server,TypeName,Status,NeedsUpgrade | ConvertTo-Html -Fragment
    $DisabledStatus='<td>Disabled</td>'
    $DisabledColorStyle='<td style="background-color:red !important;color:white !important" >Disabled</td>'
    $ReportData = $ReportData -replace $DisabledStatus,$DisabledColorStyle
    ConvertTo-Html -Body "<font color = blue><H4><B>Report </B></H4></font>$ReportData" -Title "Test Report" -CssUri C:\style.CSS | Out-File "E:\Reports\TestReport.html"
    This report shows perfect on system where report file is located at E:\Reports\TestReport.html location as below :
    However , when I send this report via email using following command
    $Report = Get-Content "E:\Reports\TestReport.html"
    Send-MailMessage -To $To -SmtpServer $SMTP -From $From -Subject $Subject -BodyAsHtml "$Report"
    I dont see disabled as red color in email , while table's style is working which is stored at C:\style.CSS
    Would you please let me know the reason behind same ?
    Thanks and Regards,
    Dipti
    Dipti Chhatrapati

    Hi Dipti,
    I‘m writing to check if the suggestions were helpful, if you have any questions, please feel free to let me know.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Png files not exporting in correct color code

    Hey everyone I've had this continual problem in illustrator with png exports, for some reason my png's export with duller, less saturated colors than what I am seeing inside of illustrator. However, my jpegs export correctly. I've been able to figure out that my png's are not exporting with the correct color code (sRGB), even if this option is selected in "save for web" options. I have been having to open the png's in Mac's preview program or opening them into photoshop and exporting with sRGB profile embedded from there. I figure there must be some setting I don't have selected within illustrator. Document color mode is RGB, working space is sRGB, "Color Management Policy" is preserve embeded profile, and under the "Assign Profile" option it is set to working space RGB: sRGB. Any suggestions?

    I don't think there is anything wrong with the color management you are using.
    I suspect that you are using Illustrator CS6.
    Although you can specify that the image has to be converted to sRGB (and it probably does), the profile is not embedded in the file.
    The latest CC version does, although you cannot check a box: ICC Profile like you can when saving JPEG.
    I think the reasoning behind this could have been: "PNG is a web file format. and Browsers cannot be trusted with colormanagement, most of them think that all files are sRGB, so why embed the profile..."
    So you did the right thing by assigning the profile in Photoshop.
    Ton

  • Can I color-code file types?

    I'm a Mac newbie. I carried over some Windows files I have been working on for years. They were made by different versions of a layout program (PageMaker 6.5 -> PageMaker 7.0 -> InDesign CS5.5), and so have different file extensions.
    I see how to color an individual filename, but would like to assign one color to all files with the same extension to facilitate bringing them all up to date. Can I do that?

    Hello,
    Yes you can color code based on extensions. Open a Finder window and hit command+F - this is a search window that can be populated according to your searching criteria and can also be saved to later consulting (it would live in the sidebar should you decide so). Click on the little drop down menu presently labeled as Type and choose other; type extension on the now blinking cursor besides the magnifying glass to narrow your options, choose file extension and "ok" your selection. Now fill the box with the desired extension (no dots necessary) and select all, do your color coding and you're done.
    Regards,
    Vitu

Maybe you are looking for

  • Does Time Machine work?

    I see lots of posts from people with the same problem I have: TM worked correctly for a while, now I get "error creating backup directory" messages. The answers mention a lot of possible problems/solutions, but really: this software is painful to use

  • Java.lang.NoSuchMethodError: java.lang.Float: method parseFloat(Ljava/lang/

    java.lang.NoSuchMethodError: java.lang.Float: method parseFloat(Ljava/lang/String;)F not found WHAT WOULD MAKE THIS HAPPEN. THIS SEEMS TO WORK IN JDK1.3.1 BUT NOT IN BLACKDOWN 1.1.3_V3 THIS IS MY CODE: try{ DecimalFormat dfp = new DecimalFormat( "0.0

  • Calling EJB from another EJB

    I need to make a several calls to the methods inside EJB1 from EJB2. I was getting the remote reference of the EJB2 inside the ejbCreate() of the EJB1, is it a good practice ?? If not, do I need to get remote reference of the EJB2 every time I need t

  • Role upload from portal.

    hi, I am attempting to upload a sampling of R/3 ECC 6.0 roles into the portal (EP7.0). I have the system connection defined and testing successfully. I unfortunately can not execute the upload function. After defining the selections that I wish to up

  • Aperture 3.4.1 and Outlook 2011

    Although you can select Outlook 2011 to email photos directly from Aperture, it does not work in 3.4.1. The only email that works is "mail" , which is an email client I do not use. I also have Entourage 2008. this is also selectable- but also does no