Problem with DataTables hidden row details

Problem with DataTables hidden row details

StumpiStumpi Posts: 8Questions: 2Answers: 0
edited December 2014 in Free community support

Hi,
I have tried for days without success my data in a hidden line display. The problem is that all data of a class is display. It should, however, only one value per line display. Can someone help me? Here is the link to the table:

http://www.pskreporter.de/?s_type=rcvdby&call=dl4rck&search=Search

And here for the original sample page:

http://legacy.datatables.net/release-datatables/examples/api/row_details.html

So I have included the data with php:

<script type="text/javascript" charset="utf-8"> /* Begin Formating child function for row details */ function fnFormatDetails ( oTable, nTr ) { var aData = oTable.fnGetData( nTr ); var sOut = '<div style="text-align: left"> <?php while ($this->getReportData($data)):?> <?php echo $data->dxcc ?> <?php endwhile; ?></div>'; return sOut; } /* Begin Formating child function for row details */ $(document).ready( function () {

In my example, the name of country should be displayed in the hidden row. So the same country as it is in that column "Country".
Please write if I should provide more information, thank you.

Stumpi

Answers

  • StumpiStumpi Posts: 8Questions: 2Answers: 0

    How do you get the code formatted in here?

    Stumoi

  • StumpiStumpi Posts: 8Questions: 2Answers: 0

    I have found it, the note was unfortunately very hidden.

    Stumpi

  • StumpiStumpi Posts: 8Questions: 2Answers: 0

    Problem solved. My new Code ist:

    var sOut = '<table cellpadding="5" cellspacing="0" border="0">'; sOut += '<tr><td>Country:</td><td>'+aData[10]+'</td></tr>'; sOut += '</table>';

    Stumpi

This discussion has been closed.