⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Export Selective Row Data



azsuman
  • profile picture
  • Member

Posted 24 January 2013 - 15:41 PM

Hi, from last couple of days I'm trying to export selective row data in a pdf file, but failing...

Pls, help me as early as possible.

davidoster
  • profile picture
  • Member

Posted 27 January 2013 - 17:33 PM

1. what theme do you use?
2. how do you select your rows?
3. where do you run your application? localhost? shared hosting?

You can see here for more information: http://domain-script-donzruth.blogspot.gr/2011/01/exsport-to-pdf-with-dompdf-in-code.html

azsuman
  • profile picture
  • Member

Posted 29 January 2013 - 07:22 AM

Dear David,
Thx, for your reply. now, I'm using flexigrid theme, want to select rows with checkbox and application is running on localhost.

However, i want to select some rows with help of checkbox and want to save those data at a PDF file, and i'm using TCPDF for PDF wich i already intrgrated with codeigniter.

Now, i need a button which will work like as Export button but default Export button exports all the data of tables. I want to export some selective data.

Need Help, Pls.

Regards,
Suman.

davidoster
  • profile picture
  • Member

Posted 30 January 2013 - 09:42 AM

I would use datatables to be honest with you because as a theme it has a row header that let you filter on every field and can be done on any number of fields or even all.

If this doesn't suite you then you need to create a dummy column, see this here: /topic/799-set-relation/#entry3111 where it will have the checkbox and then you will need to create a custom form for the button to export the data you need in pdf.
You can ajaxify the form that holds the button that exports so the page is not refreshed!
At least this is the way I would do it.

victor
  • profile picture
  • Member

Posted 30 January 2013 - 11:45 AM

It's doesn't works because He has an error in the export function. I have no time to learn those libraries but I get an error message when I have test him code.
Azsuman, publish your code.
Sorry, I'm really busy.