Binding a RoleTailored Client Control Add-in to the Database
The content in this topic only applies to Microsoft Dynamics NAV 2009 SP1. For Microsoft Dynamics NAV 2009 content, see Developer and IT Pro Help for Microsoft Dynamics NAV 2009.
Similar to other field controls on a page, a RoleTailored client control add-in can bind with data in the Microsoft Dynamics NAV database. This allows you to create control add-ins that can display and update data in the database. Data binding is accomplished through Microsoft Dynamics NAV Server with theof the field control that is applied with the control add-in as illustrated in the following figure.
The control add-in must implement theinterface that exposes the property. When a control add-in is instantiated on a page, the SourceExpr property value is passed to the control add-in Microsoft.Dynamics.Framework.UI.Extensibility.IValueControlAddInDefinition.Value property.
The SourceExpr property value can be passed to Microsoft.Dynamics.Framework.UI.Extensibility.IValueControlAddInDefinition.Value property multiple times while a page is open, depending on application code or state in the RoleTailored client.
The SourceExpr property can be a field in a database table or a C/AL global variable. Control add-ins support text string () and object ( ) data types.
For more information about implementing the Microsoft.Dynamics.Framework.UI.Extensibility.IValueControlAddInDefinition interface, see.
For more information about setting the SourceExpr property for a control add-in, see.