On Jan 8, 2008 5:11 PM, johnf <[EMAIL PROTECTED]> wrote:
> On Tuesday 08 January 2008 03:28:30 pm Ed Leafe wrote:
> > In this sequence, I didn't see any place where the grid editing had
> > occurred; in fact, since you're working at the bizobj level, it's
> > hard to believe that the grid ever even saw the new record. This just
> > looked like a series of sequentially-executed statements. The data
> > set looked to me like a default value for 'project', and new empty
> > values for the others. Did you actually modify the 'project' field in
> > the grid from its default? Are the values in getDataSet() the values
> > that you set when you edited the new record in the grid, and are they
> > different than the default values that appeared in
>
> Nate is also experiencing some thing similar.  I think he is writing it up
> right now.  In Nate's case the DataSet contained the new data but the
> isChanged() showed False.  So when he did a self.Form.save() nothing
> happened.
>
> He is using MySQL as the database.  However, I doubt that has anything to do
> with it because I was able to do an insert with the data using the bizObject.
>
> So I think we did the following:
> biz=self.PrimaryBizobj
> biz.new()
> #the empty record displayed on a grid
> biz.Record.FirstName="Harry"
> biz.getDataSet()
> # "Harry" appears in the data
> biz.save()
> # no error message
> biz.requery()
> # "Harry' is gone.
>
> #but I can
> biz.execute("insert into customers (firstname) values ('Harry')")
> and all works????????

That is the exact sequence.  We tried variations like using
setFieldVal instead of directly accessing the record and calling the
form version of new, save, and requery, but no go.  The execute method
did work.  We also saw the new data showing up in the dataset.


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to