How define a pattern for having a number formatted
Hello,
anybody knows how to define a pattern for having an input number formatted in this way:
150.000.000,88
I've tried to use the following pattern( pattern="#.#00,00") ...but - of course - It does not work.....
I'm using Jdeveloper 11.1.1.7
<af:inputText value="#{pageFlowScope.contractBean.localTot}"
label="#{contractBundle.BASE_TOTALE}"
columns="12"
maximumLength="#{bindings.baseTot.hints.precision}"
id="it2"
valueChangeListener="#{pageFlowScope.contractBean.baseTotChangeList}"
autoSubmit="true"
required="true">
<f:validator binding="#{bindings.baseTot.validator}"/>
<af:convertNumber type="number" minFractionDigits="2" maxFractionDigits="2" pattern="#.#00,00"/>
</af:inputText>
Guessing you tried this, but have you tried:
<af:convertNumber locale="de" ...
or
<af:convertNumber locale="#{requestContext.formattingLocale} ...
Hope this helps.
Similar Messages
-
How to replace #Missing for a 0 number and not '0
Hello, I will like to know if any of you know how to replace in Excel the #Missing for a 0 (number 0), and not '0 (text 0), that is what it always return.
ThanksGreat Tim!!
Though i did not raise this question, i have been having this in mind for months from now.
This worked like a magic.
Yes you are right, it is not advisable when the sheet is meant for lock and send as it would create unwanted blocks.
Thanks for your help.
With Regards,
Rajkumar -
how am i able to access my iphone , if its already disabled?
Unless you ask a more coherent question, no one here will be able to help you. What are you trying to do? Who is asking for a serial number?
-
Best design pattern for a large number of options?
Hi,
I'm faced with the following straightforward problem, but I'm having trouble coming up with a design solution. Any suggestions?
Two items in the database can be related in three possible ways (temp replacement, permanent replacement, substitute). Each item has three possible stock levels. The user can select one of two items.
This comes out to 54 different prompts that need to be provided to the user (example: "The entered item has a preferrable temp replacement available that is in stock, sell instead of the entered item?", "The entered item is out of stock, but has a substitute item available, use instead?", etc. etc.)
Does anybody have a suggestion of a good design pattern to use? In the legacy system it was implemented with a simple case statement, but I'd like to use something more maintainable.
If anybody has any suggestions, I'd appreciate it.
thanks,In the legacy system it was
implemented with a simple case statement, but I'd like
to use something more maintainable.Is it ever likely to change? If no, then a case statement is pretty maintainable.
How is the data retrieved? I'm guessing it's a decision tree: if the desired object is in stock, return it, otherwise look for a permanent substitute, &c. In this case, perhaps you have a retrieval object that implements a state machine internally: each call to the retrieval operation causes a transition to the next-best state if unable to fulfill the request.
If you do retrieve all possible data in a single query (and I hope not, as that would almost certainly be very inefficient), then think of some sort of "preference function" that could be used to order the results, and store them in a TreeMap or TreeSet ordered by that function. -
HOW DEFINE INNER JIONS FOR MULTIPLE TABLE-FIELDS
HI I HAVE THE IMMEDIATE ISSUE TO RESOLVE...
data: begin of it_jtab occurs 0,
gsber like tgsb-gsber,
gjahr like coss-gjahr,
kostl like csks-kostl,
posid like prps-posid,
plfaz like proj-plfaz,
plsez like proj-plsez,
estat like tj30t-estat,
perbl like coss-perbl,
wkgbtr like coep-wkgbtr,
end of it_jtab.
HOW CAN I DO INNER JOIN FOR THE GIVEN TABLE??
AM CURENTLY ON 4.0 VERSION HENCE HELP ME KNOW TO WORK ON JOINS ONLY.........Hi,
Check this prog,
Inner joins using 3 tables
Try this :-
SELECT stpostlnr stpoidnrk mastmatnr maramtart stpo~menge
INTO CORRESPONDING FIELDS OF TABLE zmat1 FROM mast
JOIN stpo ON stpostlnr = maststlnr
JOIN mara ON maramatnr = mastmatnr
WHERE stpostlty = 'M' "AND stpoidnrk IN s_matnr
AND mast~werks = 1000.
Here s_matnr is a select-options on the selection-screen.
Or this.
Code:
Select single VbrkBukrs VbrkKunrg Vbrk~Vbeln
VbrkFkdat VbrkBstnk_Vf Vbrk~Zterm
Tvzbt~Vtext
VbakVbeln VbakBstdk
LikpVbeln Likplfdat Likp~Lfuhr
into w_vbrk
from vbrk
inner join Tvzbt on TvzbtZterm = VbrkZterm and
Tvzbt~Spras = sy-langu
Inner join Vbfa as SalesLnk
on SalesLnk~vbeln = pu_vbeln and
SalesLnk~vbtyp_v = c_order
inner join Vbak on VbakVbeln = SalesLnkVbelv
Inner join Vbfa as DeliveryLnk
on DeliveryLnk~vbeln = pu_vbeln and
DeliveryLnk~vbtyp_v = c_Delivery
inner join Likp on LikpVbeln = DeliveryLnkVbelv
where vbrk~vbeln = pu_Vbeln.
This code locates sales, delivery and payment terms info from a billing document number.
or
Here, this one also works fine :
select zfpcdcadivi zfpcdproforma zfpcdfactura zfpcdaniofactura
zfpcdmontousd zfpcdmontoap zfpcdebeln zfpcdinco1
zfpcdlifnr lfa1name1 zcdvsstatus zfpcdconint
into it_lista
from zfpcd inner join zcdvs
on zfpcdebeln = zcdvsebeln
and zfpcdproforma = zcdvsproforma
and zfpcdlifnr = zcdvslifnr
inner join lfa1
on zfpcdlifnr = lfa1lifnr
where zcdvs~status = '04'.
Regards,
Arunsri -
How to get OBJECT for FI Doc number?
HI Experts,
I want to use FM NUMBER_GET_NEXT to get the next doc number for FI document, But there have a parameters in this FM is OBJECT, can any friends tell me how to get this parameters for FI doc?? Thanks in advance and your be rewarded once it is helpful.Hey Joe,
The object and other details are configured in the transaction 'SAP number Ranges'' SNRO.
I do not know under what circumstances you want to use the FM 'GET_NUMBER_NEXT' but doing this will increase the current number in the number range by 1.
If you are planning to pre determine what is the number of the FI document that will be created, then this is not the right solution. -
How can i check for my model number of dv6 pavilion?
i can not identify my laptop, i need to download drivers from hp.com
serial number:[Personal Information Removed]
product number:A3W63EA#A2N
i have searched a lot but could not find any drivers
i have searched on hp.com by the auto detect of the product but it can not detect my laptop
its a dv6 pavilion
it shows a lot of model numbers list when i go to the web site and i dont know what is my laptops number because its different from the number which is shown by hp assistance software.please help me out.
thanks. or just send me the link of from where i can get the drivers to solve this problem. regards.
mohamed ali ,
[Personal Information Removed]
khamis
This question was solved.
View Solution.Hi,
I don't play games. Please check:
http://answers.microsoft.com/en-us/windows/forum/windows_7-system/the-application-was-unable-to-star...
Regards.
BH
**Click the KUDOS thumb up on the left to say 'Thanks'**
Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem. -
Default format pattern for Date and Number
Hi everybody,
I'm finding it very hard: my java app runs on Tomcat 5.5, I'd like to format dates and numbers with a specific format. For example: with Locale it_it date format is "dd-mm-yyyy", my wish is to display "dd/mm/yyyy" without changing the Locale (it_it is correct). Is there an env variable to set?
Thanks.gianoele wrote:
How cai I set with a proprerty? Like -Ddate.format="dd/mm/yyyy" -Dnumber.format="###.00"?You could do that.
Then fetch it from your app and feed it to SimpleDateFormat. -
How can i check for my model number of g6 pavilion?
i can not identify my laptop, i need to download drivers from hp.com
i have downloaded the hp assistance software as well and it show the model number which is
serial number:[Personal Information Removed]
and
product number:LN246EA#A2N
i have searched a lot but could not find any drivers
i need audio driver because if i play dvd the sound is very low and distorted.
i have searched on hp.com by the auto detect of the product but it can not detect my laptop
its a g6 pavilion
it shows a lot of model numbers list when i go to the web site and i dont know what is my laptops number because its different from the number which is shown by hp assistance software.
please help me out. thanks. or just send me the link of from where i can get the drivers to solve this problem. regards.
asim nawaz.
[email protected]Pavilion g6-1007sx
This should be the driver page:
Driver Page -
Validation pattern for 4 digit number
Hi all,
very simple requirement but I find no solution: Only 4-digit numbers (e.g. 2344 or 2345) should be allowed in a numeric field.
I try to solve this with a validation pattern. My favorite pattern is "num{9999}". But this pattern validates also 1-, 2- or 3-digit numbers positive. Why? And what is the right pattern?
Thanks in advance,
MichaelI'd make it per skript
VALIDATION - JAVA SCRIPT
if (this.rawValue > "999")
true;
} else {
false;
Limit it to 4 digits (like you've done already) and everything should work fine ^^
Edit: Probably you should make the field obligatory too (at least if it should be obligatory).
Hope that helped ^^
Lisa ^^ -
How to set locale to accept German number format?
I'm just evaluating the BC4J framework and built a struts-based JSP page for BC4J. The application should be multilingual. How can I change the locale (especially the number input format) to german, so that a decimal comma is accepted? If that isn't possible, can someone give me a hint, in which class/method to put the code for parsing or validating the input string?
I'm just evaluating the BC4J framework and built a struts-based JSP page for BC4J. The application should be multilingual. How can I change the locale (especially the number input format) to german, so that a decimal comma is accepted? If that isn't possible, can someone give me a hint, in which class/method to put the code for parsing or validating the input string?
-
TS4337 How do I alter Calendar's Phone Number Format?
On earlier versions of iCal I could set the format for phone numbers. With Calendar 6.0 I don't seem to be able to do this. Is there some way this can be accomplished?
http://support.verizonwireless.com/support/faqs/FeaturesandOptionalServices/faq_verizonsafeguards.html/2/3
-
How AT&T charges for two iPhones
My girlfriend is thinking about getting an iPhone and I already have one. We want to be on a family plan together but I am not sure that how AT&T charges for having two iPhones on the same family plan. With regular phones it has always been just an extra $10 a month. If anyone knows the answer to this I would appreciate any help that I can get.
Thanks!I have a family plan with 4 phones. 2 of them iPhones
Since I am the main line. My phone costs $100 a month plus $20 unlimited data plus $20 unlimited SMS so all together just my phone is $140 a month.
My dad has an iPhone his is $9.99 a month plus the $20 unlimited data. So grand total for his line is $29.99 a month
So the only increase you will see on the Bill is $40 plus taxes as you both will have Unlimited data. -
How to use class for Translate..codepage/numer format
In the Unicode context, TRANSLATE... CODEPAGE/NUMBER FORMAT is not allowed.
this is the class to be used for Translate Codepage/number format.statement
Unicode Error : In the Unicode context, TRANSLATE... CODEPAGE/NUMBER FORMAT is not allowed.
Before Unicode
TRANSLATE T143T-TBTXT FROM CODE PAGE '1100' TO CODE PAGE '1105'.
After Unicode
Use class for Translate codepage to codepage.
Data : g_codepage LIKE tcp0c-charco VALUE '1100'.
CONSTANTS: c_unicodecp(4) VALUE '1105'.
PERFORM translate_codepage USING g_codepage
c_unicodecp
CHANGING T143T.
FORM translate_codepage USING P_G_CODEPAGE
P_C_UNICODECP
CHANGING P_T143T.
DATA: converter TYPE REF TO cl_abap_conv_obj.
DATA: l_out TYPE string.
DATA: l_fromcode TYPE cpcodepage.
DATA: l_tocode TYPE cpcodepage.
l_fromcode = P_G_CODEPAGE.
l_tocode = P_C_UNICODECP.
CREATE OBJECT converter
EXPORTING
incode = l_fromcode
miss = '.'
broken = '.'
use_f1 = 'X'
outcode = l_tocode
EXCEPTIONS
invalid_codepage = 1
internal_error = 2.
IF sy-subrc <> 0.
CASE sy-subrc.
WHEN 1.
MESSAGE ID 'FES' TYPE 'E' NUMBER '024' RAISING unknown_error.
WHEN 2.
MESSAGE ID 'FES' TYPE 'E' NUMBER '024' RAISING unknown_error.
ENDCASE.
ENDIF.
CALL METHOD converter->convert
EXPORTING
inbuff = P_T143T
inbufflg = 0
outbufflg = 0
IMPORTING
outbuff = l_out
EXCEPTIONS
internal_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
CASE sy-subrc.
WHEN 1.
MESSAGE ID 'FES' TYPE 'E' NUMBER '024' RAISING unknown_error.
WHEN 2.
MESSAGE ID 'FES' TYPE 'E' NUMBER '024' RAISING unknown_error.
ENDCASE.
ENDIF.
P_T143T = l_out.
ENDFORM. " translate_codepage -
International panel number format
In the International panel of the System Preferences I would like to set the number format but there is no customise button.
I would like to achieve the following combination, all of which are crucial to the operation of some applications:
*main language:* English, then French, then Dutch then German.
*names of the days of the week and months of the year*: in English
*date format:* YYYY-MM-DD (e.g. 2008-06-24)
*time format:* HH:MM:SS 24-hour clock (e.g. 23:36:34)
*number format:* 1'234.56
currency: euro
*measurement system:* metric.
If anyone can do this, please tell me how!
The customise button for numbers disappeared already in Tiger and this problem has never been fixed to my knowledge.Answer obtained: you have to wait for Snow Leopard, but in the meantime you can set the format by terminal command:
defaults write -g AppleICUNumberSymbols -dict-add 1 \'
defaults write -g AppleICUNumberSymbols -dict-add 17 \'
The numbers are:
0 -- decimal separator for numbers .
1 -- thousands separator for numbers '
2 -- number formats ¤ #,##0.00;¤ -#,##0.00
4 -- starting character for numbers; for example, if you set the value to a, instead of numbers 0-9 you will see characters a-j (well, this is not that useful!).
8 -- currency symbol €
10 -- decimal separator for currency .
17 -- thousands separator for currency '
Maybe you are looking for
-
My iPod 4G will not sync with iTunes?
It has not been syncing with iTunes for a while now, but I have not really bothered with it because I haven't needed to sync new music or apps since I can download apps directly from the iPod and I do not buy music off of iTunes yet because I only us
-
Dynamic reverse context node mapping at runtime
Hi! I have an application which uses another embedded component containing a ALV table which shows the data of a transparent table. Everything works fine if i'm working with a static table with static attributes and map the context node of the applic
-
Hi all I have a date dimension that (type time) with attributes - [FiscalYear] (type years) - [FiscalMonth] (type months) - [FiscalWeek] (type weeks) In addition to the attributes used in the natural hierarchy, I have an attribute [PerType] containin
-
Odd Keyboard/mouse failure after waking from sleep
Here's an odd problem that's been bugging me for awhile now. Occasionally my iMac will not allow me to log in after waking from sleep. I always log out of the machine when I'm not using it, and after a bit it goes to sleep (usually I'll just click th
-
Hi Guys, I am looking for an application which can give me the class hierarchy for a running Swing application. I am just a beginner and sorry if this is very dump to ask for :-) Thanks Raman