cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Konrad91
Frequent Visitor

Table from SQL source showing data for a selected line of another SQL source table

Hello,

 

I'm not sure if my topic is clear but I will try to explain my idea here:

 

I have two SQL tables connected to PowerApps. One contains daily data for items (one unique line per item). The other one keeps comment history for every item - can be multiple comments.

 

What I would like to achieve is. On selection of a row from the first table I would like to see all comments regarding this item in the other table. The part in common for the tables is 'key'. How can I achieve that?

 

I will be grateful for any help.

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Manoj-VNBB
Frequent Visitor

Hello @Konrad91 

You can try this, 

1. Insert a table and name it "tblFirst"

2. Set its item property to "Your SQL Item Table"

3. Choose fields to be displayed for "tblFirst"

4. Insert another table and name it "tblSecond"

5. Set its item property to Filter("Your SQL CommentsHistory Table",CommonColumn = tblFirst.Selected.CommonColumn )

6. Choose fields to be displayed for "tblSecond"

Hope this will complete your reqiurement. 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks

Manoj

View solution in original post

1 REPLY 1
Manoj-VNBB
Frequent Visitor

Hello @Konrad91 

You can try this, 

1. Insert a table and name it "tblFirst"

2. Set its item property to "Your SQL Item Table"

3. Choose fields to be displayed for "tblFirst"

4. Insert another table and name it "tblSecond"

5. Set its item property to Filter("Your SQL CommentsHistory Table",CommonColumn = tblFirst.Selected.CommonColumn )

6. Choose fields to be displayed for "tblSecond"

Hope this will complete your reqiurement. 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks

Manoj

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (76,942)