Solved: Pick Number format mask

Hello,
I'm trying to format all my numbers to a specific model:
999G999G999G999G990D00
I tried doing it like I did with 'PICK_DATE_FORMAT_MASK', where I define my format under
"Application Attributes>Definition". I called it PICK_NUMBER_FORMAT_MASK'.
It didn't work and i got the next error above my report:
report error:
ORA-01481: invalid number format model
I also tried to define an application item with the value: 999G999G999G999G990D00
but then I get the same error. If I paste my number format in my report column under Number / Date Format then it works perfect. But I can't change the global format of my numbers now.
Can anyone help me?
Thanks in advance.
Regards,
Oli

<p>Oli,</p>
<p>As you already discovered there is no PICK_NUMBER_FORMAT_MASK substitution variable like there is for date pickers. Perhaps this a nice enhancement request. However, there are some workarounds:
<ul><li>
<p>For reports, you can use your PICK_NUMBER_FORMAT_MASK if you convert the NUMBER columns into VARCHAR2 columns like this:<BR>
<p>to_char(number_column,'& PICK_NUMBER_FORMAT_MASK.')</p></li>
<li><p>Use ApexLib and extend the firefox plugin with your own numeric settings.</p></li>
<li><p>You can use the user interface defaults (table defaults, column defaults) in the shared components section of your application.</p></li>
</ul>
<p>With kind regards,</p>
<p>Jornica</p>

