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 / Need help with time en...
Power Apps
Unanswered

Need help with time entry app

(0) ShareShare
ReportReport
Posted on by 40

Below is the format, we have developed to enter the time record.

 

JD14_0-1623670105488.png

 Data is getting saved correctly in share-point list as below:-

 

JD14_2-1623670655127.png

 

below is the code, which we have used to save the data in the table.:-

 

ForAll(
galleryTimeCard.AllItems,
If(
ThisRecord.ID = 0,
Patch(
TimeEntries,
Defaults(TimeEntries),
{
Title: TitleVar,
Week_x0020_Start: WeekStartVar,
Month: MonthVar,
Mon: Value(tbMon.Text),
Tues: Value(tbTues.Text),
Weds: Value(tbWed.Text),
Thurs: Value(tbThurs.Text),
Fri: Value(tbFri.Text),
Sat: Value(tbSat.Text),
Sun: Value(tbSun.Text),
Total: Value(tbMon.Text) + Value(tbTues.Text) + Value(tbWed.Text) + Value(tbThurs.Text) + Value(tbFri.Text) + Value(tbSat.Text) + Value(tbSun.Text)
}
),
Patch(
TimeEntries,
{ID: ThisRecord.ID},
{
Title: Text(ddweeks.Selected.Value,"[$-en-US]dd/mm/yyyy") & " - " & Text(ddweeks.Selected.Value + 6,"[$-en-US]dd/mm/yyyy"),
Week_x0020_Start: Text(ddweeks.Selected.Value, "[$-en-US]mm/dd/yyyy"),
Mon: Value(tbMon.Text),
Tues: Value(tbTues.Text),
Weds: Value(tbWed.Text),
Thurs: Value(tbThurs.Text),
Fri: Value(tbFri.Text),
Sat: Value(tbSat.Text),
Sun: Value(tbSun.Text),
Total: Value(tbMon.Text) + Value(tbTues.Text) + Value(tbWed.Text) + Value(tbThurs.Text) + Value(tbFri.Text) + Value(tbSat.Text) + Value(tbSun.Text)
}
)
)
);
 
 

 

The issue is with the report- if we want to fetch the data month wise and date wise, then this format is not working.

 

Let's consider the week for which have May Date and also June date (31/05/2021 - 6/06/2021). In this case, we have to consider either June OR May month to save in the database- please refer the screenshot below:-

 

JD14_3-1623670702350.png

 

For this, We thought of changing the database logic in the below format instead of row wise.

 

JD14_4-1623671070801.png

 

It would be great if we get help on this.

I am referring this you tube video for this app.

 

Thanks!

 

 

 

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @JD14 

    My suggestion to you would be store your information by week number rather than by month since your weeks can cover, in some cases, 2 months.

     

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 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard