fnUpdate is throwing an error on a simple call

fnUpdate is throwing an error on a simple call

ak47ak47 Posts: 16Questions: 5Answers: 2
edited November 2011 in General
I have a data table with id "partslist". I am trying to set a value in a column:

partslist.fnUpdate(note,row,4);

I have verified that note is not null and row is 3. However, the following error is thrown:

oData is undefined

and this is the line that it points to, line 6009 in dataTables 1.8.2:

if ( oData.nTr !== null )


Has anyone else seen this?

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Hi ask47,

    I've just replied to your PM about this. I'll post back here when we've got it figured out so anyone else hitting this problem can also benefit :-).

    Regards,
    Allan
  • piotr_tokarczykpiotr_tokarczyk Posts: 2Questions: 0Answers: 0
    edited April 2012
    whats the status of this? I'm getting this error when when calling fnUpdate where node is >= 15
    1.9.1v
  • kapwebkapweb Posts: 1Questions: 0Answers: 0
    Hi,

    i debug this problem on 1.9.1v :
    At this line : 4528
    Change :
    if ( iIndividualRow !== undefined )
    {
    iStart = iIndividualRow;
    iEnd = iIndividualRow+1;
    }
    To :
    if ( iIndividualRow !== undefined )
    {
    iStart = iIndividualRow;
    iEnd = parseInt(iIndividualRow)+1;
    }
    And it's work for me.
    Have a good day.
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    That suggests you aren't passing in an integer somewhere - where an integer is expected. What call into the API are you making?

    Allan
This discussion has been closed.