URL Field

Check you spelling.

you show parsing error "Parse error: syntax error, unexpected ‘$_SESSION’ (T_VARIABLE) in C:\Program Files\NetMake\v9\wwwroot\scriptcase\app\woodshoop\ grid_plans\grid_plans_grid.class.php on line 2280’

Its seems to be looking for ‘woodshoop’ but you are looking for ‘woodshop’

Just a thought!!

David

Once I removed the " right after the plans/ it worked great. {bt_pdf}=’<a href=“http://localhost/woodshop/pdf_files/plans/’.{url}.’” target="_blank">View PDF</a>’;

I want to than Paul for all his help and taking the time to help me.

@gehrenfeld here’s another way to do it also.


1.  First create a new field and name it "link" without the quotes.
2.  Under "EVENTS" and "onRecord" use the following code.


sc_lookup(ds, "SELECT file FROM your_table WHERE id = ".{id});
{link} = "<a href='../../../file/doc/uploads/{name}/".{ds[0][0]}."' download><img src='http://YourDomain.com/images/PDF_Img_40.png' height=18></a>";