Custom "View As" to output field as URL |
5/18/2012 3:10:33 PM |
PHPRunner General questions | |
![]() Trying to add a field to export which is the key field value formatted as URL to the view page of the item. So people can export large amount of items and be able to copy links and paste into Word docs.
$value = "<a href=\"http://localhost/bdrlocal/ASSUMPTION_view.php?editid1=".rawurlencode($data["ASSUMPTION_ID"])."\">".$data["ASSUMPTION_ID"]."<a/>"; |
|
![]() |
Sergey Kornilov admin 5/18/2012 |
There us no need to use server address at all. Instead of http://localhost/bdrlocal/ASSUMPTION_view.php you can simply use /bdrlocal/ASSUMPTION_view.php |
![]() |
mcebula author 5/21/2012 |
Leaving off server prefix works in UI but for some reason works differently in export. I keep getting some kind of "file///" prefix inserted before - example file///c:\bdrlocal\. |
![]() |
Sergey Kornilov admin 5/21/2012 |
Check system variable $_SERVER['SERVER_NAME']. |