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 / Incorrect lookup paren...
Power Apps
Answered

Incorrect lookup parent ID showing in form for child table

(0) ShareShare
ReportReport
Posted on by 143

I have an app for managing projects. I have a main table "ContinuousImprovementProjects" which links to sub tables "CI Teams", "CI Milestones" and "CI updates". All the sub tables have the lookup column "ProjectID", which is the ID in the "ContinuousImprovementProjects" table.

 

I have a gallery listing the projects and a button to click to edit the selected project. 

 

zhona9_0-1679476743283.png

 

I have a different page for adding team members. In the form for adding/editing team members on that page, I would like to have the hidden field "ProjectID" defaulted to the ID selected in the gallery. I have made it visible now for testing. The default value of the data card for project ID is ThisItem.ProjectID. The data card value for this data card has "Items" set to Filter(Choices([@'CI Teams'].ProjectID),OLGallery.Selected.ID in Value). I saw from another post this is the way to set the Items value for a lookup column.

 

My issue is that once the ID is > 10, the default Project ID will have two values, the default will be 1 and the other value will be the actual ProjectID (see below). How do I get the data card to show the correct ProjectID? I have also tried setting "Items" for the data card value to Filter(Choices([@'CI Teams'].ProjectID), Value in OLGallery.Selected.ID), but the result is the same.

 

zhona9_1-1679476804934.png

 

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Amelia Choon Profile Picture
    143 on at

    I managed to resolve this by setting DefaultSelectedItems of the DataCardValue as Filter(Choices([@'CI Teams'].ProjectID), OLGallery.Selected.ID exactin Value) as well.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard