Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Wednesday, February 19, 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: Questions about Business Rules Methods
Dan Forest
Posts: 12
 
Questions about Business Rules MethodsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Nov 07 7:54 PM
Looking at the existing business rules methods, the Primary Step appears to be alreay defined, but is not editable. What is the purpose of the definition if it can't be edited? I want to specify that Account.CanChangeOwner returns false, but don't know how to get at whatever code is behind the definition.

Another question: I also want to create an Account.CanChangeAccountManager business rule. My question is how do I associate the rule with a change in the AccountManagerId field? Thanks.

Dan
[Reply][Quote]
Bob (RJ)Ledger
Posts: 1103
Top 10 forum poster: 1103 posts
 
Re: Questions about Business Rules MethodsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Nov 07 6:34 AM
Don't modify Primary steps.. If you do you will "break" the upgrade compatability.

You can add "Pre" and Post" and be safe.

--
rjl
[Reply][Quote]
Duncan Cook
Posts: 164
 
Re: Questions about Business Rules MethodsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Nov 07 8:12 AM
RJ,

In the "Pre" part, any ideas how you cancel the event if it doesn't meet certain criteria?
i.e. the account event onDelete
I'm playing arround with session.Transation.Rollback(); but no joy

Thanks
DC
[Reply][Quote]
Dan Forest
Posts: 12
 
Re: Questions about Business Rules MethodsYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 12 Nov 07 5:01 PM
I don't think you can do this in the pre step, as there is no Boolean to return to the caller, but not sure. I've tried playing around with adding another primary step, and adding a post step. My results have been inconsistent, so I need to test further.

My question still stands on associating a Business Rule method with an entity column. How do you do it? With AA out of the box, you appear to get a few CanChange... methods, but certainly not covering all the columns in the table. I'm sure these are just examples, but the $64 question remains as to how you expand this set.

Dan
[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): 2/19/2025 7:41:04 PM