web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Parent/Child relationship
Power Apps
Unanswered

Parent/Child relationship

(0) ShareShare
ReportReport
Posted on by 20

I have 2 data sources, 1 is the parent form (PCard)(screen1) the 2nd is the child form (CodingInfo) (screen2).

Screen1 I have my pcard form, and in that form I have a gallery connected to my child data source (CodingInfo).

 

First question.  When the parent form is new, I want my gallery to be a blank slate, it will only populate when I add child items.  How can I do this?

when the form is edit or view mode, I'd like my form to display the items entered for that id for the parent and child.  (I hope that makes sense)

Second question.  How do I relate the parent ID (OOB sharepoint ID) to the child ID (OOB sharepoint ID)?

 

Please let me know if I can provide any other information.

 

Thanks!

Categories:
I have the same question (0)
  • DavidZoon Profile Picture
    738 Most Valuable Professional on at

    Hello,

     

    Here is two options for the child gallery when Parent form is in "New" Mode :

     

    Set the Gallery.Visibility to Form_PCard.Mode <> FormMode.New

     

    Or

     

    If you have a lookup column in your child list, filter on his ID = Thisitem.ID

    In NewMode, Calling ThisItem in a form will result in a blank value, your gallery will display only records if the ID in the lookup column is the same as your parent item ID

     

    To relate child record to parent one, just add a lookup column in the child list

     

    Sharepoint offers very limited options for data relationships, if you need better relattionnal database, consider switching to Dataverse or Dataverse for teams

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily.

  • tcantrell75 Profile Picture
    20 on at

    @DavidZoon 

    Thank you for the reply.  I'm not following what you are saying here

    If you have a lookup column in your child list, filter on his ID = Thisitem.ID

    In NewMode, Calling ThisItem in a form will result in a blank value, your gallery will display only records if the ID in the lookup column is the same as your parent item ID

     

    I have now created a PID lookup column in the child list.

     

    Thanks

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard