Using PHP and the examples from the 1.0 documentation.
I do a print_r on my $rowArray and everything looks correct. Keys are
equal to column names, and the values equal the content I won't to go
in the row.
But all it does is erase all the data in the particular row of my
spreadsheet except for the very last column.
It reports success so no other error with the PHP or anything.
What could be causing this? I've spent about six hours searching for a
solution.
this is the code basically copied from the example. with a couple
changes
public function listUpdateAction($index, $rowData)
{
global $ss;
global $ws;
$query = new Zend_Gdata_Spreadsheets_ListQuery();
$query->setSpreadsheetKey($ss);
$query->setWorksheetId($ws);
$this->listFeed = $this->gdClient->getListFeed($query);
$rowArray = $this->stringToArray2($rowData);
print_r($rowArray);
$entry = $this->gdClient->updateRow($this->listFeed->entries[$index],
$rowArray);
if ($entry instanceof Zend_Gdata_Spreadsheets_ListEntry) {
echo "Success!\n"; $response = $entry->save();
}
}
Please help. Thanks - Matt