This is a bit complicated.
1. I have a Gallery_1. Gallery_1 is displaying images from a SharePoint Library by way of a Collection (col_Inspection_Photos).
2. The OnVisible of the screen is preparing two collections; one is bringing in all images from the SP Library, the other is placing
all those images in a final collection - (I believe there is a redundancy here, but I haven't addressed it as yet).
ClearCollect(col_All_Resume_Photos,col_Inspection_Photos);
ClearCollect(col_Final_Inspection_Photos,col_All_Resume_Photos)
3. Gallery_1 Items has - (
the collection above and below LOOK the same, but they are not)
If(RPIPS_Photo_Type_Radio.Selected.Value = "Track Photos",
Filter(col_Final_Inspection_Track_Photos ,Inspection_Number = RPIPS_Inspection_Number_Fld.Text))
2. I have an Add Media button. The Add Media button is adding additional images to Gallery_1 as necessary.
3. In the representation below the first two images are from the SP Library, by way of
col_Final_Inspection_Track_Photos, the third image
was added using the Add Media button.
4. The Add Media button is adding any new images to Gallery_1 and collection
col_Final_Inspection_Track_Photos. All of the images are to
be previewed in a gallery on another screen.
Add Media Button 'OnSelect' has -
If(RPIPS_Photo_Type_Radio.Selected.Value = "Track Photos",
Set(
varInspectionPhotoName,
GUID()
);
Collect(
col_Final_Inspection_Track_Photos,
{
DisplayName: RPIPS_Image_Description_TI.Text & "-" & RPIPS_Inspection_Number_Fld.Text & ".jpg",
Id: varInspectionPhotoName,
Description: RPIPS_Image_Description_TI.Text,
Inspection_Number: RPIPS_Inspection_Number_Fld.Text,
Photo_Type: "Track Photos",
Value: RPIPS_Add_Uploaded_Photo_Media_Button.Media,
ImageSource: RPIPS_Add_Uploaded_Photo_Media_Button.Media,
ImageDescription: RPIPS_Image_Description_TI.Text & "-" & RPIPS_Inspection_Number_Fld.Text
}
)
);
5. The Review gallery displays all three images, but only if I use both 'ThisItem' commands
ThisItem.Thumbnail.Medium & ThisItem.Value.
If I use only the ThisItem.Thumbnail.Medium only the + and Power Apps images appear.
If I use only the ThisItem.Value only the food image appears.
Preview Gallery Items has -
Filter(col_Final_Track_Inspection_Photos,Photo_Type = "Track Photos" && Inspection_Number = RTPGC_Report_Number_TI_3.Text)
Gallery Image -
ThisItem.Thumbnail.Medium & ThisItem.ImageSource
6. The screen above has a Create PDF button that has the following formula, that uses the content of
Resume_RTPG_Container
to populate the PDF Viewer document control.
Set(
varResumeTrackPhotosReportPDFBlob,
PDF(
Resume_RTPG_Container,
{
Orientation:PaperOrientation.Portrait,
Size:PaperSize.A4,
Margin:"0px",
DPI: 50})
);
7. The goal is to have all of the images appear in a PDF Viewer control. I can get all of
the image descriptions to show, but only the food image appears in the PDF Viewer.
8. The PDF View Document has -
varResumeTrackPhotosReportPDFBlob
9. I am unable to configure this approach in a way where all of the images show together.
What am I missing?
