Hello!
I am not using a form control from powerapps, the app is essentially a form for users to submit data. Here is my proccess for saving the data for the text fields.
ClearCollect(
SavedData,
{
ID: "1",
CurrentDate: CurrentDate.SelectedDate,
Latitude: Latitude.Text,
Longitude: Longitude.Text,
EquipmentNum: EquipmentNum.SelectedItems,
DOTDate: DOTDate.SelectedDate,
Mileage: Mileage.Text,
GPSReport: GPSReport.Selected.Value,
InspectionBook: InspectionBook.Selected.Value,
FireEx: FireEx.Selected.Value,
RoadTri: RoadTri.Selected.Value,
Notes: Notes.Text,
TABPhoto: TABPhoto.Image,
CELLPhoto: CELLPhoto.Image
}
);
SaveData(
SavedData,
"SavedData"
);
This saves all of the current values of all the fields in the form including the single images which works great. From here I load data on start and each field has something like this to check if there is a value in "SavedData":
If(!IsBlank(LookUp(SavedData,ID="1",Mileage)),LookUp(SavedData,ID="1" ,Mileage),"")
So If you reload the app after Saving the data whatever you had typed in before you quit will load back up.
My issue is with working in a gallery. This is a point in the app where a user has to take photos of equipment. It could be as simple as 1-2 photos however some users have to submit 5-8 depending on the equipment. This is where I felt that putting an "AddMedia" button in a gallery would be the best option as they can just keep taking photos.
The only way I can get the galleries images into a collection is with "PhotoGallery"
So lets say I have 3 images in the gallery and I click save
ClearCollect(Photos,{Photos:PhotoGallery.AllItems})
From here I can go into my collection and see that the images are in there but I can not find out a way to get these images back in with Load data.
Again I am trying to Save this collection and then load it back just like the rest of the data. But for the life of me I can not figure out how to pull the pictures back from the collection
Let me know If I need any more of a description of what Im trying to do and I appreciate the help!!!!!!!