[Cartoweb-users] TableRules and $inputvalues

Alexandre Saunier alexandre.saunier at camptocamp.com
Tue Apr 18 06:22:02 EDT 2006

try adding something like
in computeQueryUrl().
Thus you'll see what's available in the function argument and possibly 
what's going wrong.

Giorgio Plazzotta wrote:
> But in the
>     public function computeQueryUrl($tableId, $inputValues) {
>         if (!empty($inputValues['FID'])) {
>             $url = sprintf('<a href="%s%d" target="_blank">%s</a>',
>                            'http://some/base/url?id=',
>                            $inputValues['cod_loc'],
>                            I18n::gt('More'));
>         }
>         return array('url' => $url);
>     }
> i always get an error message of UNDEFINED INDEX on that field and this
> applies also if i try to change field.
> It seems that the $inputValues variable is not returning the content of the
> field
> and also if i just use the statement
>         $url = $inputValues['FID'];
> I get the error

More information about the Cartoweb-users mailing list