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
)

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
)
