-
Me again, nearly finished with my project, loving tabulator! I'm having issues with csv downloads though as datetime and date cells that output to csv in the following format: But if I run the csv download option in Anvil it produces what is essentially the string format of the datetime or date as it is in the cell on a repeating table. Am I missing an encoding option? Would prefer to utilise tabulator as its already using the filters and dataset in the client. example ap below: Would appreciate any hints please! Many thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yeah - you'll need to use the Tabulator.modules.add("Accessor") Then add this to your date/datetime columns def accessor_date(value, data, type, params, column, row):
return value.isoformat() and then in your columns {"title": "Today", "field": "some date and time", "headerSort": True, "formatter": "datetime", "formatter_params":
{"format": "%d %b %Y, %H:%M:%S"}, "width": 180, "accessor_download": accessor_date}, |
Beta Was this translation helpful? Give feedback.
Yeah - you'll need to use the
Accessor
ModuleThen add this to your date/datetime columns
and then in your columns