Support for Segmented Entry controls on dialogs
Describes the code pattern to add Segmented Entry controls to dialogs.
The process to add Segmented Entry controls to dialogs has changed. This code is an example from Dynamics AX 2012:
DialogField dialogFeeLedgerDimension;
LedgerDimensionAccountController ledgerDimensionAccountController;
dialogFeeLedgerDimension = dialog.addFieldValue(extendedtypestr(LedgerDimensionAccount),feeLedgerDimension,"@SYS119703");
ledgerDimensionAccountController = LedgerDimensionAccountController::constructForDialog(dialogFeeLedgerDimension);
In the current release, this code would be converted to:
DialogField dialogFeeLedgerDimension;
dialogFeeLedgerDimension = SegmentedEntryControlBuild::addToDialog(
dialog,
classstr(LedgerDimensionAccountController),
extendedTypeStr(LedgerDimensionAccount),
"@SYS119703",
feeLedgerDimension);
For the second parameter, choose the class that satisfies the requirements for your dialog. The options are:
- LedgerDimensionAccountController
- LedgerDimensionDefaultAccountController
- DimensionDynamicAccountController
- BudgetLedgerDimensionController
- BudgetPlanningLedgerDimensionController
This scenario is a simple dialog scenario around Segmented Entry. More advanced scenarios include:
- Binding the dynamic account type.
- Company selection support.
- Account structure selection support.
Additional resources
Design-time metadata for Segmented Entry controls
Parm
methods for Segmented Entry controls
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: