Room Check Edit Screen
This screen pulls the room data from the gallery and shows the relevant drop downs depending on the items the room has in the "Room Data" list.
If the room doesn't have the item, it shows "N/A" rather than the drop down.
This is determined with hidden toggles. The toggle matches to the "Yes/No" field in the "Room Data" list and then this code is set on the "Visible" property of the dropdown:
If any of the drop downs are set to "Checked - Issues" another input box appears. This is done with the "Visible" property of the issues text box:
Is the "Issues" box is visible and there is no text in it, the "Submit" button becomes greyed out. This is to make sure the details of the problem are recorded. This is done with the "DisplayMode" property of the submit button:
Once the room has been completely checked the the form is ready to submit, there are 3 main things that happen.
On the "OnSelect" property of the submit button, this happens:
1. The data about the room is logged to the "Room Check Log" list - it is just added as a new record on the end of the list.
2. The status of each item in the room is updates on the "Room Data" list - it updates each room record.
3. If any of the items are set to having an issue, an email is sent to ITServices. (This is a PowerAutomate Flow that is written within PowerApps).
Then finally, all the fields are reset and the app goes back to the room list.