i am trying to customise the Leave Request Power App for my company in Germany and so, there are only three different Leave types: Vacation, Sick Leave and Special Leave.
i read that i should edit the OnStart property of the App and i did make some changes (i have yet to edit the description of the previous Floating Holiday):
but im not sure how to edit the Balance section for the "floating holiday" part:
also, as seen here, i have edited the default vacation value to 25 but even after running OnStart, this is the result when i ran the app:
another thing is, there is no upper limit when it comes to sick and special leaves in Germany, but i also realised that i cannot leave the balance as 0 and it is probably too complicated to hardcode an elegant solution for this so should i just put a very large number in? or is there a simple workaround for this?
would really appreciate any help, thanks!! 😀
I am unfamiliar with this demo app, but it looks like it just uses static data.
Are there are datasources connected to this app?
You could, for example, choose to only keep a record of how many sick days someone has taken, and not worry about keeping a balance
This is not as simple as just editing the OnStart property. You need to track changes like this through the entire program. There are multiple places where the balance is maintained. You'll need to find them all and fix them. This is not a simple task. Start by reviewing the code on all the screens and be sure you understand what each section of code does. Then you can find and change the necessary sections.
The data source for the original app is an Excel spreadsheet stored in OneDrive or some other location.
hmm the only excel file that seems to be associated with this app is the Holidays list, which for some reason isn't very editable too (not sure what im doing wrong...) but that's for another thread.
the idea is to indeed keep a record of how many sick days someone has taken 🙂
Let me know if you have issues with it. I've done what you are proposing, but can't give you a list of all the places I changed. But I'll try to help you find them if you are having issues.