Monthly Archives: April 2019

Creating a model-driven app – don’t forget to add ALL required entities and forms to the app

 

When creating a model-driven application, it’s easy to think that we only need to include those entities into the app which will be displayed in the sitemap. So, in the example below, it would be only 5 entities:

image

There is something to keep in mind, though. If you are expecting quick create forms to show up in your application at all, you need to add corresponding  entities and forms to the application. Although, you don’t have to add those entities to the sitemap.

This applies to the activity entities, too.

For example, under the quick create button at the top, I only have tasks on the screenshot below since it’s the only activity entity added to my app:

image

Surprisingly, timeline control is behaving a little differently – all activity entities are showing up there:

image

However, even the timeline control falls victim of the missing forms. If I try creating a task from the timeline, I will be able to use a quick create form:

image

If I try creating a phone call from the timeline, I’ll be looking at the regular main form:

image

Adding Phone Call entity (and quick create form for that entity) to the application takes care of this issue:

image

Here we go:

image

 

Editable sub-grids are playing April fools’ joke

 

It’s the morning of April 1st, I am looking at my editable sub-grid, and I start panicking. Because, apparently, it’s not working – I can’t edit anything at all.

I tried pretty much everything (re-enabling the grid, changing the view, updating control settings in different places, looking in the community forums).. Nothing worked.

And, then, I realized that the parent record (for which Dynamics was displaying that sub-grid) was read-only:

image

Well, sub-grids, you have certainly made fun of me, but I’ll tell you this: I can still edit those related records if I just open them separately (as in, if I double-click any of the sub-grid rows), so I’ll be the one who laughs last!