Hi everyone,
I have a gallery that shows photos of parts of a machine that the user can upload. Whenever you press the green button you are prompted to upload a picture of that part.
Issue: I would like to be pushed in the right direction when it comes to having PowerApps automatically prompting me to upload a picture of the next part (so after I click the green button and upload a picture - and in the back patching it to the database - PowerApps should prompt me directly to upload a picture of the next part by just opening file directory).
I have tried using the Select and then referencing the 'Add picture' control, but I don't think that is the way to go, since nothing happens.
In the OnChange of the 'Add picture' control I have this:
If(
!IsBlank(Self.FileName),
UpdateContext({showPopupLoaderAdvertisingPhoto: true});
RemoveIf(
'Vehicle Photos',
And(
Vehicle.'Vehicle ID' = selectedVehicle.'Vehicle ID',
'Vehicle Photo Template'.'Vehicle Photo Template Id' = ThisItem.'Vehicle Photo Template Id'
)
);
Patch(
'Vehicle Photos',
Defaults('Vehicle Photos'),
{
Filename: Self.FileName,
Vehicle: selectedVehicle,
'Vehicle Photo Template': ThisItem,
Photo: imgVehiclePopupPhoto.Image
}
);
UpdateContext({showPopupLoaderAdvertisingPhoto: false})
Someone able to push me in the right direction?

Report
All responses (
Answers (