dframeli
03-18-2009, 12:53 PM
I have a new and seemingly huge new project to work on.
We have a database that our database administrator is willing to run a script on nightly. The result of this action will be a CVS file containing information that is specific to my departments needs.
At first, I need to present visitors to my site with a way to pear the data down to a more manageable size. Prior to displaying the CSV file contents, I thought I would display a set of column headers with checkboxes. Using the checkboxes, I'd like to give visitors to my site the ability to decide which columns of data they want to hide or display.
After they've made their selections and pressed an "OK" button, I'd like to display the remaining contents of the CSV file as a table in a seperate window.
The next part is very Excel like... At the top of each column, I'd like to include a series of drop down menus that visitors to my site can use to filter the list further.
In my case, I don’t necessarily know every possible value for any given column. For example, imagine that one column contains city, another state and the third contains zip code. I could assume all 50 states in the union, however the actual data might also include Puerto Rico and the US Virgin islands. Or I might assume every zipcode in the US, however the actual data might include zip codes for Canada, etc... For this reason, I would like to populate the drop down menus dynamically.
Can anyone suggest a way for me to load the contents of the CSV file into a table, a sensible way for visitors to remove unneeded columns, a way to auto-populate the drop down menus used to filter the remaining table, and finally, an efficient way to filter and then display the remaining data?
If you have experience with something like this, or know of forum posting already dealing with these subjects, please feel free to point me in the right direction.
Thanks!
We have a database that our database administrator is willing to run a script on nightly. The result of this action will be a CVS file containing information that is specific to my departments needs.
At first, I need to present visitors to my site with a way to pear the data down to a more manageable size. Prior to displaying the CSV file contents, I thought I would display a set of column headers with checkboxes. Using the checkboxes, I'd like to give visitors to my site the ability to decide which columns of data they want to hide or display.
After they've made their selections and pressed an "OK" button, I'd like to display the remaining contents of the CSV file as a table in a seperate window.
The next part is very Excel like... At the top of each column, I'd like to include a series of drop down menus that visitors to my site can use to filter the list further.
In my case, I don’t necessarily know every possible value for any given column. For example, imagine that one column contains city, another state and the third contains zip code. I could assume all 50 states in the union, however the actual data might also include Puerto Rico and the US Virgin islands. Or I might assume every zipcode in the US, however the actual data might include zip codes for Canada, etc... For this reason, I would like to populate the drop down menus dynamically.
Can anyone suggest a way for me to load the contents of the CSV file into a table, a sensible way for visitors to remove unneeded columns, a way to auto-populate the drop down menus used to filter the remaining table, and finally, an efficient way to filter and then display the remaining data?
If you have experience with something like this, or know of forum posting already dealing with these subjects, please feel free to point me in the right direction.
Thanks!