Hello everyone, I hope you are well.
This is my first post on this site and I would first like to thank you for sharing your knowledge and your availability to help newfite like me.
My question is the following: I am developing an application on Power Apps that allows technicians in the field to display the interventions to be carried out on a residence. each residence has its own Excel file hosted on a SharePoint site.In all I have 95 Excel files for 95 residences. My home screen is a gallery that displays the list of residences. when we click on the name of a residence it brings us back to a screen that lists all the interventions to be treated in the residence in question... (I'll give more details if you need it). My problem is that for each residence I finally find myself with 3 screens. So if I continue like this I will have 95*3 screens so not great.
Can you please tell me how I can proceed so that this application is dynamic, so that only the database changes (by changing the residence clicked). I will provide further information if you find it useful. Thank you
Cr BhargaviPosted Aug 20, 2024, 3:17 AM
Items Property of Interventions Gallery:
Data Source: Ensure correct data connections and use dynamic filtering based on the
selectedResidence.Tuhin PaulPosted Jul 31, 2024, 5:30 PM
Also another approach is
Residence.Abhishek YadavPosted Jul 29, 2024, 5:00 AM
Problem:
How can I make this application dynamic so that only the database changes based on the selected residence, without having to create separate screens for each residence?
Solution:
You can achieve this by using dynamic data loading and a single set of screens to display the data for each residence. Here's how you can proceed:
Single Set of Screens:
Using a Collection to Store Data:
ClearCollectfunction.Gallery and Data Connections:
Navigation and Data Context:
Navigatefunction to move between screens and pass the context (e.g., residence ID or name) so that the data can be loaded accordingly.Here is an example of how you might set this up:
OnSelect of the residence in the Gallery:
Binding Controls:
InterventionScreento theSelectedResidenceDatacollection.This approach ensures that you only have a few screens, but the data displayed is dynamic based on the selected residence.
If you need further details, feel free to ask. I hope this helps!
If this answer solves your problem, please accept it so others can benefit from it as well. Thank you!