4 Replies Latest reply on Sep 19, 2014 11:37 AM by ultranix

    Full image path variable doesn't work

    ultranix

      Title

      Full image path variable doesn't work

      Post

      I created calculation according to filemaker's info how to create file paths, which is later used as a variable $Filename:

      "imagewin:/C:/Files/Veiklos/REMAX/Objektai/Visi/" & Right(Year (OBJECTS_Base::date_start);2) &  Right ("0" & Month(OBJECTS_Base::date_start);2) &  Right ("0" & Day(OBJECTS_Base::date_start);2) & " " &
      OBJECTS_Base::id_contract & " " &
      OBJECTS_Base::street & " " & OBJECTS_Base::home_num &
      If (not IsEmpty (OBJECTS_Base::flat_num); "-" & OBJECTS_Base::flat_num) &
      "/Out/" &
      OBJECTS_Base::folder_name & "/" &
      OBJECTS_Base::id_contract & " - " & "01.jpg"

      Which produces result: imagewin:/C:/Files/Veiklos/REMAX/Objektai/Visi/140901 AI-P00075 Vydūno g. 9-69/Out/140831/AI-P00075 - 01.jpg

      Real path to image: C:\Files\Veiklos\REMAX\Objektai\Visi\140901 AI-P00075 Vyduno g. 9-69\Out\140831\AI-P00075 - 01.jpg

      But when I try to run a script, which would insert picture into container field, but when I run script debugger - I get error code 100 (File is missing). But it's not missing.

      What am I doing wrong?