java - Export GAE App Engine Datastore entities to csv -


i have list of entities , properties displayed in html table add capability users click button download entity data .csv file. best way go doing this? have looked @ creating csv file directly html table javascript, won't compatible across browsers. there easy way have datastore write out csv files?

if can guarantee can export data in user request timeout can create doing in handler querying , creating csv send appropriate headers start download there might time these become big exports should use task queue.

the task query , write blobstore or gcs when ready notify user ready download. can make push channel api it's instant. flow be:

click export button create channel connection , show loading icon run task channel id , needed info create when done send message channel onreceive download complete location.href=your.csv 

this sample, can improve it not require wait , show link when refreshed or something.


Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -