Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, May 18, 2024 
 
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: Don't understand why I am getting this error
David Nunnally
Posts: 206
 
Don't understand why I am getting this errorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Sep 15 11:32 AM

Created a business rule in the 8.2 AA to use as a datasource for a grid.


public static void GetAccountLicenses(IAccount account, out object result)


When I try to use it with my grid


grid.DataSource = account.GetAccountLicenses(account);


I get the below error.


A smart part associated with this page has failed to load: c:\websites\CorePortals\SlxClient\SmartParts\Account\caiAccountLicenses.ascx(123): error CS1501: No overload for method 'GetAccountLicenses' takes 1 arguments.


I have tried doing a clean and build several times. Not sure why I get this, do I have the wrong syntax somewhere?


 


 

[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Don't understand why I am getting this errorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Sep 15 12:07 PM

You don't need to pass in the account. That context comes from the instance you're calling the business rule on.


Instead of this:



grid.DataSource = account.GetAccountLicenses(account); // <-- won't work


Do this:



grid.DataSource = account.GetAccountLicenses(); // <-- will work

[Reply][Quote]
David Nunnally
Posts: 206
 
Re: Don't understand why I am getting this errorYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Sep 15 12:27 PM

So to have access to the accountid inside the business rule do I need to add a parameter for ID or is the account.id available?

[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 © 2024 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): 5/18/2024 6:26:15 PM