Solved

Dojo Currency Textbox

Posted on 2010-08-13
5
960 Views
Last Modified: 2012-05-10
Hello, I,m using the Dojo Currency Textbox to display data from a table, the column that i,m displaying is on double format. My problem is that if  i enter a value like 15.20 the system save me 15.2 in the table and when i call my data and fill the dojo field it bring the data, but with a dojo error message because he expect data to be like 15.20, if i add a 0 to the value it delete the error. the only time it work fine is when i save a value like 15.25. I don,t know if double is the correct format to my field in the database, or if i have to change my format in the dojo Currency TextBox
0
Comment
Question by:cano63
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 33435015
you need to add the missing zero when you get the value from the database
0
 
LVL 1

Author Comment

by:cano63
ID: 33436668
I can do that but what about if the saved value is like 15.25 when it load it will be 15.250 and dojo will display the error message, i can do a logic to validate when or not to add the 0 but thats i what i don,t want to do. Is there a way to tell dojo that with only one 0 the field is ok.
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 33436687
You don't add a zero every time only when it miss (when you've 1 digit after decimal point)
0
 
LVL 1

Author Comment

by:cano63
ID: 33451139
That what i don,t want do to, i have over 100 currency field and if for each one i have to write logic, there is no advantage of using this dojo currency textbox.
0
 
LVL 82

Expert Comment

by:leakim971
ID: 33481598
Thanks for the points!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
A big percent of today’s marketing activity is performed through the online environment. The marketing strategies that have existed a decade ago no longer relate to what’s happening today. We’re currently facing a revolutionary era, called the digit…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question