Update Row with fnUpdate giving error TypeError: oData is undefined

Update Row with fnUpdate giving error TypeError: oData is undefined

nazmulnazmul Posts: 7Questions: 0Answers: 0
edited September 2012 in General
Hi,

I have been banging my head for the last few 4 hours, trying to update a table row without redrawing it.
i am trying to update the tbale row by the following:

msg = ' ["9-1~~","9","2012-08-22","Nazmul ","Dsds Sadsda","1","Photography","1350.00","2012-09-17","<\/a>  <\/a>"]'

object: msg - is returned by an ajax call

tr element: row_id is captured from row select.
0, taken from example
$('#tableQuotes').dataTable().fnUpdate(msg, row_id,0,false);


now if i reomve the false paraemter then there is no error message and the table is redrawn


I am not sure why this is happnening, if someone could put me in the right direction, i would be grateful

Replies

  • nazmulnazmul Posts: 7Questions: 0Answers: 0
    the issues happens even id the false paramter is excluded.
  • allanallan Posts: 63,173Questions: 1Answers: 10,409 Site admin
    What version of DataTables are you using? Can you give us a link to a test page showing the problem please?

    Allan
  • nazmulnazmul Posts: 7Questions: 0Answers: 0
    Allan,

    i am using version 1.9.2

    i am currently testing it on localhost, so i will need to upload it to a server.
    can i email you the login details as it part of an app.

    What email should i send it to?

    Thank you
  • nazmulnazmul Posts: 7Questions: 0Answers: 0
    Hi Allan,

    I have managed find the issue of the type error, i had to parseInt the row id and the error has now disappeared.

    How i am now having an issue updating the row, if a place a hard code in the function, then the row updates fine, there is an error in the object im returning from javascript.

    for some reason the function thinks its a string and not a value ['1','2']

    and advise to formatted the returned value to update the row with would great.

    Thanks
This discussion has been closed.