cancel
Showing results for 
Search instead for 
Did you mean: 

How to keep photo preview in control Attachment

sapwolf
Explorer
0 Kudos

Hi Experts

I have an application where I add some images from the camera. My problem is generated when I take the image I leave the page and when I return the preview of the image taken is not maintained. Is there any way to keep it?

I appreciate your help.

sapwolf
Explorer
0 Kudos

Mr. bill.froelich I appreciate your comments and support.

Accepted Solutions (0)

Answers (1)

Answers (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert

For the attachment control you can set the Value metadata property to a rule that returns the list of attachments you want pre-populated in the control. The rule needs to return an array of AttachmentEntry objects. You create those using createAttachmentEntry.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

The key thing to know is that the existing attachment must be saved out to the device so the path can be used in the createAttachmentEntity call.