Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Custom page is blank

Posted on by 95

As a test, I created a simple custom page with only one text field and some static text.  When I preview the page, I can see the text.  However, when I launch the custom page from the app as a modal dialog, I only see the title of the modal.

Here is the code:

let pageInput = {
            pageType: "custom",
            name: "effectivedate_12f18"
        };
        
        let navigationOptions = {
            target: 2,
            position: 1,
            width: {value: 50, unit:"%"},
            title: "Effective Date Change"
        };

        Xrm.Navigation.navigateTo(pageInput, navigationOptions).then(
            function success() {
                //test
            },
            function error() {
            }
        );  

This is what I see from the preview:

effectivedatebefore.png

This is what I see from the app:

effectivedateafter.png

  • Suggested answer
    MZ_980 Profile Picture
    MZ_980 95 on at
    RE: Custom page is blank

    Thanks for responding.  I tried everything from all the responses, yet no changes.  However, after a couple of days, I was able to launch my custom page.  Weird.

  • Suggested answer
    MZ_980 Profile Picture
    MZ_980 95 on at
    RE: Custom page is blank

    Thanks for responding.  I tried everything from all the responses, yet no changes.  However, after a couple of days, I was able to launch my custom page.  Weird.

  • Suggested answer
    MZ_980 Profile Picture
    MZ_980 95 on at
    RE: Custom page is blank

    Thanks for responding.  I tried everything from all the responses, yet no changes.  However, after a couple of days, I was able to launch my custom page.  Weird.

  • Verified answer
    Abby Kong Profile Picture
    Abby Kong 4 on at
    RE: Custom page is blank

    Hi MZ 980,

    Can you check below three things:

    1.  Custom Page Schema name is correct

    effectivedate_12f18, this name doesnt have prefix, this doesn't look right. Can you double check, it should be the have some thing like new_ or other in front

    2. Changes on the custom page is published.

    Preview is the saved version and what shows in Model-driven App is the live version. You can also find out which one is the current live version through version history.

    3. In Model Driven App, if there is message about new version of the app available is shown, please refresh the page (better with CTRL+F5 :)).

    Regards,

    Abby

  • Verified answer
    Eiken Profile Picture
    Eiken on at
    RE: Custom page is blank

    Hi,

    I encountered the same situation as you during my testing.

    Try to clear your browser cache and refresh the app editor browser, you can add the page into the app for testing, like I did.

     pastedimage1679282884957v2.png

    By the way, don't forget to click publish in custom page and make sure the name of page is correct.

    pastedimage1679283000634v3.png

    Then open the app and refresh the  try again.

    pastedimage1679283057536v4.png

  • Verified answer
    DAnny3211 Profile Picture
    DAnny3211 9,264 Super User 2024 Season 1 on at
    RE: Custom page is blank

    hi

    It seems like there might be an issue with the code you provided. Without more information or the full code, it's difficult to determine the exact problem. However, here are some potential issues that could be causing the behavior you described:

    Check that the control you are using to display the text is set to visible. It's possible that the control is there, but it's not visible due to a property being set to false.

    Double-check that the page is being called correctly when launching the modal dialog. Make sure the correct page ID is being passed as a parameter and that the code is correctly referencing the page.

    Check that the modal dialog is not set to a fixed width and height that is too small to display the text field. You can adjust the width and height properties of the modal dialog to ensure it can properly display the content.

    Review the code for any potential syntax errors or logical errors. It's possible that there is an error in the code that is causing the issue.

    If none of these solutions work, please provide more information and the full code so we can further investigate the issue.

    DAniele

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans