number of positive results and a report coloring negetive

Hi all

How to color
(1) a + ve toll-free
(2) a number of ve - Red
a report
using Java Scripts

Concerning
Amou

Hello

What something like that in your source query...

WITH src_data AS
(SELECT 'A' col1,
        0   col2
 FROM   dual
 UNION ALL
 SELECT 'B' col1,
        -1   col2
 FROM   dual
 UNION ALL
 SELECT 'C' col1,
        1   col2
 FROM   dual)
SELECT col1,
       CASE WHEN col2 > 0
            THEN ''||TO_CHAR(col2)||''
            WHEN col2 < 0
            THEN ''||TO_CHAR(col2)||''
            ELSE TO_CHAR(col2)
       END col2
FROM   src_data

See you soon

Ben

Tags: Database

Similar Questions

  • Number of the results in the report variable

    Hello everyone,

    I need help in TestStand reports. I use TestStand 2014 and 2014 of Labview, both 32 bits.

    The situation is like this: I am running a test with test steps 3. The first stage of the test is a step of "additional results" which records the device under test info (versions of the hardware software etc...). This information appear in the report and the result data in the database (table prop_result). The next 2 steps are the steps 'real' which measures something.

    In the report, there is a call from the variable "Number of results" (see the screen attached capture) and you see a '3 '. There are actually only 2 steps of 'real' test as I don't want to consider the first step of "additional results" as a test step. How can we affect the variable 'Number of results' so that it does not count this first step? I tried to use the properties-> Run Options-> record result of the for Option set to "Disable". It works and the number of results appeared as "2", but the device under test info do not appear in the report and not in the prop_result of the database table.

    In general, how can I get the number of results of account not a step, but continues to display the result in the database and report? Is there an API where I can access and modify its value (number of results value) such as: "Number of results" - 1?

    Hope someone can point me in the right direction. I have attached the release of the report, as well as the file in the sequence.

    Yours,

    chati

    I ment, you can change the XML seq.--> \Components\Models\TestStandModels\reportgen_xml.seq generator (Ref http://www.ni.com/white-paper/3977/en/).

    It's the AddReportHeader, you need to change. Or more specific step 9 (in teststand 2012) which is a statement-->

    Parameters.ReportHeader += "<" +="" fileglobals.reportelementname="" +="" "="" type='UUT' "="" +="" "="" title='" + ResStr("MODEL", "RPT_HEADER_TITLE") + "' "="" +="" "="" link='" + Locals.UUTItemNameForLink + "' "="" +="" "="" uutresult='" + Str(Locals.Status) + "' "="" +="" "="" stepcount='" + Str(Parameters.StepCount) + "' "="" +="" "="">\r\n".

    and then, you can modify the varabel StepCount using some filtering by using for example a subsequnce that counts only the type of measures that your customer wants to be counted.

    There might be ways esier there, but that's what I'd do.

  • I use upstream, that allowed color spaces are CMYK. When I place a RGB file, preflight reports an error (very good). But when I add the Fx (effect) does not forward flight "Bevel and Emboss", report an error, which is really annoying. How can I fix? I hav

    I use upstream, that allowed color spaces are CMYK. When I place a RGB file, preflight reports an error (very good). But when I add the Fx (effect) does not forward flight "Bevel and Emboss", report an error, which is really annoying. How can I fix? I like to have 'The transparency blend space' on "Document CMYK" and in the preflight profile "Fusion of transparent space" required: "CMYK".

    Interestingly, if I copy and paste your images into a new doc 2 points scored.

    I think that the solution is to assign the CMYK printer profile in the document. In this case, you no longer control upstream for RGB color, because by default it is converted to CMYK space correct on export or print output.

  • Sequence step results in the report in Simple text format

    I use Teststand 2012 and that you have installed the plugin from model simple text report.

    My main test sequence called a number of subsequences that contain the test steps and contain also several subsequences. A number of the subsequences is only stocks. My test result file contains all the results of measures of test as expected, but it also contains a line of output for each call of sequences - makes it difficult to see the results that count. I would only record the test steps.

    Looking at the code SimpleTextReport.dll in CVI I see it is stepping into the results and updated list in the form of each line (I changed some of the formatting). Is this the right place to filter the levels of appeal of sequence or can I stop the call sequence steps to be added to the list of results?

    You can put it in the sequential model. Just use ProcessModelPostResultListEntry with the same code. If it's in the template, you won't need it in other files. In addition, he is probably already stuff in the model. You'll have to code around it. This is how they do it on the fly.

  • Using results of a report as settings for another report to the Disco

    I was wondering is it possible to use the results of a report as parameters to another. For example, a report that produces a list of let say number of employees. Can these employees number then injected into another report, it's settings, instead of manually select employees. I use discoverer 4.1.

    Any help would be appreciated.

    Thank you

    Hello
    Because you are using Desktop it may be possible. Office has a way to transmit the results of one column to a second worksheet.

    Here is a simple workflow:
    1. create the spreadsheet that will generate the list of employee numbers
    2. create the worksheet (in the same workbook) that must use the list of numbers
    3 create a new condition on the number of employees and in the drop-down list, select Create subquery
    4. in the dialog box, select the worksheet, and the column that you want to use, and then click the OK button
    5 test that it works

    Discoverer 10 and 11 Oracle introduced what is called hyper exercises where a user can drill a pre-built map sheet to another pre-built, passing the values of parameter or the cell of the first sheet in the second as parameters. Both worksheets not even need to be in the same workbook.

    However, even this feature can be used to transmit the entire result set, so because you use Desktop I think you'll be fine.

    Furthermore, anyone reading what is using 10 g or 11 g the same feature exists in Desktop here too. The cool thing is that if you create a new workbook with a worksheet that uses a subquery in a different worksheet in the office 10g or 11g and then open the workbook in more or spectator the subquery will still work. The not so cool, is that you can only create and maintain these subqueries use of Google Desktop.

    Best wishes
    Michael

  • Increase the maximum number of query results

    Hello

    I need to increase the maximum search results, when I'm looking for data with data-> ValueMaxCount

    I'd like to 2000

    I tried tho change it with the help of the property page and the example given.

    The result looks like this:

    Define DataFinder = Navigator.ConnectDataFinder (Navigator.Display.CurrDataFinder.Name)
    Set IndexedFileProperties = DataFinder.GetIndexedProperties (eSearchFile)
    Set IndexedProperty = IndexedFileProperties ("fileName")
    Define ValueList = IndexedProperty.GetValueList
    DataFinder.ValueMaxCount = 2000
    Define ValueList = IndexedProperty.GetValueList

    But the quantity of serach result remains at 200

    I am referring to the wrong object or do I need to increase it to a certain point?

    Concerning

    Janick

    Hi Janick,

    your script increases the number of values that are returned if you ask for all values that are indexed to a specific property (in the BROWSER QueryForm you will receive this list by clicking the... button to the right of the line a condition).

    To increase the maximum number of search results, you would use the MaxCount property for the elements of results.

    DataFinder.Results.MaxCount = 2000' in the search without the GUI

    or

    Navigator.Display.CurrDataFinder.ResultsList.Elements.MaxCount ' in the search with the BROWSER GUI

    What version of DIAdem do you use? 2015 tiara, it is also possible to determine the maximum number of search results in the search method:

    DataFinder.SearchElements (Query, 2000)

    I hope this helps.

    Good day

    Eva

  • Is there an easy way to add text to a chain control / indicator and keep the colors

    Hello

    Bassically I want to add text to a chain control / indicator without losing the formatting of the previous text.

    For a part of a program that I create, data will be transmitted to and from a serial device. I want to display this data in a chain control / indicator and change the color of the text of certain strings depending on data type (sent, received). Basically as a nice log window.

    At the moment, I update the chain control / indicator by reading the text and concatenated with the new string. However, this method removes the colors of previous text :-(

    Is it possible to add data to the control of the chain / indicator without losing the text previous formatting?

    I started to create a sub vi who reads a text both character and adds a new element in an array (offset color and text), if the color is distinguished by the previous character. Only problem is it seems to be quite time CPU.

    Thanks in advance,

    Matt

    MattB-5906 wrote:

    Is it possible to add data to the control of the chain / indicator without losing the text previous formatting?

    Actually, no. This means that you will have to use workarounds. Your workaround solution seems a bit involved. Basically, all you need to do is just to keep track of the pairs of end start/selection selection that must be colored in a table. Then just you loop in this table to color the text marked by the power positions.

    An alternative is to use a different indicator. Rather than an indicator of the string, you can use a table with a column. You can then set the foreground color on a cell by cell basis, and add a new line (row) will not affect the coloration of the previous lines.

  • Where the number of positions?

    I see that the upgrade has deleted the number of positions of every signature of users. I know there is a ranking, but personally, I like to see how many posts a user has made and how ling, they were a part of the communities. There is valuable information in determining what someones credibility answer can be.

    Where exactly you expect / this information is missing? You can drag the pointer of the mouse on a user name to find the information you are requesting in the pop-up window.

    André

  • How to do a partial update of a form and a report on the same page?

    Hi all

    Im trying to make a page where you have a report on the top, and when you click on the link instead go to the form page, the form on the page is on the bottom of the report. Let's say that im trying to send an id from the report to the item below so that I could go get the rest of the element. However when I pass, other elements would still refer to it as null.

    If I am not wrong it could be done with the quote, but I want it to be partial refresh...

    I tried the steps detailed here, but it didn't work when the lower part is an also a report:

    https://forums.Oracle.com/thread/2345863

    I also tried, but this actually submits a page...

    Base Oracle: Tutorial Apex - form & amp; Report shares the same page

    would it not possible to get a form and a report in a partial refresh page?

    Post edited by: T101_cyberdyne

    Hello

    Do you mean something like this:

    http://Apex.Oracle.com/pls/Apex/f?p=vincentdeelen:26:26

    If so, you must create a dynamic action with a javascript action to set the id of the report line in the form of code field and further action from pl/sql to retrieve the record based on the identification number. You can use this record to set the shape of other items in the field.

    For the example in the link above, the code is as follows.

    action of javascript:

    var empno = $(this.triggeringElement).find('td[headers="EMPNO"]').text)

    $s ('P26_EMPNO', empno)

    action of PL/SQL:

    declare

    cursor c_emp is

    Select * from EMP

    where empno =: p26_EMPNO;

    BEGIN

    for r_emp looping c_emp

    APEX_UTIL. SET_SESSION_STATE ('P26_ENAME', r_emp.ename);

    APEX_UTIL. SET_SESSION_STATE ('P26_JOB', r_emp.job);

    APEX_UTIL. SET_SESSION_STATE ('P26_MGR', r_emp.mgr);

    APEX_UTIL. SET_SESSION_STATE ('P26_HIREDATE', to_char (r_emp. HireDate, 'dd-mon-yyyy'));

    APEX_UTIL. SET_SESSION_STATE ('P26_SAL', r_emp. SAL);

    APEX_UTIL. SET_SESSION_STATE ('P26_COMM', r_emp.comm);

    APEX_UTIL. SET_SESSION_STATE ('P26_DEPTNO', r_emp. DEPTNO);

    APEX_UTIL. SET_SESSION_STATE ('P26_ORDNO', r_emp.ordno);

    end loop;

    END;

    Make sure you list the item id in the field "Page of Items to submit" and ALL your form elements in the field "Page of Items of return" as follows:

    http://www.vincentdeelen.com/images/OTN/plsql_action.PNG

    A screenshot of the configuration of dynamic action:

    http://www.vincentdeelen.com/images/OTN/dynamic_action.PNG

    Kind regards

    Vincent

  • Review of details of AWR and ASH reports

    Hello...

    is there than a documentation on AWR and ASH reports so that the report is studied in detail...

    For an example

    IN the report of the ASH

    If you take Section TOP SQL with TOP events section...

    There are number of columns such as SQLID, Planhash, sampled # executions, % activity, event, high-ranking Source, TEXT SQL

    Here this column sampled number of executions a number of times where SQL has been executed... right...?
    and another high-ranking Source column wrote his ACCESS TABLE - FULL or any group by clause etc.

    In the example above, just like that I want to study in detail with each section of the AWR and ASH report

    See you soon...

    Hello

    I have a few articles abour AWR in my blog:

    http://Savvinov.com/2012/09/10/a-map-to-AWR-report/

    Maybe they can help you to a certain extent.

    However, you must understand is no detailed instructions on reading AWR, because:

    (1) AWR is just a collection of performance statistics, so read requires an understanding Oracle performance and how it is measured rather something specific to CWA

    (2) practical experience is most important theoretical knowledge of tham

    Best regards
    Nikolai

  • Can I avoid results pixelated when using color replacement?

    PSE9 running under Mac OS X 10.6.


    I'm editing a picture (originally.jpg) of jewelry green (on a silver necklace) with a gray background.  I want to change the grey to a pale pink.


    At first, I tried the magnetic Lasso to select jewelry followed by replacement of color, but the intricacies of the silver necklace and the thin wires of the hooks (breakthroughs) earrings seem to confuse the Lasso in loss of detail.  Then I thought that I had a bright idea: ignore the detailed selection, select the entire photo and let the color replace non-contiguous to do its job.  I don't know how that affects the detail of the result yet, because I'm more concerned of pixels about 3 mm from a variety of colors which replaced the gray background.  Change the blur didn't remove the pixelation, and I have no idea why the variety of colors is being implemented.


    Where, oh where am I wrong?

    Here's how to get the results below:

    1 filled in the upper left corner of the image with the Clone Stamp tool

    sampling on areas below. (makes it easier to choose if the gray)

    rather, it is the same everywhere)

    2 has used the magic wand with contiguous not checked and clicked on tool

    grey in the picture.

    3 inverted this selection; Filters > adjustments > invert

    4. has created a new color adjustment layer filling; Layer > new fill layer > solid color

    and the color in the color picker dialog box (you can later change the color

    by double clicking on the fill color icon in the layers panel)

    5. you can have the zoom in close and fill in the boxes you don't want rosy by painting

    on the color fill layer mask United with a brush. Use a black brush to show more of the

    Necklace (hide the rose).

    Use a white brush to add more rose.

    The Replace Color tool does not work so good on images like this, that's why

    a solid color fill adjustment layer is a better choice.

    MTSTUNER

    Post edited by: MTSTUNER

  • Display the results in a report on the APEX of two datepicker page elements

    Hi all

    I'm trying to get some data to display in a report by choosing between two dates. These two dates, I select by datepickers, then a button is pressed to submit and the report to appear.

    I made the conditional statement on the button, the button submit as "searchdates", then a branch that is conditional (when the button is pressed, the application is set to "searchdates") and the branch is: 'On Submit - after treatment.

    the query behind the report is:
    select * from desk_allocation
    where (DESK_ALLOCATION.DATE_FREE >= TO_CHAR((:P5_DATE_FROM), 'DD-MON-YY') 
          AND DESK_ALLOCATION.DATE_FREE < TO_CHAR((:P5_DATE_TO), 'DD-MON-YY') 
          AND :P5_DATE_TO IS NOT NULL AND :P5_DATE_FROM IS NOT NULL)
    AND DESK_ALLOCATION.ALLOCATED like 'No'
    and the sample data that I use to test:
    DESK_NO   DATE_FREE     ALLOCATED     ALLOCATED_TO 
    66         20-AUG-10       No             -  
    75         19-AUG-10       Yes            Superman  
    60         16-AUG-10       Yes            Spiderman 
    When I run the page, it is said no data displayed.

    Someone at - it ideas?

    Using APEX v3.2

    Thanks in advance :)

    I tried with your data with this query, remove the additional supports, SQLDeveloper. There is no record for 'No', then the data found was the correct result. Changed to 'Yes' and got results.

    select * from desk_allocation
    where DESK_ALLOCATION.DATE_FREE >= TO_DATE('10-AUG-10', 'DD-MON-RR')
          AND DESK_ALLOCATION.DATE_FREE < TO_DATE('20-AUG-10', 'DD-MON-RR')
         -- AND :P5_DATE_TO IS NOT NULL AND :P5_DATE_FROM IS NOT NULL)
    AND DESK_ALLOCATION.ALLOCATED = 'Yes'
    

    Kind regards

  • How to find the number of search results

    Hello world

    Suppose that you type on the Web, and 2 page tabs for table dept and the other for the table emp and you do database text element not in the emp tab page. I need when I press dept page on-line access emp page and display the number of search results in this element of text

    any help that I enjoyed

    Thank you

    Hello
    What happens if you create a text element (no database) with the type of digital data in the emp block and set the property No. view records at 1.
    Then set the summary calculation .
    Then assign the Count summary function .
    Then choose the summarized block list as block EMP and choose any column in the list Elements summarized .

    The run of the form.

    -Clément

  • 2 parameters and 2 reports in the same dashboard

    Hello

    I have 2 sections in a dashboard. Both has its own parameter x and various reports. Two reports use the x parameter. But by changing the setting of the value x for section 1 will also change the parameter x of article 2.

    Is it possible to leave the 2 glance section to its own setting?

    thnx, Robbert

    As John mentioned above, use the filter protection option in each report. You can also define two variables of different layout for each report.

    Ex: You have 2 reports with filter on a column (Say countries). You must create 2 guests - CountryPrompt1, CountryPrompt2.
    Set a report filter 1 = pCountry1, where pCountry1 is the variable of the presentation of CountryPrompt 1.
    The same for report 2 position filter as = pCountry2, where pCountry2 is the variable of the presentation of the CountryPrompt 2.

    Thank you
    SAI.

  • Cannot export the chart with result when discoverer report is run u

    Hello

    I am trying to automate the discoverer, calendar using the Scout command line interface, the following command runs the report * "Facilities assigned to the employees-ORG" * in the batch, export the results to Microsoft excellent sheet.

    This command exports successfully results in excel format in the location specified in C:\drive, but did not export the graph associated with the report.

    also if we compare the exported results for the report ran in more Discoverer and discoverer Office (using the command line) is not in the same format in excel (excel export result is very good compared to the results of the command line).

    Is it possible to have the results in the same format and graphics using command line? is possible to execute commands on the application server side so that we can retrieve the results and a similar graph when this document comes in addition.


    Command-line END user license.

    C:\oracle\oracle92ds\bin > dis51usr.exe/connect n1rpawaska/[email protected] /opendb "equipment assigned to the employees-ORG" / batch/Export xls "C:\CPEReports\ equipment assigned to the employees-ORG".


    Thank you
    Sunil

    Hello

    It is not possible to export charts in an Excel file. If you want to keep the formatting and then try to export the HTML report in .xls file, then open the file in Excel. by example/Export html "C:\CPEReports\ equipment assigned to employees - ORG.xls.

    Rod West

