[Cartoweb-users] Re: TableRules and $inputvalues
    Giorgio Plazzotta 
    plazzotta at tiscalinet.it
       
    Wed Apr 19 18:10:26 EDT 2006
    
    
  
Alexander 
print_r($inputvalues) returns to me just  array()
i think it shoudn't.. true?
Giorgio
> Giorgio,
> try adding something like
> print_r($inputValues);
> or
> pre($inputValues);
> in computeQueryUrl().
> Thus you'll see what's available in the function argument and possibly
> what's going wrong.
> AS
>
> 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