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
}
);
Meanwhile, the OnSelect code for the camera icon is the following:
Select(Camera1)
The OnSelect code for Camera1 works perfectly, but for some reason, 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 my Select(Camera1) code for the camera icon is not working? How can I get this camera icon to behave exactly the way Camera1 does?
