January 18, 201412 yr 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.
January 18, 201412 yr 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
January 18, 201412 yr 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
January 18, 201412 yr Author 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";"")
January 18, 201412 yr 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
January 19, 201412 yr Author OK Thanks I will designate the shared folder on the server to "W" and hopefully all will be good.
Create an account or sign in to comment