On Monday 19 March 2007 09:07, Ed Leafe wrote:
> > I don't know enough about when you need a new record. Why not just > add a button for the user to click to start a new record? Or in the > child bizobj requery(), if the RowCount is zero, do an automatic new()? After a little research I was able to determine that child.new() did not write a record to backend until the save was done. So the first part the adding of a record could work. But if the user does not make a change to the newly added child record but does make a change to the parent record I get: null value in column "pkid" violates not-null constraint SQL: insert into "public"."arcnot" (pkid) values (NULL) Is this a bug or did I forget to set something? Of course if I do add something to the child.record field all works. > > They shouldn't be editing "air". If there is no record, there is > nothing to update/save. The record should be added before the user > gets a chance to change anything. I agree that is why I working on this. > -- Ed Leafe > -- http://leafe.com > -- http://dabodev.com > > > > _______________________________________________ > Post Messages to: [email protected] > Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev -- John Fabiani _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
