cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kudo Collector
Kudo Collector

How do i reset or clear the picture that was cached in the Camera1.Photo

How do i reset or clear the picture that was cached in the Camera1.Photo  from a Camera Screen.  This Camera1.Photo always contains the previous snapped picture.... and even if I am trying to ADD A NEW RECORD OF VISITOR,  thisItem.Image which is supposedly blank shows the Camera1.Photo from the previously shot taken by the previous vISITOR who logged into the APP.

 

So for example, a new users registers in the app and right away, he sees a PICTURE of someone in his newForm's image  (from the camera1.photo of previous user who registered)

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Anonymous
Not applicable

Re: How do i reset or clear the picture that was cached in the Camera1.Photo

Hi JenVitug 

 

This probably depends on how you saved the image, you mentioned a chache, which indicates you may be working with collections? In that case you could use ClearCollect(collectionname) to clear the image saved in the collection for when a new user accesses the form.

 

This ClearCollect function could be embedded in the OnVisible property of the NewForm screen, or perhaps as part of the navigation when a user gets to the new form screen. E.g.

 

Navigate(NewFormScreen, Fade); ClearCollect(collectionname)

 

Curious to hear if that worked.

View solution in original post

Highlighted
Community Support
Community Support

Re: How do i reset or clear the picture that was cached in the Camera1.Photo

Hi @JenVitug,

 

Thanks for the feedback.

Currently for the camera control, there is no Reset property could be used to clear the .photo property, if you would like this property to be added in the future, then please consider submit it as an idea under PowerApps idea forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Further, to workaorund this, please don't use the Camera1.photo within an image control directly, as @Anonymous suggested, consider take use of a variable, then when naviagte to the EditForm, initialize the variable(collection) with blank value. 

And, under the OnSelect property of the camera control, update the variable (collection) with the Camera1.photo value.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Anonymous
Not applicable

Re: How do i reset or clear the picture that was cached in the Camera1.Photo

Hi JenVitug 

 

This probably depends on how you saved the image, you mentioned a chache, which indicates you may be working with collections? In that case you could use ClearCollect(collectionname) to clear the image saved in the collection for when a new user accesses the form.

 

This ClearCollect function could be embedded in the OnVisible property of the NewForm screen, or perhaps as part of the navigation when a user gets to the new form screen. E.g.

 

Navigate(NewFormScreen, Fade); ClearCollect(collectionname)

 

Curious to hear if that worked.

View solution in original post

Highlighted
Community Support
Community Support

Re: How do i reset or clear the picture that was cached in the Camera1.Photo

Hi @JenVitug,

 

Thanks for the feedback.

Currently for the camera control, there is no Reset property could be used to clear the .photo property, if you would like this property to be added in the future, then please consider submit it as an idea under PowerApps idea forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Further, to workaorund this, please don't use the Camera1.photo within an image control directly, as @Anonymous suggested, consider take use of a variable, then when naviagte to the EditForm, initialize the variable(collection) with blank value. 

And, under the OnSelect property of the camera control, update the variable (collection) with the Camera1.photo value.

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Anonymous
Not applicable

Re: How do i reset or clear the picture that was cached in the Camera1.Photo

Hi @JenVitug ,

 

You can use the following code:

For get the image:

UpdateContext({PhotosVariable: Camera1.Photo})

For clear:

UpdateContext({PhotosVariable: Blank()})

 

Obviously in the "IMAGE" section must be "PhotosVariable".

 

If it doesnt work try with: "Camera3.Stream"

but for this you need to put into "StreamRate" of Camera the value: "100"

 

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,152)