Thanks Ed, but it doesn't seem to work and stops the info dialog from being
displayed at all. It also doesn't reset the form to allow for the next entry
to be made.

>After a new record is saved, the value of the auto-generated PK should be
available in your bizobj via self.getPK(). So your code would read:

Does the self.getPK() actually go in the bizobj file??

The code snippet below is in the frmDC2010Add-code.py file that was created
when I made the frmDC2010Add.cdxml in the CD.
Is this the right place for it??

def afterSave(self):
>        newPK = self.getPK()
>        dabo.ui.info("Record successfully saved. Your new number is DC10-
> %s" % newPK, title="Success")
>         self.new()
>        self.BuilderName.setFocus()
>

 I tried several things to get the info dialog to fire, which it wouldn't as
long as the newPK = self.getPK() line existed or %s" % newPK existed in the
dabo.ui.info line. I'm stumped.


>         That's a built-in Python string method: zfill
>
> stringID = str(integerID)
> print stringID.zfill(3)
>

Now I just need to figure out how to use it once I get the the other part
working.


>
> > We will never have anymore than 999 entries.
>
>         Why does my stomach feel uneasy when I read a statement like that?
>  ;-)
>


It's a single DB per year and history shows I should be ok, and it makes my
stomach less uneasy using Dabo than keeping this thing in an MS Access DB as
it currently exists.  ;^)


Any clues that might point me in the right direction are greatly
appreciated.

Thanks Again
Carey


--- 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]

Reply via email to