Type detection in table header
Type detection in table header
Hello all,
I'm trying to develop a complex application that will require dozens of reports with multiple types of data and formats. I'm not great with jQuery and so I was wondering if there was a way that instead of declaring the data types and formats in the head section like so:
[code]
oTable = $('#datatable').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"aoColumns": [{ "sType": "custom_date" },null,null,null,null]
});
[/code]
I could just write the type in the table header. Something like this example:
[code]
Date
Category
Subcategory
Explanation
Value
[/code]
It would be very useful because there are dozens of tables and they would require dozens of initializations. Also the structure of the tables might be changed and updated often. If something like this can't be done is there a simple way of using custom data types for multiple tables that have different structures?
I'm trying to develop a complex application that will require dozens of reports with multiple types of data and formats. I'm not great with jQuery and so I was wondering if there was a way that instead of declaring the data types and formats in the head section like so:
[code]
oTable = $('#datatable').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"aoColumns": [{ "sType": "custom_date" },null,null,null,null]
});
[/code]
I could just write the type in the table header. Something like this example:
[code]
Date
Category
Subcategory
Explanation
Value
[/code]
It would be very useful because there are dozens of tables and they would require dozens of initializations. Also the structure of the tables might be changed and updated often. If something like this can't be done is there a simple way of using custom data types for multiple tables that have different structures?
This discussion has been closed.
Replies
Allan