Hi Bill,
Im not sure if i understrand correctly, but you can try something like that:
static public function computeUrl($tableId, $columnId, $inputValues) {
$reg = $inputValues['weblink'];
$url = '';
if ($reg != '') {
$url = '<a href="www.somefictitiousurl.com';
$url .= $reg;
$url .= '">'.$reg.'</a>';
}
return $url;
}
public function initialize() {
...
$registry->addCellFilter('query', 'your_layer_name', 'weblink',
array('weblink'),
array('ClientLachatTableRules',
'computeUrl'));
...
}
I am experimenting with the URL column in the query result table in
the test project. I would like to associate this with a new field
"weblink" in the polygon.dbf file so that a working link to
www.somefictitiousurl.com is produced. How do I edit table rules to
accomplish this?
Bill
_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users
_______________________________________________
Cartoweb-users mailing list
[email protected]
http://lists.maptools.org/mailman/listinfo/cartoweb-users