tag:blogger.com,1999:blog-5874979429188093780.post6130445358075768715..comments2024-03-18T06:46:54.352+01:00Comments on Andrej Baranovskij Blog: Handling Format for BigDecimal Numbers in ADF BCAndrej Baranovskijhttp://www.blogger.com/profile/04468230464412457426noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-5874979429188093780.post-31357197892674640732017-01-06T10:44:40.161+01:002017-01-06T10:44:40.161+01:00I think this is correct behavior.
Regards,
Andrej...I think this is correct behavior.<br /><br />Regards,<br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-34490221535726434692017-01-06T10:03:38.994+01:002017-01-06T10:03:38.994+01:00Hi Andrejus
I used your formatter class for the b...Hi Andrejus<br /><br />I used your formatter class for the big decimal issue and it works fine.<br />When I enter 18 digits in a number(18,2) precision and scale i have no issues.<br />I have used a length of 26 as you mentioned, and changed the maximum length on the UI to point at the width.<br />But when I type in 26 digits in the text area as it allows you to enter that amount of characters, the format fails. Please try replicate this on your example, I'm using 12c.<br /><br />regards SihleAnonymoushttps://www.blogger.com/profile/09497076650619057121noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-47527450653484778892016-10-06T13:43:35.645+02:002016-10-06T13:43:35.645+02:00Hi Andrejus,
I have a column which is Bigdecimal ...Hi Andrejus,<br /><br />I have a column which is Bigdecimal of (28,8) and I have used NumberFormatter class and I have number format "\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#\#.\#\#\#\#\#\#\#\#" and whenever I enter number above 20 it is throwing error message "has invalid precision/scale". So could you please guide me how to overcome with this. <br /><br />Regards,<br />Priyanivaragi.priyahttps://www.blogger.com/profile/01412325096422649844noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-75534763708479850252014-12-03T11:56:03.263+01:002014-12-03T11:56:03.263+01:00Thanks Thanks Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-65766361479814476502014-09-17T08:19:31.841+02:002014-09-17T08:19:31.841+02:00thanks Andrejus,
Now works
Regards,
Bernatthanks Andrejus,<br /><br />Now works <br /><br />Regards,<br /><br />BernatDVhttps://www.blogger.com/profile/12814132416069659044noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-28670264878226485072014-09-17T08:17:00.971+02:002014-09-17T08:17:00.971+02:00I have tested it now in 12c, you should change pri...I have tested it now in 12c, you should change private to public for: public DecimalFormat getDecimalFormat(), it will work.<br /><br />Regards,<br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-71770397037649159192014-09-17T08:09:18.330+02:002014-09-17T08:09:18.330+02:00I was testing it with 11g R2 only. In 12c you coul...I was testing it with 11g R2 only. In 12c you could use out of the box DefaultBigDecimal formatter, you you could remove "extends" from DefaultNumberFormatter - this should also work.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-52740242942491140392014-09-17T08:02:17.667+02:002014-09-17T08:02:17.667+02:00Great post, thanks
However, The class NumberForma...Great post, thanks<br /><br />However, The class NumberFormatter gives one error in method getDecimalFormat <br /><br />The error is:<br /><br />getDecimalFormat() in com.redsamurai.model.generic.format.NumberFormatter cannot override getDecimalFormat() in oracle.jbo.format.DefaultNumberFormatter; attempting to assign weaker access privileges; was protected"<br /><br />I'm using jdev 12.1.3DVhttps://www.blogger.com/profile/12814132416069659044noreply@blogger.com