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
Dual Super User

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,093)