Python Forum
Buttons in table. Which row was selected to export.
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Buttons in table. Which row was selected to export.
#11
Sorry been a long weekend. Something i completely overlooked. Now just got to get BytestIO() to acdtaully raed the pdf. Shouldnt be too hard :/ . Thanks for all your help :)

Just to conclude, i found my error.
The line:
   file_data = BytesIO( selected_row.first().data())
Should in fact of been
file_data = BytesIO( selected_row.first().data)
changing .data() -> .data ..... data being the column name in which the pdf information was stored

Thanks for all the help Jones and Buran
Reply


Messages In This Thread
RE: Buttons in table. Which row was selected to export. - by KirkmanJ - Jul-09-2018, 08:06 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Flask export/upload database table in cvs/xlsx format steve87bg 4 7,052 Jun-19-2020, 01:46 PM
Last Post: steve87bg
  Want to scrape a table data and export it into CSV format tahir1990 9 5,533 Oct-22-2019, 08:03 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020