In Dynamics 365 for Finance and Operations, segmented entry control can simplify the task of entering complex account and dimension combinations. The control consists of a dynamic number of elements, named segments. The number of segments may vary depending on the setup, and their lookup values may depend on the values specified in other segments in the same control. The segmented entry control always uses the controller class, which handles the entry and display in the control.
In this recipe, we will show you how a segmented entry control can be added to a form. In this demonstration, we will add a new Ledger account control to the general ledger parameters form, assuming that the control can be used as a default ledger account for various functions. The example does not make much sense in practice, but it is perfectly suitable to demonstrate...