Hello,
I'm trying to populate a collection from a camera control. I am using the following code on a button
Collect(pics2,{img:Camera2.Photo});Navigate(LicenseScreen,ScreenTransition.Cover)
When I go to look at the collection it produces the attached image. I've tried changing the column name. I've additionally tried deleting and recreating the whole thing, to no avail. Any help would be appreciated.
Thanks,
Steve
Solved! Go to Solution.
If you are taking the photo from a button (rather than from the OnSelect of the camera control) you need to use the Stream property instead of the photo property, e.g.
Collect(pics2,{img:Camera2.Stream});Navigate(LicenseScreen,ScreenTransition.Cover)
You also have to set the Stream rate property of the camera to 100.
Frustrating that it is inconsistent (Photo vs Stream) as this catches a lot of people out.
If you are taking the photo from a button (rather than from the OnSelect of the camera control) you need to use the Stream property instead of the photo property, e.g.
Collect(pics2,{img:Camera2.Stream});Navigate(LicenseScreen,ScreenTransition.Cover)
You also have to set the Stream rate property of the camera to 100.
Frustrating that it is inconsistent (Photo vs Stream) as this catches a lot of people out.
Hi @sgerschutz ,
Do you add another button control within your app to capture the pictures taken by Camera control?
Based on the issue that you mentioned, I think this issue may be related to your operation. The Camera control would take a picture only when you click the Camera control. If you press the another button to collect the pictures captured via the Camera control, the result the Camera2.Photo formula would return Blank (Just as the screenshot you provided).
As an fixed solution, please consider take a try with the following workaround:
Set the OnSelect property of the Camera control to following:
Collect(pics2, {img:Camera2.Photo})
Set the OnSelect propert of the Navigate Button control to following:
Navigate(LicenseScreen,ScreenTransition.Cover)
Please take atry with above solution, then check if the issue is solved.
Best regards,
You're a lifesaver! This fixed my issue flawlessly!
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
207 | |
187 | |
82 | |
54 | |
37 |
User | Count |
---|---|
288 | |
245 | |
119 | |
78 | |
55 |