cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Michel
Level: Powered On

Azure SQL Database with "views"

Hello - I have an SQL table with information about customers - with includes the countrycode.

 

I have a separate table with the countrycode and countryname.

 

In an SQL view I can show the customer name and the countryname.

 

We use PowerApps to add / amend data on customer and we have created the usual three frames for Browsing / Details / Editing.

 

The Browse and Details gallery are linked to the SQL view - while the Editing gallery is linked to the customer table.

We have issues once we wish to the submit(form) on the Editing frame.

My questions: do all 3 frames have to use the same data source?

 

Thanks!!! 

 

 

 

 

1 REPLY 1
Highlighted
Super User
Super User

Re: Azure SQL Database with "views"

Hi @Michel

 

You should be able to make this work.

In addition to setting the data source of your edit form to the Customer table, the other thing to do is to set the Item property of your edit form so that it refers to the correct record from the customer table.

To do this, you'd use the Lookup function. The syntax would look something like this:

LookUp('[dbo].[Customer], CustomerID=BrowseGallery1.Selected.CustomerID)

If the SubmitForm function still generates errors, feel free to post the error messages here.

 

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 338 members 5,117 guests
Please welcome our newest community members: