cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Scroll Bars for Embedded Canvas App on the Model-Driven App Form

Hi folks,

 

I wonder if anyone can help. I've got an canvas app embedded on a model-driven app form and even though I've played with settings on the App I am getting a huge section of white-space below the app, which results in a scroll bar - this is not on the app itself but the section on the model-driven app that the canvas app is embedded: 

scn_gsscroll.png

 

The app itself is set to 1200 x 400 and I've played with the resize settings in the app settings and neither option removes the scroll bar. The app is embedded in a single-column section on the main form. 

 

Any advice gratefully appreciated.

 

Kind regards,

Matt

17 REPLIES 17
Chrisa_uk20
Regular Visitor

Has anyone found a resolution for this? I have the same issue. My app is 768 height, and all the controls fit on however when you run it in a Dynamics form it is 3998 high :-(.

 

Like the original poster I have tried all combinations of size and scale.

Hi @Chrisa_uk20 

 

One thing I have noticed is that if you make a lot of changes to an embedded  canvas app, the app "window" increases in size, not the actual app canvas. To test this out, and I know it's not ideal, embed another canvas app by removing the field that currently associates the canvas app to the model-driven form, and see if you still get the border. If you don't, copy all controls from your old app to this app and see if the scroll bar still stays away. 

 

Let me know the outcome of this. It has helped me get rid of the scroll bar on numerous occasions. 

 

---
If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

 

Thanks!

Hardit Bhatia

Microsoft Business Applications MVP

Microsoft Certified Trainer MCT

Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

Have exactly the same problem, unfortunately

@Chrisa_uk20and @MattTaylor , have you been able to resolve the issue?
I don't want to put the app in the iFrame, since it will damage the width-scalability

@not_a_thing, I've had no luck with this - I've essentially just given up on it; I have two Apps embedded on two different forms. They are both the same size, they have the same settings and are embedded the same way. One works (i.e. no scrolling) and one doesn't...

you gotta be kidding...
well, I'll try to build the app from scratch and see if it helps.. Thanks for the swift reply

It's crazy - I am working on them at the moment and will check to see whether the field type makes any difference (the one you bind on the form for the embedded App. I'll post back if it works! 

 

OK, our client has been generous and let me have the time needed to find out about this.

First thing first, I found this article:

Embedded canvas app guidelines and known issues

There, there are basically 2 things that can screw it up:


  • The Scale to fit option isn’t enabled with the canvas app.
  • The App Name property value is missing or is incorrectly defined in the embedded canvas app control. This might occur when the model-driven app and canvas app have been imported as a solution into another Dataverse environment.

So I narrowed it down to App Name, as Scale to Fit seems to have no effect in my case - it definitely can't fix the issue by just turning it on when you already have the white space below the app.

After creating a bunch of test apps, moving them around, trying on different screens, I have come to this conclusion:
 
  1. You can only create canvas apps on embedding to the model-driven form. Creating it first, and copy-pasting the ID in the model-driven form will work, but! it will drag some bugs in the process - like the white space below.
    The reason for this, you'll need to have the auto-generated app name in the app name field. Otherwise, this will always produce white space below the app
    embed-canvas-field-properties
    Several guides state that you can just copy both App name and App ID "exactly how they appear on the screen", but you can observe, that even on the example screen above from MS (Add an embedded canvas app), the name is not exactly the app's name, but prefix+appname+suffix ("contoso" and "c2ae6" in this example). Prefix is just the same as in solution, but I have not been able to see any connection between the suffix and my current environment or solution.
  2. Resizing the app only works while Scale to Fit is turned on (meaning app not scaling to fit, not_a_thing_2-1624355178597.png to Microsoft). If your app needs to fit to the column width, (thus the need to turn the option for Scale to Fit off), then you need to first enable Scale to Fit, adjust height/width in the settings, save+publish, turn off Scale to Fit, save+publish
  3. Having dynamic FormScreen Height is just a roulette. This is confusing, why setting height to Max(App.Height, App.MinScreenHeight) will sometimes destroy the rendering, an sometimes it will not.

 

So what I did was to create a new app inside the form, set the right size from the very start in advanced settings, leave the Scale to Fit option on, save (it will autopublish).

WAIT until the App name field will autogenerate in the model-driven form. Save and publish the form

Go back to the app, adjust both App.MinScreenHeight and App. MinScreenWidth to the smallest values desired, adjust all of the Screens Height and Width to the same constant values that you provided for the app size (in the advanced settings), save and publish.

Then I spent half an hour copying my old app to the new; many things will copy-paste, but the the absolute positions of the controls were wrecked. Media had to be re-imported.

Save and publish.

At this time, the white space below will disappear, but the scrollbars will remain, when you switch to a smaller screen.

This is when you change the Screen Height and Witdh back to default Max(App.Height, App.MinScreenHeight) and Max(App.Width, App.MinScreenWidth) and turn Scale to Fit off.

This is my result:

not_a_thing_3-1624356299116.png
from the original Embedded canvas app on a model-dribven form has hu... - Power Platform Community and I haven't been so happy in a week 🙂

Excellent work! I'll test this on our environments tomorrow - I have two identically sized Apps on different forms and one works and one doesn't (all settings are identical) 

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!   This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions in the Forums to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber of SolutionsSuper UsersNumber of Solutions @anandm08  23 @WarrenBelz  31 @DBO_DV  10 @Amik  19 AmínAA 6 @mmbr1606  12 @rzuber  4 @happyume  7 @Giraldoj  3@ANB 6 (tie)   @SpongYe  6 (tie)     Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersSolutionsSuper UsersSolutions @anandm08  10@WarrenBelz 25 @DBO_DV  6@mmbr1606 14 @AmínAA 4 @Amik  12 @royg  3 @ANB  10 @AllanDeCastro  2 @SunilPashikanti  5 @Michaelfp  2 @FLMike  5 @eduardo_izzo  2   Meekou 2   @rzuber  2   @Velegandla  2     @PowerPlatform-P  2   @Micaiah  2     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 3:Community MembersSolutionsSuper UsersSolutionsPower Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27     Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 4:Community MembersSolutionsSuper UsersSolutionsPower Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8   SunilPashikanti8

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (1,459)