Maybe you are looking for

  • Where my Yahoo toolbar did disappear?

    My auto updated browser updated for Fire Fox 36 today. The Yahoo toolbar is now empty, except for the Yahoo Mail link. I tried to update the toolbar, but receive a failure message when I try. Is it possible to go back to Fire Fox 35?

  • fix for corruptted service pack - corrupt adsiis.dll file

    original title: fix for corruptted service pack file during a scan with mcafee antivirus my computer crashes on the c:\windows\$ntservicepackuninstall$\adsiis.dll file. Their support has suggested that this file is corrupted. Is there a solution?

  • f2210 windows 7

    I just changed my computer from Vista to Windows 7 and now I try to use my HP F2210 on it.  The software will be installed, but it says that the printer is not found, even if it is plugged in and ready to go.  I tried to download the patch, but it do

  • HP Officejet J6410 causes desktop Dell Dimension to give up internet connection

    When I plug in and turn on my HP Officejet J6410 for a Dell Dimension 2400 with Windows XP, it causes the internet connection to drop. The passage of the printer off, the internet connection is restored.  The internet connection is via an adapter wi

  • HP desktop icon does not open

    I have a deskjet 2050 j510 on windows8 * 64-bit I can get unit to print by typing Ctrl P but clicking the icon does not open so I can't scan. What do I do?