cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Syndicate_Admin
Administrator
Administrator

When my application refreshes or restarts, my button entry not working in the same SharePoint list Row ID

Button (Time In )  - OnSelect Property 

UpdateContext({varTimerActive:true});UpdateContext({varTimerReset:false});

Set(varNewItem, Patch('Attendance Time Tracker',Defaults('Attendance Time Tracker'),{Title:User().FullName,'Start Time':Now(),Location:Location.Latitude & "," & Location.Longitude,Working:true}))

Button (Time Out) - OnSelect Property 

UpdateContext({varTimerActive: false});UpdateContext({varTimerReset:true});
Set(varNewItem, Patch('Attendance Time Tracker', LookUp('Attendance Time Tracker', varNewItem.ID=ID),{'End Time':Now(),'Time Spent':DateDiff(varNewItem.'Start Time',Now(),TimeUnit.Minutes),Working:false}))


Note:- It's working at the same time or before the app refresh. but after the app refresh it's not working.

any solution for this?

Thanks, Pankaj.

 

 

 

 

0 REPLIES 0

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.