Hi,
I'm making an app where I can add photos to my sharepoint list through a camera in the app.
My problem is that I can only add pictures and can't delete them anymore.
I've created delete buttons that seem to work at first. After submitting the form this seems to go well with new photos. Yet every time I go back to home and again to the device it turns out that the new photos are added to the 'deleted' one(s) instead of overwriting them. See attachment.
My code is as follows:
At the camera to add the photos:
Set(
varName,
GUID()
);
Collect(
colImages,
{
DisplayName: varName & ".jpg",
Id: varName & ".jpg",
Value: Camera1.Photo
}
);
To delete my pictures I use:
(trashcan image): Set(ShoutoutToDelete, ThisItem); Set(ShowDeleteConfirm, true)
(pop-up): Remove(colImages,ShoutoutToDelete); Set(ShowDeleteConfirm, false)
To submit my form I use:
Set(IsReset, true); Set(bevestigSchermOpen, true); SubmitForm('Informatie automaat'); Refresh(automatenlijst); ViewForm('Informatie automaat')
I hope someone can help!
Thanks in advance
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
169 | |
94 | |
68 | |
64 | |
61 |
User | Count |
---|---|
223 | |
160 | |
93 | |
85 | |
80 |