Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, August 18, 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: issue retrieving AccountName in C# Code snippet
Chad Morton
Posts: 8
 
issue retrieving AccountName in C# Code snippetYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Apr 09 10:33 AM
hi,
I've used this code snippet from Ryan before in order to build button links in the web client (7.5.1), however in this particular instance I'm having trouble retrieving the account.AccountName...If I use any other property MainPhone, Address.PostalCode, etc.. the link works properly, however when I attempt to use AccountName the link does not work.

I'm sure I'm missing something fundamental, any ideas?

Sage.Entity.Interfaces.IAccount account = this.BindingSource.Current as Sage.Entity.Interfaces.IAccount;
if (account != null)
{
buttonESS.OnClientClick = string.Format("window.open('http://intranet/contracts/ESSAgreement.aspx?SubName={0}');", account.AccountName);
}
[Reply][Quote]
Nick Hollis
Posts: 549
Top 10 forum poster: 549 posts
 
Re: issue retrieving AccountName in C# Code snippetYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Apr 09 10:41 AM
Looks like it should work to me...the property name is correct. Does the snippet error on build or does the link just not work when its client side?

Whats the account name? No apostrophes in there are there? That will break the javascript string...
[Reply][Quote]
Chad Morton
Posts: 8
 
Re: issue retrieving AccountName in C# Code snippetYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 23 Apr 09 11:03 AM
Thanks for the quick response! I knew it was something simple I was missing....apostrophe in the testers accountName.

Thanks again Nick.
[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): 8/18/2025 5:24:42 AM