cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sharuk
Helper V
Helper V

Edit Form with SQL View

Hi,

I have created a view for SQL Table. and i've passed it to edit form in the powerapps. but i'm not able to see the text inputs for the datacards. can we use SQL views on the edit forms and patch/submit the data back to data source ? 

2 ACCEPTED SOLUTIONS

Accepted Solutions
zmansuri
Super User
Super User

I think SQL Views are only read only in PowerApps

View solution in original post

timl
Super User
Super User

Hi @Sharuk 

Views are not updatable - that is, it's not possible to set the data source of a form to an SQL view and to save the record.

The workaround for this would be to add a form and to set the data source of the form to the source SQL table. You can set the items property of the form to look up the record by the primary key ID value.

In the case where your view retrieve records from multiple tables and you want to update rows from those source multiple tables from a single screen, you can add multiple forms that correspond to each table. You can then add a 'save' button and call SubmitForm for all forms in one go.

View solution in original post

2 REPLIES 2
zmansuri
Super User
Super User

I think SQL Views are only read only in PowerApps

timl
Super User
Super User

Hi @Sharuk 

Views are not updatable - that is, it's not possible to set the data source of a form to an SQL view and to save the record.

The workaround for this would be to add a form and to set the data source of the form to the source SQL table. You can set the items property of the form to look up the record by the primary key ID value.

In the case where your view retrieve records from multiple tables and you want to update rows from those source multiple tables from a single screen, you can add multiple forms that correspond to each table. You can then add a 'save' button and call SubmitForm for all forms in one go.

Helpful resources

Top Solution Authors
Top Kudoed Authors
Users online (4,150)