Similar Messages

  • 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"

  • Date Picker (Application Format Mask) YYYY-MM-DD HH24:MI

    I am experience what appears to be a bug with the Date Picker (Application Format Mask) that is causing the "DD" portion of the format mask to be interpreted as "CC" (when using a YYYY-MM-DD Application format).
    Within "Application Builder", "Edit Attributes" I have defined a "Static Substitution Strings" with the required Substitution String of PICK_DATE_FORMAT_MASK and a Substitution Value of "YYYY-MM-DD HH24:MI" (without the quotes).
    When this is used within the application, and I select a date of "January 15, 2008 @ 23:14", the date picker gives me a date of "2008-01-20 23:14". If I were to change the Year to 1957, the date I get is "1957-01-19 23:14". Note that if the century is 20, no matter what day of the month I pick, I get DD=20. If the century is 19, the day of the month is always 19.
    I have also tested this with a format of YYYY-DDD HH24:MI. With this format too, the DDD gets set to the century portion of the year.
    DD-MM-YYYY HH24:MI format does work, however this is not the format that my end users want to see. They want to see the format as "YYYY-MM-DD HH24:MI"
    If I change the PICK_DATE_FORMAT_MASK to "YY-MM-DD HH24:MI" and pick "Feb 8, 1977" I get "77-02-28" and if I pick "January 9, 1921" I get "21-01-31" which just happens to be the last day of the month in each of those case.
    So, something really weird is happen with the "Application Format Mask" Date Picker.
    Please note, that because of a known bug (relating to the translation of the Browser Language of "en-ca" to the propery NL_LANG of ENGLISH_CANADA) refer to
    HTMLDB - HOWTO Work with Dates
    I am executing the following code in my first "On Load - Before Header" and my first "On Submit - After Computations and Validations"
    EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_DATE_FORMAT=''YYYY-MM-DD HH24:MI''' ;
    EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_SORT=''FRENCH''' ;
    Could you please investigate this problem.

    Paul,
    Thank you for the feedback and detailed reporting of this issue.
    This is a previously identified bug with the computation of the day component of the popup calendar.
    This correction will be available with the next HTML DB patch set and/or the release of HTML DB available later this year.
    Thanks again.
    Joel

  • 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

  • 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 &lt;c:out value="${bindings.MyDate}"&gt;&lt;/c:out&gt; the format mask for the date is applied and it looks good, but when using
    &lt;c:forEach var="Row" items="..."&gt;
    &lt;c:out value="${Row.MyDate}"&gt;&lt;/c:out&gt;
    &lt;/c:forEach&gt;
    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 &lt;html:form&gt; ? Since it works using &lt;c:out value="${bindings.MyDate}"&gt;&lt;/c:out&gt; inside a html:form.

  • 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.

  • Number Format Mask error

    If i am providing format mask is 9 and providing value as 5, then i am getting output as " 5", means a white space padded just before the output. so can any body inform me is this a forms 6i bug, or the output is something like this only.
    A white space is padding just before the output for any Format Mask.

    what is the maximum lenght of the value?
    select max(length(MODEBA))
      from POLK_A_CT
    SQL> with POLK_A_CT as
      2  (select '123' MODEBA from dual
      3   union all
      4   select '456' MODEBA from dual
      5   union all
      6   select '0987' MODEBA from dual)
      7  select to_number(MODEBA,'999') MODEBA
      8    from POLK_A_CT;
    ERROR:
    ORA-01722: invalid number
    no rows selected
    SQL> with POLK_A_CT as
      2  (select '123' MODEBA from dual
      3   union all
      4   select '456' MODEBA from dual
      5   union all
      6   select '0987' MODEBA from dual)
      7  select to_number(MODEBA,'099') MODEBA
      8    from POLK_A_CT;
    ERROR:
    ORA-01722: invalid number
    no rows selected
    SQL> with POLK_A_CT as
      2  (select '123' MODEBA from dual
      3   union all
      4   select '456' MODEBA from dual
      5   union all
      6   select '0987' MODEBA from dual)
      7  select lpad(MODEBA,3,'0') MODEBA
      8    from POLK_A_CT;
    MOD
    123
    456
    098
    SQL>

  • Number Format Mask in Forms

    Hi All,
    If I enter 99999 in the form it has to display 99,999.00.
    What is the format Mask that I have to use to make it dispaly in this way.
    Actually I tried 999,999,999.99 but this is leaving empty spaces...and If the number is bigger then It wont display that...
    Please advice.
    Thanks,
    Satish

    Once you have the number format, you can trim the left spaces.
      1* select to_char(99999,'99,999,999,999.00') result from dual
    sql > /
    RESULT
             99,999.00
    sql > select ltrim(to_char(99999,'99,999,999,999.00')) result from dual;
    RESULT
    99,999.00Thanks,
    Rajesh.

  • How to remove a number format mask ?

    I have to import some data form excel sheet. but the number in that sheet have been saveed as the following format mask 1,000.000(2,000.000,1,5000,00) as charchter
    but in may table that field is a number, so how can remove the format mask from the excelsheet?
    Thanks

    846640 wrote:
    I have to import some data form excel sheet. but the number in that sheet have been saveed as the following format mask 1,000.000(2,000.000,1,5000,00) as charchterI am wonder how to apply format mask in excel for the character cell.
    but in may table that field is a number, so how can remove the format mask from the excelsheet?So, while reading from excel how the values is coming in the variable i assume its coming with comma(,) than what happens if you try like below?
    variable_name:=TO_NUMBER(REPLACE(variable_name,',',''));
    -Ammad

  • 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.

  • Delimiteddata and number format mask

    Hi,
    I need to export data from my report to a csv format in reports 6i.
    I installed patch 12 so I can use the delimiteddata format.
    This works but I do have problems with the number format.
    I formatted all of the number fields so they appear as desired in the report when running in C/S mode.
    I learned that you can use the number format, date format and cell wrapper variables for delimited and delimiteddata formats.
    These parameters do work with delimited output but they don't when generating delimiteddata.
    Only when I start the reports builder with numberformatmask=something on the command line then the number format given on the command line will be used. but then you cannot change it (even not in the dialog when generating a delimited format) anymore once reports builder is open.
    Is there a solution for this problem or is it fixed in a later patch (I haven't seen anything new in then patch 13 notes).
    Piet

    Hi Pieter,
    This does looks like a Bug. Please contact Oracle Support to assist you in getting the right patch or otherwise.
    Regards
    Oracle Reports Team.

  • Special Number format Mask Visual Compser

    Hi !!
    I have a problem with Visual Composer.
    I want a specific mask in a number.
    For example: 1.234.567
    Without decimal, and thousands separator  dot ( . ).
    I am not able to have this format.
    I can have 1.234.567,00 or 1,234,567 but not my special format.
    Any suggestion ?
    Best regards
    Carlos

    Hi Govindu
    Let me explain my requirement.
    I have a table with number values.
    This number are for example 100.000 (a hundred thousands.) or 1.000.000 (a million).
    I want ( . ) like thousands separator and not decimals.
    VC just let me used comma like thousands separator when no decimals are display.
    best regards
    Carlos

  • Number format issue - comma (1,5) instead of period (1.5) before decimals?

    I am using an input field of data type Number. In Norway we use a comma before decimals. I can't get this to work in VC. Have tried to set Number format with 'Local format' checked but this is not helping. (even if my portal is showing Norwegian texts as supposed by the language setting)
    If I uncheck this and go to Custom formatting I get to set my own format. NSTR(@OPERATORER_N, ".2") gives me two decimals but with a period as the decimal point. NSTR(@OPERATORER_N, ",2") does not work.
    I do not want thousands separator.
    Tips?
    Henning Strand

    Hi,
    Check the se Threads i think you definitly get the idea or solution.
    But every body ask about to get dot separatot instaed of Comma Separator since this can be get easyly with Language Portal Settings
    Thousands separator
    http://help.sap.com/saphelp_nw70/helpdata/en/38/2d9b732beb4c68bba2962602a7d6bd/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/26/64fb472a144a0dbaf88f5ec75d9270/content.htm
    http://oregonstate.edu/dept/computing/warehouse/PDF/8-reports.pdf
    Re: Supressing Currency & Thousands Separator
    Re: Special Number format Mask Visual Compser
    All the best
    Govindu

Maybe you are looking for