So, I was watching this video from Microsoft Ignite. Link here: https://youtu.be/14yqmGBY12I
The presentor says at 7:04 that "the entire app is live all the time."
How does this idea translate to having a ton of screens with a ton of objects? Is this why the editing apps takes so much time and processing power? What performance hits could possibly arise from this?
Yes that was the problem since beginning specially when I was filtering database in a gallery on multiple screens and adding multiple lines on other screen into the same database. The performance went to subzero with more records added to the database. I tried to switch it off with variable and filter the database only when I'm on the screen which helped a bit but not completely (my app was really massive). I was told they will change that but obviously they arn't yet. I asked them just to at least add automatically some waiting spinning image in the middle of the screen so the app doesn't look like it is frozen but that isn't here either. It was long time ago but I thing they said they will make the apps running quicker so no waiting image will not be necessary in the future (or something like that)
I remember hearing that as well. I'm debating on recreating one of my apps (for funzies) and having two screens with the following:
1. Formuals
2. Data references
Would it make more sense for a screen to just reference formulas? I'm trying to reduce the amount of calls the application has to make to the server when refreshing data for various records.
@Sienna --
Well, that's dumb. (The response from the dev team, not you) The dev team can't possibly expect that loading times will always be practically instantaneous. Even if the optimize the hell out of PA, there are still other external factors to consider. (Like connection speed, for instance)
That's why I don't usually use query functions (e.g. Filter(), LookUp()) directly in properties like Items. I use global variables and collections as intermediaries. It might make my app and code a lot more complicated and less intuitive but at least it runs relatively consistently, albeit slow.
Who the hell does PA for funzies?! lol. I did before I was disillusioned of PA. *does dramatic pose* Wish you best of luck on that one.
And also, I have no idea what you meant by having a screen reference formulas. Did you mean, like, just give a screen a formula that evaluates to a dataset which all objects under that screen can use so that boundaries on refreshing data sources, and in extension, data sets can be easily defined? (Run-on sentence, yay!)
@anybody -- Don't you just love how this board, despite it being titled General Discussion, assumes everybody who would post in it would only post questions/problems? There's Accept as Solution buttons everywhere! (That was sarcasm, in case people don't notice)
@Anonymous
Something like that. I'm more or less trying to reduce the amount calls the application has to do my SQL server. For example, I have a list of locations where an item could be.
Sometimes we add new locations, so rather than have change every drop down array in my app, I just update a table in my SQL server. Would I be better off just having that list of locations on one screen and then have the app reference those locations within the app?
I'm guilty of playing around PA for funzies sometimes. I haven't done this lately because I'm learning MVC. I'm almost at the point where I'd rather just recreate all the apps that I have in MVC and just host them in Azure.
Oh. I think I did have a similar problem with PA. Not with the number of server calls but with the inconsistent refreshing of data from the server. What I did, IIRC, was just cache the data I need to a collection or global variable and reference those in my controls. I think that removes PA's auto-refreshing thing since it unlinks the table from the data source (or something. I might be wrong). Then, I do the refreshing by myself using a Timer or with a user action (OnSelect).
And for the locations? I think I used something like that for one of my app's navigation. By design, I wanted there to a link to most of the screens to each screen but I didn't want to have to edit all nav objects at each screen when the list of screens (or names of the screens) changes.
So, I defined a table on the OnStart property of the app (found at the first screen) and used that to populate a gallery I'll use for my navigation. So, I only have to duplicate the gallery and when minor changes (such as name changes and references to screens) have to be made, I only have to edit that table. (It only works for content changes though. If I had to, for example, change the formatting (colors, fonts, etc.), then I have re-copy all the galleries across the screens).
Screenshots, for greater clarity.
In consequence, however, there are times where the gallery had to re-render itself or something when the screens turn visible so I have this weird effect of the navigation expanding when navigating. (Word play!)
Anyway, I digress.
But MVC? Hosting in Azure? Boy, this does make me feel small. I don't even know where to start in those things. Lol. I do admire your dedication to experimenting, learning, and general fun!
@Anonymous wrote:That's why I don't usually use query functions (e.g. Filter(), LookUp()) directly in properties like Items. I use global variables and collections as intermediaries. It might make my app and code a lot more complicated and less intuitive but at least it runs relatively consistently, albeit slow.
I cached stuff for the longest time, but then the time it took to cache was defeating the purpose of using the app. So lately I've been going the opposite direction--rebuilding apps so they can deal with Filter() directly in the Items property.
The main kind of changes I made were to the way I reconfigured datasources and objects in galleries. I've also been storing more lookups and conditions in Toggles and Radio controls--a main part of my slowdown in galleries was due to the many conditions it needed to resolve.
I tried SQL, but ultimately, CDS seems to be the fastest datasource.
@Anonymous
Yes exactly. As I said my app was really massive with a lot of codes in practically every items. With the fact the app is live all the time, surprisingly, I didn't experience any slowing down apart from filtering large databases as mentioned above. Turning the filtering off while I'm on the other screen adding records into the database, helped adding records into the database but it creates another problem. Once you click on the button which get you back on the screen with gallery what filtering the database, app simply froze for few seconds (time depend on the size of database) and you simply couldn't do anything with it. And that is why I wanted them to automatically disable galleries when we are on other screens and show the waiting image when we navigate back so the user knows that the app is working. (you can't make to show waiting image in PA in this scenario). Same as with patch function. I noticed that it take some time to patch a record into the database but while it is patching the user of the app will have no idea what is going on... why it takes so long...
@mr-dang --
Yeah. I do agree that caching takes a ton of time. For our apps, there are bits of code we expect to have loading times of around 30s to 60s.
But my main problem with having all that query code (Filter(), LookUp(), etc.) directly in the properties is that there's no way of knowing, AFAIK, whether the query either returned no results or is still loading other than that crawling thing we get at the top of the screen. That's not really eye-catching and I'd like to have a way to control my visuals to let my users know, in a more visible way, that data is loading and the app hasn't frozen or anything. With an Excel connection or occasionally with a SQL Server one, some lag is bound to happen.
And also that reading and maintaining the code if it's just in one place is much easier. It's really slow to move from one property to another. (Oh, god. The lag.) I'm surprised they haven't improved that ridiculous dropdown.
I do wish they post and bring to the attention of the community best practices regarding data querying written by the devs who know how PA is supposed to be used. Then again, the PA dev team doesn't really have much of a reputation here so don't get your hopes up.
Spoiler tag here because I kind of digressed off-topic about the CDS.
So, back on topic. How did moving all the querying from the caches to the controls improve your app? Did it improve general loading times? Did you have awkward visuals in the screens when the data is initially being queried? If so, how often? The updating of the evaluation of property formulas is also reported to be run parallel. Did that affect the way you queried the data at all?
@Sienna --
I know. It's ridiculous that they market PA as this no-code, worry-free platform when most of what we do is tear our hair off trying to work with what they thought fulfilled their promises. There's a lot of stuff that makes sense to be in an app creator platform that's just not in PA. I know this is a new product (general availability, my ass. it still feels like beta) and I can deal with that, given that the developers actually communicate well -- which, well, they really don't do well.
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!
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
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.
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