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 / Parent Child Data in p...
Power Apps
Unanswered

Parent Child Data in powerapps

(0) ShareShare
ReportReport
Posted on by 17

01. I have 3 collection list which is "col_Parent_Data", "col_Child_Data" & "temp_Item_Data". // ok

02. I am using gallery (gallery1) to show data and store data at "temp_Item_Data" for temporary add for saving to "col_Child_Data". // ok

03. I am using another gallery (gallery2) to show "col_Parent_Data" // ok

04. select on gallery (gallery2) to modify "col_Parent_Data", & "col_Child_Data". Parent data at different textbox from "col_Parent_Data" selected data, its ok. but i could not load at "temp_Item_Data" from "col_Child_Data" which related with "col_Parent_Data". (parent child relationship data)

Advanced thanks

 

 

Categories:
I have the same question (0)
  • WiZey Profile Picture
    3,023 Moderator on at

    Hello @ddhasanrana ,

     

    What have you tried so far to populate "gallery1" with "col_Child_Data"? 

     

    Is "Filter()" enough to return a table based on "col_Parent_Data"?

  • ddhasanrana Profile Picture
    17 on at

    Thanks for your reply. 

    aaaaaaaaaaaaaa.JPG

    Point 1. Add Products, in this scenario, i am using a temporary collection (temp_Item_Data) list which point to at Number 2(its gallery)

    Point 2. Gallery 1 ( i added lavel to show temporary collection from temp_Item_Data)

    Point 3. Gallery 2 (List of Invoice show from col_Parent_Data.)

    Note: Now i am trying to filter from col_Child_Data and load at temp_Item_Data list on select event at Gallery 2 from 

  • WiZey Profile Picture
    3,023 Moderator on at

    So basically, you could add a "ClearCollect()" in the "OnSelect" of your gallery2 to change the content of your "temp_Item_Data" based on the selected invoice.

     

    ClearCollect(
     temp_Item_Data,
     Filter(
     col_Child_Data,
     //Select every child item related to the parent
     ParentID = ThisItem.ID
     )
    )

     

    Would that help you?

  • ddhasanrana Profile Picture
    17 on at

     

    ClearCollect(
     temp_Item_Data, // temp_Item_Data, its already created, in this scenario i got error
     Filter(
     col_Child_Data,
     fk_MasterId= gl_Master.Selected.MasterId
     )
    )
    // this code make new collection, which not createed in previous time. But i want to move filter list data to my existing collection list (temp_Item_Data) which i created in previous time.

     

  • WiZey Profile Picture
    3,023 Moderator on at

    If you want to add records to a collection without deleting its content, you can use "Collect()" instead of "ClearCollect()".

  • ddhasanrana Profile Picture
    17 on at

    @WiZey Thanks for your reply.

     

    Invoice Entry ReadyInvoice Entry Ready

    01. Form is ready to entry data

    ItemNameCollection ,collect data in this listItemNameCollection ,collect data in this list

    02. Add Product basically i collect Product List (child data) at ItemNameCollection 

    ItemNameCollection, this list data point in this galleryItemNameCollection, this list data point in this gallery

    03. ItemNameCollection  list data point in this gallery.ItemNameCollection, this list column point at level to show data in this galleryItemNameCollection, this list column point at level to show data in this gallery

    04. ItemNameCollection list data point at specific column 

    delete from this list ItemNameCollectiondelete from this list ItemNameCollection

    05. remove from ItemNameCollection this list

    save data to Order List & Product Listsave data to Order List & Product List

    06. save data to Order as Master data, Product as Child data.

    8.JPG

    07. another gallery Name is InvoiceList_1, show all Order list

    9.JPG

    08. Note: In this position, i want to show / move filter product data (child data) at ItemNameCollection list. but i got error. But If i add new collection name then copy filter data in this new collection list. Now, how can I load filter data at my existing ItemNameCollection list.10.JPG

    09. selected data show at textbox

    Note: I was tried at 8 no position. would you give me a solution. Or if you have another better solution for Invoice Crude operation like this design. please suggest me. thanks a lot.

  • WiZey Profile Picture
    3,023 Moderator on at

    Could you show what error you get on 8th screen please? It seems Power Apps reject the whole "Collect()" function even though it appears correct.

  • ddhasanrana Profile Picture
    17 on at

    @WiZey thanks for your reply.

    It's existing collection name which already created at 2 no screen by "Add Products"

    If I create new collection at 8 no screen then it will okay. But I want to load at previous collection list at 8 no screen. How can I use my existing collection list name at 8 no screen. Would you please give me solution. Thanks 

  • WiZey Profile Picture
    3,023 Moderator on at

    I would be glad to, but in order to help I need to know what error message Power Apps is returning on your "Collect()"on the 8th screen.

     

    Could you check on the stethoscope WiZey_0-1671786461714.png in the upper right corner of Power Apps and look for the error message please?

     

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard