the data of a column based on the value of color.

Hi guys,.

I use APEX 4.0.2

I'm changing the color of the column 'calling_date' so it would be blue when it is equal to sysdate. I typed this code in the Source of the interactive report region.
 case
   when calling_date = sysdate then '<span style="color: #3399FF;">' || to_char(calling_date) || '</span>'
   else to_char(calling_date)
end CALLING_DATE 
And then I changed the "display AS text" column 'Standard report Column '.

But wouldn't change the color!

Kind regards

Published by: Fateh June 2, 2011 12:38

>
I applied it, but he gave me like a tank I can't order according to date of color.

case
   when trunc (calling_date,'DD') =  trunc(sysdate,'DD') then
 '' || to_char(calling_date) || ''
   else to_char(calling_date)

If I remove "TO_Char", I get this error:

incompatible data types: expected DATE got TANK

Tony Miller, thank you. I followed the instructions on your link, but I got the same error:

incompatible data types: expected DATE got TANK
>

Tyler method uses * columns * 2 in a standard State:

select
         calling_date
       , case
           when trunc (calling_date,'DD') =  trunc(sysdate,'DD') then '#3399FF'
           else 'inherit'
         end color
...

then combined using an HTML Expression:

#CALLING_DATE#

It is not available in an interactive report (not sure if this information was clearly in the op?)

In the IR, generate a HTML comment at the cutting edge of the column that supplies the required using the semantics of character sort order:

select
...
       , case
           when trunc(calling_date,'DD') =  trunc(sysdate,'DD')
           then
             '' || to_char(calling_date) || ''
           else
             '' || to_char(calling_date) || ''
         end calling_date
...

Tags: Database

