Number data format

Hi All
I have a change requirement from the client where
now he wants all amount figures returned from oracle
procedures through resultsets with a comma & 2 decimal
format.
my solution was to pad all amounts with to_char(amt,'99,99,99,999.00')
Is there anyway i can set the number format for a session
something on the line of how we can set a date format using
nls_date_format parameter with a logon trigger.
Regards
Sushant

If they are real "resultsets" (i.e. reference cursors from stored procedures) then I'm guessing they are number datatypes all the way until they are displayed (where is that?). Obviously, a number datatype does not have formatting, it is in a binary raw format. It's only when you change it into a string that it takes on formatting. Just where is that conversion occuring? If Oracle is not the one doing the formatting then you obviously can't do it there.
Richard

Similar Messages

  • Change number / date format for the user at run time

    Hi,
    Can I configure a report in Oracle Answers to display a column in a particular format for one group of users and a different format for another group of users?

    Hi,
    Yes this is possible.
    In the BMM layer duplicate column which is to be formatted for different group of users. And pull it into the presentation layer.
    Suppose Column 1 for the Group 1 users
    and Column 2 for the Group 2 users
    In the presentation layer, double click on the column and give permission for the column 1 for the group 1 users and group 2 users for column.
    First create a report with all the desired columns with Administrator or Presentation Server Administrator Role. And format the columns according to the different group of users.
    In, NQSConfig.ini change the parameter PROJECT_INACCESSIBLE_COLUMN_AS_NULL which is under security section. By default it is set to No. Set it to yes. And restart the services.
    Now logon with the group 1 users and you can see only the column1 and when logged on with group 2 users, you can see the column2.
    And will solve your problem.
    Please let me know if you need step-by-step process for solving.
    Please award if you found this useful/helpful
    Regards
    MuRam

  • Date format in apex 4.1

    hello
    we have custom table for an apex application. In that table we have DATE type for column1(for eg)
    When column1 is inserted via APEX, we use standard apex date picker and DD-MON-RRRR format. After we insert and when we refreshh the apex page to see
    we see values like 10-OCT-10 not 10-OCT-2010,,
    any idea or fix..
    I tried in the source sql select  statement [for that region]  with to_date(column1,'DD-MON-YYYY') ..but was not successful
    Also i followed same for insert statment with no luck
    please advise
    kp        

    Hi,
    As you mentioned, its a date field in column, there are two approaches.
    Method1: Go to your report attributes, click the pencil icon next to it and look
    In Column Attributes Block:Number/Date Format
    Method2: As its a date field, change like this in your report query
    to_char(column1, 'DD-MON-YYYY')

  • Application Date Format in Interactive Reports

    Hi,
    What should we define in Number/Date Format in interactive reports column attributes such that it will use application level date format?
    Thanks

    Hi,
    You do not need define anything , then it use application date format
    Br,Jari

  • Displaying "N/A" in report fields where Number data is not valid using a formatting formula

    Post Author: Horizon57
    CA Forum: General
    I have many reports which are populated by "Number" data. However, there are certain charts and tables where the number data is not appropriate and the summation of such data does not add value to the report. In these instances I would like to display "N/A", however the formula I am using keeps giving me an error that I need to use a "Number" data type. Please note this is a formatting formula.
    Formatting Formula
    DO{TREND.EPTP1} = 'N/A' AND{TREND.EPTP2} = 'N/A' AND{@Trend %}    = 'N/A'  WHILE {TREND.POS2} = 'TOTAL';
    Can anyone assist me with displaying "N/A"?

    Post Author: V361
    CA Forum: General
    Try this
    DOtotext ( {TREND.EPTP1} ) = 'N/A' ANDtotext ( {TREND.EPTP2} ) = 'N/A' ANDtotext ( {@Trend %} )    = 'N/A'  WHILE {TREND.POS2} = 'TOTAL'; 

  • Date format(for number fields)

    Hi there.
    I'm creating some sql queries wich will be executed by some users throught the Oracle client PL/SQL, and I need to format some fields in date format.
    Those fields are NUMBER(8) and they are in that format: "YYYYMMDD"
    The format I want to put that information is: "DD.MM.YYYY".
    What's the easiest way to do that?
    The version that I'm using is Oracle 9.2.0.4.0.
    Thanks by the way.

    Hi,
    Use TO_CHAR to convert the number to a string,
    use TO_DATE to convert the string to a date, then
    use TO_CHAR to format the date.
    TO_CHAR ( TO_DATE ( TO_CHAR ( numeric_column
                                , 'fm00000000'
                      , 'YYYYMMDD'
            , 'DD.MM.YYYY'
            )This shows why storing dates in some other kind of column is a bad idea.

  • Date Format and Number Format

    Hello,
    Is there any possibility to change the date or number in HANA? Is it possible for a user to see amounts in the data preview as e.g. 12.000,50 vs. 12,000.50 ?
    What about a similar question concerning the date format?
    Thanks,
    Ingo

    Hi Ingo
    the date/number format completely depends on the client you are using to display the data.
    In SAP HANA studio, you can switch on/off output formatting :
    However, this will use the local locale formatting preferences.
    For more control on the formatting a proper reporting tool is required.
    - Lars

  • Convert Number to the date format

    Hello,
    In CRM, i want to input the number as a parameter and convert the number into Date format. Is there any function module in CRM which accepts the number and gives the date as output .
    Example.
    suppose input given is 734484
    output : 12-12-2011  .
    The number  734484 reflects  the total number of days from '0000' to 12-12-2011
    Regards,
    Rohini

    920575 wrote:
    I have a sql like this:
    select to_date('MAR','Mon', 'NLS_DATE_LANGUAGE=American') m from dualI want to display '3' instead of showing MAR...
    I tried to use to_char(date,'MM') but the result will return '03'.
    I would like to have the output exactly equal to 3.3 (without single-quotes) is a NUMBER. It is exactly equal to the NUMBER 03.
    '3' is a string. It is not equalt to the string '03'.
    Do you want a NUMBER or a string?
    If you want the 1-character string '3', then use 'fmMM' instead of 'MM'.
    select  TO_CHAR ( to_date ('MAR', 'Mon', 'NLS_DATE_LANGUAGE=American')
                    , 'FMMM'
                    )   AS m
    from    dualTO_CHAR sometimes adds padding (sometimes spaces, sometimes '0's) to make elements a constant width. For example, some months need 2 characters for the 'MM' format, so TO_CHAR, by default, left-pads with '0's to make all months 2 characters, whether they need 2 characters or not. Using 'FM' (case insensitive) IN the format string changes whether or not this kind of padding will be added.
    You could also use LTRIM to remove the leading '0's in this case, but why remove them when it's easier not to generate them in the first place?

  • List of Number format and Date format according to the Locales

    Hallo everyone.
    I am searching for a list or document which includes the number and date formats according to the country locales. Where can I find sort of document?
    Another question: Where can I find the all parameters of swing.properties file?

    "Date - allows the user to enter a date as a parameter. Note that the data type must also be "Date" and the format must be Java date format."
    Page 4-9, Adding Parameters and Lists of Values
    Oracle® Business Intelligence Publisher
    Report Designer's Guide
    Release 10.1.3.4
    Part No. E12187-01

  • How to fomat a number cell to show up in Date format in FR in 11.1.1.3

    I developed a Financial Report using Essbase connection (Cannot create as Planning connection due to some restraints).
    I have a date type field in the report.The cell is displaying 20120123 which is fine since I am using the Essbase connection. But I would like it to be in a Date format (1/23/12) .
    Does anyone know as to how can I do this or its even possible ?
    Thanks in advance

    Hi,
    Have you tried the Date Function
    for example
    if the date is April 24:
    <<Date("dd-M-yy")>> displays 24-4-02
    <<Date("dd-MM-yy”)>> displays 24-04-02
    <<Date("dd-MMM-yy")>> displays 24-Apr-02
    <<Date("dd-MMMM-yy")>> displays 24-April-02

  • Date format not working in XML Publisher

    Hi,
    We have applied a date format while formatting the report layout using the Template.
    The same is not getting reflected.
    The output is as follows : 5/1/2006 0:0:0
    i.e date with time stamp.
    We require DD-Mon-RRRR format.
    The same has been tried using the Text Form Field Options.
    When applying the same for Number it works . But in case of Date it does not.
    Can anybody who has worked on the same, let us know the appropriate way to do the same.
    Thanks,
    Angelica.

    XMLP does not recognized the field as date. The only format recognized as date is
    YYYY-MM-DDThh:mm:ss+HH:MM
    So, either make the data model to return dates in the above format, and then apply date formatting in XMLP, or do the job on the data model side and return the string in the desired final format (which, again, then will be string, not date for the XMLP)

  • Table date format - How can I display Week 1, Week 2, instead of the date?

    I would like to creat a table for my Gantt, that displays the week number unit, as I have as the middle tier in my timescale on the Gantt side of the view.  I cannot find how to do this anywhere.  I know I can change the way the date is displayed,
    format wise, while in the table edit area, however one of the choices is NOT the week #.  The data must exsist as the timescale displays it! 
    My goal is to creat a table that instead of showing the start date for a task, displaces the start week: i.e. Week 1, Week 2, ...ect.
    Any help is appreciated,
    Craig.

    Craig --
    Bad news, my friend.  What you want to do with the date format in the table cannot be done.  The format you see in the Timescale bar is simply not an available date option in any table.  Sorry.
    Dale A. Howard [MVP]
    VP of Educational Services
    msProjectExperts
    http://www.msprojectexperts.com
    http://www.projectserverexperts.com
    "We write the books on Project Server"

  • Cell data format problem

    Hello,
    I just began using the new version of Numbers.
    I tried to make a distance-speed-time function and have it as hour, minute and second but when I switch from automatic data format to custom data format (Duration) and go to the next cell to do the same, it switch back to automatic data format and I can't have it as time but just a a number with decimals.
    What can I do ?

    I have a similar issue.
    Every number I enter is understood by Numbers as a date.
    199 becomes the date 1/1/199 00.00.00 when I try and change the auto format it jumps right back to the date.
    I have to format the cell to be a number before I enter a value.
    is your system language english or non english? I have a suspicion it's a locale bug (one that Apple QA should have found had they done any testing...)

  • List view error "Filter Value is not in a supported date format"

    I've column "Name = Order Status","Type = Calculated" & Data Type = "Date and Time". I've given this Condition in the formula:- =IF(NOT([PO Date]=0),"ORDERED","NOT ORDERED"). I'm trying to create view
    for this column but its getting error while create the view "Filter Value is not in a supported date format". 
    Same error I'm getting for column "Name = Status","Type = Calculated" & Data Type = "Number". I've given this Condition in the formula:- =IF([PO Date]="","",IF(NOT([Balance Qty]=0),"OPEN","CLOSED"))

    Can you check data type returned for your calculated column 'Balance Qty'?
    Try to set it as Number. It may help you.
    Thanks.

  • Date format of footer in pdf

    How to change the date format of footer from dd/mm/yyyy to Monday 09 August 2010 when we down load the report in pdf file

    Hi,
    Revenue is a sample column. You can pull any measure column used in the report.
    And put this formula in a separate new column. And in the narrative view use this column number.For Ex- if the number of the column in the criteria is 15, then mention @15 in the narrative view.
    NOTE-Rows to display in narrative view should be set to 1.
    And in the formula-CEILING(CAST(COUNT("F1 Revenue"."1-01 Revenue (Sum All)") as DOUBLE)/ 25)
    25 refers to the number of row count to display. You can define the number according to your requirement.
    Regards,
    MuRam

Maybe you are looking for

  • Error Creating a Page

    I go to a sub site in my site collection and go to Site Actions > New Page > Type in the name of the new page, click 'Create' and I get an error - Access Denied Tried it through More Options/Page - create a new Publishing Page - same thing In my perm

  • Apps on HP Officejet Pro 8600

    When I first installed this HP Officejet Pro 8600 printer on my computer it worked great.  There is an Apps icon you can tap and it worked.  Now all of a sudden it is coming up with "The printer was unable to connect to the server.  Check your intern

  • BPM import process from non-sap bpel tool

    Hi guys.... I'm having quite a hard time with BPM processes...I'm trying to import one simple BPM process, receive->reply, from another BPEL tool, but I'm not being able to do it. I create a .zip with a bpel file and the correspondent WSDL's, import

  • NoMachine(freenx) Authentication failed for user (MYUSERNAME)

    Hi all, I have quite a few experience with freenx on other linux distributions, but this is my first time setting up freenx on archlinux. After following the instructions in the wiki, authentication keeps failing no matter what I do. Stuff I've done

  • How to change Table Name

    hi i have created a Z table, in my development server, can i now change the name of the table, is it possible. abhishek suppal