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

Modify and add columns to a single record in a collection

Hi there,

 

I'm hitting a syntax wall. 

 

I have an app designed for a sports database. 

 

1. The collection starts with capturing basic game information (date, time, opposition etc). 

2. The collection is then displayed in a gallery.

3. Using Patch, I can then modify and save/update the existing records/columns selected. My attached image highlights these records in the green box.

 

3. Now I want to add more columns to the selected record (orange box in the attached image).  

 

How do I do this? 

 

ClearCollect? 

1 REPLY 1
Pstork1
Dual Super User III
Dual Super User III

You can't add columns to an individual record in a collection.  You can add columns to the collection itself.  But it looks like what you are really doing is creating a Parent/Child relationship between records in two different collections.  Like any database you can do that by creating the columns in a second collection and making sure that one column in the second collection uniquely identifies the record in the first collection that the record in the second collection belongs to.  To do that I would add some kind of ID column to the first collection and then use the id of the record in a column in the second collection.  Then you can create two galleries/forms.  The second gallery will be populated with records where the ID is equal to the ID displayed in the first form, or selected in the first gallery.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,880)