Sorting and null for currency values in a report

All,
I think this should be easy, and I just missed something obvious.
I have an APEX 3.2.1 standard report that includes a column with a monetary value in it. I want the column to display the UK pound sign to be able to sort and display NULL values, as appropriate.
The question I have is that I can't find a way to reach all 3 in a medium satisfctory. As I see the options would be:

(1) in the SQL for the report, concat the pound sign in the required column, for example SELECT "£". amount OF the...
The problem is that it makes this field a CHAR field, so sorting is not sort of the same way as for a numeric field.

(2) use the format FML999 number... etc in the column attribute.
The problem with this is that it is a multi-country database, and the default currency unit is the value of the U.S. dollar.

(3) expression box to use HTML code in the column attribute to display £#COL #.
It fills the pound sign and keep the number format, but unfortunately a null value is displayed as a sign of pounds with no number. I do not see how so he can leave this value in the report as completely empty.

As I said, I'm sure I missed obvious soemthing. If someone can identify how to achieve this it would be much appreciated.

Kind regards
Jon.

>
(2) use the format FML999 number... etc in the column attribute.
The problem with this is that it is a multi-country database, and the default currency unit is the value of the U.S. dollar.
>

The NLS currency symbol can be changed on the fly if you have a few ways to identify the location/preference of the user: {: identifier of the thread = 990848} (ignore the last post)

However, it probably doesn't make sense to do - ≠ £100 $100 (at least I hope not!) - unless there is some sort of conversion occurring in the report? Is there a currency stored and the amount?
>
(3) expression box to use HTML code in the column attribute to display £#COL #.
It fills the pound sign and keep the number format, but unfortunately a null value is displayed as a sign of pounds with no number. I do not see how so he can leave this value in the report as completely empty.
>
Use 2 columns, one for the amount and one for the money, with a switch to include or exclude it if necessary:

select
          ename
        , comm amount
        , nvl2(comm, '£', null) currency
from
          emp
where
          job in ('SALESMAN', 'MANAGER')

ENAME      AMOUNT                 CURRENCY
---------- ---------------------- --------------------------------
ALLEN      300                    £
WARD       500                    £
JONES
MARTIN     1400                   £
BLAKE
CLARK
TURNER     0                      £                                

Then use the two columns in the Expression of the amount of HTML:

#CURRENCY##AMOUNT#

Tags: Database

