I have 2 main forms for a table
-General Info
-Bulk Edit
What I would like is:
When user opens table in the site map it displays 'General Info' form.
When user select multiple records in a subgrid and selects 'edit' it automatically opens the 'Bulk Edit' form.
Seems like a simple request but I'm starting to question if it is even possible. My findings when trying to troubleshoot this:
1) There is no way designating specific forms to the bulk edit.
2) Changing the form order will mean that the first form will display in both sitemap and bulk edit mode.
3) Microsoft have disabled javascript on bulk edit forms. There was once an unsupported workaround that now seems to be patched by microsoft so it is no longer possible.
4) I tried adding 'Bulk Edit' form to the top of the form order. And then added JS so when it loads in the sitemap it switches to the General Form. But it would still show the General Form in Bulk edit mode afterwards so I guess it must also be cached somehow?
I'm at my wits end with this. I'm aware the user can just select the dropdown to change the form but it seems like something that should be fairly common and easy to implemenet.
Hi,
I may have an idea that could work on all entities. However, there is some unsupported code (undocumented code).
- Customize the Update button of Application Ribbon. This changes the behavior of the Update button on all entities from a HomeGrid.
- Call Xrm.Navigation.navigateTo with the minimal settings if only one record is selected to get the normal behavior.
- If there are multiple records selected:
- Get the id of the form from its name (Bulk Edit) by WebApi. The form name should always be the same on all entities.
- If the Bulk Edit form is found:
- Call Xrm.Navigation.navigateTo with undocumented parameters and the Bulk Edit form id. See butenko.pro/.../
- Otherwise:
- Call Xrm.Navigation.navigateTo with undocumented parameters without form id.
This is clearly not an ideal solution but I can do a Proof Of Concept if you are interested.