Open a folder with sc_link macro ?

Hello,

I would like to use the sc_link macro on onRecord event to create a clickable link on each line of a column.

For example i’m using this : if ({company} == “E”) {sc_link(company,…)}
No problem to call another scriptcase application or an URL.

But i would like to open a specific directory like c:/companyfiles/2011/ when the user click on the link in the grid application. The folder is in the same server as scriptcase applications.

There is a solution to open a directory ?

Thank you for your help !

Re: Open a folder with sc_link macro ?

follow those steps…

  1. create new variable like “var_print”
  2. Events ‘On Record’ updPrintLink();
  3. Create Module updPrintLink in ‘Programming/PHP Module’ and use this syntax accordingly your requirement
    {var_print} = ‘<a href="…/program_path/pdfreport_print.php?id=’.{id}.’" target="_blank">Print</a>’;

hope it works for you

Re: Open a folder with sc_link macro ?

Thanks you for your reply !

But it don’t works for me. Or i don’t use it correctly… I don’t know.
It works for you ?
You can open a folder like “my computer” folder, or open a files ???

Some people told me it’s not possible to open a Windows folder with a link in php application…

Re: Open a folder with sc_link macro ?

find out the image upload tutorial and get the help from there…