[Cartoweb-users] Re: TableRules and $inputvalues
Pierre GIRAUD
pierre.giraud at camptocamp.com
Thu Apr 20 02:51:32 EDT 2006
Hello Giorgio,
What is the LAYER definition in your mapfile corresponding to the
requested feature(s) ?
And what are the attribute field available in the corresponding data
(shapefile, postGIS table, etc ...) ?
Regards
Pierre GIRAUD
Giorgio Plazzotta wrote:
>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
>>>
>>>
>>
>>
>
>_______________________________________________
>Cartoweb-users mailing list
>Cartoweb-users at lists.maptools.org
>http://lists.maptools.org/mailman/listinfo/cartoweb-users
>
>
More information about the Cartoweb-users
mailing list