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: Currency Formattting
Sarah Owen
Posts: 10
 
Currency Formattting Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 16 May 12 5:49 AM
fiogf49gjkf0d

Within my Opportunity Details grid I have several bespoke currency fields.


We have Multi-Currency enabled, which at the moment is placing a GBP at the end of my value.


1000.00 GBP


My users do not like this.  I have two questions relating to the formatting of the currency.


1.  How do I remove the GBP, I have tried setting the property "Display Exchange Rate Code" to False, but this has no effect.


2.  I need to format my value with no trailing zeros - 1000.00 should read 1000, again I have tried formating the filed - In Data Bindings I have specified a format string £%.0m - but again this does not change the format.


 


Can anyone, help


Thanks



Sarah

[Reply][Quote]
Scott Jeynes
Posts: 3
 
Re: Currency Formattting Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 May 12 9:02 AM
fiogf49gjkf0d

Hi Sarah,


I'm dealing with the same issue. I'm considering removing the SLX Currency control altogether and binding the data field to an ASP.NET label or text box. But I believe there's some validation and/or display client script that comes with the SLX Currency control, and I don't necessarily want to lose it (unless all it's doing is generating the unwanted formatting!).


Anyone have a simpler solution?


Thanks!
Scott

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Currency Formattting Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 May 12 9:15 AM
fiogf49gjkf0d

From what I recall, the Currency Control uses .Net formatting for Currency, so it may have to do more with your Currency Settings (or the Servers).


This is what I got ouf ot the FormatCurrencyValue function from the Currency control via Reflection, from what I can tell the Currency Code that gets appended can be controlled via the DisplayCurrencyCode property:


 


 


public string FormatCurrencyValue(string value, string defaultValue)
{
if (this.MultiCurrency())
{
this.LoadExchangeRate();
if (this.DisplayCurrencyCode)
{
this._currencySymbol = this._currentCode ?? "";
}
}
string cleanValue = this.GetCleanValue(value);
if (string.IsNullOrEmpty(cleanValue))
{
return defaultValue;
}
string str2 = (Convert.ToDouble(cleanValue) * this.ExchangeRate.Value).ToString("C" + this.DecimalDigits);
if (this._currencySymbol == this._currentCode)
{
str2 = str2.Replace(CultureInfo.CurrentCulture.NumberFormat.CurrencySymbol, "");
str2 = str2 + (str2.EndsWith(" ") ? this._currentCode : (" " + this._currentCode));
}
return str2;
}

 

[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: Currency Formattting Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 17 May 12 9:17 AM
fiogf49gjkf0d

Also, trailing zeros can be controlled via the DecimalDigits property.


 


Now, I checked the Control itself, and not the Control Adapter, so it is possible that some of these properties are not available within App Archited.


 

[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 4:01:48 AM