TypeError: oSettings.aoColumns[iColumn] is undefined
TypeError: oSettings.aoColumns[iColumn] is undefined
Hello =)
I have a problem with the datatable. I don't have a clue why this error appears. I had a look at possible causes to this problem, but didn't find a match with mine. As far as I know the tablebody and -header have exactly the same amount of entries and there's no problem with the sorting. This error appears every time I load the table for the first time after login, and sometimes it disappears after the first or fifth refresh. Then it don't occurs again, until i logout and login again. It's kinda annoying, because I don't have a solution for this. Perhaps you can help me with this issue =) that would be great.
BTW I'm using Datatable 1.9.4 and whenever this error occurs no data is loaded for the table. After several refreshs it's working like a charm.
Kind Regards Miriam
This question has an accepted answers - jump to answer
Answers
Can you link to a test case showing the issue please. Also, what happens if you update to 1.10?
Allan
Thank you for the fast reply, Allan.
I'm afraid. I don't have a test case for this, because it just appeared. But I can try to explain when it happens.
First some informations about the implementation:
The tabledata is loaded via fnServerParams, where a method 'loadListData' is called. So the data is created in a ListEntryBuilder-class, which creates the entries for the list and gives them back to the table and fills the aoData.
I found out that for some lists the fnServerParams is just not performed, so the loadListData is not called on the inital load. But if it is refreshed with F5, the fnServerParams is called and so is the loadListData. I don't know why, but if i press the button which is to load the data, the function is ignored again. And again... perhaps, but then it works until the session is released.
Well... why do we not update to 1.10? I don't know ^^ but I don't think that we'll update anytime soon.
Kind Regards, Miriam
Hi Miriam,
Thanks for the explanation, however, I'm afraid I'm not sure what is going wrong. I suspect I would need a test case to be able to offer any help here.
Allan
Hi again,
since i tried with jsFiddle - and failed to make a working test case - I have some code snippets, which show the initialization of the table.
This is the body of the table, which is filled from the java-source.
And this is the header of the table. I hope this helps a bit to figure out what's the problem. I really don't know why sometimes when initializing the table, the fnServerParams is not performed.
Kind Regards, Miriam
Is there any possibility that the fnServerParams can be ignored or bypassed? And if so, what is the reason? I'm going to be a little bit desperate, because I don't find the cause of this problem. And I was searching for a solution a long time now. Perhaps someone can help with this.
Thanks =) Miriam