Number format mask of text item is not applied

Hello all,
I want to format a number like 999G999G999G999G990D00
Is specify the format mask under source of the item. But it is not applied and I don't understand why.
See http://apex.oracle.com/pls/otn/f?p=53873:2 for example
Btw. is it possible to set the format for all numbers in the application at once? I want to have a thousand separator in most cases.
Message was edited by:
Jacob_B

Hello Jacob,
Btw. is it possible to set the format for all numbers
in the application at once? I want to have a thousand
separator in most cases.I am using substitution strings for things like that. You can define some "global" substitution strings on page application definition.
So you just have to put in the format (999G999G999G999G990D00 ) in there once and give it a name. Let's say NUMBER_THOUSAND.
Afterwards you can reference it wherever you need the format e.g. this way:
to_char(10000,'&NUMBER_THOUSAND.').
This way you just have one place where to change the format model.
Regards,
Tine

Similar Messages

  • Formatting Critical Tasks (Text in Table) not applying across all columns

    All,
    I am working on creating a schedule from multiple smaller schedules.  A few of these schedules had manual text formatting which I overwrote manually (selecting cells and changing text color).  Now when attempting to apply text styles to the critical
    path the text styles will not apply to all Critical tasks or all columns visible.  I'm guessing I caused problems by manually changing the text color but I don't know how to fix it.  Please help!

    All of the manual text formatting and re-formatting in cells has changed the default formatting in the Gantt Chart View.
    Rather than fiddling with it, the best way is to recover the original formatting of the Gantt Chart View, and then if you want to modify it make a copy of that view, name the copy something like "AA Gantt Chart 01", and then format the text and bar
    styles (not individual bits and pieces of cells and bars) of your new view. Include the "AA" or an underscore or something similar as part of the name so that your new views always go to the top of the list and you can always distinguish them
    from the original ones that came out of the box.
    Use the organiser to recover the original Gantt Chart View by pulling the Gantt Chart View from the global template. Now, MSP will not allow you to over-write the Gantt Chart View in your file while that view is the active view, so you will have to switch
    to another view while you do it. Switch to the Tracking Gantt View, then File, Organiser. You see all of the clean stuff on the left hand side and all of the stuff in your file on the right.
    In the future, leave the original views as they are. Also, leave the original tables, filters, groups, reports etc alone and if you need modified/customised versions of them make copies and change the copies. This is just good housekeeping. Also, do not
    copy modified/customised views from your file into the global template ((or you will poison the well).
    Hope this helps. Please mark as answer.

  • Numeric Format Masks on Text Items

    Hello all.
    I've been struggling to find the best way to use format masks for numbers on text items.
    So far, I've found that the property "Format Mask" on the SOURCE group does not work. Am I correct?
    I am trying to use To_Char to format the number, but I always get "NUmeric or Value Error".
    In short, what is the easiest and most widely used way to format numbers (my language is pt-br). Ex.: 12500.00 becomes 12.500,00.
    Thanks

    Peter's solution shows you the syntax for to_char to get what you want; just replace the hard-coded number in his example with the value (or the expression giving the value) you're trying to format. So, something along the lines of:
    select to_char(t.value, 'FM999G999D00', 'NLS_NUMERIC_CHARACTERS='',.''') val,
        to_char(t.factor, 'FM999G999D00', 'NLS_NUMERIC_CHARACTERS='',.''') fct,
        to_char(t.value * t.factor / 100, 'FM999G999D00', 'NLS_NUMERIC_CHARACTERS='',.''') rslt
    from table t
    where...Or, in a slightly more readable manner (I don't like having to constantly escape quote marks):
    select to_char(t.value, 'FM999G999D00', q'{NLS_NUMERIC_CHARACTERS=',.'}') val,
        to_char(t.factor, 'FM999G999D00', q'{NLS_NUMERIC_CHARACTERS=',.'}') fct,
        to_char(t.value * t.factor / 100, 'FM999G999D00', q'{NLS_NUMERIC_CHARACTERS=',.'}') rslt
    from table t
    where...-David

  • How to ignore/remove number format mask ?

    Hi
    I have to import some numbers from the excel sheet, and that number has been saved along with the format mask like (9,999.99) (2,000.00,1,500,00,......)
    but that field in my table is a number filed and i have to equal that number with the number that exist in my table
    i have write that relation like
    mytable.filed1=to_number('excel_filed',9,999.000)
    but I does not work
    So what the solution for that
    Thank you

    Double post. See How to remove a number format mask ?

  • Portal Form: Number Format Mask Accepted Values

    Hi, i'm trying to format the way numbers are displayed in our forms, specifically instead of 50,000.00 we want 50,000 - without the .00.
    I cannot find anything on format masks in the portal documentation, and the standard oracle masks I have looked up such as "NNNN" etc don't seem to be supported.
    Trial and error has yielded a mask of : 99,999,999 which does get rid of the decimal, but introduces a problem where if the value is smaller than the mask it is shifted into the middle of the field (leading spaces are being added for every missing unit that is specified in the mask), but obviously if a smaller mask definition is used then larger numbers appear as ###### which is worse than the leading zero problem.
    Where in the documentation can I find the accepted forms of numerical number format masks for use in portal forms?
    Thanks..

    Let me know if you find a solution to this. I even asked my Oracle instructor and she couldn't tell me how to setup a date format mask. This is what she gave me which doesn't work, but I'm not saying I'm the quickest race car at the track. lol
    "Hi,
    Try the following format mask "("099")""-"099"-"0999. They have an example of this on page 7-12. I'm not sure if OTN may have a listing of any Forms format mask. Search under Forms Developer and see if you find anything.
    Take care,
    L"

  • I cannot transfer movies on my iphone 4s eventhought its mp4 format. it say 1 item could not be sync see itunes for more information. Tried to look for the reset warning on itunes 11.0 but cannot locate it. Help please

    i cannot transfer movies on my iphone 4s eventhought its mp4 format. it say 1 item could not be sync see itunes for more information. Tried to look for the reset warning on itunes 11.0 but cannot locate it. Help please

    Hello eLZhi,
    Thanks for the question, and welcome to Apple Support Communities.
    The following article provides the most relevant information to your question:
    iOS: 'Not enough free space' alert when trying to sync
    http://support.apple.com/kb/TS1503
    Thanks,
    Matt M.

  • Number Formatting in Non-Database Items

    If an item represents a database column, the format mask under the "Settings" tab works. But if the item is not a database column, the format mask will not apply.
    How can I format numbers in page items that do not represent database columns?

    I'm not the javascript whiz, but here is an example I've used to load text in a tabular form row to a number and perform a calculation and load the result to another column. It doesn't include formatting in JS, but maybe it'll be of some help.
          var nXtbuy =  parseFloat($(this).closest('tr').find('.base_next_buy_hid').text());
          var cRslt = (nXtbuy + (nXtbuy * parseFloat($v('P85_PERCENT'))/100));
          cRslt =  Math.round(cRslt*Math.pow(10,parseFloat($v('P85_ROUND'))))/Math.pow(10,parseFloat($v('P85_ROUND')));
          $s('f02_'+vRow, cRslt)
    The parseFloat is the significant piece there to avoid NaNThen if you google "number formatting in javascipt", a number of good looking entries are found.
    Edited by: Bob37 on May 11, 2012 12:15 PM

  • Applying date and number format mask

    I have specified a date format for an attribute and a number format for another attribute of an entity object using Entity Object Editor - Control hints for the attributes.
    The date format is:
    Format type: Simple Date
    Format: dd.MM.yyyy
    The number format is:
    Format type: Currency
    Format: 0,000.00 km
    When using <c:out value="${bindings.MyDate}"></c:out> the format mask for the date is applied and it looks good, but when using
    <c:forEach var="Row" items="...">
    <c:out value="${Row.MyDate}"></c:out>
    </c:forEach>
    the format mask is not applied.
    When it comes to the number format it is not applied no matter what I use.
    I have tried setting the format for the view object attributes as well but the result is the same. How do I make this work?

    Can it have something to do with <html:form> ? Since it works using <c:out value="${bindings.MyDate}"></c:out> inside a html:form.

  • Date Format Mask On Unbound Item

    Hello everyone!
    I have a module with some unbound items. One of them is date_completed. I gave the item datatype DATE and formatmask "DD-MM-RRRR". But in the application, when I type 290108, I get FRM-50026 "date must be entered like : DD-MM-YYYY.
    But I gave the item a format mask!
    Can somebody help me?

    But I gave the item a format mask!Then enter it in the format mask and not as a number
    It is doing exactly what you are telling it to do
    Nicolette

  • Problem in formatting of long text -- line break not recognized.

    Hi ,
    We have a PO smartform in our SRM system and we are facing problem with formatting of long text on the smartform for long texts maintained for the PO.
    for ex, we maintain the long text as --
    "this is long text for item 1.
    1. this is line 1.
    2. this is line 2."
    On the smartform it is displayed as --
    this is long text for item 1. 1. this is line 1. 2. this is line 2.
    So basically, the line breaks in the text are not considered in the smartform .
    Any suggestions on how to fix this issue ??
    Thanks.

    Hello Harmeet,
    Which Std. FM are you using to fetch the PO texts? If the PO doesn't exist in your system, i'm afraid you cannot use Include Texts as mentioned by Harsh.
    As an alternative you'll have to create a table & pass the text lines to it! I don't think SmartForms are not smart enough to identify new-line character.
    BR,
    Suhas

  • Date Format Mask with text only...

    Hi!
    I have a problem with my date text item: the format mask is set to YYYY-MM-DD HH24:MI:SS and it work perfectly if the user enter only numeric character, it will validate the date correctly. But if the user enter a value only alpha (something like 'uuuuyyyy') instead of validate with the mask format it will fire an error trigger ORA-06502.
    I want to know if it's possible to check if the user has enter only alpha to bypass this problem.
    Also, how can a check that a date field is null. I Try with : IF :BLOCK_NAME.DATE_ITEM IS NULL THEN ...
    AND ALSO with IF TO_CHAR(:BLOCK_NAME.DATE_ITEM) IS NULL THEN... and nothings seems to work.
    Thanx in advance.

    AFAIK, the only way to do this is to have two items. One is a hidden database item, type DATETIME, to hold the date value.
    The other is a non-database character item, visible to the user. You populate it at POST-QUERY from the database field, and use an ON-VALIDATE-ITEM to copy any value entered/changed by the user over to the hidden field. If you're smart, you'll write a library procedure to do the on-validate stuff, passing it the names of the two items.
    In that procedure, you can attempt to convert the entered text into a valid date using whatever date format(s) you like, only raising an error if you can't do it at all.

  • APEX cannot accept any other number format mask except 999G999G999G999G990?

    Hi, guys:
    Can anyone help me on this problem? I have a report with a column of number type, but I want to use accounting format mask such as <1234.56>, however. whenever I choose any other format model for this number column, I got the error message as "ORA-01481: invalid number format model", I can only choose Numeric format mask: 999G999G999G999G990
    Anyone could give me a hint on this? I am using APEX 4.1 and Oracle 11G R2. Here is my query for report
    select uh.descr, inv6.userkey, inv6.invno, inv6.amt-pa_temp.Subtotal_Payment over_short_amount
    from
    (select pa6.invoicekey, sum(pa6.amt) Subtotal_Payment
    from payments pa6
    where trunc(pa6.pmtdate)<=to_date(:P55_DP_VPF_PROD_DATE,'DD-MON-YY')
    and pa6.type not in (5)
    and pa6.invoicekey in (select pa5.invoicekey
    from payments pa5
    where trunc(pa5.pmtdate)=to_date(:P55_DP_VPF_PROD_DATE,'DD-MON-YY')
    and pa5.type=2
    group by pa6.invoicekey) pa_temp, invoices inv6, userhdr uh
    where inv6.userkey=uh.userkey
    and pa_temp.invoicekey=inv6.invoicekey
    and pa_temp.Subtotal_Payment<>inv6.amt
    and abs(inv6.amt-pa_temp.Subtotal_Payment)>1000
    order by 1Thanks a lot!
    Sam

    I found the cause. Thanks!

  • Civil Identity Number Format Mask

    Dears,
    I Need to change the Format Mask for the Civil Identity Number In The People Enter And Maintain Form
    Any Idea How Can I Do That ?
    Thanks in Advance.
    BR,

    Thanks. I did an "on submit and before computation" process that did a SQL replace on the page item. The DML process then successfully inserted the value into the database.
    Alex.

  • Chart and text items are not synchron

    hi all,
    i am a newbie in apex 4.0.
    i have two regions. the first shows a chart, based on pl/sql-code. second shows text items for possible filter an the current statement of the chart.
    when user clicks on a bar in the chart then
    1. i set the the first text item as filter,
    2. a pl/sql-code runs, build a sql statement, assign the sql statement string to the second text item and
    3. returns the statement for the chart.
    it works fine. the chart refresh. and the data i can see are correct.
    but the text items in the other region doesn't refresh.
    when i press "refresh"-button at browser level everything is fine. chart and text items fits together.
    what can I do to refresh all regions when the chart changes the sql-statment / User clicks?
    Is there any way to read out the current statement of a chart?
    thx in advance
    jogi
    Edited by: Jogi on 09.05.2011 12:31

    Bernd: the reason I asked about views is that you don't have any error messages. This might indicate that (a) you have no items in the view, or (b) there's something wrong with view-role-user assignment.
    To check for (a), please go to the published procurement catalog, and go to Views tab. Check that your View is Active. Click on your View ID link to display view details. You should see a list of characteristics assigned to your view in Assign Characteristics sub-tab (the list should not be blank!). Go to Assign Items sub-tab. Navigate in your schema to find items that are supposed to be assigned to your view. You should see "Yes" in the "Assigned" column for those products. If you don't, then you simply don't have any items in your view.
    Another thing I'd like you to check: when the user calls your procurement catalog for search, do you see the name of the catalog displayed just below the drop-down "Select Categories Hierarchically"?
    Cheers,
    Serguei

  • Require a Number Format Mask to show leading zeros on decimals

    Hi,
    My users are complaining about the decimal point not being very clear when fractional numbers are shown. I need a format mask to show a leading zero for numbers between 0 and 1 (eg. 0.5) but not have a trailing point after whole integers.
    by example:
    10 should show "10"
    .5 should show "0.5"
    I have tried the following
    FM99990D99 which displays as
    10 as "10."
    .5 as "0.5"
    The whole integer of 10 then gets a trailing decimal point. Very ugly as the decimal is the exception to the rule which is why I need to highlight it.
    The user do not want a forced decimal place either as follows:
    FM999990D09
    10 as "10.0"
    0.5 as "0.5"
    The trailing decimal place is not a practical solution because 99% of numbers are whole numbers and the decimal just pollutes the screen with more zeros, making the numbers harder to read, resulting in more errors.
    I am looking for a format mask that shows:
    10 as "10"
    .5 as "0.5"
    I am using Oracle Forms which means I cannot set_item_instance_property for the records which have decimals. I need a single format mask for all options...
    Any help would be appreciated.
    Thanks,
    Tim.

    Thanks Francois.
    Looks like there is not a simple solution using a format mask alone.
    I have implemented a very similar solution to your suggestion. I have a character, non-base table field which I populate and dynamically set a format mask if the value is between -1 and 1 (and not zero).
    i.e.
    if :purchase.qty > -1 and
    :purchase.qty < 1 and
    :purchase.qty != 0
    then
    :purchase.qty__dsp := to_char(:purchase.qty,'FM999999990D99');
    else
    :purchase.qty__dsp := to_char(:purchase.qty);
    end if;
    Thanks,
    Tim.

Maybe you are looking for

  • How do I move a contact from one group to another?

    On my device, or in iCloud on the web, how do I move a contact from one group to another.  This should be as easy as it is with calender items, but the only solution I've found is to change your default contact group, and email the contact to yoursel

  • Is there any way to use iPod touch with Win2000/SP4?

    Got an iPod touch for christmas... very cool. It doesn't synch with my computer... not so cool. The information I've found - compatibility chart at http://docs.info.apple.com/article.html?artnum=60971 - suggests that I'm SOL with Win2000 - it appears

  • Audigy 2 NX

    Hello i have a little problem with Audigy 2 NX on windows 7 the drivers from vista are installing and audio console also is installing but when i want to start audio console i get "The audio device supported by this application is not detected. The a

  • Inserting a CD into Slot-Loading Drive

    I'm new to Mac. I just bought a latest MacBook a couple days ago. I have a question about slot-loading drive. I'm not really familiar with this drive. Once, I tried to insert a CD. I forced my cd, but the surface didn't let my CD go inside. So, I jus

  • Installing Portal on Vista

    Hope someone can help. I am trying to perform a standalone install of Portal (using Application Server 10.1.2.0.2 ) on Vista , and am experiencing some problems. 1) The installer fails on initial start up due to operating system compatability test, b