Hi,
Using SQL Server, I'm most likely confusing myself. I have a DB and a bunch of tables. I would like to be able to add/update records. I have replaced the text field with a dropdown for Company and a dropdown for Contact, attempting to pull from tables outside of my main "Projects" table. The Projects table I'm basing it on does have a "Company" and "Contact" column. I would like the dropdown selection in the edit screens to update the design/display screen and update the main SQL table in the process. I can get the datacardvalues, I believe, to update from the Edit to the Design/Display screen, but I don't believe it's doing anything to update SQL.
Tables
Again, because I'm confused and new to SQL server, what is the proper way to be able to
Hi @ez1138 ,
Firstly, by you post, your concern is updating the SQL data source, so the two things needing attention are the Items property of the drop-down Control and the Update property of the DataCard that it is in. If you can give me these on all the controls you need to update the source as will as the Name of the controls, I will see if I can assist.
Hi Warren,
This is simply what I have in place. I just changed the name of the text field on the edit and display screens. I have not replaced the text fields to dropdowns, yet.
Ok @ez1138 ,
When you do the drop-downs, can you please give the values request in the last post.
Hi, I just created a dropdown on the edit screen, pulling the "Company" table. The same for Contacts.
It doesn't update the display screen as it still looks like it's pulling from SQL.
DataCardValue_Display_POC-Executive
Thanks @ez1138 ,
Dropdown_Edit_Company has the Items property '[dbo].[company]'.'Company Name'
The Update of the DataCard should be
Dropdown_Edit_Company.Selected.'Company Name'
Dropdown_Edit_POC-Executive has the Items property '[dbo].[contacts]'.First_Name
The Update of the DataCard should be
Dropdown_Edit_POC-Executive.Selected.First_Name
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Thanks. I will give it a try. Would this automatically update SQL as well?
@ez1138 ,
I hope so - that is the purpose of the Update. Please let me know. You also need to ensure that the DataSource of the DataCard is set to the field you need updated.
Hi @ez1138 ,
Just checking if you got the result you were looking for on this thread. Happy to help further if not.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
191 | |
66 | |
45 | |
42 | |
20 |
User | Count |
---|---|
244 | |
120 | |
83 | |
74 | |
69 |