Hi, I'm quite new on PowerApps!
I'm using a PenInput to capture a signature and store as a BASE64 Image in a sharepoint list.
The PenInput1 is embedded in a DataCard of the Form1_1. here is the code to set the signature image:
Set(Signature_Image, JSON(PenInput1.Image, IncludeBinaryData));SubmitForm([@Form1_1])
The update property of the Data Card is correctly set as: Signature_Image
The image is correctly stored in my SP List in a Field called Signature.
I need to display the picture in a Gallery, so I embedded an image control. In the Image property I use the following code:
Substitute(ThisItem.Signature, """","") to eliminate comma at the beginning ant at the end of the string.
The App works perfectly on my Browser showing correctly the signature, but on mobile it show anything.
Anyone can help me with this?
Thanks
Hello @Marco-N ,
The doc suggest using HTTPS link for better compatibility.
https://docs.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/control-image
Can you try with your image's url and see how it goes?
If it's not fixed, I'm afraid I can't help further, sorry.
Hi @Marco-N ,
That actually should work (I use it on mobile devices slightly differently as below).
UpdateContext(
{
Signature_Image:
With(
{
wJSON:
JSON(
PenInput1.Image,
JSONFormat.IncludeBinaryData
)
},
Mid(
wJSON,
2,
Len(wJSON) - 2
)
)
}
)
The Data Card Update should be the same, but you just need
ThisItem.Signature
on the Image.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
Visit my blog Practical Power Apps
Thanks Warren,
Yes it works... It starts working after publishing... I thought saving was enough to display the updates. As I said, I'm quite new on PowerApps.
User | Count |
---|---|
251 | |
102 | |
94 | |
48 | |
37 |