-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
javascript to export table data as .xls file #83
base: master
Are you sure you want to change the base?
Conversation
This reverts commit 796ca7f.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like what you have so far and I thought your demos this morning went really well! Thank you for the progress so far!
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> | ||
<script src="//cdn.rawgit.com/rainabba/jquery-table2excel/1.1.0/dist/jquery.table2excel.min.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd recommend downloading these to the BLIS folder and putting them somewhere so they can be accessed locally. There is a bunch of javascript already in htdocs/js
for this reason.
Additionally - using these libraries is fine, but please test on the ancient bundled version of Firefox (5.x I think?) with the BLIS Windows version to make sure the libraries and your code works there as well.
# TAKE NOTE! | ||
# For this to work properly, you need to make sure that _all_ of these | ||
# required files are not outputting anything to the browser. | ||
# https://github.com/PHPOffice/PHPExcel/blob/1.8/Documentation/markdown/Overview/08-Recipes.md#http-headers | ||
# Ensure that these files are _not_ encoded as "UTF-8 with BOM" (Byte Order Mark) | ||
# since that also counts. They should be "UTF-8". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar comments for this file, as above.
htdocs/includes/page_elems.php
Outdated
// $query = "(SELECT CONCAT(table_name, ':', column_name) as field_name FROM | ||
// Information_schema.columns where table_name = 'patient') UNION | ||
// SELECT CONCAT(table_name, ':', column_name) as field_name FROM | ||
// Information_schema.columns where table_name = 'specimen') UNION | ||
// (SELECT CONCAT(table_name, ':', column_name) as field_name FROM | ||
// Information_schema.columns where table_name = 'specimen_type');"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// $query = "(SELECT CONCAT(table_name, ':', column_name) as field_name FROM | |
// Information_schema.columns where table_name = 'patient') UNION | |
// SELECT CONCAT(table_name, ':', column_name) as field_name FROM | |
// Information_schema.columns where table_name = 'specimen') UNION | |
// (SELECT CONCAT(table_name, ':', column_name) as field_name FROM | |
// Information_schema.columns where table_name = 'specimen_type');"; |
Better to not commit commented code
|
||
$("#report_content_table5").table2excel({ | ||
// exclude: ".excludeThisClass", | ||
name: "Daily Log - Patients", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can probably replace this with a localized string from somewhere
Co-authored-by: Mitchell Rysavy <[email protected]>
Co-authored-by: Mitchell Rysavy <[email protected]>
Co-authored-by: Mitchell Rysavy <[email protected]>
read only
No description provided.