Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Open in new pop up window

(0) ShareShare
ReportReport
Posted on by 1,023

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!

  • Suggested answer
    LeoAlt Profile Picture
    16,331 Moderator on at
    RE: Open in new pop up window

    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".

    pastedimage1583819906521v2.png

    5.In "Commands" tab, delete the default actions and add a new JS action, choose the web resource and the JS function.

    pastedimage1583820056539v3.png

    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!

    pastedimage1583819859734v1.png

    Best Regards,

    Leo

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Open in new pop up window

    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.

  • yify Profile Picture
    1,023 on at
    RE: Open in new pop up window

    Thanks Andrew but I have so many fields where I want to use the main form to pop out instead of using Quick Create.

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Open in new pop up window

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 149 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 61 Most Valuable Professional

#3
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 53 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans