cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
egallis
Level 10

App crashes in run-mode, works fine in design mode

Hi @Mr-Dang-MSFT,

As suggested, here is a thread about the issue I am facing at the moment on my application which has several screens and several custom components. When I navigate from one screen to another, the destination screen does not render in run-mode (works fine in design-mode).

The only thing that I can think of is that all components that work fine were created prior to PowerApps core version 3.19043.16 which was pushed on 23d of April. Components created after from the 24th of April (with version 3.19043.16) make my screen crash.

Since my application is a bit complex, would it be possible that you contact me through a private message so you could have a look at it through a Teams screen share ? This problem might hide an important issue related to version 3.19043.16.

Thanks for you help,

Emmanuel

1 ACCEPTED SOLUTION

Accepted Solutions
egallis
Level 10

Re: App crashes in run-mode, works fine in design mode

Ok, solved my problem...

What I was doing:

  • created many components which returned each a action code (like a MainMenu which would return the selected menu item)
  • linked those components to combo boxes so that on the OnChange event I would do the necessary actions (like navigate to another screen)
  • complex system to "reset" the component so it can trigger the combo box OnChange event everytime it's clicked (like a Confirmation dialog box)

Didn't work because combo box OnChange events are triggered everytime you change screen (seems like a mess).

Solution:

  • replace all combo boxes with toggles
  • used a output property on each component to trigger the toggles
  • put the code in the OnCheck event of the toggles

Emmanuel

View solution in original post

4 REPLIES 4
egallis
Level 10

Re: App crashes in run-mode, works fine in design mode

Ok, solved my problem...

What I was doing:

  • created many components which returned each a action code (like a MainMenu which would return the selected menu item)
  • linked those components to combo boxes so that on the OnChange event I would do the necessary actions (like navigate to another screen)
  • complex system to "reset" the component so it can trigger the combo box OnChange event everytime it's clicked (like a Confirmation dialog box)

Didn't work because combo box OnChange events are triggered everytime you change screen (seems like a mess).

Solution:

  • replace all combo boxes with toggles
  • used a output property on each component to trigger the toggles
  • put the code in the OnCheck event of the toggles

Emmanuel

View solution in original post

PowerApps Staff yfw
PowerApps Staff

Re: App crashes in run-mode, works fine in design mode

Hi, OnReset of component is something we are looking forward to ship next. Toggle hack would be a work-around for now. Thanks for sharing your issue and workaround with us! Looking forward to ship reset property sooner!

egallis
Level 10

Re: App crashes in run-mode, works fine in design mode

Hi @yfw,

Thanks for sharing this with us... Indeed, an OnReset event would be much appreciated.

Furthermore, I would say that adding real events management to components would just change radically the way we use them. May be if we could have a new type of component property called "Event" which could be triggered through a "Trigger(<event>)" function would be really great.

For instance, if we put buttons or toggles or combo boxes in components, in their respective event we could use the Trigger() function to propagate the event of the control to the component's custom events...

Is this something planned in the future of PowerApps ?

Emmanuel

PowerApps Staff yfw
PowerApps Staff

Re: App crashes in run-mode, works fine in design mode

OnReset will requires a trigger of reseting the component. To make it more native, my exploration is similar to your suggestion. With OnReset, I can also define a default input property (maybe choosing one of the custom property to be the default). OnReset triggers if the default input property value changes, which is similar to how default value and OnChange work of the toggle button. How will this option fullfill your scenario? Thanks for sharing your thought with us!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,817)