Recreating the Calculator in Modern Power Apps - Downloadable Copy in Github

Sdílet
Vložit
  • čas přidán 25. 07. 2024
  • Download a copy and import in your environment:
    Calculator2024_20240609181205.zip
    github.com/TheAndrewHess/2024/
    This video is a learning experiment for anyone new to Microsoft Power Apps. About 1.5 years ago we created a calculator Power App with classic themes. This year lets do a few things different!
    1. Modern Themes
    2. Using Out of the Box Template
    3. Using Containers
    4. Making it Responsive
    5. Fixing All Errors.
    6. Biggest of all you can download the app and Import it into your environment!
    If you need help importing here is a guide, and just take the main file Calculator2024.zip and click import in your environment:
    learn.microsoft.com/en-us/pow...
    Creating a calculator in Power Apps is an excellent learning experiment that allows you to explore the platform's features and capabilities in a practical, hands-on way. This project helps you understand the fundamentals of app development within Power Apps, including user interface design, formula implementation, and data integration. By building a calculator, you gain valuable experience in problem-solving and application customization, which can be applied to more complex projects in the future. Additionally, this experiment serves as a foundational exercise, enhancing your skills and confidence in using Power Apps to develop tailored solutions for various business needs.
    Here is the code for the equals button OnSelect:
    Set(varCalculateText, varCalculateText & varNumber);
    Switch(varArith,
    "Add",
    Set(varNumber,Text(Left(txtCalculateText.Text,Len(txtCalculateText.Text) - (Len(varNumber)+3)) + Value(txtNumber.Text))),
    "Subtract",
    Set(varNumber,Text(Left(txtCalculateText.Text,Len(txtCalculateText.Text) - (Len(varNumber)+3)) - Value(txtNumber.Text))),
    "Multiply",
    Set(varNumber,Text(Left(txtCalculateText.Text,Len(txtCalculateText.Text) - (Len(varNumber)+3)) * Value(txtNumber.Text))),
    "Divide",
    Set(varNumber,Text(Left(txtCalculateText.Text,Len(txtCalculateText.Text) - (Len(varNumber)+3)) / Value(txtNumber.Text))))
    Chapters:
    0:00 Introduction
    2:00 Starting with a Template
    3:20 Turning on Modern and Responsive
    6:00 Perfecting the Look
    12:10 Setting up the Text Label
    17:33 Working on the Addition Button
    18:54 An Important Toggle Variable
    23:50 Explaining the Equals Calculation Button
    26:42 Setting up our Switch Statement
    28:20 Conclusion
  • Věda a technologie

Komentáře • 13

  • @MichaelDeBlasis1369
    @MichaelDeBlasis1369 Před měsícem +1

    Thanks Andrew! I learned a lot from this. Much of which I wish I knew before I attempted an accounting app as one of my first. 3 mo later... Its finally working hehe.

    • @andrewhess123
      @andrewhess123  Před měsícem

      Awesome glad this video helped out! Can't imagine an accounting app! Ugh accounting! 😀I always preferred finance over accounting. And 3 months is great timing compared to how long it used to make apps before Power Apps. Would take a team 6 months at least!

    • @MichaelDeBlasis1369
      @MichaelDeBlasis1369 Před měsícem

      @@andrewhess123 It was not fun at all. But I did learn a lot about power apps and accounting at the same time so I guess it was, fruitful?.. Yeah, I'm going with that. LOL

    • @MichaelDeBlasis1369
      @MichaelDeBlasis1369 Před měsícem +1

      @@andrewhess123 I see what you mean about date time functions being a PITA. I'm trying to include payroll now and having a fun time with datedif and recognizing weekend days as not being counted as time off. all to setup time off requests with the time clock I just made. At least the time clock is working as expected.

    • @andrewhess123
      @andrewhess123  Před měsícem

      @@MichaelDeBlasis1369 Hahaha yeah and then calculating leap years too, Holidays etc.... That's always fun.

    • @MichaelDeBlasis1369
      @MichaelDeBlasis1369 Před měsícem +1

      @@andrewhess123 yeah a bug free calendar is really a work of art. I also can't beleive power apps does not have a time picker to go along with the date picker. I had to make one from dropdowns. then all the logic for a 40 hour week, mon to friday. OT vs regular time. I gotta say this was a lot more than I thought it would be. oh and unpaid vs paid lunch time and PTO accrual. So mcuh here..

  • @praveeng3921
    @praveeng3921 Před měsícem +1

    Great, can you design leave application where shows leave on the calendar?

    • @andrewhess123
      @andrewhess123  Před měsícem +1

      Hi Praveen, Thanks for the idea. Writing this down. This is always a tough request though! Calendars! 😂 As long as there are no requirements like recurring events I think this is more do-able.

    • @praveeng3921
      @praveeng3921 Před měsícem +1

      @@andrewhess123 yeah i can understand 😂. Recently i have created a project like this.

    • @andrewhess123
      @andrewhess123  Před měsícem +1

      @@praveeng3921 Calendars seem to be one of my most requested processes hahaha. Callllennnddarrrss! 😆