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!
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
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.
WarrenBelz
146,651
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,999
Most Valuable Professional