Hey Everyone,
I have built a power app for our service department at work. We service pumps and I am using Power Apps for our staff to input information into a SharePoint list as well as photos and Power Automate through various flows to create folders and put photos into the folders. Once the inspection is done, it runs a flow that populates a template using Adobe Document Generator API connection. It all works perfectly well apart from one thing.
I am sure most people on here has seen Shane Youngs videos. 6 months ago I did not know Power Apps existed and have since then been on a journey thanks to Shane's and a few other Youtube based resources. One video that caught my eye was that he recommended not to used Gallery.Selected anymore for various reasons. I did a bit more reading and people said it helped make the app more responsive, which it did. My app has about 350 columns in SharePoint over 3 lists, so does a lot of Patching as I patch every variable changed independently using the onchange function as it covers off every different type of pump we service. Quite a few are only used for their particular pumps types. However, the issue I am experiencing since changing everything to Set(var,ThisItem) is the lack of automatic updating, which makes sense. You need to go back out to update the variable. I have worked around some bits, especially for visibility functions by getting it to reference the component and patching so it avoids issues with the need to update to make items visible and it will automatically do it when you reopen it anyway. Other than adding Set(var,ThisItem) after every patch, is there anything else I can do?
Kind Regards,
Sam