cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vshah804
Helper I
Helper I

Azure SQL (SaaS) as data source in PowerApps

Hello Team,

 

I have created Azure SQL SaaS database and connected to PowerApps.

 

I have data table control on my app which display the data and then I have form on the same screen. when I add field to the form as data card, It(data card) containts key and value cards as labels. I need Key as Lable and value as Input text box so when I submit the form I can write those values to Azure SQL DB. 

 

What I have noticed is, When I add a field to the form, I see "EDIT" control type for the field is missing. Can you please help? Appreciate your response.

 

ControlType.png 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @vshah804 

In addition to the other comments above, can you confirm that your table in Azure SQL has a primary key defined?

Here is a related post on the same issue.

https://powerusers.microsoft.com/t5/Connectors/Issue-with-SQL-not-allowing-EDIT/m-p/96092#M35756

View solution in original post

6 REPLIES 6
Pstork1
Dual Super User III
Dual Super User III

Did you make sure that it was an 'Edit' form that you added to the Screen?  The form itself is specific to either edit or display.  Edit forms can be set to View mode, but Display forms don't have an Edit mode. If you add the wrong one then the fields will default to that mode. If the form doesn't have a Default Mode property then its not an Edit form its a Display form.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
v-yutliu-msft
Community Support
Community Support

Hi @vshah804 ,

Do you mean that only ActivityID filed can't be edited or all the fields can't be edited?

Could you tell me the data type of ActivityID?

Is this a system field?

If so, the system field is read-only in PowerApps. You could only view it without editing it.

What's more, make sure that you insert an Edit form and its mode is edit or new, not view.

 

 

Best regards,

Community Support Team _ Phoebe Liu

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @vshah804 

In addition to the other comments above, can you confirm that your table in Azure SQL has a primary key defined?

Here is a related post on the same issue.

https://powerusers.microsoft.com/t5/Connectors/Issue-with-SQL-not-allowing-EDIT/m-p/96092#M35756

View solution in original post

Anonymous
Not applicable

Thank you for posting in the community @vshah804 - can you review the above replies and update the thread if they were helpful? 

 

Thank you,

 

@Anonymous 

Hello, You are correct. I was missing the primary Key in the table. Thank you for your help.

I was facing same problem, after going through with this solution I tried to create primary key in my SQL tables and this solution worked perfectly the way I wanted.

Many thanks!!!

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, 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!

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