cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gennarodp
Post Patron
Post Patron

take pictures with a button and then visualize it to save in a collection

Hello, 

i am realising an app that use camera.

I would like to take a picture (selfie) with camera of ipad, with a button, then this image is visualised next to camera control, the with an other button i can save it in a collection.

 

1)What formula can i use on "on select property" for button to take picture ?

2)What formula can i use on image to visualise image taken ?

3)How can i save it in a collection ?

 

Thank you

2 REPLIES 2
RandyHayes
Super User
Super User

@gennarodp 

 

If you are planning on this from a mobile device then just use the Add Picture Control...it will do the first two parts for you automatically.

Then, if for some reason you want this in a collection, you can put a Formula on the OnChange of the addmedia button in it: Collect(colPics, Self.Media)

 

If you must use the Camera control, then you really don't need the button as the user can tap on the camera image to capture.

If you still want to add a button for some reason, then put this Formula on the OnSelect of the button.  NOTE, if you decide to just use the camera image as the thing that people would click/tap on in order to capture the photo, then this would go on the OnSelect of the Camera control.

Collect(colPics, Self.Photo)

 

Note between the two options above...the first with the media control will have photos in the Value column.  The camera control will have images in the Url column.

 

I hope this is helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Hello @RandyHayes ,

thank you for your answer.

 

I tell you my architecture's app.

 

I have a camera control called "Camera1" with following properties:

 

Onselect: False

OnStream:100

Streamrate:100

 

i have a button with following properties:

 

Onselect: UpdateContext({Takenpic:Camera1.Stream})  --> i have setted variable takenpic

 

Then i have an image called "Image13", that have the following properties:

 

Image:Takenpic 

 

I would like to save the photo in "Image13", in a powerapps collection called "shoppingcart", in the column "Image".

 

Then, i would like to know how use internal camera of mobile device on this way.

 

The app works on notebook with camera, but doesn't work on my ipad (work on external camera).

 

Thank you

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,569)