Barry685 Posted January 18, 2014 Posted January 18, 2014 On a local machine I have been using the following expression as part of a script to set an image reference to a container field: If (inv_INVOICE_LINES::pose<>" ";"imagewin:/W:/" &INV_INVOICES::id_Session&"/Previews/" & Trim(inv_INVOICE_LINES::pose) & ".jpg";"") Now I have moved the Fm12 file to a server and have moved all the images to the root drive of the server in a folder named "images". In other words the images are now in c:images ... on the server. All the sub folders previously on the "W" drive have been moved as well. I can't seem to get the imagewin expression to find the new location.
Wim Decorte Posted January 18, 2014 Posted January 18, 2014 Keep in mind that most everything is evaluated by the client in this case. So if you change the path to c:images, the client machine will look on its OWN c: drive, not the server's. The fact that the file is hosted is irrelevant for the most part since the FM "code" is executed by the client
comment Posted January 18, 2014 Posted January 18, 2014 I can't seem to get the imagewin expression to find the new location. It needs to follow this pattern: imagewin://computerName/shareName/directoryName/fileName See: http://www.filemaker.com/13help/en/html/create_db.8.42.html#1087742
Barry685 Posted January 18, 2014 Author Posted January 18, 2014 So if the server name is "mainserver" would this than be correct? If (inv_INVOICE_LINES::pose<>" ";"imagewin:/mainserver/c:/images/" &INV_INVOICES::id_Session&"/Previews/" & Trim(inv_INVOICE_LINES::pose) & ".jpg";"")
Wim Decorte Posted January 18, 2014 Posted January 18, 2014 No, the syntax that Comment mentioned uses the UNC format of a network share. What you had before was (very likely) a drive letter (W) mapped to a network share The common ground here is the network share. First you need to decide whether you want to work with mapped drives or not, or if you want to address the network share directly
Barry685 Posted January 19, 2014 Author Posted January 19, 2014 OK Thanks I will designate the shared folder on the server to "W" and hopefully all will be good.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now