Can changes to the active record only be done on the datastore?

Thanks,
timgerr

--- In [email protected], "timgerr" <[EMAIL PROTECTED]> wrote:
>
> Hello all,
> I am trying to learn Weborb and need some help on how to update a
> database record.
> 
> Here is my question, I have a database table named test and the
> construction of one row is:
> id = 1
> name = Tim
> email = [EMAIL PROTECTED]
> 
> Now if I wanted to return all the rows it would be
> ActiveRecord.test.findall().
> 
> If I wanted to add a record it would be:
> private var t:Test = new Test();
> t.Name = 'bob';
> t.Email = '[EMAIL PROTECTED]';
> var asyncToken:AsyncToken = null;
> asyncToken = t.save();
> 
> The problem that I have is I dont understand how to update a record,
> take my row 1
> id = 1
> name = Tim
> email = [EMAIL PROTECTED]
> 
> How can I change that row to somting like this
> id = 1
> name = Timmy
> email = [EMAIL PROTECTED]
> 
> Can some one show me the code?
> 
> Thanks for the help,
> timgerr
>


Reply via email to