4 Replies Latest reply on May 16, 2016 12:14 PM by Charlesdh

    Modify Insert Image script




      Through reading and looking at scripts I was able to modify a script that work. But,need assistant to modify the script so that it looks at a field called Pimage.

      The current script is:(For me it works)

      1. Set Variable [$path ; value:"file: & Get(DocumentsPath) & "Images/17DHZ1853 23441.jpg"]

      2. Go to Field [TestImage::Image]

      3.Insert Picture [Reference]

      What I need to do is have the script look at the field "PImage" in my Product table and then Insert the Picture of the named field "PImage". So If the PImage was "19DU1005 24020.jpg" the Picture for said product will show in Image container.


      I tried

      Set Variable [$path ; value:"file: & Get(DocumentsPath) & "Images/ & Product::Pimage"]

      But, Opens the dialog for me to select the image from the record in my Image folder.

      Also tried

      "Images/" & "Product::Pimage"

      But this erred looking for a operator.

      Any suggestion would be helpful.