[Mapbender-users] Export ResultList to csv

Armin Retterath armin.retterath at gmail.com
Wed Apr 10 07:19:15 PDT 2013


hello,

i think this is only be possible in current trunk ;-) .
here is a sample sql. the export can be handled via element vars for module
resultList:

INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment,
e_title, e_element, e_src, e_attributes, e_left, e_top, e_width, e_height,
e_z_index, e_more_styles, e_content, e_closetag, e_js_file, e_mb_mod,
e_target, e_requires, e_url) VALUES('Erfassung
Bebauungspläne','resultList',2,1,'','Result List','div','','',NULL ,NULL
,NULL ,NULL ,NULL
,'','','div','mod_ResultList.js','../../lib/resultGeometryListController.js,
../../lib/resultGeometryListModel.js','mapframe1','','');
INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value,
context, var_type) VALUES('Erfassung Bebauungspläne', 'resultList',
'position', '[5,5]', 'position of the result list dialog' ,'var');
INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value,
context, var_type) VALUES('Erfassung Bebauungspläne', 'resultList',
'resultListHeight', '300', 'height of the result list dialog' ,'var');
INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value,
context, var_type) VALUES('Erfassung Bebauungspläne', 'resultList',
'resultListTitle', 'Suchergebnisse', 'title of the result list dialog'
,'var');
INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value,
context, var_type) VALUES('Erfassung Bebauungspläne', 'resultList',
'resultListWidth', '850', 'width of the result list dialog' ,'var');
INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name, var_value,
context, var_type) VALUES('Erfassung Bebauungspläne', 'resultList',
'tableTools', '[
      {
          "sExtends": "xls",
          "sButtonText": "Export als CSV",
          "sFileName": "abfrage.csv"
      },
      {
          "sExtends": "pdf",
          "sButtonText": "PDF-Export"
      }
]', 'set the initialization options for tableTools' ,'var');

regards
armin


2013/4/10 zorg <zorg at probesys.com>

> Hello,
>
> I want to export  the ResultList (from form search ) to csv file but I
> can't to active this button.
>
> Is it this method  "addGlobalButton"  in /javascripts/mod_ResultList.js   ?
>
> How to activate this option?
>
> Tank for your answer .
>
> Zorg
> ______________________________**_________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.**org <Mapbender_users at lists.osgeo.org>
> http://lists.osgeo.org/**mailman/listinfo/mapbender_**users<http://lists.osgeo.org/mailman/listinfo/mapbender_users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20130410/efbf60b2/attachment.html>


More information about the Mapbender_users mailing list