Search code examples
formscomboboxconstraintsfilteringdynamics-365-operations

In Microsoft Dynamics 365, why is my filter not a combo box when I am running start my Visual Studio Project?


I'm currently following the tutorial "Creating a custom filter control" in Dynamics 365 for Finance and Operations Development Cookbook - Fourth Edition

I've created the extension to the MainAccount which includes, under NavigationList(Group) -> Filter (Group)", an instance of Combo Box with the following properties:

| Property        | Value                      |
| Name            | FilterType                 |
| AutoDeclaration | Yes                        |
| EnumType        | DimensionLedgerAccountType |
| Selection       | 10                         |

In Visual Studio's preview, this displays correctly and offers the expected set of values.

I've set my project to be my startup project.
I've set my form extension to be my startup object. ... and then I click "Start".

After some long wait for the page to render, I find the labels for the fields are displayed with short black lines where the input fields should be, but the input fields hardly allow any interaction. I can click on them to select them, transforming them into blue box shapes, but I can't actually type anything into them and the input which should be a drop-down/combo-box for "type" has no visual or functional distinctions from the input for "name" which should just be text.

Is Visual Studio failing to deploy something? Is there some additional modification needed in my metadata for this to render as expected? What do I need to do to fix this?


Solution

  • With thanks to FH-Inway who spent some time screen sharing, it turns out the problem was not with the solution but with my expectations.

    I expected the filter fields to simply be displayed and immediately available for use.

    However, in actually -- completely counter-intuitively -- the fields, being created as part of the form, are only editable after one clicks the "Edit" button.

    Once in edit mode, the fields display and interact as expected.