Hello,
I have created an app that stored photos to sql server. I created also a button with the below formula which stored the photos, refresh the view at database and navigate on other screen. However, everything works fine except for the PopUp window after the succesdful sumbission. The PowerApps studio doesn't show me any error at my formula.
Here is the code of my button:
If(
IsBlank(PreviewImg),
Notify(
"Take a photo!",
NotificationType.Error
),
Patch(
'[dbo].[PhotosApp]',
Defaults('[dbo].[PhotosApp]'),
{
PhotoImage: Camera.Photo,
ContactId: MathitisDropdw.Selected.StudentID
}
);
Refresh('[dbo].[v_PhotosApp]');
UpdateContext({PopUp: true});
Navigate(
Screen1,
ScreenTransition.Fade
)
)
Also i have created a PopUp group which include the PopUp label, PopUp screeen and the button which close this window. At this group i wrote at OnSelect property: UpdateContext({PopUp: false}) and at Visible: PopUp. At the attach file you can see the image from the PopUp group.
What i made wrong and the Pop Up window didn't show up after the sumbission?
Thank you in advance.