Format Mask for Zeros
Hi guys.
I have a report in which I want to give format to a number, but I'm getting an issue with the 0 (zero).
The format mask I'm using is "999,999,999.99", but when I got a 0 it is printed like ".00" and I want to print it like "0.00", in any other case I want to print the number like "123,456,789.00"
Hope somebody can help me.
regards
use "999,999,990.00"
Similar Messages
-
50027: Invalid format mask for given datatype.
hi ,
i have a non database Number Item maximum length is 8
when i try to put
NNNNNNNN0.99 as a format mask
i got the following error
50027: Invalid format mask for given datatype.
i want this field to view it's value Such as
0.55when there is no integer no before the decimal point
Can anyone help please?
Form Ver Is Form6i
Edited by: ayadsufyan on Apr 25, 2013 3:58 AMayadsufyan wrote:
hi ,
i have a non database Number Item maximum length is 8
when i try to put
NNNNNNNN0.99 as a format mask
i got the following error
50027: Invalid format mask for given datatype.
i want this field to view it's value Such as
0.55when there is no integer no before the decimal point
Can anyone help please?
Form Ver Is Form6i
Edited by: ayadsufyan on Apr 25, 2013 3:58 AMtry
099999.99Hope this helps -
I want Change format mask for all fields that type's number
Such as
if :parameter_value = 1 then
all fields format mask = ' 999,999,990.000' ;
else
all fields format mask = ' 999,999,990.00' ;
end if;
RegardsSo, i have bad news for you : you'll have to rebuild again.
Meanwhile i have excellent news for you : there's an online tool made by Johannes Henseler called Sidecar xml which builds the necessary xml file for you, sort of what you find in the Digital Publishing Folio Editor website, but saves it in your Folio folder.
Next time you import all your folder (with that file), it will place all the necessary information, and even reorder the articles.
Build once, play many times. -
Can you specify format mask for date or timestamp columns
Hi,
Recently when I'm developing a PL/SQL application, I find that any format mismatch between data in table and format mask specified in to_date/to_timestamp function will cause exceptions. However, I'd like to make my application more robust and immune to this kind of problems, and know exactly which format mask to use for exactly what columns in db table.
Is there a way in a table column to specify the format mask for date/timestamp columns such that I can know exactly what format mask to use when doing conversion? Also I don't want to depend on NLS_DATE_FORMAT specification, don't want to make a long case statement to check for every date format allowed by Oracle.
Many thanks.As per my knowledge it can't be possible
casuse if you entered '12/11/2007' date
how oracle know that in date 12'th is the month or 11'th.
The person who entered that date will also have confusions in future.
either you have to fix one date format for your whole application (application configuration).
or you have to store the date format in other column of the table.
In case you set the date column to varchar and store all the dates without format then
in future you may face problems in future while fetching the records, searching etc.
Regards
Singh -
JQuery format mask for date columns in tabular form
Hi,
How can I apply jQuery format mask for date columns in a tabular form?
Thanks.
AndyOK, I realized I didn't choose the default type as "Pl/SQL Expression", now it's working correctly.
Thank you very much! -
Hi All,
i have developed New Form for the German Client,In tht form i have one column for percent there the user will give 20,90 %.If i click Calculate button the calculation has to done based on that.
Format Mask should be like 50,4 instead of 50.4
If any one is having the code for that plss send me or let me know the process,
help me in this issue..bit urget
Regards
prasadHave you tried setting profile option ICX: Numeric characters ?
But very careful when you set this, better to set it at user/responsibility level. -
Date format Mask for CHAR datatype
hi
i want to assign a format mask like 'dd/mm/yyyy' to a field which has char datatype can i ?The quickest answer to your question is to try it! :-) If you click on the Format Mask property of your Text Item and then press F1 Forms will display the Format Mask Help information for this property. All of the valid combinations for a Text Field Format Mask will be displayed.
To answer your question, you can put a format mask on a Text Item that can enforce the basic format of 'DD/MM/YYYY', but you could get data like: 99/99/9999. You would have to write code in a When-Validate-Item trigger that would ensure the user has entered a valid date.
Hope this helps.
Craig... -
Download Formatting Mask for BLOB column
Hi All,
IR Query : select "ROWID","FILE_NAME",dbms_lob.getlength("DATA_FILE") "DATA_FILE",
"DOC_SIZE",PROPOSAL_OWNER
from "#OWNER#"."APXTER_IMP_HDR"
I am using BLOB Download Format Mask on FILE_NAME column
using the following FORMATTING
DOWNLOAD:APXTER_IMP_HDR:DATA_FILE:ROWID::::::attachment:Download
After applying the changes, I counter the error
The number of display columns in the report reached the limit. Please click Select Columns under Actions menu to minimize the report display column list.
Thanks,
SombitHello,
Here you can find a tutorial about blob:
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r31/apex31nf/apex31blob.htm
I have a demo here - it shows how to display an image in case the file is image. Otherwise, it displays download link:
http://apex.oracle.com/pls/apex/f?p=63066:1
workspace: somefeto
user: test
pwd: test
Application 63066
Also, there is a packaged application : Sample File Upload and Download that shows you, how to do it.....
you can find it on your workspace.. or here if you wish:
http://apex.oracle.com/pls/apex/f?p=10540:3:15582111009947::NO
workspace: somefeto
user: test
pwd: test
Regards,
Fateh
If you believe that my answer was helpful to you or correct, then please mark the answer as helpful or correct ... -
Formatting mask for marketing project
Sir ,
We have implemented SAP CRM 2007 (6.0) . Marketing Plan , element , Campaign Management & element id's are generated automatically by system .
But we have created Formatting mask and Campaign ID should not be generated automatically but End user will create Marketing & Campaign ID according to formatting mask .
Please guide how to stop automatic numbering and
iD will be created by user according to formating MASK . what settings i have to do ?
Regards,
Anupsir ,
campaign and marketing id's are generated automatically . i dont want to use auto numbering
now i have created formatting mask . i want to use formatting mask . so please guide me how can i use it .
that will replace existing numbering system.
Regards,
Anup -
Dynamic Format mask for attribute in a JTable
I've a JClient app.
I need to define format and color of a field at runtime depending on some row informations.
I've the same problem in a Form and In a JTable.
Could someone suggest how can I do that ?
TIA
TullioFormat and other UIHints (ControlHints) are not looked up per row but are considered like static metadata for a given row/object type. So, there's no one chokepoint in Bc4J to override the control-hint apis like label/format/tooltip etc.
In DataBinding side, you can override
public Object getAttributeFromRow(Row row, AttributeDef def)
and
public void setAttributeInRow(Row row, AttributeDef def, Object value, boolean handleException)
methods that perform the format/unformat implementation on a particular control-binding. -
Format Mask for TexInput Field
Hi All,
I have one requirement of making format for string which to be entered into text This should work like Password field but main thing need to implement is that entered alphabets (Eg. 123456789) should not replace all alphabetes with special characeter (Eg. *********). Instead of this replacement, I need to replace only starting few alphabetes. For example, when we enter string "123456789", while entering this string TextInput field should replace string by string "******789".
That means user can not see some starting alphabetes when he key in whole string.
Please let me know if anybody has done this ever or has some idea.
Help is greatly appreciated.
Thanks,
ArvindI am sorry.
By mistake I have raised this thread in Database forum.
I wanted to raise in OAFramework. -
hi guys
i am developing custom form in forms 6i
my problem is i have lattitude , longitude colums in my form so i have to take the values of those in degrees and minutes format can any one help me out in thisWhat about something like the following with a NUMBER datatype:
999"°"999"'"Francois -
Format mask for Numeric and Data data
1)Is there any way to suppress timestamp for 12:00:00 value from a date column with TO_CHAR? except that value we should display time value for date column, like this
01/12/2009 01:15:01 , 01/12/2009 12:00:00
this should be like
01/12/2009 01:15:01 , 01/12/2009
2) Can I display "0." decimal infornt of numeric value? I used to_char('0.1','9999990.99') , but its displays leading spaces How can I toggle fm for numeric values ?
Thanks,
Hesh.
Edited by: Hesh on Jun 23, 2009 12:27 AMA slight change to Michael's query (corrected a small typo)
SQL> WITH test_tab
2 AS (SELECT SYSDATE date_col FROM DUAL
3 UNION ALL
4 SELECT TO_DATE ('26/06/2009 12:00:00', 'DD/MM/YYYY hh24:MI:SS')
5 FROM DUAL)
6 -- end test data
7 SELECT date_col,
8 TO_CHAR (
9 date_col,
10 CASE
11 WHEN TO_CHAR (date_col, 'hh24:mi:ss') = '12.00.00' -- typo error '.' instead of ':'
12 THEN
13 'dd.mm.rrrr'
14 ELSE
15 'dd.mm.rrrr hh24:mi:ss'
16 END
17 )
18 dt
19 FROM test_tab
20 /
DATE_COL DT
23-JUN-2009 13:29:42 23.06.2009 13:29:42
26-JUN-2009 12:00:00 26.06.2009 12:00:00
2 rows selected.
-- corrected query --
SQL> WITH test_tab
2 AS (SELECT SYSDATE date_col FROM DUAL
3 UNION ALL
4 SELECT TO_DATE ('26/06/2009 12:00:00', 'DD/MM/YYYY hh24:MI:SS')
5 FROM DUAL)
6 -- end test data
7 SELECT date_col,
8 TO_CHAR (
9 date_col,
10 CASE
11 WHEN TO_CHAR (date_col, 'hh24:mi:ss') = '12:00:00'
12 THEN
13 'dd.mm.rrrr'
14 ELSE
15 'dd.mm.rrrr hh24:mi:ss'
16 END
17 )
18 dt
19 FROM test_tab
20 /
DATE_COL DT
23-JUN-2009 13:29:44 23.06.2009 13:29:44
26-JUN-2009 12:00:00 26.06.2009
2 rows selected.
SQL>Regards,
Jo -
Urgent Format mask for the number field
I have a number column which holds very big numbers. I want the numbers to be displayed with commas separating every three digits with two decimal places displayed.
Example:
stored number is 7878787998989809809078787909.08
to be displayed as 7,878,787,998,989,809,809,078,787,909.08
Thanks in advance
Regards,
Madhuselect to_char(7878787998989809809078787909.08,'999,999,999,999,999,999,999,999,999,999,999,999,999,999')
from dual;
7,878,787,998,989,809,809,078,787,909 -
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
-
HT3819 can I use two or more Apple Tvs on one network?
I have two Apple TVs on my network, one in a basement cinema and the other in the ground floor TV room - if I use the one in the basement, then stop using it and then later in the day try and use the one in the TV room I get an error message asking m
-
Bug: DocumentManager does not emit Content-Disposition header
Good afternoon, I have a process with an output variable of type Document: this document has a defined filename. When invoking the process, instead of downloading the file with the defined filename, I was receiving a file with a name that looks like
-
I want to use my Black magic Multi-Brigde Pro with Premiere. That is possible correct?
I want to use my Black magic Multi-Brigde Pro with Premiere. That is possible correct?
-
To find error message in the standard program sapmv45a
Hi friends, I have a following senario. Iam getting the following error mesage. INFO RECORD FOR VENDOR 'ABC' AND MATERIAL '00000678' DOES NOT EXIST. now my requirment is i should find from were this error message is being triggered. actualy my proble
-
SAP HR implementation ( MOST MOST URGENT )
Hi Friends , Just i wanted to know the following answers ?please kindly send me full - detail script . 1. Project planning 2. Documentation of Functional Specifications and communication to ABAP Programmers 2. Blueprints (requirement analysis and pro