I created this app in my environment.
Everything works fine my environment.
I moved the app, in a Solution, to another environment, and I am experiencing the PDF display issue
in the new environment that I am not experiencing in my version.
Here is the Review Track Photos screen in my version of the app. The image is added in the Media
control of the Track Photo Screen and displayed here in the Gallery along with relevant data above.
A button on the above screen initiaites the PDF creation.
The Media control button has -
If(IP_Photo_Type_Radio.Selected.Value = "Track Photos",
Set(
varInspectionPhotoName,
GUID()
);
Collect(
col_Inspection_Track_Photos,
{
DisplayName: IP_Image_Description_TI.Text & "-" & IP_Inspection_Number_Fld.Text & ".jpg",
Id: varInspectionPhotoName,
Description: IP_Image_Description_TI.Text,
Value: IP_Add_Uploaded_Photo_Media_Button.Media
}
);
He is my version -
The photo capture screen. Clicking 'Review Track Photos' navigates user to review screen.
The 'Add Media' button has -
If(IP_Photo_Type_Radio.Selected.Value = "Track Photos",
Set(
varInspectionPhotoName,
GUID()
);
Collect(
col_Inspection_Track_Photos,
{
DisplayName: IP_Image_Description_TI.Text & "-" & IP_Inspection_Number_Fld.Text & ".jpg",
Id: varInspectionPhotoName,
Description: IP_Image_Description_TI.Text,
Value: IP_Add_Uploaded_Photo_Media_Button.Media
}
);
Here is the Review Track Photos Screen (in Edit, in Play it is all grey), where you can see the image taken appears in the gallery.
The Gallery Items has -
col_Inspection_Track_Photos
The 'Create Track Photos PDF Report' button has the following, and navigates
the user to the 'Track Photos PDF Report Screen'-
Set(
varTrackPhotosReportPDFBlob,
PDF(
RTPR_Track_Photos_Gallery,
{
Orientation:PaperOrientation.Portrait,
Size:PaperSize.A4,
Margin:"0px",
DPI: 50}));
Track Photos Screen in Play. No data or image is visible.
Same issue with the Invoice screen. Here it is in Edit mode.
Here is it in Play mode. No date displayed.