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 / Empty table component ...
Power Apps
Unanswered

Empty table component output

(0) ShareShare
ReportReport
Posted on by 87

I have made a component for time recording and I got stuck on getting updates from user.

 

There are 2 galleries nested into each other - galAssignments, which contains list of tasks and projects per user and galDates, which shows a sequence of 7 days (one week). Within galDates is number input object which filters Actuals (input table property of component) based on selected task/project/date.

 

Here is formula for txtHours number input.

 

Sum(
 Filter(
 cmpTimesheet.Actuals As _Actuals,
 DateValue(_Actuals.Date) = DateValue(ThisItem.Value),
 _Actuals.Project = lblProject1.Text,
 _Actuals.Task = lblTask1.Text
 ),
 Hours
)

 

 

MalyMajo_0-1714983633564.png

 

For some reason, below formula results in empty table with identified column names and correct amount of rows. 

Output property 'Updates', type table. 

 

Ungroup(
 ForAll(
 galAssignments.AllItems As _Assignment,
 ForAll(
 galDates.AllItems As _Dates,
 If(
 _Dates.txtHours.Value > 0,
 {
 Task: _Assignment.Task,
 Project: _Assignment.Project,
 Date: _Dates.Value,
 Hours: _Dates.txtHours.Value
 }
 )
 )
 ),
 Value
)

 

 

MalyMajo_1-1714984048061.png

 

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @MalyMajo ,

     

    In the AllItems return value of the parent Gallery, the AllItems of the child gallery is an empty list, so you cannot get the value using this method.

    I suggest that you use the original data source in the items property of the parent and child gallery to construct the table, and then use the onchange property in the controls in child gallery to update the corresponding record when the user modifies it.

     

    Best Regards, 

    Bof

  • MalyMajo Profile Picture
    87 on at

    Hi @v-bofeng-msft,

    My data source contains of 2 tables. 
    - 'Assignments' table contains list of tasks per user/project
    - 'Actuals' table contains actual hours submitted on the tasks listed in table Assignments.

    Reason why I need to have 2 tables is that users need to see all the tasks where they are assigned and not only those, where they have already submitted effort. 

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @MalyMajo ,

     

    You could try:

    ForAll(
     'Assignments',
     ForAll(
     Filter('Actuals',XXXX),
     Collect(CollectionName,{XXX})
     )
    )

    And then use the onchange property in the controls in child gallery to update the corresponding record when the user modifies it.

     

    Best Regards,

    Bof

  • MalyMajo Profile Picture
    87 on at

    Hi @v-bofeng-msft,

    I don't quite understand where you are heading with that.

    However, I have figured out why the formula shows empty table as result. It seems that if you have a gallery nested in another gallery, you have to incorporate some object referring to the nested gallery into the parent gallery. So when I have added a text label with formula 'CountRows(galChild.AllItems), it magically started to show data.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard