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 / Time tracking componen...
Power Apps
Unanswered

Time tracking component submit change i

(0) ShareShare
ReportReport
Posted on by 87

Hello,

I am working on a timesheet component (compTimesheet) and I am facing multiple issues. My plan is to connect the component to Dataverse solution(s). Component contains 3 custom table input properties - Actuals, Assignments, ShownPeriod.

 

Actuals

 

Table(
 {Date: "4/29/2024", Mail: "user@mail.com", Project: "Project1", Task: "Task1", Hours: 2},
 {Date: "4/30/2024", Mail: "user@mail.com", Project: "Project2", Task: "Task3", Hours: 4}
 )

 

Assignments

 

Table(
 {Mail: "user@mail.com", Project: "Project1", Task: "Task1"},
 {Mail: "user@mail.com", Project: "Project1", Task: "Task2"},
 {Mail: "user@mail.com", Project: "Project2", Task: "Task3"}
 )

 

 ShownPeriod

 

DateAdd(DateAdd(Today(),1-Weekday(Today(),StartOfWeek.Monday),TimeUnit.Days),Sequence(7,0,1),TimeUnit.Days)

 

 

Component contains 3 galleries - galPeriod, galAssignment, galHours.

galHours is nested in galAssignment.

 

MalyMajo_0-1714465741531.png

Items property in galHours loops through all the days in galPeriod and then maps the hours from Actuals to specific project / task.

 

ForAll(
 galPeriod.AllItems As _periodDays,
 ForAll(
 Filter(
 compTimesheet.Actuals,
 ThisItem.Task in Task && ThisItem.Project in Project
 ),
 If(
 _periodDays.Value in Date,
 {
 Hours: Hours,
 Date: _periodDays.Value
 },
 Blank()
 )
 )
)

 

 

Not quite sure if this is the best approach but that is the best I could do in order to make the blank fields visible. 

 

I am struggling with the part when user makes some changes to the galHours and clicks on Submit button. As per my understanding, it is not possible to use collections. How should I get the updates from user? I have tried creating Output variable "SubmittedChanges" and fed it, but no success (below is an example which did not work for me). 

 

Table(
 ForAll(galWeek.AllItems As _PeriodDays,
 ForAll(
 galAssignment.AllItems As _Assignments,
 ForAll(
 galHours.AllItems As _Hours,
 {Hours: Value(_Hours.txtHoursInput.Value),
 Project: _Assignments.lblProject.Text,
 Task: _Assignments.lblProject.Text,
 Date: _PeriodDays.Value}
 )
 )
 )
)

 

 

Categories:
I have the same question (0)

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 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard