This topic is locked
[SOLVED]

 Include primary key as part of (View as) hyperlink

12/28/2009 5:06:03 AM
PHPRunner General questions
jpedwardspost author

Hi,
On the list page, I want to format a field (emailaddress) so that it 'Views as' Hyperlink.
Additionally, as part of the hyperlink, I want to pass the primary key of the current record e.g.
View the emailaddress as - Hyperlink :

http://www.abc.co.uk...imarykey=$value["pk_id"]&to=
Is there a way of doing this, have I got access to the primary key value for a record in the list view for use in a 'View as' hyperlink.
Regards,
JP.

J
Jane 12/28/2009

Hi,
use custom format on the "View as" settings dialog for this purpose.

Here is a sample:

global $data;

$value = "<a href=\"hhttp://www.abc.co.uk/my_emailing_script.php?primarykey=".$data["pk_id"]."&to=\">Link</a>";;



http://www.xlinesoft.com/phprunner/docs/_view_as__settings_custom.htm