cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
macksmashben
Level: Powered On

Bug: ViewForm() - ViewForm function can only work on an entity form.

Hi there,

 

I suspect the most recent update to the experimental data tables may have broken ViewForm().  I'm getting the below error message now:

 

"ViewForm function can only work on an entity form.  Wrong kind of control is given as input to the function."

 

I've created a new blank app to test this (no experimental features on) and the same error message persists.  

 

> New Edit Form

> New Button

> Button onSelect = ViewForm(Newly created Edit Form)

 

Not too sure where bugs go in here so apologies if I've posted in the wrong area.

 

Thanks,

 

Ben

1 ACCEPTED SOLUTION

Accepted Solutions
PowerApps Staff ADobin
PowerApps Staff

Re: Bug: ViewForm() - ViewForm function can only work on an entity form.

Thanks for all of the reports on this issue! We've released a fix and this should be resolved now.

20 REPLIES 20
macksmashben
Level: Powered On

Re: Bug: ViewForm() - ViewForm function can only work on an entity form.

Here are the details of the session if they help:

 

Session ID: 099f9816-3def-4d57-8da9-01c875ec34f7
PowerApps 3.19061.8

 

Issue was first noticed 2 days ago.

gsingh
Level: Powered On

Re: Bug: ViewForm() - ViewForm function can only work on an entity form.

I get a similar error with edit form:

 

"EditForm function can only work on a form. Wrong kind of control is given as input to the function"

DE1
Level: Powered On

Re: Bug: ViewForm() - ViewForm function can only work on an entity form.

Same problem, just appeared out of nowhere overnight. Now I can't use ViewForm. When will this problem be fixed?


GrischkePro
Level: Powered On

Re: Bug: ViewForm() - ViewForm function can only work on an entity form.

Yep, Microsoft like to break things...

 

same here.

 

I restored my app to PowerApps version ending .14 for now to get it working....

DE1
Level: Powered On

Re: Bug: ViewForm() - ViewForm function can only work on an entity form.


@GrischkePro wrote:

Yep, Microsoft like to break things...

 

same here.

 

I restored my app to PowerApps version ending .14 for now to get it working....


Hi GrischkePro,

 

How do you do that?

 

Thanks

DE1
Level: Powered On

Re: Bug: ViewForm() - ViewForm function can only work on an entity form.

Bizarre, I've managed to do this as a temporary workaround:

 

frmForm.Mode = FormMode.View;
ResetForm(frmForm)

 

I use this exact same code in two separate places (on the same form). One instance of the code works fine, the other instance of the EXACT SAME code gives a Runtime error message:

 

"ResetForm function can only work on a form. Wrong kind of control is given as input to the function."

RaynBow
Level: Powered On

Re: Bug: ViewForm() - ViewForm function can only work on an entity form.

Same problem here.

Since this morning it is impossible to me to use the ViewForm function. When will this be fix ?

antoineg
Level: Powered On

Re: Bug: ViewForm() - ViewForm function can only work on an entity form.

Hi,

 

I tried to restore the .14 version, but nothing changed.. The error is still here.. 

 

Is there a way to prevent auto update like that ? My app no longer works and I can't do anything about it..

 

Thanks in advance for fixing it quickly... 

BartSchaap
Level: Powered On

Re: Bug: ViewForm() - ViewForm function can only work on an entity form.

same here, this is serious, when an app is designed using one form and switching it's mode the complete app is useless!! Microsoft what the hell have you done :Man Sad


@antoineg wrote:

Hi,

 

I tried to restore the .14 version, but nothing changed.. The error is still here.. 

 

Is there a way to prevent auto update like that ? My app no longer works and I can't do anything about it..

 

Thanks in advance for fixing it quickly... 


 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 60 members 4,428 guests
Please welcome our newest community members: