Hello there!
I am pressing on a button and somehow the selected gallery item is different than before... how is that possible?
I select an order on screen1, it takes me to screen2 where it has shown details about that order.
I then click on a button to make a pdf and patch some stuff to sharepoint, when its done, the selected gallery item changes.
Here is the OnSelect, it has nothing special;
What could be causing this to happen? Maybe because it is running a flow in Power Automate, it loses the selected item? I've commented out the flow part and it still happens. I don't know why...
Edit:
I commented out the patch part and that was it..... how and why is the selected item gone when patching something? And how can I avoid this?
Set(popupVisible; false);;
Set(popupVisiblePDF; false);;
Set(popupVisibleAkkoordVinken; false);;
Refresh(OpleverChecklistProgress);;
'Opleverapp-PDFChecklist'.Run(
HtmlText1_1.HtmlText;
OrderGallery.Selected.Result & "-" & SubOrderGallery.Selected.Result & "=" & lblUniekNummer2.Text & "-checklist" & ".html";
OrderGallery.Selected.Result & "-" & SubOrderGallery.Selected.Result;
lblUniekNummer2.Text
);;
Patch(
'D-Nummers-OpleverApp'; LookUp('D-Nummers-OpleverApp'; Order0 = OrderGallery.Selected.Result && UniekNummer = lblUniekNummer2.Text);
{
ExternLinkFotos: "https://straatmanbv.sharepoint.com/sites/StraatmanApps/FotosOpleverappExtern/" & OrderGallery.Selected.Result & "-" & SubOrderGallery.Selected.Result & "/" & lblUniekNummer2.Text;
'AlleMemo''s': ""
}
);;
Set(popupVisiblePDF; true);;
Set(popupVisible; true)