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 / Fill a form using one ...
Power Apps
Unanswered

Fill a form using one data source by using an ID from a different data source

(0) ShareShare
ReportReport
Posted on by 14

I have a gallery using the Tickets data source, where the tickets information is displayed. When I click on an item of this gallery, a popup appears, letting you go to Details, Materials and Hours. 
I've managed to connect the Details screen to the Tickets gallery, since they both use the same data source, but here's the issue: Materials and Hours use a different data source for each, so I need a way to connect the ticket IDs from the Tickets data source to TicketsMaterials and TicketsHours

 

When creating a form for TicketsMaterials, going to the "Item" menu and typing "TicketsGallery.Selected" like I had done with Details simply won't work, I deduced it was due to materials using a different data source
What can I do to link these?

Serg20_0-1659379927172.png

Serg20_1-1659379970872.png

Serg20_2-1659380014253.png

 

 

 

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Serg20 

    Use item property

    LookUp(Materials, ID_Tickets=TicketsGallery.Selected.ID)

    for the materials datasource form.  Since the datasources are different between the form and the gallery, you need a more specific formula.

     

  • 365-Assist Profile Picture
    2,327 Moderator on at

    My suggestion is to load the data (from different sources) into Collections.

    --------------------------------------------------
    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

    Subscribe: https://www.youtube.com/channel/UCFpvUlpx84FuIPOdInGKMTw
    Twitter: https://twitter.com/assist_365

    Regards
    Darren Lutchner - 365 Assist

  • Serg20 Profile Picture
    14 on at

    Hi, the form doesn't load any item, any idea why and how to fix it?

    It just shows "No item to display" once I preview it. MaterialsForm is in edit mode, with its data source being TicketsMaterials; in the item property: "LookUp(Materials, ID_Tickets=TicketsGallery.Selected.ID)"

     

    Serg20_0-1659457702178.pngSerg20_1-1659457717434.png

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Serg20 

    To test, put labels on the screen and see if the TicketsGallery.Selected.ID shows the same as the TicketID field in the materials list.  If there isn't a connection between the Tickets and the Materials lists then there needs to be one. 

  • Serg20 Profile Picture
    14 on at

    It does show the same as the TicketID field on the left

    Serg20_0-1659538725770.png

    Any idea on how to fix the "No item to display" on the form? 

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard