Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Format a number?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Format a number?
#35639
Format a number? 11 Years, 10 Months ago Karma: 0
Is it possible to format a number? For instance, I am pulling records from a database that are numbers like 823453450

can I format it to 823,453,450?

If I format it in the database it converts it into a string and I don't know how to convert it back into a number (is that possible?).

I need it as a number so I can sort it in the ARI Data Tables.

thanks!
The administrator has disabled public write access.
 
#35641
Re: Format a number? 11 Years, 10 Months ago Karma: 0
Since I was formatting the numbers in the sql it was converting the field to a string, so I tried using Table sorter and it works. Is this the best method?
The administrator has disabled public write access.
 
#35642
Re: Format a number? 11 Years, 10 Months ago Karma: 760
Hello,

If you use "ARI Data Table" widget, set "Choose table type -> ARI Data Table -> Columns settings -> Index" parameter to zero-based index of column with number and set "Choose table type -> ARI Data Table -> Columns settings -> Sorting type" to "Numeric HTML" value.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1