web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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!

I have the same question (0)
  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    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.

  • yify Profile Picture
    1,023 on at

    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

    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.

  • Suggested answer
    LeoAlt Profile Picture
    16,331 Moderator on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
iampranjal Profile Picture

iampranjal 41

#2
Martin Dráb Profile Picture

Martin Dráb 36 Most Valuable Professional

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans