PowerApps Timer Control

Поділитися
Вставка
  • Опубліковано 29 бер 2018
  • 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.com
  • Наука та технологія

КОМЕНТАРІ • 185

  • @Adnaniscrazyloop
    @Adnaniscrazyloop 5 років тому +18

    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!!!

  • @MrLauppe
    @MrLauppe 3 роки тому +2

    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.

  • @alexwilliamson6768
    @alexwilliamson6768 3 роки тому +1

    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 роки тому +1

      Glad to help! I graduated from UC many moons ago. 😁 I even taught there for a semester.

  • @derek_shannon
    @derek_shannon 4 роки тому +1

    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!

  • @parkeburnett3629
    @parkeburnett3629 2 роки тому

    You literally have a video up of something I had to google for a couple hours for. You rock, dude!

  • @hackein9435
    @hackein9435 4 роки тому +2

    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!

  • @mdekleijn
    @mdekleijn 4 роки тому +1

    Great video again! I use the timer control to display a splash screen for a few seconds before you get to the actual app.

  • @stevensmith5255
    @stevensmith5255 5 років тому +2

    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. 😎

  • @marciokataoka
    @marciokataoka 5 років тому +2

    Great teacher! I've learned a lot watching your videos

  • @mikelockheed8857
    @mikelockheed8857 Рік тому +1

    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.

  • @jananunn1320
    @jananunn1320 5 років тому +1

    Hi Shane, thank you for your videos. They are a great help!

  • @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.

  • @kletterbildercom
    @kletterbildercom 5 років тому +1

    Hi Shane, thank you for your great videos.

  • @JulioEscobedo
    @JulioEscobedo 3 роки тому +2

    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

  • @william_78
    @william_78 2 роки тому +1

    you make the best tutorials, thank you🙏

    • @ShanesCows
      @ShanesCows  2 роки тому

      Appreciate that William. 🐶

  • @gerusnero
    @gerusnero 6 років тому +1

    so much fun! thanks shane!

    • @ShanesCows
      @ShanesCows  6 років тому

      Thanks. Glad you enjoyed it.

  • @fadiahdab
    @fadiahdab 3 роки тому +1

    Thanks Shane you are amazing as usual

  • @mblherry
    @mblherry 6 років тому +2

    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.

  • @Pamila8834
    @Pamila8834 4 роки тому +1

    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.

  • @rodolphaouad6538
    @rodolphaouad6538 6 років тому +1

    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. :)

  • @almanzaralbert1
    @almanzaralbert1 3 роки тому +1

    Thank u very much for ur great video.

  • @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!

  • @kalebhawkins4427
    @kalebhawkins4427 3 роки тому +1

    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 👍😊

  • @johannawinsor558
    @johannawinsor558 4 роки тому +1

    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  4 роки тому

      Datediff should be the right function. Did you get it figured out?

  • @ajitnair9244
    @ajitnair9244 6 років тому +1

    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. 😻

  • @awimanu1006
    @awimanu1006 3 роки тому +1

    @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.

  • @jusbejusbe7838
    @jusbejusbe7838 9 місяців тому +1

    Excellent video!

    • @ShanesCows
      @ShanesCows  9 місяців тому

      Thank you very much!

  • @utoroprincewill7808
    @utoroprincewill7808 4 роки тому +1

    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.

  • @kishorec1117
    @kishorec1117 4 роки тому +1

    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.

  • @ktos7110
    @ktos7110 3 роки тому +1

    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. ua-cam.com/video/MclJ_O9HvJQ/v-deo.html

  • @jones-geekzone4363
    @jones-geekzone4363 5 років тому +1

    Great stuff thx.

  • @auroraserrano4198
    @auroraserrano4198 5 років тому +1

    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.

  • @jessietoamau2451
    @jessietoamau2451 5 років тому +2

    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. 😎

  • @gong127
    @gong127 6 років тому +1

    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 років тому +1

      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 років тому +1

      The way Microsoft handles that is make the time entry 3 dropdowns. That way you only let people choose valid numbers.

  • @SachinGupta-sf2sc
    @SachinGupta-sf2sc 3 роки тому +1

    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.

  • @mikesanchez8387
    @mikesanchez8387 3 роки тому +1

    Thank you! you should called L&L Learn and Laugh! :)

  • @patrickcoleman7443
    @patrickcoleman7443 5 років тому +1

    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.

  • @khargos7602
    @khargos7602 2 роки тому

    Wait, Shane! You're messing the syntax up! Oh, never mind you fixed it.

  • @SB-ve8dc
    @SB-ve8dc 5 років тому +1

    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 років тому +1

      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 років тому +1

      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

  • @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.

  • @Al.sabea.mustafa
    @Al.sabea.mustafa 6 років тому +2

    Like always, so smart

  • @seanquinn4940
    @seanquinn4940 4 роки тому +2

    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  4 роки тому

      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 :)

  • @WiltonPicouIII
    @WiltonPicouIII 4 роки тому +1

    Shane, Do you have solution like this for tracking employee time, like clock in, clock out and total hours?

    • @ShanesCows
      @ShanesCows  4 роки тому +2

      Yes. We have built lots of timesheet apps but I don’t have a video yet.

  • @eversonrafael8174
    @eversonrafael8174 4 роки тому +1

    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  4 роки тому

      Instead of using the timer log meeting start time and meeting end time. Then you can calculate meeting tome.

  • @simplifydimplify
    @simplifydimplify 3 роки тому +1

    Shane you are fantastico :)

  • @markdelbiondi
    @markdelbiondi 3 роки тому +1

    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 😑

  • @kanchakaperera7943
    @kanchakaperera7943 Рік тому

    hey Shane we can do that timer reset this way right?
    on select on reset button = " Reset(Timer1) & UpdateContext({GoTimer:false}) "

  • @mhuddlestone8209
    @mhuddlestone8209 Рік тому +1

    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  Рік тому

      Have the NExt button update a variable. Have that variable cause the Timer to start. Should work.

  • @cesarNEO
    @cesarNEO 5 років тому +1

    Muchas gracias

  • @ScozzieMan
    @ScozzieMan 3 роки тому +1

    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. ua-cam.com/video/GiN47Is_634/v-deo.html

  • @thebiccountant
    @thebiccountant 5 років тому +1

    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 років тому +1

      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.

  • @jairito071
    @jairito071 4 роки тому +1

    Hello Shane, Can you save timer "Value"( time gone ) in sharepoint list for submit(form 1) ?

    • @ShanesCows
      @ShanesCows  4 роки тому +1

      Yes. Set your data card update property to the timer.

  • @paulsarijowan9681
    @paulsarijowan9681 11 місяців тому +1

    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  11 місяців тому +1

      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 11 місяців тому +1

      thank you @@ShanesCows, i'll try it

  • @aljwharhr7219
    @aljwharhr7219 3 роки тому +1

    I do a lot of simple things.❤️❤️

  • @shiyong6444
    @shiyong6444 4 роки тому +1

    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.

  • @raulcabezasestrada1877
    @raulcabezasestrada1877 2 роки тому +1

    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.

  • @Lineage2Ragnarok
    @Lineage2Ragnarok 11 місяців тому

    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?

  • @ramisolipe7001
    @ramisolipe7001 3 роки тому +1

    Amazing

  • @antonzhong9970
    @antonzhong9970 4 роки тому +1

    Hi Shane,
    Can the timer stop after certain time automatically ?

    • @ShanesCows
      @ShanesCows  4 роки тому

      You can set the duration of the timer.

  • @kirebelevski
    @kirebelevski 3 роки тому +1

    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 роки тому +1

      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 :(

  • @tanveer4u1
    @tanveer4u1 4 роки тому +1

    I want to know how do we capture the system idle and work accordingly..

  • @pasansilva1199
    @pasansilva1199 6 років тому +1

    Hi Shane
    Can you tell me how to convert Timer control output to seconds?

    • @ShanesCows
      @ShanesCows  6 років тому +1

      They are in milli seconds. So 1000 equals 1 second. Does that help?

  • @terencealmeida4594
    @terencealmeida4594 3 роки тому +1

    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.

  • @angelgj2363
    @angelgj2363 3 роки тому +1

    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  3 роки тому

      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.

  • @mosabhaymour9937
    @mosabhaymour9937 Рік тому +1

    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  Рік тому +1

      Use this video ua-cam.com/video/oRMSKfqPUbw/v-deo.html and instead of OnClick set the variable OnTimerEnd. 😎

  • @ayansummi7000
    @ayansummi7000 2 роки тому +1

    Where did you connect your 'Resetplease' context variable to reset propety of timer control.you didnt include that in ur vdo.

  • @ellisd3182
    @ellisd3182 3 роки тому +1

    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.

  • @suleimanobeid9995
    @suleimanobeid9995 9 місяців тому

    This could also work
    UpdateContext({TimerGo:false}); Reset(Timer1)

  • @kyokain1
    @kyokain1 Рік тому +1

    Does reset please variable goes to reset property of the timer?

  • @rahulmukherjee4791
    @rahulmukherjee4791 3 місяці тому +1

    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  3 місяці тому +1

      Good suggestion. For the last couple of years I have been doing chapters. This video was just a little before I started.

    • @rahulmukherjee4791
      @rahulmukherjee4791 3 місяці тому

      @@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! ✌🏼

  • @isaiahunderwood7884
    @isaiahunderwood7884 3 роки тому

    My reset button is not working and I don't understand what i messed up. any insights?

  • @bobns509
    @bobns509 2 роки тому

    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???

  • @AlexS-zp7yk
    @AlexS-zp7yk 3 роки тому +1

    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 3 роки тому

      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  3 роки тому

      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 3 роки тому

      @@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 :)

  • @ManiKumar-qx8sb
    @ManiKumar-qx8sb Рік тому +1

    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? ua-cam.com/video/XsCmhg5cFXk/v-deo.html

  • @NewPlayer4U
    @NewPlayer4U 5 років тому +3

    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 3 роки тому

      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. :-)

  • @adielaarizaladajome6967
    @adielaarizaladajome6967 4 роки тому +1

    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.

  • @ktos7110
    @ktos7110 3 роки тому +1

    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 роки тому +1

      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?

  • @reszzz
    @reszzz 3 роки тому +1

    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!

  • @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

  • @ankitaaaj
    @ankitaaaj 3 роки тому +1

    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.

  • @zamarinen
    @zamarinen 3 роки тому +2

    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 роки тому +1

      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!!

  • @xuejianyang3935
    @xuejianyang3935 Рік тому +1

    timer set autostart, how to pause?

    • @ShanesCows
      @ShanesCows  Рік тому

      You can click on the Timer button to pause it.

  • @diogosoares9052
    @diogosoares9052 5 років тому +1

    what happens if you lock you phone screen?

    • @ShanesCows
      @ShanesCows  5 років тому

      Not sure. I bet it pauses.

  • @Jaisreeradhekrishna
    @Jaisreeradhekrishna 5 років тому +1

    haiva haiva bob

  • @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})"