We're Moving to a New Support Platform – Starting June 1st!
We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.
You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.
While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.
We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.
Thanks for your continued support and trust – we’re excited to bring you an even better support experience!
This is not a question but rather a share, in case someone else here faces a similar challenge to me. No answer is expected.
I have an SQL database with 800+ rows that can be filtered using 12 different criteria.
I needed to dynamically assign a row number consistently starting with #1 for any given search result.
Long story short, here is how to do it:
A) First create an empty column number in first position in your database
B) Insert the following JS on the page where you datatable is displayed (I do this using hooks)
<script type="text/javascript">
jQuery(window).on('load',function(){
var drawIndex = false;
wpDataTables.table_1.api().on( 'order.dt search.dt', function ( e, dt, type, indexes ) {
wpDataTables.table_1.api().column(0, {search:'applied', order:'applied'}).nodes().each( function (cell, i) {
if (!drawIndex){
if (cell.innerHTML.includes('responsiveExpander')){
console.log(i+1);
cell.innerHTML = cell.innerHTML + (i + 1);
}else if (cell.innerHTML =='') {
cell.innerHTML = i+1;
console.log(i+1);
}
}
cell.innerHTML = i+1;
} );
drawIndex = true;
} ).draw();
});
</script>
Hi Sebastian
Thank you very much for sharing this, I am sure many of our clients will find it useful
Have a wonderful day!