web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Form not editable whil...
Power Apps
Suggested Answer

Form not editable while connected to SQL Server - why?

(1) ShareShare
ReportReport
Posted on by 21
Hi there, 

I wanted to create small app that get data from my SQL Server on promises that works 24h/7. App will be really simple. From gallery choose item and on the right show data for selected item and if needed change data and send it back to SQL Server. I have data-gateaway installed as I use that SQL Server for my Power BI reports. 

I got Gallery, and Form. Form is on FormMode.Edit. Yet in some reasons I can't see that border on selected fields which will allow me to change any values like "Read/Write" on picture below. Why is that? 
 
 
If you create app from dataverse table I don't have any problems. Is there someone who could tell me what am I doing wrong? 
Categories:
I have the same question (0)
  • Suggested answer
    Ryan_B Profile Picture
    446 on at
    By default, if you use a display form control it will only place text labels to show the data. If you want to utilize the display form control to update the data, you will need to delete the label and insert a text input control instead.
     
    Otherwise, I would simply recommend you edit the data using the edit form control you already have to keep things simple. If you want it to look better when editing the data in the form, you can turn on auto-height for the text inputs so that it looks like the display form control.
  • UnspeakablePirate Profile Picture
    21 on at
    I finally got it the state that I can edit form. I didn't want to add any "Save" button so basically to every placeholder user can edit I added in OnSelect = SubmitForm(Form_1). Although I get notificiation of success change isn't visible in database. Any idea why? 

    If I use SharePoint data it saves as intended but on SQL it just doesn't want to work properly. 
  • UnspeakablePirate Profile Picture
    21 on at
    Ok, I figured why it save data. I get an error on SubmitForm.
    I find it weird cause I do have PrimaryKey in table
     
     
     
    "ServerMessage": "[dbo].[main_table] — niepowodzenie: The specified table has no primary key. Update and delete operations are not supported.\r\n     inner exception: The specified table has no primary key. Update and delete operations are not supported.\
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard