Trying to return multiple rows into one cell returns blank.

Trying to return multiple rows into one cell returns blank.

nicoledramirez@hotmail.comnicoledramirez@hotmail.com Posts: 60Questions: 14Answers: 2
edited January 2018 in DataTables

Hi!
I have a one to many relationship in my database and I want to return all rows into the same cell (I hope that makes sense).

I was trying to use this:

{data: null, render: "cdi_comment.commenttext[, ]"}

but it just returns a blank row set. I know the Controller is pushing back data because if I do this

{data: null, render: "cdi_comment.commenttext"}

I get one record per row and it does return all data.
Any suggestions?

Thanks!

Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Answers

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin

    Can you show me a sample of the JSON data that is being loaded please?

    Thanks,
    Allan

This discussion has been closed.