Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Sunday, June 29, 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: CheckBox Enabled Binding
Andrew Grandin
Posts: 272
 
CheckBox Enabled BindingYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Oct 10 3:43 AM
Hi All, i previously used the following line for the checkbox enabled binding:

Sage.Platform.WebPortal.Binding.WebEntityBinding CheckBox1EnabledBinding = new Sage.Platform.WebPortal.Binding.WebEntityBinding("RedFlag", CheckBox1, "Enabled");
CheckBox1EnabledBinding.IgnoreFLSDisabling = true;
BindingSource.Bindings.Add(CheckBox1EnabledBinding);

RedFlag is not the field the checkbox checked state saves to but rather a different chekbox that must be checked before CheckBox1 can be enabled.

My problem now is that the RedFlag is changing from a checkbox to a picklist. We have introduced a new field for this in the database called RedFlag2.

Is there any way to bind Checkbox1 so it is Enabled/Disabled based up on the TEXT value in the ZRedFlag2 field? (this will be Red,Amber or Green.... Red means checkbox1 can be enabled, Amber and Green means it should be Disabled.
[Reply][Quote]
Raul A. Chavez
Posts: 1300
Top 10 forum poster: 1300 posts
 
Re: CheckBox Enabled BindingYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 06 Oct 10 12:00 PM
How about this:

Create a Code Property of Type boolean.

For example, the new property could be called: RedFlagEnabled, and within it you could so something like:

retVal = false;
if (ZRedFlag == "Red")
retVal = true;
else
retVal = false;

return retVal


Then, bind the Checkbox.Enabled property to the new Property that you created, which as shown above would give you a boolean value...
[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/29/2025 8:59:28 AM