The version info is:
{'file_revision': '5924', 'version': '0.9.2', 'revision': '~5924'}On Fri, Jul 16, 2010 at 7:43 PM, Paul McNett <[email protected]> wrote: > On 7/16/10 1:06 PM, Bronwyn Woods wrote: > > Hi all, > > I'm new to Dabo and have been working with an AppWizard app just to > figure > > out how everything works. I have a couple questions that I haven't been > > able to figure out. Anyone have any pointers? Sorry if these are > trivial > > questions. > > There are no bad questions. At least not at first. :) > > > > (1) validateRecord > > > > As long as some field of the new record has content, the validateRecord > > method fires and performs as I would expect. However, if the record is > > entirely empty, the validateRecord function does not fire. The record > > appears to save successfully, though on the next requery it disappears so > > clearly the record was not actually saved. How can I get the > validateRecord > > function to fire? I used the code from the tutorial to set up my > > validateRecord and validateField functions. > > I think you are getting bitten by a feature. Try setting your bizobj's > SaveNewUnchanged property to True. > > > http://paul.dabodev.com/doc/api/dabodoc/dabo.biz.dBizobj.dBizobj.html#Properties_SaveNewUnchanged > > Do it in your biz's initProperties code, like: > > class MyBiz(dabo.biz.dBizobj): > def initProperties(self): > self.SaveNewUnchanged = True > ... > > > > (2) new record creation > > > > When I create a new record while on the Browse page the new record is > > initiated with the value from the selected field in the browse page. > That > > is, if I have the name field of a record selected on the Browse page, the > > new record is created with that name value. If I create a new record > while > > on the Search or Edit page, this does hot happen. How can I keep the new > > record from having a default value when it's created from the browse > page? > > You are seeing a bug that I think was fixed recently. Can you tell us what > version > and revision of Dabo you are using? Here's how to get that info: > > mac:sbs pmcnett$ python > Python 2.5.4 (r254:67917, Dec 23 2008, 14:57:27) > [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin > Type "help", "copyright", "credits" or "license" for more information. > >>> import dabo > >>> print dabo.version > {'file_revision': '5899', 'version': '0.9.2', 'revision': '5899M'} > > Welcome to dabo-users! > > Paul > _______________________________________________ > 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/[email protected] > --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ 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/[email protected]
