[Cartoweb-users] addColumnAdder
Oliver Christen
oliver.christen at camptocamp.com
Thu Feb 12 09:28:55 EST 2009
Hi
'parcis' is your new column id, you must pass existing column id(s) to the
computeUrl function, so i dont think you can use array('parcis') as 5th
parameter.
either pass an array of existing column ids, or use simply NULL.
regards
Oliver
----- Original Message -----
From: "wochter" <wochter at seznam.cz>
To: <cartoweb-users at lists.maptools.org>
Sent: Sunday, February 08, 2009 3:45 PM
Subject: [Cartoweb-users] addColumnAdder
> Hi,
> I'm trying to use foss4gTableRules plugin.
>
> addCellFilter from demo files works fine, but
> addColumnAdder cannot work for me. I modified the
> ClientFoss4gTableRules.php from demo files.
>
> Could you tell me what I have wrong in this?
>
> $WcolumnPosition = new ColumnPosition(ColumnPosition::TYPE_ABSOLUTE, 1);
> $registry->addColumnAdder('*', 'sw_ar_parcely',
> $WcolumnPosition, array('parcis'), array('parcis'),
> array('ClientFoss4gTableRules', 'computeUrl'));
>
>
> Error message:
> Class : CartocommonException
> Message : Error [2, Missing argument 3 for
> ClientFoss4gTableRules::computeUrl(),
> /home/mydata/www/cartoweb3/projects/test/plugins/foss4gTableRules/client/ClientFoss4gTableRules.php,
> 12]
> Backtrace:
>
> file: 12 -
> /home/mydata/www/cartoweb3/projects/test/plugins/foss4gTableRules/client/ClientFoss4gTableRules.php
> call: Common::cartowebErrorHandler(2, "Missing argument 3 for
> ClientFoss4gTableRules::computeUrl()",
> "/home/mydata/www/cartoweb3/projects/test/plugins/foss4gTableRule...",
> 12, Array(2))
>
> file: UNKNOWN - UNKNOWN
> call: ClientFoss4gTableRules::computeUrl("sw_ar_parcely", Array(1))
>
> file: 1048 -
> /home/mydata/www/cartoweb3/coreplugins/tables/common/TableRulesRegistry.php
> call: call_user_func(Array(2), "sw_ar_parcely", Array(1))
>
>
> Thank you
>
> wochter
>
>
>
> _______________________________________________
> 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