In my app I have a camera control and a camera icon. I want the user to be able to click on a camera icon so that it triggers the same effect as clicking on the camera control. The OnSelect code for the camera control "Camera1" is the following:
Set(
varName,
GUID()
);
Collect(
colImages,
{
DisplayName: varName & ".jpg",
Id: varName & ".jpg",
Value: Camera1.Photo
}
);
The OnSelect code for Camera1 works perfectly (see first arrow in screenshot), so then I tried pasting the same exact code into the OnSelect of the camera icon (second arrow in screenshot). But whenever the user click's on the camera icon, it takes a blank photo and fails to add it to the attachment list. My app is modeled after this Reza Dorrani youtube video. Does anyone know why that code for the camera icon is not working? How can I get this camera icon to behave exactly the way Camera1 does?
I think you may be out of luck: