Marc
Well-known member
OK I have managed to get my datawriter updating data within the database when it exists as I was trying to do previously, however now when there is no data already existing I get:
"The existing data required by the datawriter could not be found"
I've been looking at this for a while now and I know I need to check it first, but no matter what I try it doesnt work.
I need it to either update the table if it exists already, or add a new entry if it doesnt. At the moment if it already exist then it works fine.
"The existing data required by the datawriter could not be found"
I've been looking at this for a while now and I know I need to check it first, but no matter what I try it doesnt work.
PHP:
protected function _getUpdateCondition($tableName)
{
return 'member_id = ' . $this->_db->quote($this->getExisting('member_id'));
}
I need it to either update the table if it exists already, or add a new entry if it doesnt. At the moment if it already exist then it works fine.