0

Code to copy a picture from table to table, please!

Apparently the picture was copy into the other location,but no image at all. Only shows the top right menu and the pictures name.

3 replies

null
    • Joelle_Clermont
    • 5 yrs ago
    • Reported - view

    I have the same question!! Need to copy an image in another image field. I know we can use a formula field to reach for the image in another table, but I need it to be an image field in both table

    • Sean
    • 5 yrs ago
    • Reported - view

    I know this isn't going make copying pictures work, it's more of an observation. When I created a database and then created 3 tables, I stored one picture in each table and then tried to copy using the record() function in a button. I got the same menu in the Image field that Jorge mentions and when I try to save the image it pops up an error dialog. This is the code for the button...

     

    let t := this;
    t.(T1Image := record(Table3,3).T3Image)

     

    I decided to try copying the "image" to a text field and got this... C3/shutterstock_184342850.jpg. So it looks like record() function is actually returning a reference to the image instead of the image itself. The "C3" is a reference to the 3rd table and the 3rd record Id. I guess the Formula field can resolve the reference like Joelle says, but the Image field can't.

    • sebastian
    • 3 yrs ago
    • Reported - view

    You can display one picture which is uploaded in an Image field in one table to another table using a formula field.

    with the formula:

     

    (select 'table').image

Content aside

  • 3 yrs agoLast active
  • 3Replies
  • 1761Views