Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Saturday, July 5, 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: Modifying control properties in a businessrule
Donovan Mitchell
Posts: 5
 
Modifying control properties in a businessruleYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Aug 09 3:13 PM
Hi All,

I'm fairly new to development in the 7.5 web client and it seems to be the little things I have trouble with.

I'm simply trying to disable (or make readonly) a picklist field on the accountdetails view based on the results of a HQL query. My query is ok, but I'm just having trouble figuring out how to modify the enabled property of the control

I thought I could just do something like: "account.(controlName).Enabled = False", or somthing similar, but the control properties are not available in this way from what I see.

I'm sure I'm just being stupid... Can anyone help?

Thanks in advance

Don

[Reply][Quote]
Jason Buss
Posts: 382
 
Re: Modifying control properties in a businessruleYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Aug 09 3:44 PM
Hi Don,

I think what you're looking for is:

IAccountDetails.DealerPriority.Enabled

Does that help?
[Reply][Quote]
Alberto Chiesa
Posts: 49
 
Re: Modifying control properties in a businessruleYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Aug 09 3:23 AM
Business rules affect entities, while you want to change a property of a control in a form.

You should use a code snippet action (or the "obsolete" c# snippet action) on your form.

E.g. change your business rule so it returns a boolean value, then add a onload code snippet action into the form.
In the snippet, write something like the following:


IAccount account = (IAccount) this.BindingSource.Current;

this.ControlName.Enabled = account.yourBusinessRule();


Note that "this" inside a form's load action refers to the form itself. The control is a property of the form, not of the entity.
This way, you keep the logic into the Entity layer using a business rule, but apply the criteria into the form.
[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): 7/5/2025 2:55:54 AM