Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, June 28, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: How to display a number without decimal point using a Numeric Control?
Mahim
Posts: 5
 
How to display a number without decimal point using a Numeric Control?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Jun 09 7:55 AM
I am using a Numeric Control to display a Number.[Ex - 23,756.00]
I want to display the number without the decimal point.
Setting the property FormatType = "Decimal" didn't helped. Though it removed the decimal point but it also removed the comma from the number.

Thanks.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: How to display a number without decimal point using a Numeric Control?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 24 Jun 09 9:34 AM
Good timing for your question. I have just figured out how to do this, so here is the best way to go with it:

- Use a Text control (or a label, but not the Numeric Control - Then again, I haven't tried using the Numeric Control.).
- On the Binding, add a Formatting string and use the following one: "#,##0"

E.g.:
WebEntityBinding myCtrlBinding = new WebEntityBinding("MyNumber", myControl, "Text", "{0:#,##0}", "0");

This will give you the result you are looking for.
[Reply][Quote]
Jose Urena
Posts: 92
 
Re: How to display a number without decimal point using a Numeric Control?Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 18 Jan 12 11:28 AM
fiogf49gjkf0d

Nice! i can confirm that the format works with the Numeric Control, and its better because it limits the characters.


I did it in the "Data Bindings" field.  Obbiously its a "native" AppArchitect form.  I just pasted the {0:#,##0.00} (i want the 2 decimals) on the Format String field that is always below the Binding field.


I'm preety sure the procedure you described should work on custom forms also.


Now i can change currency fields to numeric and use my "es-PA" Panama localization (we use "B/." as currency symbol and it always shows "invalid format string").


Edit:  Sorry, i forgot to mention, that the numeric field must have the "Format Type" set to "Numeric" to work properly.

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 6/28/2025 7:43:33 AM