Good idea to use validateField. I will try this. Nevertheless, if I call new, setFieldVal, requeryAllChildren on the parent, the child's dataset will always be empty. Without new, it works fine. (both demonstrated in the testcase.) Is that the expected behaviour?
Kind regards, Karsten. 2008/4/30, Dabo Trac <[EMAIL PROTECTED]>: > #1151: child-parent relation after parent.new with ParentLinkField > -----------------------+---------------------------------------------------- > Reporter: kweinert | Owner: somebody > Type: defect | Status: new > Priority: major | Milestone: 0.8.3 > Component: biz | Version: 0.8.2 > Resolution: | Keywords: > -----------------------+---------------------------------------------------- > Comment (by ed): > > This sounds like it is an app-specific problem, and not a framework-level > problem. > > If you have a situation where you need to requery a child based on a > parent field's value changing, you might want to just add code to the > parent bizobj's '''validateField()''' method instead. This way it will get > called automatically when the parent field's value changes. > > Unless others can verify that this is a common approach used in > applications, I think it's best implemented as code in your app, and not > in the framework. > > -- > Ticket URL: <http://trac.dabodev.com/ticket/1151#comment:1> > Dabo Trac <http://trac.dabodev.com> > Trac Page for Dabo > _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]
