Overriding Field Level Security Control Disabling in Infor CRM (Saleslogix) Web

Binding controls in Infor CRM (Saleslogix) Web forms will also automatically disable controls based on field level security for the current user. But what if you want to override that behavior? You might want to still allow a user to add data into those controls on an insert screen even though they would normally be disabled based on FLS for the user.

The control bindings include the ability to override this behavior. You simply loop through all bindings on the form and tell it to ignore the FLS rules and not disable the control.

foreach (Sage.Platform.EntityBinding.IEntityBinding eb in BindingSource.Bindings)
{ 
    WebEntityBinding wb = eb as WebEntityBinding;
    wb.IgnoreFLSDisabling = true;
}

You would put that code into a LoadAction on the form (make sure it’s RepaintEvent property is set to true)

ABOUT THE AUTHOR

Ryan Farley

Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix, now Infor CRM, since 2001 and believes in sharing with the community. He loves C#, Javascript, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) news and product updates!

You have Successfully Subscribed!