Do I have to set that or does that come from the script generated weborb?

timgerr

--- In flexcoders@yahoogroups.com, "Igor Costa" <[EMAIL PROTECTED]> wrote:
>
> You do as same as you do to add, but the only diffrent is on the
server-side
> instead of INSERT INTO you should do UPDATE
> 
> 
> Regards
> 
> 
> On Sun, Sep 28, 2008 at 11:59 PM, 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] <tim%40tim.com>
> >
> > 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] <%27bob%40bob.com>';
> > 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] <tim%40tim.com>
> >
> > How can I change that row to somting like this
> > id = 1
> > name = Timmy
> > email = [EMAIL PROTECTED] <timmy%40timmy.com>
> >
> > Can some one show me the code?
> >
> > Thanks for the help,
> > timgerr
> >
> >  
> >
> 
> 
> 
> -- 
> ----------------------------
> Igor Costa
> www.igorcosta.com
> www.igorcosta.org
>


Reply via email to