Hello,
I have an app for leave requests that have some PNG file loaded in Media that will be used as icons when adding new requests:
All was perfect until I have tested the application on my mobile device, where only one image is displayed and the rest not.
The application is published, and on the mobile app was used the same account as on PC.
What could be the problem?
Kind Regards,
Lucian
Solved! Go to Solution.
Because I could no longer delete this post, I have to make a correction:
The images were not used directly in the image control. Because I need a way to make the picture vary depending on some conditions the picture name was a string.
"appres://resources/"&If(And(Not(IsBlank(_SelectedLeaveType)),ThisItem.denumire = _SelectedLeaveType), ThisItem.iconselected, ThisItem.icon)
Because of that "appres://..." prefix, the Power Apps Studio was displaying the pictures as expected, except this approach is NOT supported in the published app. I found out after talking with support technicians, and their recommendation was either include the pictures in the database so the collection will load them as pictures, either use inside the function the name of the picture not the field containing the string.
So is my mistake.
Because I could no longer delete this post, I have to make a correction:
The images were not used directly in the image control. Because I need a way to make the picture vary depending on some conditions the picture name was a string.
"appres://resources/"&If(And(Not(IsBlank(_SelectedLeaveType)),ThisItem.denumire = _SelectedLeaveType), ThisItem.iconselected, ThisItem.icon)
Because of that "appres://..." prefix, the Power Apps Studio was displaying the pictures as expected, except this approach is NOT supported in the published app. I found out after talking with support technicians, and their recommendation was either include the pictures in the database so the collection will load them as pictures, either use inside the function the name of the picture not the field containing the string.
So is my mistake.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
187 | |
53 | |
52 | |
38 | |
37 |
User | Count |
---|---|
282 | |
97 | |
86 | |
80 | |
77 |