Still struggling with path on local and server environment.....

I got a redir Code Within a grid Button and in local test it works but when it’s on server not

sc_redir(’…/…/…/file/doc/eos_sales_doc/COND_GEN_FORNITURA_LUGLIO15.pdf’,’_blank’);

??? how have I to modify the button code path ??? in order to make it working both on local and on server ??

Directory on local PC where the document is stored
C:\Program Files (x86)\Scriptcase\v8_new\wwwroot\scriptcase\file\doc\eos_sales_doc\COND_GEN_FORNITURA_LUGLIO15.pdf

This is what it try to open once deployed on Server based on button sc_redir
http://kfive.myscriptcase.com/file/doc/eos_sales_doc/COND_GEN_FORNITURA_LUGLIO15.pdf

This is the real correct FTP directory on Server
/public_html/eosb2b/_lib/file/doc/eos_sales_doc/COND_GEN_FORNITURA_LUGLIO15.pdf

The path depends on your deployment directory. I suggest you use advanced deployment and set the directories. This probably resolves your problems.
It is a standard way in scriptcase so it shouldnt be all that difficult.
Make an advanced deployment setting. Export one application and see if it works. If needed check the slashes (specially the beginning and ending ones).
Then generate a simple app and check the generated source code. The deployment paths are in top of one of the main scriptcase generated files.
After you figured it out it should be easy to get everything working… Just deploy everything with that advanced deployment setting…

Thanks RR … !!!
I will try to go in deept About your hints !!

Also, your redir path is wrong.
It should be:
sc_redir(’…/_lib/file/doc/eos_sales_doc/COND_GEN_FORNITURA_LUGLIO15.pdf’,’_blank’);

jsb