Hassan Alnatour | 17 Jun 2012 18:50
Favicon
Gravatar

csv button

Dear ALL ,


How can i create a button that create a csv file for a cretin   table  ?


Best Regards
Cornelius Koelbel | 17 Jun 2012 20:20
Picon
Favicon

Re: csv button

Am 17.06.2012 18:50, schrieb Hassan Alnatour:
> Dear ALL ,
>
> How can i create a button that create a csv file for a cretin   table  ?
>
>
> Best Regards
Hi,

I think the exportable=True, the export-button should do this.

Kind regards
Cornelius

hasan alnator | 17 Jun 2012 21:17
Favicon
Gravatar

Re: csv button

can you explain  some more please ? 

best regards,


On Sun, Jun 17, 2012 at 9:20 PM, Cornelius Koelbel <cornelius.koelbel <at> lsexperts.de> wrote:
Am 17.06.2012 18:50, schrieb Hassan Alnatour:
> Dear ALL ,
>
> How can i create a button that create a csv file for a cretin   table  ?
>
>
> Best Regards
Hi,

I think the exportable=True, the export-button should do this.

Kind regards
Cornelius

Cornelius Kölbel | 17 Jun 2012 23:28
Picon
Favicon

Re: csv button

Hi,

in the SQLFORM.grid you can have an csv=True (default), that displays an export button, which will export to csv.

form = SQLFORM.grid(db.t_product_license,
                             onupdate=auth.archive,
                             fields=[ ...
                                         ],
                             links_in_grid=True,
                             csv=True,
                             details=False,
                             editable=True,
                             deletable=False,
                             create=False,
                             upload=URL("download"),
                             maxtextlength=100,
                             links=links)


Kind regards
Cornelius


Am 17.06.2012 21:17, schrieb hasan alnator:
can you explain  some more please ? 

best regards,


On Sun, Jun 17, 2012 at 9:20 PM, Cornelius Koelbel <cornelius.koelbel-PIliufFCYSYOIzVOb1FTxg@public.gmane.org> wrote:
Am 17.06.2012 18:50, schrieb Hassan Alnatour:
> Dear ALL ,
>
> How can i create a button that create a csv file for a cretin   table  ?
>
>
> Best Regards
Hi,

I think the exportable=True, the export-button should do this.

Kind regards
Cornelius



Gmane