Hi,
In the UCI, on click of the subgrid + button , I want to open it in the new pop up window. Currently it is opening in the same window. Please advise the step by step on how can I achieve this.
Thanks!
Hi partner,
As Andrew said that you need to overwrite the command of the button in subgrid.
Please follow these steps.
1.Create a solution which only contains the entity you want to open in pop up window. For example, I added account into my new solution.
2.Add the following JS function to a web resource in D365.
function openNewAcc() { var entityFormOptions = {}; entityFormOptions["entityName"] = "account"; entityFormOptions["openInNewWindow"] = true; // Open the form. Xrm.Navigation.openForm(entityFormOptions).then( function (success) { console.log(success); }, function (error) { console.log(error); }); }
3.Open the solution you created in Ribbon Work Bench 2016.
4.Find the "New{0}" ribbon in subgrid tab and right click on it and select "Customise Command".
5.In "Commands" tab, delete the default actions and add a new JS action, choose the web resource and the JS function.
6.Publish.
Then we go back to D365 and click "New Account" in account subgrid, and the new pop up window with Account main form appeared!
Best Regards,
Leo
James,
Ok. I see. Then you will have to customize behavior of + button on the grid using Ribbon Workbench, write some JavaScript that will use new feature from April Release to show record form in modal dialog - butenko.pro/.../ and attach this JavaScript to that + button.
Thanks Andrew but I have so many fields where I want to use the main form to pop out instead of using Quick Create.
Hello,
What you have to do is to activate "Quick Create" for your child entity, create a "Quick Create" form for your child entity and don't forget to add created "Quick Create" form to your application.
Siv Sagar
149
Super User 2025 Season 1
Muhammad Shahzad Sh...
61
Most Valuable Professional
Daivat Vartak (v-9d...
53
Super User 2025 Season 1