RecordGrid not sortable for a custom action

Hi Steve,
I send a good array for my grid. Here is the result I send to the grid through the object $this->records :
Then I have this warning
The line from where all this is caused by is
The warning is OK but I don't understand the 2 lines preceding this error:
These two lines force $sampleRecord to be a record and not a string.
I don't see how to feed it with something else.
I hope I am clear enough.
Jean
I send a good array for my grid. Here is the result I send to the grid through the object $this->records :
- Code: Select all
Array
(
[id] => tte83545
[annee] => 2007
[nom] => Le bois du roy
[commune] => idron
[maitre_ouvrage] => Sivom
[nombre_logements] => 318
[type_logements] => NEUF
)
Then I have this warning
- Code: Select all
Warning: array_keys(): The first argument should be an array in /var/www/html/xataface-1.0-beta-3/Dataface/RecordGrid.php on line 100
The line from where all this is caused by is
- Code: Select all
$columns = array_keys($sampleRecord);
The warning is OK but I don't understand the 2 lines preceding this error:
- Code: Select all
$recKeys = array_keys($this->records);
$sampleRecord =& $this->records[$recKeys[0]];
These two lines force $sampleRecord to be a record and not a string.
I don't see how to feed it with something else.
I hope I am clear enough.
Jean