[Seaside] Deleting from GOODS.
Avi Bryant
avi at beta4.com
Sat Jul 24 23:33:52 CEST 2004
On Jul 24, 2004, at 7:35 AM, LK wrote:
> Adrian Lienhard wrote:
>
>> Hi Larry
>>
>> It should say "allRecords remove: aRecord" and not #removeAt: (latter
>> takes an integer to remove an item from the ordered collection at a
>> specific index).
>>
>> Adrian
>
> Thanks, That executed w/o error, but. nothing was removed from GOODS.
> I added this method:
> delete: aRecord from: aDatabase
> (self confirm: 'Are you sure you want to delete: ', (aRecord
> entryText) printString, '?')
> ifTrue: [allRecords remove: aRecord.
> aDatabase commit.].
>
> It says that it cannot understand #commit. In workspace, db commit
> executes properly. What am I missing here?????
Well, you must somehow have the wrong object passed in as aDatabase.
When the MNU #commit error comes up, what class does it say aDatabase
is? That might give you a clue as to what's going wrong.
Avi
More information about the Seaside
mailing list