No video

PowerApps Timer Control

  Рет қаралды 89,911

Shane Young

Shane Young

Күн бұрын

In this video, you will learn about the PowerApps Timer Control. We build an example timer app that logs data to a collection, we look at how to use the timer to control navigation (put people in timeout), how to do a PowerApps Timer Reset, start, stop, and more. Fun times.
Video: PowerApps Collections
• Working with a PowerAp...
Remember, if you need help with your PowerApps you can always reach me via www.BoldZebras...

Пікірлер: 185
@Adnaniscrazyloop
@Adnaniscrazyloop 5 жыл бұрын
Hello Shane, thank you for your valuable time for creating those tutorial videos. Whenever I bump into something I end up watching your videos and they are really helpful. Again I want to thank you for your help, making my time with PowerApps more fun and easy!!!
@ShanesCows
@ShanesCows 5 жыл бұрын
You are welcome. :)
@derek_shannon
@derek_shannon 4 жыл бұрын
I was having some challenges so revisited this video. My realization was that OnTimerEnd is when the duration runs out, not when the timer stops, and I wanted some navigation OnTimerEnd to happen efficiently and not at arbitrary set time. So here is a hack: Instead of the timer's Start as a variable, set the duration to a variable, with initial value more than long enough for your purpose, say 20s. When your OnStart or other code runs (checking credentials or what have you) then set the duration variable to the timer.value + 500 (half a second), so your user doesn't have to wait the full 20s if checking credentials only took 5s, say, instead they will just wait an extra half second (and maybe less if you dare!). Thanks as always, Shane!
@ShanesCows
@ShanesCows 4 жыл бұрын
Thanks for sharing!
@MrLauppe
@MrLauppe 3 жыл бұрын
Shane, Thank You so much! between this and the collections video, I am creating everything I need for my team. You have made me a Rockstar at work and I can't thank you enough for this channel! I can't wait to watch more.
@hackein9435
@hackein9435 4 жыл бұрын
This is great man, I was wondering why that timer doesnt get started automatically on next page in a QUIZ app, and then your video helped. Hats off!
@ShanesCows
@ShanesCows 4 жыл бұрын
Awesome!
@parkeburnett3629
@parkeburnett3629 2 жыл бұрын
You literally have a video up of something I had to google for a couple hours for. You rock, dude!
@stevensmith5255
@stevensmith5255 5 жыл бұрын
Hi Shane, cool functionality that I will use in my app. I was looking for only one button to start and stop the timer, luckily I watched your video on variables a little while ago, so I remembered how to toggle them with "!". Maybe someone coming here for that finds this helpful ;)
@ShanesCows
@ShanesCows 5 жыл бұрын
Cool. Thanks for sharing. 😎
@mdekleijn
@mdekleijn 4 жыл бұрын
Great video again! I use the timer control to display a splash screen for a few seconds before you get to the actual app.
@ShanesCows
@ShanesCows 4 жыл бұрын
Cool 😎
@alexwilliamson6768
@alexwilliamson6768 3 жыл бұрын
Great stuff Shane. I've been using a lot of your videos lately to learn and explore PowerApps. In terms of sheer volume and style of content you're the best. I saw some 513 numbers referenced in one of your other videos and looked you up. Great to see a fellow Bearcat doing big things!
@ShanesCows
@ShanesCows 3 жыл бұрын
Glad to help! I graduated from UC many moons ago. 😁 I even taught there for a semester.
@mikelockheed8857
@mikelockheed8857 Жыл бұрын
Lovely! We have some "nervous" users that hit the "Submit" button accidentally a few times and wonder why they get so many automated emails. Now I use the (hidden) timer to have a longer cool down for the "Submit" button once the user pressed it: when they press it and trigger the underlying Flow, the button gets disabled and the text changes for 5 seconds from "Submit" to "Processing ..." before it returns to its original stage.
@ShanesCows
@ShanesCows Жыл бұрын
Love it Mike! Good job.
@marciokataoka
@marciokataoka 5 жыл бұрын
Great teacher! I've learned a lot watching your videos
@ShanesCows
@ShanesCows 5 жыл бұрын
Thank you.
@william_78
@william_78 2 жыл бұрын
you make the best tutorials, thank you🙏
@ShanesCows
@ShanesCows 2 жыл бұрын
Appreciate that William. 🐶
@rahulmukherjee4791
@rahulmukherjee4791 4 ай бұрын
Thank you Shane for sharing the best ways to implement various types of logics in simple and clear ways. Just a small suggestion, if you could create video chapters focussing on the various topics you are covering in a video, it would save a lot of time and we can just jump to the required part. Thanks again! Please keep imparting this wisdom. Love your sessions! Cheers! 👍
@ShanesCows
@ShanesCows 4 ай бұрын
Good suggestion. For the last couple of years I have been doing chapters. This video was just a little before I started.
@rahulmukherjee4791
@rahulmukherjee4791 4 ай бұрын
@@ShanesCows yes, that's what I felt..coz I follow chapters in your videos. I forgot to mention this very thing in a hurry! Thanks for all your hard work! Hope to build something great together some day. A long way for me though! Cheers! ✌🏼
@JulioEscobedo
@JulioEscobedo 3 жыл бұрын
Tip: you can set the Reset button easier just by using: OnSelect = Reset(Timer)
@ShanesCows
@ShanesCows 3 жыл бұрын
THanks for sharing!
@shaunperregrino5263
@shaunperregrino5263 3 жыл бұрын
If you always want to reset the timer whenever the Start is pressed you can also set the Reset property of the timer to Reset = Button#.Pressed
@jananunn1320
@jananunn1320 5 жыл бұрын
Hi Shane, thank you for your videos. They are a great help!
@ShanesCows
@ShanesCows 5 жыл бұрын
Thanks 😀
@jusbejusbe7838
@jusbejusbe7838 10 ай бұрын
Excellent video!
@ShanesCows
@ShanesCows 10 ай бұрын
Thank you very much!
@hme-favs
@hme-favs 3 жыл бұрын
Hi Shane I watch your videos all the time when I need help with something; THANKS for all you do. One thing in this video though that has had me stumped in the app I am creating for most of the day is the timer visibility. It was just not working at all when visibility is false. Then finally it hit me. One of the Experimental features "Enhanced performance for hidden controls" was turned on. The feature is great to have for hiding things and waiting for them to load before they do anything however it should really be a per control setting not app-wide. Once I turned that off, the timer worked fine when visibility is off, now to find out what I've broken by turning that feature off.
@fadiahdab
@fadiahdab 3 жыл бұрын
Thanks Shane you are amazing as usual
@ShanesCows
@ShanesCows 3 жыл бұрын
Thank you. :)
@almanzaralbert1
@almanzaralbert1 3 жыл бұрын
Thank u very much for ur great video.
@ShanesCows
@ShanesCows 3 жыл бұрын
Happy to help
@markdelbiondi
@markdelbiondi 3 жыл бұрын
at 8:32, I think your forgot to mention that you need to add the variable ResetPlease to the Counter Reset value ;) Had me scratching my head a little haha
@ShanesCows
@ShanesCows 3 жыл бұрын
Whoops. Sorry about that 😑
@kletterbildercom
@kletterbildercom 5 жыл бұрын
Hi Shane, thank you for your great videos.
@ShanesCows
@ShanesCows 5 жыл бұрын
You are welcome. 😊
@ScozzieMan
@ScozzieMan 3 жыл бұрын
Hello Shane, great video and I can across this after watching your video on audio sounds!, so I'm looking for when I click the finish button it plays the sound then the page waits for 6 seconds before closing! can you help? Thanks
@ShanesCows
@ShanesCows 3 жыл бұрын
Put a Navigate function OnTimerEnd. I show it in this video. kzfaq.info/get/bejne/fc9-Z5p62MWaY2g.html
@mhuddlestone8209
@mhuddlestone8209 2 жыл бұрын
This is a great video. I have a gallery which i cycle through all the records using a next button is it possible to start a timer when the gallery record changes?
@ShanesCows
@ShanesCows 2 жыл бұрын
Have the NExt button update a variable. Have that variable cause the Timer to start. Should work.
@blwebber
@blwebber 2 жыл бұрын
Hey Shane, loving the videos.... I have abit of an issue wondering if you could help... I have 5 timers on a screen, introducing text. I want the 5th one to start when an arrow button is selected. This will move to a new section on the same screen with new text (using updatecontext). For the 5th timer, I have turned auto start off, but cannot get the timer to start once I select the arrow... any ideas would be amazing!
@jessietoamau2451
@jessietoamau2451 5 жыл бұрын
Hi do you have a video that shows how to build a timesheet app. We need to know a start time, end time, date, name, day. We also need radio buttons for annual leave, sick leave etc. I haven't seen anything like that in your videos
@ShanesCows
@ShanesCows 5 жыл бұрын
I have an example app in the works for just this. We have built lots of these for customers. 😎
@rodolphaouad6538
@rodolphaouad6538 6 жыл бұрын
Hi Shane, I like very much the way you present your videos. I tried the timer control thing and it worked good, but i had one problem, when i start the timer and then i navigate to another screen in the app, the timer stops. is there a way to keep the timer up and running when navigating from screen to another? and to stop it only by pressing on it? Thanks
@ShanesCows
@ShanesCows 6 жыл бұрын
Yes, change the AutoPause property of the timer control to false. That will do it. :)
@ktos7110
@ktos7110 3 жыл бұрын
Hello Shane, I found your channel and I am really happy with this fact :D I have question about Timer and export. I want to create an app where user click different icons and after that timmer will start. It is possible to export this kind of date for exaple to excell or msql ?
@ShanesCows
@ShanesCows 3 жыл бұрын
Yes. Look for one of my videos on Patch function for writing to a table. kzfaq.info/get/bejne/g8mcfcKAnq7aeoU.html
@kishorec1117
@kishorec1117 4 жыл бұрын
Heiiii Shane!! Once again a very helpful video!! I just started...so a bit late...One qs: I have been trying to select a button upon timer end..I am using OnTimerEnd and using variable..but the button never activates/gets selected...I used true/false like you showed, it's true upon timer end...but the function in the button never executes...Any suggestions? Thanks again !!
@ShanesCows
@ShanesCows 4 жыл бұрын
Use the Select function to trigger the button.
@seanquinn4940
@seanquinn4940 5 жыл бұрын
I have followed the steps for the reset button and added the onselect commands UpdateContext({ResetPlease: true});UpdateContext({ResetPlease:false}) BUT the reset doesn't reset ?
@ShanesCows
@ShanesCows 5 жыл бұрын
That should work. 😑
@terripilares-magno8074
@terripilares-magno8074 4 жыл бұрын
I am also getting the same problem. Have you managed to sort this out?
@jcbagz
@jcbagz 4 жыл бұрын
Change the Reset property of the timer from "false" to ResetPlease - Works great! Thanks Shane!! This step must have been edited out :)
@paulsarijowan9681
@paulsarijowan9681 Жыл бұрын
Hi Shane, thank you for the video tutorial, but can you please show video tutorial how to set the registeration time limit, i want to limit the data registeration so people can not registered above 4 afternoon.
@ShanesCows
@ShanesCows Жыл бұрын
Don't think of that as a Timer activity. Think of something like If(Now() > DateTimeValue(Text(Today(),"mm/dd/yyyy") & " 4:00 PM"), Stop Them, Let Them) Hope that gets the wheels spinning.
@paulsarijowan9681
@paulsarijowan9681 Жыл бұрын
thank you @@ShanesCows, i'll try it
@johannawinsor558
@johannawinsor558 5 жыл бұрын
Hi Shane, Any idea how I can create an equation that calculates out the number of minutes between two date/time stamps (which result from the Now() function)? I found the DateDiff function but it seems to require values. Can I go from time/date format to values somehow? I tried doing Value(the time and date data card value) but it spits out a gibberish number. Been searching for a solution for the past 8 hours, please help! Your videos are awesome, by the way, and have helped me immensely so far. Thanks!!
@ShanesCows
@ShanesCows 5 жыл бұрын
Datediff should be the right function. Did you get it figured out?
@mikesanchez8387
@mikesanchez8387 3 жыл бұрын
Thank you! you should called L&L Learn and Laugh! :)
@ShanesCows
@ShanesCows 3 жыл бұрын
Thanks Mike. 🤪
@kanchakaperera7943
@kanchakaperera7943 Жыл бұрын
hey Shane we can do that timer reset this way right? on select on reset button = " Reset(Timer1) & UpdateContext({GoTimer:false}) "
@angelgj2363
@angelgj2363 4 жыл бұрын
hello shane, I hope you are well, I have a problem with the timer when I run it in the application from the cell phone, if I exit the application as in any other it automatically pauses and starts from where it left off, how can I avoid that and keep the time going running even if you leave or the cell phone is blocked
@ShanesCows
@ShanesCows 4 жыл бұрын
Not possible. Might be better instead of running a timer to log the Now() when they start and the Now() when they finish. Then use math to find the duration instead of trying to keep a timer active.
@gerusnero
@gerusnero 6 жыл бұрын
so much fun! thanks shane!
@ShanesCows
@ShanesCows 6 жыл бұрын
Thanks. Glad you enjoyed it.
@awimanu1006
@awimanu1006 3 жыл бұрын
@Shane Young: You are amazing as always ! I do have a question on the timer, when I change my tabs on the browser the timer stops and starts again when I come back to my app page. is there any solution for this !
@ShanesCows
@ShanesCows 3 жыл бұрын
Nope timer only runs while the screen is open.
@mblherry
@mblherry 6 жыл бұрын
Thanks again Shane - great video. Can you do one with Countdown from a specific Date/Time in the format: 10 Days 14 Hours 10 Minutes Remaining.
@ShanesCows
@ShanesCows 6 жыл бұрын
I will have to think about that one. 😀
@bobs3729
@bobs3729 6 жыл бұрын
thanks for the videos, they are a big help for a project im starting. Is there a setting for a 20 sec.-60 sec countdown? Not looking for it to be actionable just a timer countdown.
@mosabhaymour9937
@mosabhaymour9937 Жыл бұрын
Hello Shane, I am making a workout app. I added in a timer for users to time themselves when they are resting. The timer is connected to input text allowing the user to select how many minutes/seconds they want to rest. However, I am unable to figure out how to add an alarm in the OnTimerEnd control. I want it to be a noise that goes off when the timer is done. Would you be able to help me or send me in the right direction?
@ShanesCows
@ShanesCows Жыл бұрын
Use this video kzfaq.info/get/bejne/pbh9hq6X1ra5kqs.html and instead of OnClick set the variable OnTimerEnd. 😎
@kalebhawkins4427
@kalebhawkins4427 3 жыл бұрын
Hi Shane, thanks again for your great tutorial videos, I just made a pop-up screen that shows up when a text input field is empty, and a timer that will reset that field every 15 minutes. Works great as an inactivity kind of log out screen 😊, is there a way for the timer to count down rather than count up
@ShanesCows
@ShanesCows 3 жыл бұрын
I don’t think so. You could make something creative maybe but no easy button.
@kalebhawkins4427
@kalebhawkins4427 3 жыл бұрын
@@ShanesCows Thanks I went down the creative route and I now have a rectangle where the width and opacity is effected by the value of the timer, works as a great visual indication of how much time is left 👍😊
@Pamila8834
@Pamila8834 4 жыл бұрын
Hi Shane, your stuff is great! One question, in the case of an application for projects, to measure or execute the progress of each team with the project, is no application of power in the form of timer activation suspended? Example: Project X goes through ten teams (finance, IT, sales, etc.). The drop-down menu is a choice of time. From the moment I add a team, it starts counting and when I change to the next team, the team's time ends and the next one starts. Did we do it?
@ShanesCows
@ShanesCows 4 жыл бұрын
I would patch the value and then when change patch the new time. Then do math.
@SachinGupta-sf2sc
@SachinGupta-sf2sc 3 жыл бұрын
Hello Shane such a great video , i am curious to know how can i store this time duration(Difference of start and end time ) value in my share point list or SQL server table
@ShanesCows
@ShanesCows 3 жыл бұрын
It will be an integer so I would store it in a number type field using patch.
@eversonrafael8174
@eversonrafael8174 5 жыл бұрын
Hey Shane, thanks for video, i like so much. I Have a question, if you can help me i apreciate. How can i use Timer Control with Collection together in the same APP in PowerApps? For exemple, i have a meeting with clients, and i have to save on the Gallery, All the informations, like Name of company client, phone number and how long time i spend on the meeting. Do you have another video explain this tutorial? Thanks. I
@ShanesCows
@ShanesCows 5 жыл бұрын
Instead of using the timer log meeting start time and meeting end time. Then you can calculate meeting tome.
@kirebelevski
@kirebelevski 3 жыл бұрын
hey Shane, question... is it possible to have the timer running while the apps is working in the background so for example I can send notification on timer end?
@ShanesCows
@ShanesCows 3 жыл бұрын
Nope. Timer only runs while the app is open. Maybe start a flow that sends a notification for you?
@kirebelevski
@kirebelevski 3 жыл бұрын
@@ShanesCows i wanted something i can use offline too. something that will ring a bell after some period of time. As i see nothing from power apps works in the background :(
@ayansummi7000
@ayansummi7000 2 жыл бұрын
Where did you connect your 'Resetplease' context variable to reset propety of timer control.you didnt include that in ur vdo.
@CodyMorgan
@CodyMorgan Жыл бұрын
I had the same question.
@raulcabezasestrada1877
@raulcabezasestrada1877 2 жыл бұрын
Hi Shane. It is any way to syncronize timers of different screens? I have many screens and i want to have them all runing at the same time.
@ShanesCows
@ShanesCows 2 жыл бұрын
Not that I know of
@raulcabezasestrada1877
@raulcabezasestrada1877 2 жыл бұрын
@@ShanesCows Thaks for answering :)
@simplifydimplify
@simplifydimplify 4 жыл бұрын
Shane you are fantastico :)
@ShanesCows
@ShanesCows 4 жыл бұрын
Thanks 😀
@jamesclark2020
@jamesclark2020 Жыл бұрын
I'm going to try and use this control with an attachment control. I've noticed that if I want to do a check like CountRows(DataCardValue13.Attachments) right after I save an attachment, it doesn't count it right away. But.... Maybe... if I set a timer to like 10 seconds, and then do that count attachment check... it's just crazy enough that it just might work.
@SB-ve8dc
@SB-ve8dc 5 жыл бұрын
Hi Shane, great videos, can you have the timer start and continue to count in a gallery until another user triggers the timer to stop then save this to a sharepoint list? I am trying to create a call follow up log for reception so we can monitor how long it is taking staff to return calls. Cheers
@ShanesCows
@ShanesCows 5 жыл бұрын
I don’t think so. You could do math though. Save the time reception sends them the message. Then save the time the follow up call happens. That help?
@SB-ve8dc
@SB-ve8dc 5 жыл бұрын
Hey Shane, thanks for coming back to me so quickly 👍, currently using Datediff to start a clock of sorts, I will have a crack at using modified instead of Now(). Cheers again
@thebiccountant
@thebiccountant 5 жыл бұрын
Thanks for the great video! I cannot make the timer count once I leave the app. Auto-Pause is set to false (but that would only prevent the timer to pause if I change to a different screen within the app). What I want to do instead is to leave the app itself and move to a different Office App to do my work and use the PowerApp (in the background) just to record my working time. Do you have any idea which settings I have to adjust for that? Thanks !!
@ShanesCows
@ShanesCows 5 жыл бұрын
It possible. Sorry. Timer only runs while the app is open.
@thebiccountant
@thebiccountant 5 жыл бұрын
Thanks @@ShanesCows . That's a bit of a pity.
@ALLCAPS
@ALLCAPS 5 жыл бұрын
@@thebiccountant It's actually possible. Give this a read mate: powerusers.microsoft.com/t5/PowerApps-Ideas/Timer-Control-Running-In-Background/idi-p/175512
@csabhop
@csabhop 4 жыл бұрын
I am struggling with the same. but now I found a workaround: use Audio control instead of timer with a silent audio file: It has all necessary properties as timer. e.g. OnEnd, Time(laps), loop, etc. You can use silent sound file as Media. In my case, I used one minute long silent sound file and let it repeat as many as I needed.
@WiltonPicouIII
@WiltonPicouIII 5 жыл бұрын
Shane, Do you have solution like this for tracking employee time, like clock in, clock out and total hours?
@ShanesCows
@ShanesCows 4 жыл бұрын
Yes. We have built lots of timesheet apps but I don’t have a video yet.
@utoroprincewill7808
@utoroprincewill7808 4 жыл бұрын
Great video! Have you had any experience with load management on this? i.e. If I have an average of 30 users on this app, and it is refreshing every minute, will this cause the app to break or slow down?
@ShanesCows
@ShanesCows 4 жыл бұрын
It just depends on your datasource. PowerApps doesn’t care but the data might.
@Lineage2Ragnarok
@Lineage2Ragnarok Жыл бұрын
if i want to set a button that adds +1 to a variable in my gallery and i want to use another counter for my second shopping cart item how do i create this second variable to differentiate it from the first item in the gallery?
@ajitnair9244
@ajitnair9244 6 жыл бұрын
Hey Shane thanks for your valuable time for creating such videos...your method of teaching indeed forced me to subscribe you...Can you make some videos on date and time calculation? Like display time which are over 24hrs..eg 48:00....in excel we do it by custom formatting the value using square bracket.... Text(date,"[h]:mm")...I google this a lot but couldn't find an answer...hope you could help me on this...thanks in advance :)
@ShanesCows
@ShanesCows 6 жыл бұрын
Date time video is coming soon I hope. Thanks for the subscribe. 😻
@aljwharhr7219
@aljwharhr7219 3 жыл бұрын
I do a lot of simple things.❤️❤️
@ShanesCows
@ShanesCows 3 жыл бұрын
🥰
@khargos7602
@khargos7602 2 жыл бұрын
Wait, Shane! You're messing the syntax up! Oh, never mind you fixed it.
@patrickcoleman7443
@patrickcoleman7443 5 жыл бұрын
Hi Shane, Great video. Would there be a way to record individuals times when completing a task and then save to SharePoint? Eg preload an athletes name and press their name button when they cross the line to record result.
@ShanesCows
@ShanesCows 5 жыл бұрын
Sure. Have a timer for each athlete. Then stop that timer and write the data. Yeah, I think it would all be possible.
@shiyong6444
@shiyong6444 4 жыл бұрын
Hello Shane, Currently, I am creating a 'date' label to display Date and time by using Now() function. Now, time does not auto-update the time. Is there any way to display the Date and Time in a label and the time will auto-update ?
@ShanesCows
@ShanesCows 4 жыл бұрын
Not really. You could periodically store the time in a variable and show the variable. Maybe using the timer control.
@auroraserrano4198
@auroraserrano4198 5 жыл бұрын
Good morning Shane! happy Friday As always you´re the best! Question... Do you know of a way to sum timer results? like if I was trying to log time spent performing a training and then wanted to get the overall time spent using the timer? I was able to do it in excel lol but can´t find how on Powerapps Found a couple but don´t work: Sum(Collection/Data, column) Text(Sum(Collection/Data, Column), ,"[$-en-US]hh:mm:ss")
@ShanesCows
@ShanesCows 5 жыл бұрын
There is a DateAdd function you might try out.
@jairito071
@jairito071 4 жыл бұрын
Hello Shane, Can you save timer "Value"( time gone ) in sharepoint list for submit(form 1) ?
@ShanesCows
@ShanesCows 4 жыл бұрын
Yes. Set your data card update property to the timer.
@antonzhong9970
@antonzhong9970 4 жыл бұрын
Hi Shane, Can the timer stop after certain time automatically ?
@ShanesCows
@ShanesCows 4 жыл бұрын
You can set the duration of the timer.
@terencealmeida4594
@terencealmeida4594 3 жыл бұрын
Thanks mate, can I move latest timing results to top as every time I punch in the time goes at the bottom.Also, can I link this record sheet to sharepoint instead of timingresults,
@ShanesCows
@ShanesCows 3 жыл бұрын
Use the SortByColumns function to sort by descending
@terencealmeida4594
@terencealmeida4594 3 жыл бұрын
@@ShanesCows Thank you once again for your reply, Also, can you tell us how do I find the datasource timing results where these duration are getting captured also is there a way I can have this data captured under share point list where I am initially recording the data from power apps I.e. I intend the capture the login and logout hours on sharepoint lists. Is this possible, can you please assist.
@terencealmeida4594
@terencealmeida4594 3 жыл бұрын
@@ShanesCows thank you so much for your reply, can we link the time record sheet to sharepoint lists. Also, where do we find these data that gets saved under datasource timingresults.
@kyokain1
@kyokain1 Жыл бұрын
Does reset please variable goes to reset property of the timer?
@ShanesCows
@ShanesCows Жыл бұрын
Correct.
@gong127
@gong127 6 жыл бұрын
Hi Shane, great video on timer controls. I was wondering is there any control to adjust the time such as Minutes and Seconds in Power Apps?
@ShanesCows
@ShanesCows 6 жыл бұрын
There are several Date/Time functions in PowerApps. docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-date-time Is that what you are looking for?
@gong127
@gong127 6 жыл бұрын
Actually I was looking for an UI for users to input the time. Right now I have text input for the time. But users can easily make a mistake. For example putting 0:60:02 instead of 1:00:02. This will cause an error because 0:60:02 is not a valid time format.
@ShanesCows
@ShanesCows 6 жыл бұрын
The way Microsoft handles that is make the time entry 3 dropdowns. That way you only let people choose valid numbers.
@ellisd3182
@ellisd3182 3 жыл бұрын
Hi Shane, I'm experiencing a issue when collecting the timing results as they seem to disappear when I reload my application (yes I have saved it) any ideas?
@ShanesCows
@ShanesCows 3 жыл бұрын
I don't think you can save the state of the Timer. A lot of times if I want to record times I do so with Now(). So clock in I save the value of Now(). Then when the click Clock Out I save Now(). THen I use DateDiff to find how long they worked.
@Al.sabea.mustafa
@Al.sabea.mustafa 6 жыл бұрын
Like always, so smart
@ShanesCows
@ShanesCows 6 жыл бұрын
Thanks. :D
@AlexS-zp7yk
@AlexS-zp7yk 4 жыл бұрын
Shane how could you save the timer value to a SharePoint list and then resume it later? I'm having the hardest time figuring this out, and global variables don't seem to be the answer. If you could spare the time I would greatly appreciate an answer to this question :D
@AlexS-zp7yk
@AlexS-zp7yk 4 жыл бұрын
Here are some of my attempts, just plugged into the Text value of the timer. Start property is only timerOn="Yes" (global): Working: Text(Time(0, 0, Self.Value/1000), "[$-en-US]hh:mm:ss") Broken: If(timerOn="Yes", Text(Time(0, 0, Self.Value/1000), "[$-en-US]hh:mm:ss") , MainGallery_1.Selected.'Install Time') - Cant resume timer Broken: If(timerOn="Yes", Text(MainGallery_1.Selected.'Install Time'), "[$-en-US]hh:mm:ss") - Cant resume timer Broken: Text(MainGallery_1.Selected.'Install Time', "[$-en-US]hh:mm:ss") - Cant resume timer Broken: TimeValue(MainGallery_1.Selected.'Install Time') - Cant resume timer Broken: Text(TimeValue(MainGallery_1.Selected.'Install Time'), "[$-en-US]hh:mm:ss") - Cant resume timer
@ShanesCows
@ShanesCows 4 жыл бұрын
Yikes. I don’t know. I will try some stuff tomorrow but I have my doubts. 😑 You might need to think of a different direction for solving your issue.
@AlexS-zp7yk
@AlexS-zp7yk 4 жыл бұрын
@@ShanesCows Thank you so much for your reply. I am also thinking that a different approach is needed with this one. I have reached out to the client and it may be appropriate to simply summarize the results in a report. They are interested to know a specific reason when the timer is restarted, so I am planning to use a SharePoint Comments field to store and append each Timer value when it gets restarted, along with the reason, which I can just patch into the source SharePoint Comments field with input/collection in PowerApps. I could then just output the comments to a CSV, and plug it into PowerBI which is also something they are very interested in. On another project today but testing that tomorrow. Thanks again :)
@zamarinen
@zamarinen 3 жыл бұрын
Hmm... I didn't get the reset button to work. Here is the code, please correct me if I missed any step UpdateContext({ResetPlease:true});UpdateContext({ResetPlease:false})
@ShanesCows
@ShanesCows 3 жыл бұрын
THat seem correct. Do you have ResetPlease on the Start property of the timer?
@zamarinen
@zamarinen 3 жыл бұрын
@@ShanesCows i managed to fix it when i took another look at it now. What i did was I went to "Reset Property" and wrote ResetPlease so match the variable i was doing above.^ On my "Start" property i just have my TimerGo
@zamarinen
@zamarinen 3 жыл бұрын
Please continue with this videos Shane! very helpful, and btw link your patreon page!!
@reszzz
@reszzz 3 жыл бұрын
How does the reset work when you didn't use the variable inside the timer itself?
@ShanesCows
@ShanesCows 3 жыл бұрын
Reset function will reset most controls back to their default state without variables
@reszzz
@reszzz 3 жыл бұрын
@@ShanesCows Thanks Shane. But I had to set the reset variable in the timer to get it to work. Not sure if i'm missing something but either way it worked. I was able to create a great splash screen with your help!
@jones-geekzone4363
@jones-geekzone4363 5 жыл бұрын
Great stuff thx.
@ShanesCows
@ShanesCows 5 жыл бұрын
Welcome :)
@ramisolipe7001
@ramisolipe7001 3 жыл бұрын
Amazing
@ShanesCows
@ShanesCows 3 жыл бұрын
Thank you! Cheers!
@cesarNEO
@cesarNEO 5 жыл бұрын
Muchas gracias
@ShanesCows
@ShanesCows 5 жыл бұрын
De nada. 😎
@ankitaaaj
@ankitaaaj 3 жыл бұрын
Can we add timer in gallery for each item?
@ShanesCows
@ShanesCows 3 жыл бұрын
Yes and no. Not sure what you are thinking but I doubt a timer in a gallery is the right anwer.
@isaiahunderwood7884
@isaiahunderwood7884 3 жыл бұрын
My reset button is not working and I don't understand what i messed up. any insights?
@tanveer4u1
@tanveer4u1 4 жыл бұрын
I want to know how do we capture the system idle and work accordingly..
@ShanesCows
@ShanesCows 4 жыл бұрын
Not sure you can. Sorry
@ktos7110
@ktos7110 3 жыл бұрын
Hello Shane, I have problem with your command UpdateContext({ResetPlease: true}); UpdeteContext({ResetPlease:false}) It is not working. I wrotre " ; " after first command and after that PA shows me error. Maybe do you know the solution of my problem?
@ShanesCows
@ShanesCows 3 жыл бұрын
If your region uses a , as the decimal separator then when I use a ; you need to use ;;. And when I use a , you need to use a ;
@ktos7110
@ktos7110 3 жыл бұрын
@@ShanesCows I wrote Collect(TimingResults, {Time: Timer1.Text} UpdateContext({ResetPlease: true});; UpdateContext({ResetPlease:false}) but It still dosen't work Can u help me pls?
@ManiKumar-qx8sb
@ManiKumar-qx8sb Жыл бұрын
how to set Timer Control will make your text input letters change from lowercase to uppercase letter after 5 seconds of entering the text in powerapps plz help me with this
@ShanesCows
@ShanesCows Жыл бұрын
Mani maybe this old video will help where I do some text manipulation with a timer? kzfaq.info/get/bejne/jtlzoMuYmsmqiJ8.html
@mednid4744
@mednid4744 3 жыл бұрын
Hello Shane, thank you very much for your video. But i need your help please, i have problem with one function. I can't collect datas and reset the timer with one button. I'm obliged to do 2 differents buttons and then it works. This is how i did at the begining (with one button) : Collect(ShiftReports; {time : TimerShift.Text; Line: Dropdown1.SelectedText.Value; Shift:Dropdown2.SelectedText.Value}) And UpdateContext({resettimer:true}) And UpdateContext({resettimer:false}) The error that appears is " Invalid argument type, one of the following values is expected: text, number, boolean, OptionSetValue, ViewValue"
@ShanesCows
@ShanesCows 3 жыл бұрын
Try this: Collect(ShiftReports; {time : TimerShift.Text; Line: Dropdown1.SelectedText.Value; Shift:Dropdown2.SelectedText.Value}) ; UpdateContext({resettimer:true}) ; UpdateContext({resettimer:false})
@mednid4744
@mednid4744 3 жыл бұрын
@@ShanesCows I just try and It's doesn't work, the "collect" part is underlined in red when I add the rest. But when i seperate the "collect part" and "updateContexte Part" , it works
@NewPlayer4U
@NewPlayer4U 5 жыл бұрын
What are those TimingResults? My Gallery can't find it. wtf?! It happened automatically on your video, so we can't now know it, how to handle this. Btw. Reset doesn't work with this formula.
@ShanesCows
@ShanesCows 5 жыл бұрын
In the video I show you how to save and reset at about the 9:50 mark. That is what creates TimingResults. 😀
@JerHarwood
@JerHarwood 4 жыл бұрын
Although 1 year ago it may help others to see that when Shane first creates the Reset button to set the variable "ResetPlease" to true and then false the timer Reset property is not updated from false... so if you're following just up to that point it won't work until you set the timer Reset property to that variable "ResetPlease" which you'll see is set at 11:11 in the video. It seems in editing Shane took out that part where he updated that property from false to reference the variable ResetPlease. :-)
@pasansilva1199
@pasansilva1199 6 жыл бұрын
Hi Shane Can you tell me how to convert Timer control output to seconds?
@ShanesCows
@ShanesCows 6 жыл бұрын
They are in milli seconds. So 1000 equals 1 second. Does that help?
@adielaarizaladajome6967
@adielaarizaladajome6967 5 жыл бұрын
buenas tardes quisiera saber cómo hago para poner la fecha y hora actual en powerapps
@ShanesCows
@ShanesCows 4 жыл бұрын
Sorry I don’t speak Spanish but I think the Now() function is what you want.
@bobns509
@bobns509 3 жыл бұрын
Where is the exact moment that a newly created variable "ResetPlease" is connected to Timer control? How does power-app knows that you are thinking of resetting the Timer???
@xuejianyang3935
@xuejianyang3935 Жыл бұрын
timer set autostart, how to pause?
@ShanesCows
@ShanesCows Жыл бұрын
You can click on the Timer button to pause it.
@suleimanobeid9995
@suleimanobeid9995 10 ай бұрын
This could also work UpdateContext({TimerGo:false}); Reset(Timer1)
@diogosoares9052
@diogosoares9052 5 жыл бұрын
what happens if you lock you phone screen?
@ShanesCows
@ShanesCows 5 жыл бұрын
Not sure. I bet it pauses.
@Jaisreeradhekrishna
@Jaisreeradhekrishna 5 жыл бұрын
haiva haiva bob
@ShanesCows
@ShanesCows 5 жыл бұрын
😎
@kanchakaperera7943
@kanchakaperera7943 Жыл бұрын
and again I found this code works for Record and Reset button too.. is there any error please someone corrects me = "Collect(TimingResults, {Time:Timer1.Text}) ;Reset(Timer1) & UpdateContext({GoTimer:false})"
PowerApps Password Screen
16:41
Shane Young
Рет қаралды 61 М.
PowerApps Calendar Control - Build your own using Galleries
35:02
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 13 МЛН
Can This Bubble Save My Life? 😱
00:55
Topper Guild
Рет қаралды 75 МЛН
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Бискас
Рет қаралды 5 МЛН
Countdown Timers [PowerApps]
15:25
Mr. Dang
Рет қаралды 11 М.
Power Apps Time zones, UTC, SharePoint, and Excel
28:45
Shane Young
Рет қаралды 32 М.
PowerApps SharePoint LookUp Column
24:36
Shane Young
Рет қаралды 174 М.
PowerApps Patch Function
26:45
Shane Young
Рет қаралды 212 М.
PowerApps Timer Control
5:59
Lernen Tech
Рет қаралды 12 М.
How to Use the NEW Forms Experience in Microsoft Lists
16:28
Scott Brant
Рет қаралды 26 М.
How to Create a Timer App in Power Apps for your projects
33:44
Web Scraping Made EASY With Power Automate Desktop - For FREE & ZERO Coding
13:11
Lesson21 - Timer  - Power Apps 1000 Videos
10:49
Power Apps 1000 Videos
Рет қаралды 1,8 М.
Parenting hacks and gadgets against mosquitoes 🦟👶
00:21
Let's GLOW!
Рет қаралды 13 МЛН