6/29/2025 8:30:45 AM
|
|
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!
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.
|
|
|
|
CheckBox Enabled Binding
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. |
|
|
|
Re: CheckBox Enabled Binding
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... |
|
|
|
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!
|
|
|
|
|
|
|
|