Similar Questions

  • NULL for repeated records

    Hi team,

    According to the sub query Deptno column is repeated results must show that it is null

    my output should be

        DEPTNO ENAME             SAL         RN        RNK       DRNK
    ---------- ---------- ---------- ---------- ---------- ----------
            10 KING             5000          1          1          1 
                CLARK            2450          2          2          2 
                MILLER           1300          3          3          3 
            20 SCOTT            3000          1          1          1 
                FORD             3000          2          1          1 
               JONES            2975          3          3          2 
            30 BLAKE            2850          1          1          1 
                ALLEN            1600          2          2          2 
                TURNER           1500          3          3          3 
               MARTIN           1250          4          4          4 
               WARD             1250          5          4          4 
               JAMES             950          6          6          5 
    

    14 selected lines

    select deptno
      , ename,sal,
         row_number()
           over (partition by deptno
                 order by sal desc)rn,
         rank()
           over (partition by deptno
                 order by sal desc)rnk,
         dense_rank()
           over (partition by deptno
                order by sal desc)drnk
        from emp
       order by deptno, sal desc
       /
       DEPTNO ENAME             SAL         RN        RNK       DRNK
    ---------- ---------- ---------- ---------- ---------- ----------
            10 KING             5000          1          1          1 
            10 CLARK            2450          2          2          2 
            10 MILLER           1300          3          3          3 
            20 SCOTT            3000          1          1          1 
            20 FORD             3000          2          1          1 
            20 JONES            2975          3          3          2 
            20 ADAMS            1100          4          4          3 
            20 SMITH             800          5          5          4 
            30 BLAKE            2850          1          1          1 
            30 ALLEN            1600          2          2          2 
            30 TURNER           1500          3          3          3 
            30 MARTIN           1250          4          4          4 
            30 WARD             1250          5          4          4 
            30 JAMES             950          6          6          5 
    
    
     14 rows selected 
    

    Hello

    If you need to do this in SQL, and then use an expression BOX to return deptno for the first line of each deptno and NULL for all others.  ROW_NUMBER can determine which is the first line, like this:

    Select

    CASE

    WHEN ROW_NUMBER () OVER (PARTITION BY deptno

    Sal of ORDER BY DESC

    )  = 1

    THEN deptno

    ANOTHER NULL - Default; can be omitted

    END AS deptno

    ename, sal,

    ROW_NUMBER()

    courses (deptno partition

    order by sal desc) rn,.

    Rank()

    courses (deptno partition

    order by sal desc) rnk.

    DENSE_RANK()

    courses (deptno partition

    order by sal desc) drnk

    from scott.emp

    order by EMP. DeptNo, sal desc

    /

    Notice how I used emp.deptno in the ORDER byclause in the query.  Simply deptno in this place means that the results of the CASE, not the original column expression.

  • number and date of type storage and null values

    Hi, I read that the date type consumes 7 bytes on the disc when it is preserved.

    It is also true for the value null in date type or the space for a null value in the column of type date is then reduced and equal to 1 byte?

    What about nulls (x) number?

    How can I check to make sure?

    Thank you

    Columns of NULL values using either no space (if they are physically at the end of the line), or 1 byte if not.

  • Error in the logs when a workflow running on the web client of vSphere WARN {} [TypeQualifierToDecoratorConverter] could not find the mapping for: class ch.dunes.model.type.qualifier.TQCallerParameter, [kind:null, name:contextualParameter, value: __NULL__

    I see this error:

    WARN {} [TypeQualifierToDecoratorConverter] could not find the mapping for: class ch.dunes.model.type.qualifier.TQCallerParameter, [kind:null, name:contextualParameter, value: __NULL__]

    pop up in newspapers of vCO a few times on a workflow when I try to run it from the web client of vSphere.  I wonder if it is somehow contributing to the time it takes to render the page.  We never saw it or someone has a clue about what might be the cause.  Newspapers are clean when I run the workflow of the vCO client.

    TQCallerParameter is a kind of decorator that is not exposed in the REST API. This warning message is safe and does not affect performance at all.

    You don't see it during execution of the workflow of vCO customer because the customer vCO does not use the REST API and therefore does not need to run conversions Decorator.

  • Count values not null for each column in a database

    Hello

    I need to write a routine that counts how many values a not null for each column in a database.
    The first idea would be to loop on all_tables / all_tab_cols and write a select statement as
    EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM '||table_name||' WHERE '||column_name||' IS NOT NULL' INTO v_count;
    However, this would mean a complete table for all columns not indexed scan. It's about when I have a maximum of 59 columns for a table with millions of rows.

    A better idea? I don't have the exact number. For example, for the number of rows in a table, I just use all_tables.num_rows.

    Concerning
    Marcus

    Ask the NUM_NULLS of the ALL_TAB_COLS column (and subtracting the total of the lines).

  • 8625 all-in-One: 10 Windows updates for null printer and fax for settles not 8620

    We have four machines Windows 10 using our 8625 all-in-in-one on the network.  Only used the installation CD.  The machine stops of if a 8620 update for printer Null and Null fax microsoft who do not always with 0x802200b and 0 x 80070790 respectively.  Otherwise, everything works normally.  These updates can be removed somehow?

    Welcome to the HP community @rball007,

    I understand a computer running Windows 10, which had the printer installed using a Setup disk, now knows the pop ups. My best advice would be to uninstall the printer completely from a PC, the HP printer install wizard for Windows instead, to ensure that the most current drivers for Windows 10 are installed.

    Good luck

  • When you use a left and right axis, how to choose what issed axis for the value of y GetGraphCursor?

    I use a graph with a left and right axis (2 data sets).  I try to use a slider to select a point in time (x) and the values of y in the two sets of data.  I can't understand how the control, the value that is returned for the value is when you use the GetGraphCursor call.

    GetGraphCursor (panelHandle, PANEL_GRAPH, yourCursorNumber, & x & y)

    Using SetCursorAttribute with the attribute ATTR_CURSOR_YAXIS must be what you are looking for. The online help for this attribute explains wery well:

    Description: Used to change the y-axis which is associated with the bar graph.
    When a graphics cursor is created, the Y axis with which it is associated is determined by the value of ATTR_ACTIVE_YAXIS.  Subsequently, the association can be changed using ATTR_CURSOR_YAXIS.
    The y-axis associate serves as reference for the coordinates of the cursor position in calls to SetGraphCursor and GetGraphCursor.

  • How to find the value max and min for each column in a table 2d?

    How to find the value max and min for each column in a table 2d?

    For example, in the table max/min for the first three columns would be 45/23, 14/10, 80/67.

    Thank you

    Chuck,

    With color on your bars, you should have enough experience to understand this.

    You're a loop in the table already.  Now you just need a function like table Max and min. loop.  And you may need to transpose the table 2D.

  • Search for the string in the string table and see the following value in the line

    Hi, I'm new I have LV and I do a Vi that read worksheet values and generates 2d channels of the same spreadsheet table. For the moment everything I need is a function that find specyfic string in this table and show the next value in a line. As:

    Table:

    a; b
    c; d
    f; g

    example: find the 'c '.

    VI shoud show "d".

    Concerning

    Not a bad homework problem.  Do it with pencil and paper.  Write your table and pretend you're the computer.  What you want to do (step by step)?  What questions do you have?

    Now that the translation a bit to computers.  You mentioned that the data is in an array of strings.  What structures (LabVIEW) work with tables?  [Do you know how to work with tables?  [Otherwise, review some of LabVIEW Tutorial material - see top right of the first page of the Forum].  What do you know about channels?  What questions you need to ask questions on the channels?  What do you know about string functions?

    Watch these things in some LabVIEW code, 'feed' some data and see what he does.  If it seems to do things "unexplained", you can try to look at the block diagram to run by turning the performance highlight (and if you don't know what that means, use the help of LabVIEW and see the tutorials).

    Bob Schor

  • The application youtube for the ps vita is the source of many problems and all sorts of problems for me

    The application youtube for the ps vita is the source of many problems and all sorts of problems for me... the main issue he won't let me write reviews... Please solve this problem as soon as possible... Please.  I can't take more of this nonsense that youtube app gives me... and it's even for the ps vita... It's very annoying that I can't make comments... it just says: when I try cannot do this action or something... It has * ing me off and many others also. :'(

    Hello David,.

    As much as we would like to help you, our colleagues in Playstation is best placed to help out you. Discover their community at http://community.us.playstation.com/ or visit their Web site to support https://support.us.playstation.com/app/contact_options for more information on contacting them.

  • Y at - it sort of blacklist for PlugIns in first and I can delete to initiate a new scan?

    Is it all sort of blacklist for PlugIns in Adobe Premiere Pro, and can it be deleted for inatiate a new analysis of the plugins?

    [Moved from the living room Forum for specific forum - Mod]

    Hi Jörg,

    Yes, there is a way to blacklist plug-ins, but use the appropriate terminology, I believe that you are interested in the list "don't know", where a plugin is added if it fails to load the first time.

    To force a reload of all plug-ins, including those on the ignore list, hold down the SHIFT key when you launch the app.

    (I was wondering, you have problems with several sets of third-party plug-ins from loading after the 2015.3 loading update?)

  • Web client - System Configuration node displays 'Unknown' for the Uptime and the workload, no value for IP & Hostname

    When I connect on our vCenter 6 Update 1 device (embedded PSC) via the Web Client with integrated Active Directory ID, select "System Configuration", then select the node for vCenter, summary screen displays all the information IP or host name.  In addition, the status of availability and workload for storage/memory/swap/load of work view all 'unknown '.  See attached photo for reference.

    All values under management-> settings are also empty.

    When I login with [email protected], all the above values are displayed and I can change the settings of the device of vCenter as expected.  This made me suspect a permission problem exists, but I cannot know what SSO group to add our AD is less to enable management or control of the aircraft from vCenter for that it works as expected.

    Already tried to add our accounts to the following groups in SSO under the vsphere.local domain:

    DCAdmins

    SystemConfiguration.Administrators

    ComponentManager.Administrators

    Directors

    This information on the purpose of each group unfortunately did not help me understand which could apply:

    Groups in the field of vsphere.local

    Thank you very much for the help!

    I just did some digging on this myself (we deployed now U2 6.0) after I tried the same things (adding AD users in the SSO domain groups, etc. etc.) without success.

    What I have found is that it is simply a WELL-KNOWN PROBLEM with 6.0 U2 and maybe they'll fix with U3 6.0 when that comes out (later this summer)?  Maybe it'll be 6.5 at that time, with an announcement to the VMworld 2016 or something - who knows.

    The workaround is a joke--suggesting the deployment using only the SSO domain by default.  Well, which is never going to happen naturally, so he says as a workaround is, if you really need to get and display status, etc. from the web client, you simply connect with your [email protected] account that was created at the initial time of installation.

    VMware vCenter Server 6.0 Update 2 Release Notes

    *****

    Failed to configure and view information about the vCenter Server Appliance by using the System Configuration page in the Web Client vSphere with errors
    Connect to the instance of vCenter server in the vCenter Server Appliance with a user who is located in a custom name (different from the default vsphere.local) Single Sign-On the field by using the Web Client vSphere. On the vSphere Web Client home page, click on the System Configuration and select nodesunder the System Configuration. If you try to change the settings, restart or power off a node of the vCenter Server Appliance, the operation fails with one of the following errors: An internal error has occurred - Error # 1009 and Not authorized to use this API . If you click on the summary, monitoror Manage tabs, some device information cannot be displayed.

    Workaround: deploy the vCenter Server Appliance by using the domain of Single Sign-On by default: vsphere.local.

  • Determine the entry and exit of Gamut values for RGB profiles

    Hi all

    I'm looking how to check if a swatch value is within my range of .icc profile.

    If I have a color value e.g. L = 74 = 12 b = - 37 and I want to see if it is in my .icc profile I select Edition > convert to profile and choose my profile

    I can then select the shade and see if there wasn't a warning range.

    With the color chart above if my color profile is 'Photoshop 5 CMYK default' I get the warning, if I change the profile of "US Newsprint SNAP (2007)"I don't get it. "

    Screen Shot 2015-05-17 at 16.57.53.png

    Screen Shot 2015-05-17 at 16.59.33.png

    Screen Shot 2015-05-17 at 16.59.05.png

    This works very well for the CMYK profile.

    My question is how to check if the color is located inside a RGB profile?

    I tried to change the intent of the paper Web and Digital Publishing and changing the RGB but only the CMYK profile profile affect the output of the warning range.

    We know of a solution to this? The same question would seem to be in photoshop.

    Thanks in advance.

    Trevor

    Hi Rob

    Thanks for your reply.  I need a solution that I can reproduce by script.

    I have been in contact with Phil Green of the ICC and he said that if I convert my color Lab to RGB and vice versa if a difference between the original and the new laboratory values, then the color is outside the gamut of the RGB profile.

    I have tried this before his suggestion and wasn't getting anything out of the values of the range.  I made the conversions using the user interface.

    After his suggestion that I did the conversion by changing shades space using scripts and, to my surprise showed differences.

    This provides the solution I was looking for.

    Concerning

    Trevor

  • How to Auto search PDF for some criteria, and then sort and combine PDFs of this criterion.

    I receive 100 faxes a day.  Each fax has a particular bank account # (I have about 40 different bank accounts it could be associated to). I want Adobe Acrobat Pro to search all these faxes to identify the associated bank account #'s.  So I would like to sort these faxes by the identified bank account #.  So I want to combine PDF files into 1 single file PDF for each bank account # (already know how to do this last step). If anyone has any ideas on how to complete the first two functions, it would be greatly appreciated.

    Thank you!

    Hey Ethan,

    I'm sorry, but it is certainly not possible directly via Acrobat.

    Java script code must be created in order to perform the first two tasks.

    Or otherwise you can manually search, sort and combine the PDF "." But it would be a hectic task.

    If you are good with the scripts you could try once and see if you can.

    Concerning

    Sukrit diallo

  • Invalid value ', < user >, < cased-id >, and < module > ' for the caseId to the req parameter

    Hi all
    We sometimes get below error.
    Invalid value ', < user >, < cased-id >, and < module > ' for the in demand caseId parameter.

    What could be the cause of this error... ? I have my case id, the user and the modules case is valid.

    The application records gives following:

    ERROR com.oracle.determinations.web.platform.servlet.WebDeterminationsServletUtility - com.oracle.determinations.web.platform.exceptions.error.InvalidRequestError: invalid value ', USER1, 1-2LG5T, MODULES ' for the parameter "caseID".
    com.oracle.determinations.web.platform.exceptions.error.InvalidRequestError: invalid value ', USER1, 1-2LG5T, MODULES ' for the parameter "caseID".
    at com.oracle.determinations.web.platform.controller.SessionContext.validateRequest(SessionContext.java:575)
    at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.doPost(WebDeterminationsServlet.java:99)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1655)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1595)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131)
    at com.oracle.determinations.web.platform.util.CharsetFilter.doFilter(CharsetFilter.java:46)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:188)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:116)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:77)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:908)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:932)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:500)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:91)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:864)
    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
    at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:1016)
    to com.ibm.ws.ssl.channel.impl.SSLConnectionLink$ MyReadCompletedCallback.complete (SSLConnectionLink.java:639)
    to com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$ SSLReadCompletedCallback.complete (SSLReadServiceContext.java:1772)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
    to com.ibm.io.async.ResultHandler$ 2.run(ResultHandler.java:905)
    to com.ibm.ws.util.ThreadPool$ Worker.run (ThreadPool.java:1550)


    Thank you
    Fox

    Published by: PR on May 2, 2012 05:52

    Rajan,

    When preconfigure you a case, you must indicate the folder Siebel that you are planting prior information of. When you save a case, it is saved in the political table Automation Session, and the caseID reflects the recording of the session saved.

Maybe you are looking for