Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 3961 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

 

Posted

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

Posted

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";"")

Posted

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

This topic is 3961 days old. Please don't post here. Open a new topic instead.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.