
Hello,
I have a small question......I'm building an application where you can add 1 to 3 pictures to a gallery. Now I want to insert the pictures into my excel database. But I've got a problem, How can I select the picture that I want to insert? because now the application adds only the last picture three times........ I've attached some photos of my application and database. Hopefully someone can help me.....?
Rob
Sorry for my bad Englisch.....
My code:
If(CountRows(CameraPhotos) = 1; Patch(ImageTable; Defaults(ImageTable);
formScan.Updates;
formDiscription.Updates;
{Image1: Camera1.Photo}); If(CountRows(CameraPhotos) = 2; Patch(ImageTable; Defaults(ImageTable);
formScan.Updates;
formDiscription.Updates; {Image1: Camera1.Photo};
{Image2: Camera1.Photo}); If(CountRows(CameraPhotos) = 3; Patch(ImageTable; Defaults(ImageTable);
formScan.Updates;
formDiscription.Updates; {Image1: Camera1.Photo}; {Image2: Camera1.Photo};
{Image3: Camera1.Photo}))))
Hi @RobPetrogas,
Instead of selecting one camera control for 3 times and using Patch to update the image, I would like to suggest that you use 3 camera controls and insert each one to each image column data card.
In the Edit Form, select the image data card, unlock it and insert a camera control. Then you can also insert a Image control beside it to make the taken photo shown in Image control. Then set the Update property of the image data card to:
ImageControlName.Image
Do this for each image data cards. Then you would be able to save each images together with the SubmitForm function.
Regards,
Mona