[Cartoweb-users] Cartoweb3 : Query results

Alexandre Saunier alexandre.saunier at camptocamp.com
Wed Jun 29 13:39:46 EDT 2005


David,

Perhaps this tip might fulfill your needs:
http://lists.maptools.org/pipermail/cartoweb-users/2005-June/000025.html
?

CartoServer returns a MapResult-typed object to CartoClient. Say 
$mapResult. This object contains several sub-result objects concerning 
various plugins. Query results are available in $mapResult->queryResult.

I see at least to ways of interacting with it:

- extends the "query" plugin client-part 
(coreplugins/query/client/ClientQuery.php) in your project and make your 
changes in your extended ClientQuery class.
See http://cartoweb.org/doc/xhtml/dev.newplugin.html#dev.newplugin.adapting
for details on how to adapt plugins.

- if you want to "export" your results after a first standard display, 
you may wish to create an export plugin such as one of the 3 already 
existing ones offered by CartoWeb: exportCsv, exportHtml, exportPdf.
Have a look at them (especially at their getExport() methods) to figure 
out how they work.

Hope this helps,

Alex

Caussin David a écrit :
> Hi,
> 
> I'm using cartoweb3 and i would like to present the results of the query 
> in my own php page.
> Is it possible? How can i do that? Which variable have i to use?
> 
> Thanks in advance.
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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