Similar Questions

  • Read the values of color to the color chart of InDesign CS5, js

    Hello

    I need to read the values of color to the color chart. I got this to OMV and hoped he would give me an array of color values for all existing shades, but I get only "color of the object":


    mySwatches = myDoc.swatches [1] .getElements ();


    Alert (mySwatches)

    Thank you for your help.

    Yulia

    I have it. Works very well.

    Thank you.

  • Make a column based on another value of the column in the same table

    JDev 11.1.1.6.0

    It may be a silly question but I'm stuck

    I need to conditionally return a column that said Condition is as if the value in the other column of the same table B is equal to F. I should make A column only when this condition is met. I tried the following code:

    < af:column sortProperty = "PhoneNumber1."
    sortable = "false".
    headerText = "#{bindings." A.hints.PhoneNumber1.label}.
    ID = "c146.
    rendering = "#{rank." PhoneNumber1ResponseFlag eq 'F'} ">"
    < af:outputText value = "#{rank." PhoneNumber1}.
    ID = "ot130" / >
    < / af:column >
    < af:column sortProperty = "PhoneNumber1ResponseFlag."
    sortable = "false".
    headerText = "#{bindings." B.hints.PhoneNumber1ResponseFlag.label}.
    ID = "c80" rendered = "true" >
    < af:outputText value = "#{rank." PhoneNumber1ResponseFlag}.
    ID = "ot129" / >
    < / af:column >

    The data presented in the table for the PhoneNumber1ResponseFlag column are F. Still my condition does not work.

    Well, I've finally sorted it myself by managed bean.

    Here are the steps I followed:

    1. Wrote a new bean managed.
    2. Added a Boolean variable called flag and made to true when the "'PhoneNumber1ResponseFlag ' current line attribute is equal to F."
    3. Changing the property made column on this indicator.
  • Update the value of the column based on another value of the column to another table

    Hi all

    I have something very confused me and need your help.

    Having two tables A and B.

    Table A have 2 column (+ id + and desc1)

    Table B have column 2 also (+ transnum + and desc2)

    Now, I want to update the column desc2 of table B identical desc1 of table was where transnum of Table B same as the id of the table has.

    I use this SQL

    update of a2 set a2.desc2 = a1.desc1 of a2 on a2.transnum = a1.id inner join a1

    but this error occurs

    Error from line 5 in order:
    update of a2 set a2.desc2 = a1.desc1 of a2 on a2.transnum = a1.id inner join a1
    Error in the command line: 5 column: 35
    Error report:
    SQL error: ORA-00933: SQL not correctly completed command
    * 00933. 00000 - "command not properly ended SQL."
    * Question: *.

    * Action. *

    Hope someone can help me. TQ for help...
    SQL> create table a1 (id number(2),des varchar2(10));
    
    Table created.
    
    SQL> create table b1 (transnum number(2),des varchar2(10));
    
    Table created.
    
    SQL> insert into a1 values (1,'maran');
    
    1 row created.
    
    SQL> insert into b1 values (1,'ram');
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> update b1 set des=(select des from a1 where b1.transnum=a1.id);
    
    1 row updated.
    
    SQL> select * from b1;
    
      TRANSNUM DES
    ---------- ----------
             1 maran
    
  • The value line color only certain transparent traces

    Hello!

    I'm looking for script set the stroke to some traces of transparent color (for CS6)

    Thank you!

    give this a go...

    function outlineSelection(){ 
    
        var col = new CMYKColor;
        col.cyan = 0;
        col.magenta = 0;
        col.yellow = 0;
        col.black = 100; 
    
        var sel = app.activeDocument.selection;
        for(var i=0; i < sel.length; i++){
            if(sel[i].typename === "CompoundPathItem"){
                for(var j=0; j< sel[i].pathItems.length; j++){
                    modify(sel[i].pathItems[j]);
                }
            }
            modify(sel[i]);
        } 
    
        function modify(obj){
            obj.filled = false;
            obj.stroked = true;
            obj.strokeColor = col;
            obj.strokeWidth = 0.25;
        }
    }
    outlineSelection();
    

    EDIT: I only got 1 = in the stated case, oops. I've updated to =.

  • Measurement of the values of color

    I want to know how many pixels there is a specific shade of gray, or rather, all shades of gray, in a grayscale image.  Basically, I want a histogram, but I want in the form of a graph.  As far as I know the only way to see how it is a certain shade must scroll on the crest of the shadow in the histogram.  Is it possible to turn those numbers into a graph?  Or any other ideas to quantify and to record the amount of pixels of each value in a color picture?

    Thank you

    Kate

    Try this. It will put a text file in the same folder as your images:

    #target photoshop
    var gtg = true
    var file = new File('~/desktop/histogramtext.txt')
    var doc
    var fold = new Folder('~/desktop/');
    var allInfo='';
    var fName
    fold = Folder.selectDialog('Select a folder of images',fold)
    var fileList = fold.getFiles ()
    
    for (var j = 0;j		   
  • Looping through the names of columns that are based on a value of the variable

    I have an ArrayCollection collection with a series of columns named price1, price2... through price10

    I try through these columns based on a value of the loop variable, but may not understand the syntax:

    for (var column: int = 1; column < 11; column ++) {}
    testPrice = myGrid.selectedItem.price (column); <-this does not work
    }

    Try testPrice = myGrid.selectedItem ["price" + column];

    Don't forget to test this selectedItem is not null before you try to set the values.

    TS

  • Selection of a column in a table based on a value

    Hello

    I'm stuck with a little problem here. I need to fill a column based on a value. I have an xml that looks like this to make it simple. (Don't worry, I'm not managing the status of a stock of candy ;-)))
    I have to build in rtf.

    <? XML version = "1.0" encoding = "UTF-8"? >
    -< ROWSET >
    -< ROW >
    < CANDY > Bubble gum < / CANDY >
    without SUGAR < > < / SUGAR >
    < / ROW >
    -< ROW >
    < CANDY > candy cinnamon < / CANDY >
    without SUGAR < > < / SUGAR >
    < / ROW >
    -< ROW >
    < CANDY > candy Gummy < / CANDY >
    < SUGAR > < / SUGAR >
    < / ROW >
    < / LINES >


    I have a table with two columns. I need to put on the left column candy SUGAR-free"and right the"tart ".
    Is there a condition to get there. Or what I have to do two table a column next to each other and adapt if condition in the for each.

    Best regards

    Olivier

    Have the same structure of table with two columns and each conditions in each of your columns.
    Say in column1: text to be printed
    Column2: text to be printed

    Hope this is what you want

  • Changing the values of gray and black objects/type

    If I create a rectangle or some type in Illustrator and he give the values of color (for example) c = 0%, M = 0%, Y = 0 and K = 50% then deselect when I recheck he values change to C = 45.13%, M = 36.1%, Y = 34.83% and K = 1.3%.

    Can someone tell me why this is happening?

    You are in RGB color mode?

  • Export of the correct Hex colors via script

    Hi all

    I need to export the fillColor of a paragraph via script style.

    I can get the fillColor of the paragraph style property and can also convert CMYK Hex. However, I realize that color in InDesign values in some color space of the document uses.

    My question is, is there a native API to convert the values of color for a web safe color value? If this is not the case, how can I go on the correspondences between colors?

    In addition, I see that Adobe knows internally to convert it to a good hex color (attached screenshot - note the color property in the export marking side). If I can't use some native API, is there a way to access the text in this pane?

    Screen Shot 2014-12-15 at 7.25.20 PM.png

    Thank you all in advance!

    Win! It worked!

    Here is the complete solution-

    Assuming that the original color is stored in a variable named color :

    var color = passedInColor; //the original color that we wish to convert.
    
    // Create a temporary color instance that we'll use to extract updated colorValues.
    var scratchColor = workingDoc.colors.add({
                             model: color.model,
                             space: color.space,
                             colorValue: color.colorValue
                        });
    
    // Now, we force adobe's internal color conversion mechanism to trigger by changing the scratchColor's color space.
    scratchColor.space = ColorSpace.RGB;
    var updatedValues = scratchColor.colorValue; // Updated values now has the properly mapped and converted RGB values.
    // You may need to round off the R, G and B values in the updatedValues array.
    // And that's it!
    

    Why am I not surprised that she should be a hacky autour work? * sigh *. It was so so so frustrating to work on this platform! I hope adobe gets his act together!

  • How to divide the data in the column based identifier

    Hello

    I use the oracle database.
    I have data in this format in my column 1234 ~ 2345 ~ 3456 ~ 4567.

    I need a motion to split the data in the column based on the identifier ' ~', so that I can choose the value after the second occurrence of the identifier.


    Do I know who can do this.

    Published by: 962987 on October 3, 2012 12:11

    Hello

    Welcome to the forum!

    Whenever you have any questions, please post CREATE TABLE and INSERT statements for some examples of data and the results desired from these data. For example, in view of these data

    CREATE TABLE     table_x
    (       my_column     VARCHAR2 (40)
    );
    
    INSERT INTO table_x (my_column) VALUES ('1234~2345~3456~4567');
    INSERT INTO table_x (my_column) VALUES ('just~2 parts');
    

    I think you're asking for these results

    PART_3     MY_COLUMN
    ---------- ----------------------------------------
    3456       1234~2345~3456~4567
               just~2 parts
    

    I suppose that, if the string does not contain at least 2 ' ~ s, you want to return null. It's a good idea to explain what you want like that for special cases and include examples in your sample data and results.

    Not all versions of Oracle are exactly the same. In fact, they are all different. If you want the best solution that works with your version, then say what version it is.
    The following query will work in Oracle 10.1 and higher:

    SELECT  REGEXP_SUBSTR ( my_column
                    , '[^~]+'
                    , 1
                    , 3     -- 3rd occurrence (after 2nd delimiter)
                    )     AS part_3
    ,     my_column          -- if wanted
    FROM    table_x
    ;
    

    See the FAQ forum {message identifier: = 9360002}

    Published by: Frank Kulash, October 3, 2012 15:24
    Adding sample data and results.

  • update of column based on the sum of the data from another table

    I have two tables:

    Table1 (col1, col2, col3, col4, val1, status) Table2 (col1, col2, col3, col4, val2)

    For Table1 and Table2, column (col1, col2, col3, col4) are the primary key of composit.

    Table2 could have duplicated lines, that's why I want to group by (col1, col2, col3, col4) and sum (val2)

    After that, I want to update Table1.val1 with the value of sum (Table1.val2) where Table1.col1 = Table2.col1 and Table1.col2 = Table2.col2 and Table1.col3 = Table2.col3 and Table1.col4 = Table2.col4 and status = 'V '.

    I did something like this:

    UPDATE Table1 SET val1 = (

       

    WHERE Table1.col1 = t_sommevbrute.col1 and Table1.col2 = t_sommevbrute.col2 and Table1.col3 = t_sommevbrute.col3 and Table1.col4 = t_sommevbrute.col4)

    Could someone help me please? Thank you

    merge into table1 t1

    using (select col1, col2, col3, col4, sum (val2) val2

    from table2

    Group

    by col1, col2, col3, col4) t2

    on (t1.col1 = t2.col1 t1.col2 = t2.col2 and t1.col3 = t2.col3 and t1.col4 = t2.col4 and)

    When matched then

    update set t1.val1 = t2.val2;

  • IR report visible cell based on the value of the hidden highlight column

    I have an IR with a date in the format DD-MON-AA column.  I have an obligation to change the background color of the date cell according to the day of the week (2 yellow =, 3 = purple, etc.), where Monday is day 2, Tuesday is the day 3, etc.

    My idea on how to proceed was to create a hidden like this to_char (date_col, 'r') column, but I can not set the background color of the date column based on the value of another column (the column hidden in this case). 

    Any ideas on how I can do this?  Can I use the Expression of implementation form/HTML column on the column date to set the background color; If so, can you give an example?

    Thank you.

    Use column formatting

    #COLTOHIGHLIGHT #.

    Add css to the page

  • Generating lines based on the value of the column?

    Hi all

    I would like to know if there is a function that can help me in creating lines based on a column value and, if so, which. I'm on version 11.2.0.3.0

    for example, I have these data in the table:
    ID O A C
    1 5 3 5
    2 9 2 3

    Where ID is an identifier unique record and column C contains the number of records, I would have returned for this ID. In this example, the folder with the ID 1 would be repeated 5 times and the folder with the id 2 would be repeated 3 times. The result would look like this:

    ID O A C
    1 5 3 5
    1 5 3 5
    1 5 3 5
    1 5 3 5
    1 5 3 5
    2 9 2 3
    2 9 2 3
    2 9 2 3

    Column C contains the number of repetitions Records and is defined as a positive integer > = 1.

    Of course, in real life, the table contains (at this time) 41 M number of records and the value of C can vary between 1 and 554, hardcode on the example above values is not possible.

    Any pointers in the right direction are much appreciated.

    Kind regards
    Lennert
    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select 1 as id, 5 as c from dual union all
      2             select 2, 3 from dual)
      3  --
      4  select id, c
      5  from   t
      6  connect by level <= c
      7          and id = prior id
      8*         and prior sys_guid() is not null
    SQL> /
    
            ID          C
    ---------- ----------
             1          5
             1          5
             1          5
             1          5
             1          5
             2          3
             2          3
             2          3
    
    8 rows selected.
    
  • Web Forms: Deleting line based on the value of a specific column

    Hello

    I have an online form in which I want to apply delete missing on the ranks, but only on the value of the first column. So, if the first column is #missing I want the deleted row, even if the columns are given in it.

    Is it possible to do this?

    I'm on ver 11.1.2.2 Hyperion Planning

    Shehzad

    Published by: shehzad k on January 24, 2013 11:51

    Unfortunately, no. There is no way to add the delete line based SOLELY on the existence of a value in the first column. It would be nice to see some of the more advanced features "conditional delete", we en flies over to the planning of the entry forms.

    You can do the "clumsy" things with data validations where you gray - out ranks in view of the existence of a value in a particular cell, however while this might SUGGEST that the user should not enter data in a particular line, it would not PREVENT to do so.

    We have seen many improvements in form lately with the introduction of data validations. I hope the momentum continues.

    -Jake

Maybe you are looking for

  • How to open a tab in a new window

    I remember, but by mistake, it seems, that "in ancient times", there is an option to open a tab in a new window. I can't find this option and I can't find such a topic in the forum so far. It is a very useful option. I use beta FF28 on a 64-bit W7Pro

  • To change the email address for facebook

    I want just an email address on facebook.  In order to get a Facebook friend, I had to use my old email (stroff11@gmail) to make him appear on my facebook page.  I would like to used only an email.  Is this possible?  Is the email address, I used Fac

  • lost the sound can not adjust the volume in windows xp

    I deleted items recycle and some of the add and remove, after I couldn't get sound of computer or cannot restore my computer to an earlier date, what should I do?

  • Briefcase loses synchronization of files

    I have to dock my laptop to our local network.  After disconnecting my sync has had the laptop, I then brought back, but all my Briefcase files now show as orphans.  How can I avoid this?

  • guarantee of transfer into the India

    I bought the computer dell laptop in dubai (UAE) and brought it to the India...My service tag: xxxxxxxModel: INSPIRON N5010 Basic warranty REFERENCE DELL 31/10/2010 11/01/2013 1019 Only the the parts warranty REFERENCE DELL 31/10/2010 11/01/2011 288