Hi, i have an offline, online app, the user saves to a local connection, including images and signature, then when online, submits to sharepoint. I need the ability for the user to be able to go into the gallery (connected to local collection) and edit the images/signature before submitting to sharepoint. Only having problems with the image/signature side.
Here is a little more info, i add the image to a collection using
Collect(KBXCollection, {Title: Employee_ED.Selected.Value, Image1:Substitute(JSON(UploadedImage1.Image,JSONFormat.IncludeBinaryData),"""","")}); Reset(AddMediaButton1);Reset(Employee_ED);SaveData(KBXCollection,"KBXCollectKeep");Navigate(ED_Collection) the image is captured using an addpicture control
On the ED_Collection screen, i have a gallery with the data source set to KBXCollection, within the gallery, a chevron arrow navigating to another screen named CollectEdit2. On this screen, a textinput with the default value set to CollectGallery.Selected.Title and an add picture control with the UploadedImage5 sample set to;
If(IsBlank(AddMediaButton1.Media), CollectGallery.Selected.Image1, AddMediaButton1.Media)
On the same page, i have a button with the onselect set to Patch(KBXCollection, CollectGallery.Selected, {Title: Employee_2.Selected.Value, Image1: AddMediaButton2}) (I have also tried UploadedImage2)
I then have a button that saves all this through a flow onedrive to pdf; sample below
p> </p>
<p><strong>Images of work conducted:</strong></p>
<p><img src="&JSON(CollectGallery.Selected.Image1, JSONFormat.IgnoreBinaryData)&" type='image/png' style='width:75px;height:75px'><img src="&JSON(CollectGallery.Selected.Image2, JSONFormat.IgnoreBinaryData)&" type='image/png' style='width:75px;height:75px'><img src="&JSON(CollectGallery.Selected.Image3, JSONFormat.IgnoreBinaryData)&" type='image/png' style='width:75px;height:75px'><img src="&JSON(CollectGallery.Selected.Image4, JSONFormat.IgnoreBinaryData)&" type='image/png' style='width:75px;height:75px'></p>
<p> </p>
<table style='height: 5px;' width='564'>
<tbody>
<tr>
<td style='width: 555.2px;'><strong>Parts</strong></td>
Patch(KBXoffline, Defaults(KBXoffline),{Title: CollectGallery.Selected.Title,Image1: CollectGallery.Selected.Image1});
Remove(KBXCollection,ThisItem);
SaveData(KBXCollection,"KBXCollectKeep")
Just want to be able to add the image, then have the option to go back in to the entry and edit the image before submitting to sharepoint.