<cfgrid> display strips leading 0

This is a discussion on <cfgrid> display strips leading 0 within the Cold Fusion forums in Application Servers & Tools category; I have a table with a column that is defined as varchar(30) (MS SQL Server 2005). Probably 99% of the values in the column are numeric, but the value can also include an alpha character. Most of the values are three numeric characters , such as 003, 058, or 792. However, the value can be any number of characters (e.g., 0000885 or CRO549), The values are correctly stored in the database tables with the leading 0's intact. When I make my query and display the results in a <cfgrid> form, if the value in the table has characters that are ...

Go Back   Application Development Forum > Application Servers & Tools > Cold Fusion

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-07-2008, 07:11 PM
Ted Schuler
Guest
 
Default <cfgrid> display strips leading 0

I have a table with a column that is defined as varchar(30) (MS SQL Server
2005). Probably 99% of the values in the column are numeric, but the value can
also include an alpha character. Most of the values are three numeric
characters , such as 003, 058, or 792. However, the value can be any number of
characters (e.g., 0000885 or CRO549),

The values are correctly stored in the database tables with the leading 0's
intact. When I make my query and display the results in a <cfgrid> form, if
the value in the table has characters that are all numeric, the leading 0's are
stripped. Is there a way to make the display to not delete the leading 0's?

If the value in the table has at least one alpha character in it, the leading
0'sare not stripped when displayed.

Reply With Quote
  #2  
Old 09-07-2008, 07:41 PM
Azadi
Guest
 
Default Re: <cfgrid> display strips leading 0

http://www.coldfusionjedi.com/index....ng-zeros-issue

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:18 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.