Font change txt according to the result of the query

Hi guys,.

I have a report in which a column in this report will bring back a yes or no value. What I want to do, is if the column returns YES then I run this field and used for column header text appear in capitals and "BOLD". Is there a way to make this iin reports and if so how I would you do it doing. Any help on this would be greatly appreciated.

Thank you.

Hello!

You can use the trigger SRW and format.

Example in a format trigger:

If (: colonne_1 = "yes")
then
SRW.set_foreground_border_color ('black');
SRW.set_border_pattern ('solid');
SRW.set_foreground_fill_color ('gray12');
SRW.set_fill_pattern ('solid');
SRW.set_font_face ("Courier New");
SRW.set_font_size (7);
SRW.set_font_weight (SRW.bold_weight);
SRW.set_font_style (SRW.plain_style);
end if;

more information about SRW: http://docs.oracle.com/html/A73172_01/output/bawor_co.htm

Tags: Oracle Development

Similar Questions

  • Font change in accordance with the resolution of the client machine

    I have a Flex application in deployment now that resizes based on the size of the screen. One screen, on which it is running is a huge flat screen of 48 ", and it should also run on different portable small etc..

    Resizing works fine, but I would also change the fonts based on the resolution of the client computer. I have two questions:

    (1) is there a way to detect that in Flex
    (2) how you dynamically set policies on barregraphes and DataGrid, you can just reference to a function rather than a variable or do you need to use a kind of special method like "fontFormula" or something?

    M.

    It works for me:

  • After the upgrade to v9.0 my address window and search window change size according to the length of the address. How to keep the search engine the same size?

    Search bar and address bar change size according to the length of the URL. How to keep my search bar the same size?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Typekit Web fonts change size temporarily when the Page refreshes

    Hello

    I use Typekit, Source without Pro fonts on my site.  The police appear in good condition, but when any page refresh or if you go to a new page on the site, all instances of the police appear more than a second and then return to normal.  Would you have any idea why this happens?

    Here's the site (excuse the pixelated image):

    Interiors of MK

    Thank you!

    You can try this help page: Adobe Typekit Help: Flash control without text style (... )

    I'm guessing that you see a Flash of unstyled text, not just a change of size. I could be wrong, but it's worth the trip.

  • Font changes when you view the site on ipad?

    Hi all

    I made a website for a client who uses the Lucida font without on the desktop version. http://masonandstjohn.BusinessCatalyst.com/

    Without sudden Lucida fonts 'Web Safe' section in Muse.

    The problem is that this font is Arial when the site is viewed on an iPad.

    How can I make the police discovers that Lucida without on the iPad?

    Thank you very much

    Ben

    On another look at the article I linked, it seems that Lucida Grande is in fact one of the fonts that iOS apps can download if necessary and that it is not one of the pre-installed fonts. The way that works is described here (note that a policy will not download if a website requests via a browser, seems to works with some applications like Pages, Keynote etc that demand and once downloaded can be used within the app only) - https://discussions.apple.com/thread/5514436.

    Yes, it isn't a web font that secure and therefore is not listed in the Muse, I was talking about actually family of fonts where Lucida without use of Lucida and so on if the device supports. And as iOS supports none of those, worth default sans serif which is the last battery.

    So either use a different font that supports iOS, or use web fonts, or if you have Lucida without installed on your system, apply it as a system font through Muse (which would export the text as an image), or if you have the file .ttf to the police, you can take advantage of the CSS3 font-face rule if this is useful - http://forums.adobe.com/message/5124151.

    Thank you

    Vinayak

  • Dynamically change color according to the value of the field field

    I hope someone can help with my problem, I have not dealt with Java Script before please bare with me as I try to explain.  I tried searching everywhere for the answer but am getting lost a bit in some answers just so I was wondering if anyone on the forum can help.

    I am trying to create a reliable PDF form for a risk assessment. The user in the columns of the severity and probability input values and the value is generated automatically in the column risk classification. So I managed to get the number of risk rating to calculate automatically using the option calculate and select the value is the product of "Severity1", Likelihood1  It's great, so now I want to the field of evaluation may change the background color based on the value as follows:

    1-5 = Green

    6-10 = orange

    11-25 = Red

    I don't have any idea if this can be done via the Java Script or if it is not possible, I'm sure it will, but I need someone much smarter than me to guide me on how to do it. I guess it's the same concept as the conditional formatting in Excel.

    This is something like what I'm trying to achieve.

    Any help would be greatly appreciated

    Thank you

    Matt

    Gravity
    Likelihood
    Level of risk
    122
    236
    3412

    You will need to use a custom calculation script, something like:

    Custom calculation script

    (function () {}

    Get the field values as numbers

    var v1 = + getField("Severity1").value;

    var v2 = + getField("Likelihood1").value;

    Calculate the product

    var prod = v1 * v2;

    Set the value of this field;

    Event.Value = prod;

    Default background color

    var bg = color.white;

    Set the color orange

    Color.Orange = ['RGB', 1,.33, 0];

    Determine the background color on the product

    If (prod > = 1 & prod)<=5)>

    BG = color.green;

    } ElseIf (prod 5 > & prod)<= 10)="">

    BG = color.orange;

    } ElseIf (prod > 10) {}

    BG = color.red;

    }

    Set the background color of the field

    event.target.fillColor = bg;

    })();

  • Two lines results in a single report according to the query condition

    Is it possible to have a report where the first rwo of the report will display the result of query1 and second row will display the result of query2. 
    
    The query1 and Query2 are as follows:
    
    SELECT BNO, DATA1 FROM TABLE1 ;
    
    SELECT RNO, DATA2 FROM TABLE2
    
    The matching condition is BNO = RNO(+)
    
    Kindly suggest ?
    
    Sanjay
    
    
    CREATE TABLE TABLE1
    (
     BNO          NUMBER,
     DATA1        VARCHAR2(20)
    );
     
     
    CREATE TABLE TABLE2
    (
     RPNO           NUMBER,
     RNO         NUMBER,
     DATA2       VARCHAR2(20)
     
    );  
     
    INSERT INTO TABLE1(BNO, DATA1) VALUES(111,'200');
    INSERT INTO TABLE1(BNO, DATA1) VALUES(112,'400');
    INSERT INTO TABLE1(BNO, DATA1) VALUES(113,'500');
    
     
    INSERT INTO TABLE2(RPNO,RNO,DATA2) VALUES(10,111,'100');
    INSERT INTO TABLE2(RPNO,RNO,DATA2) VALUES(11,111,'100');
    INSERT INTO TABLE2(RPNO,RNO,DATA2) VALUES(12,111,'100');
    INSERT INTO TABLE2(RPNO,RNO,DATA2) VALUES(13,112,'400');
    INSERT INTO TABLE2(RPNO,RNO,DATA2) VALUES(14,113,'500');
    
     

    A solution may be UNION ALL

    SELECT
         BNO,
         DATA1
    FROM
         (
              SELECT
                   BNO, DATA1,rownum as rn
              FROM
                   TABLE1
              UNION ALL
              SELECT
                   t2.RNO as BNO, t2.DATA2 as DATA1, rownum as rn
              FROM
                   TABLE2 t2
              WHERE
                   EXISTS
                   (
                        SELECT
                             1
                        FROM
                             table1 t1
                        WHERE
                             t1.bno = t2.RNO
                   )
              ORDER BY
                   1,3
         );     
    
    BNO                    DATA1
    ---------------------- --------------------
    111                    200
    111                    100
    111                    100
    111                    100
    112                    400
    112                    400
    113                    500
    113                    500
     8 rows selected 
    
  • The menu system default language does not change according to the location that uses in-app

    Hello

    I have an emergency in application if you can reply me as soon as possible.

    In fact, I've implemented localization in application for Os 5.0 for 7.0.But, I extract some problems on specific devices so can you help me out for short.

    My problem: -.

    I use both languages in my application 1. Netherland and 2. English.

    Then 2 type of different scenario produced

    1. whenever the user change language of application at this time menu default language (Close, keyboard and Application Switch) no change. These are the ways that they change language according to the language of the camera. But this problem go get some specific device as 9850 for Os 7.0 and 9300 for Os 6.0.

    2 even conducted no user in another device like 9300 Os 5.0,8900 Os 5.0,9800 Os 6.0, 9900 Os 7.0 and Os 7.0 9320 ect... When this default menu (Close, Application Switch) changing the language according to the language of demand. These are the ways that they do not change language according to the language of the camera.

    Hello

    It's the Os.

    I confirm with the BlackBerry support team.

  • Need help with the query to get the County

    Hello

    Oracle 10 g 2 10.2.0.3 - 64 bit

    I want back the number of accounts with two different types of funds (say A and B). Some accounts hold only one of the two funds, and some support both. I want to get the counts like this:

    • account held funds - has only
    • accounts holding funds-B only
    • accounts holding the Fund-A and B funds

    Here is what I started with but need assistance to meet the requirement above:

    select 
    count(distinct acct.bkoff_acct_no ) accounts_holding_fund_A
    from xe_account acct,
            xec_tal_investment_mandate iman,
            xec_tal_asset_allocation alloc,
            xe_benchmark bmark,
            xe_benchmark_usage bu,
            xe_object_description xod,
            xec_asset_class cls
    where iman.mandate_status_cd='A'
    and cls.asset_class_cd = alloc.asset_class_cd
    and iman.mandate_id = alloc.mandate_id
    and acct.account_id = iman.object_id
    and iman.object_type_cd = 'ACCT'
    and iman.mandate_id = xod.object_id
    and xod.field_nm='XEC_TAL_INVESTMENT_MANDATE.COMMENT_TXT'
    and xod.language_cd = 'E'
    and acct.acct_status_cd = 'O'
    and bu.object_type_cd(+) = 'TMAA'
    and bu.object_id(+) = alloc.asset_allocation_id
    and bmark.benchmark_id(+) = bu.benchmark_id
    and alloc.resp_txt like '%fund-A%'
    
    
    

    And suppose that the Fund-B has resp_txt like ' % of Fund-B»

    Please suggest.

    Concerning

    Hello

    Here is another way, it is easier to adapt to different jobs and different numbers of jobs:

    WITH got_distinct_jobs AS

    (

    SELECT DISTINCT deptno, job

    FROM scott.emp

    WHERE job IN ("ANALYST", "CLERKS") - or what

    )

    got_job_list AS

    (

    SELECT LISTAGG (job, ",") THE Group (ORDER BY work) AS job_list

    OF got_distinct_jobs

    GROUP BY deptno

    )

    SELECT job_list

    COUNT (*) AS num_departments

    OF got_job_list

    GROUP BY job_list

    ;

    This shows all the combinations of the jobs listed in the WHERE clause of got_distinct_jobs.  You don't need to change anything else in the query.  There may be any number of jobs.

    Output:

    JOB_LIST NUM_DEPARTMENTS

    ------------------------------ ---------------

    CLERK                                        2

    ANALYST, CLERK 1

  • Change the color of the cell of the results of the query, the font size, style

    Change the color of the cell of the results of the query, the font size, style
    Hello
    I have this code below and let me know if it is possible to make the column header a different font style
    Example:
    Font size = 12
    Verdeña
    Blue
    And the cell in the name column in a different color for ex
    Yellow


    Is it possible here and where this code should I put it?

    Thank you very much


    < cfquery = name "gelov datasource ="kl90">"
    SELECT
    -------------------------------------------

    Of
    --------------------------------
    WHERE
    -----------------------------------------
    -----------------------------------------------------

    ORDER BY
    < cfswitch expression = "#Form.orderBy #" >
    < cfks value = "KSNUMBER" >
    KS. KS_NBR
    < / cfks >
    < cfks value = "DATECREATED" >
    KS. KREATDAT
    < / cfks >
    < / cfswitch >
    < / cfquery >

    <! - report html - >
    < cfswitch expression = "#Form.outputFormat #" >
    < cfks value = "HTML" >

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
    "< html xmlns =" http://www.w3.org/1999/xhtml "> "
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"
    Report Kss Ctwye < title > < / title >
    < / head >
    < style type = "text/css" >
    table {}
    do-family: Arial, Helvetica, without serif.
    do-size: 10px;
    }
    TD {}
    do-family: Arial, Helvetica, without serif.
    do-size: 10px;
    }
    Th {}
    do-family: Arial, Helvetica, without serif.
    do-size: 10px;
    }
    H2 {}
    do-family: Arial, Helvetica, without serif.
    do-size: 12px;
    }
    H3 {}
    do-family: Arial, Helvetica, without serif.
    font-size: 13px;
    }
    < / style >

    < body >
    < cfoutput >
    < table border = "0" cellpadding = "3" cellspacing = "0" >
    < b >

    < td align = "center" >
    Kss Ctwye report < h3 > < / h3 > < br > < br > < table >
    < /tr >
    < b >
    < td align = "center" >
    < / h2 > report returned #getCtwyeKss.RecordCount # entries < / h2 > < table >
    < /tr >
    < b >
    < td >
    < table border = "1" cellpadding = "2" cellspacing = "0" >
    < b >

    < td width = "160" > Ks number < table >
    < td > K-date < table >
    <!-< class = 'dataField' td > address < table >
    < class td 'dataField' = > Type < table >
    < class td 'dataField' = >-> Description < table >
    < /tr >

    < cfloop query = "getCtwyeKss" >


    < tr bgcolor = "< cfif currentrow mod 2 > F8F8FF < cfelse > WHITE < / cfif >" >
    < td > #KS_NBR # < table >
    < td > #dateformat(KREATDAT,"mm/dd/yyyy") # < table >


    < /tr >
    < / cfloop >

    < /table >
    < table >
    < /tr >
    < /table >

    < / BODY >
    < / HTML >
    < / cfoutput >
    < / cfks >

    < cfks value = "CSV" >


    < NAME CFHEADER = "Content-Disposition" VALUE = "attachment; filename = ctwye.csv">
    < cfcontent type = "application/msexcel" > "Ks Number', 'K-date '.
    < cfoutput query = "getCtwyeKss" > #ltrim (KS_NBR) #, "#dateformat(KREATDAT,"mm/dd/yyyy")" # "< tr #IIF (getCtwyeKss.CurrentRow MOD 2, OF (»), DE('backgroundColor="##999"')) # >"



    <!-< tr bgcolor = "< cfif currentrow mod 2 > # 808080 < cfelse > ##ffffff < / cfif >" >-->
    < / cfoutput >


    < / cfks >
    < / cfswitch >

    There is a suggestion in your other thread

  • According to the browser font changes

    Site built must with Verdana defined as fonts throughout the site, but the police changes depending on the browser used.  Help!

    Verdana is a 'web safe '. The notion of a 'web safe' font is a bit inappropriate. A web safe font is actually a list of fonts.

    The ToolTip that appears when you hover over "Verdana" in the list of Safe Web fonts shows the policies 'rescue' or the 'font stack' associated with this web security police.

    The idea with secure web fonts must choose will use the fonts that visitors to your site can be found on the majority of computers, devices and versions of operating systems. However, without a font is on 100% of all computers and devices. When "Verdana" is not on the particular visitor's computer, or the device of the browser will be 'rescue' to Tahoma. If Tahoma is not available, it will be help in Geneva. If this is not available, it will ask the browser to select a sans serif font.

    Even if Verdana is available on the visitor's computer or device, it cannot be the same version of Verdana you use (and therefore can have measures of subtly different fonts and line breaks so different). Even if it is the same font, the layout breaks and the line of text may still vary to a browser due to the subtle differences in text layout engines in each browser. Where the font is not available at all and the browser must relief appearance to a different font, and the layout of the text will be significantly different.

    For the display of more coherent policies (although always with some variation of browser and OS operating system browser) and live text in the browser, use Web fonts. Click on the option 'Add Web fonts' in the menu fonts and add Web fonts to your menu. These fonts are automatically downloaded from Typekit to the computer or device used by a visitor to the site, so the same font is always used. (However, made and differences of line break will be produced again due to differences between the browsers and operating systems.)

    Another, although usually less desirable option is to use system fonts. When a system font is used Muse converts the text block to an image. This leads to slower page load times, but where a specific font should absolutely be used, it may be the only alternative. Muse automatically generates 'alt text' for the image so that the original text is always there for the search engines to index and screen readers to read, but the user will be unable to select or search the text on the page in the browser.

    The idea with web fonts secure is to choose fonts that are on the majority of computers, devices and versions of operating system of your site visitors should be used, but not a font is 100% of all devices. When "Verdana" is not on the particular visitor's computer, or the device of the browser will be 'rescue' to Tahoma. If Tahoma is not available, it will be help in Geneva. If this is not available, it will ask the browser to select a sans serif font.

    Even if Verdana is available on the visitor's computer or device, it cannot be the same version of the font you use (and therefore can have subtly different font metrics). Even if it's the same police, the layout of the text and line break can vary from a browser to a browser due to the subtle differences in text layout engines in each browser. Where the font is not available at all and the browser must relief appearance to a different font, and the layout of the text will be significantly different.

  • Need to change the font color of link in the Notes

    After using a pretty decent Notes app for several years, I decided that gap after that a recent update has managed to remove a bunch of notes but also wrongly arbitrarily assign to various independent records.  The dev did not see fit to help.  So I decided to spend while Notes from Apple since it had some praise review and it works between Mac OS and iOS.

    All started well with several hundred copied until today when I copied a number that includes links.  Oh shit!  I just can't read the links due to use very little sensitive to very low color contrast - perhaps yellow?  Understand now that I have a decent vision – 20/20 fixed as a result of a slight farsightedness and I do not have color blindness, but trying to read characters from a link in the Notes is pure torture.  Sorry for the hyperbole, but it's true.

    I increased the contrast of the display using the system Pref accessibility, which really doesn't help, and I can't find anything else that alleviate the problem.

    Is it possible to change this?  I am familiar with the Terminal so if there is a way to do it via the Terminal, which would be a boon.

    We seem all to dislike the legacy colors Blue or purple link, but in most cases, we were able to change them.  However, in my worst nightmares, I can't imagine what jerk at Apple decided that no contrast is the way to show a link.  Without forgetting the Visual deficient QA group which took place and closed on it.

    Thank you!

    -Tod

    Edit: I also opened the Format > police > display fonts, then highlighted a link.  Text color icon at the top of the table of fonts changed to imitate the yellow color of the link.  Tried to change it there with no luck.  Whose light had the idea to limit the choice of the user, in particular those who are wired into the operating system?

    FWIW, I do not normally comment on GUI issues. However, in this case, you are perfectly right. It is yellow and it is almost unreadable. I don't know how to change the color of the link, but you can drop Apple a note.

    http://www.Apple.com/feedback/

  • In the bar when I write sth such as address: soccer, it leads to search results from yahoo? How do I will change it give me the results of google search?

    In the bar when I write sth for example to address: "soccer", it leads to search results from yahoo. How do I will change it give me the results of google search?

    Hi vavamvak,

    You should take a look at article in the database Search the Web from the address bar . It will show you how to change the default address bar search provider.

    Hope this helps!

  • Satellite L50 - A-1 DG: according to the colors, lighting changes automatically

    Hello

    I have a Toshiba Satellite L50 - A - 1 DG with Windows 8.
    Only if my computer is on battery power, the brightness of the screen seems to adjust automatically according to the displayed color.

    You have a solution to this problem?

    Thanks in advance

    > I have a Toshiba Satellite L50 - A - 1 DG with Windows 8.

    I guess you wanted to say the Win 8.1 and not win 8 because the laptop came preinstalled with Win 8.1

    However, on computers laptop Toshiba Utilities and tools Toshiba are preinstalled that provides and laptop different control functions.
    One of the pre-installed tools is the TOSHIBA display utility

    Viewer includes Office text utility size, divide the screen utility and other parameters.
    I assume you find responsible option of change of backlight in this display utility.

  • Change the host for a virtual machine on a cluster and the host is not in accordance with the attached profile

    Hi all

    I have 02 questions.

    1. we have a cluster which has 02 physical hosts (Host1 and Host2). We have 02 virtual machines on the Cluster. Active DRS on the cluster.

    But the problem is that my 02 VMS are always stays on a Host2. A few weeks ago, each virtual machine carried out on each host. How can I place each virtual machine on each host to perform better.

    How to do this?

    2. I connect to the cluster using vSphere client 5.1, under summer host, I get the following message

    "Configuration problems: host is not in accordance with the attached profile.

    I suspect that this is the case for my question 1?

    Thank you very much

    Hello

    I think I found the answer for the problem of home profile. I changed the following values to 1 for each host to > settings > under software > advanced settings >

    Under Data Mover

    HardwareAcceleratedInit

    HardwareAcceleratedMove


    Under VMFS3

    HardwareAcceleratedLocking

    Compliance status is returned to the green.

    Thanks for the advice guys!

    Thank you

Maybe you are looking for

  • How can I download the backup on Mac and then restore it via iTunes?

    The STRP to restore stuck on "remaining time: estimation...» "So I would like to download the backup on my Mac and then restore it via iTunes.

  • The El Capitan Mail smart folders display bug?

    I upgraded from 10.10.5 to 10.11.6. Mail.app is having display problems in smart folders. When I click on a smart folder, it lists the previews/messages like this: As you can see, the content of the Panel overview/list more jammed to the left. The on

  • Why Divx won't play video with sound on Firefox, but will play with sound on Chrome?

    DivX will play movies based on the web in both sound and audio on Chrome. DivX will play only video on Firefox. I've deleted and reinstalled Divx on my computer. I have a desktop running Vista. I just became aware of this problem yesterday. In the pa

  • Error bad pool on Satellite C650-152

    Hello I have a portable Satellite C650-152, recently bought 3 weeks ago. Have been suffering blue screen, a certain number of times (impossible to read why turns off quickly).Yesterday, I stop the laptop and a blue screen appeared "error Bad Pool the

  • Mail is to insert a signature in my answers

    a friend in another company sent me an email. Then I answered his e-mail. then in his response to me he was a generic email signature, generated by computer added to the portion of my response to it. I asked him that if she had seen this signature ge