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

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

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

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,553)