On Friday 12 January 2007 09:36, Joe Brown wrote:
> 2nd that error. I was conecting to pg too. Just bought a laptop last
> weekend and after installing the latest svn, I recieved the same
> message. I'm almost up to speed on the new computer, but that's been
> tough, with a 2 month old eating up a lot of my time.
>
> I thought the error was because I was accessing the database via a vpn
> connection, but that didn't make sense, since that should be
> transparent.
>
> -Joseph
>
This is not an error due to attempting to connect Postgres. It currently is
not working for MsSQL too.
I think the current SVN ClassDesigner connections is broken. But I'm able to
use the ClassDesigner to create a form and add the connection information to
the cdxml file. That appears to be working at the moment.
Let's assume that the ClassDesigner is broken and we have do things in the
editor.
1. Create the form add a few thing like sizers and a control (dTextEdit would
be a good one).
2. Edit the cdxml file adding the connection information. See prior response
to ML.
3. Open ClassDesigner and add from the data environment.
4. If 4 does not work for you - just add the "createBizobjs" method to the
form. See below for a simple one.
5. start adding controls and in the properties for each of the controls edit
the 'datasource' and 'datafield'. Then follow the screencast instructions.
def createBizobjs(self):
class ArcustBizobj(dabo.biz.dBizobj):
def afterInit(self):
self.DataSource = "arcust"
#self.UserSQL="Select * from arcust where custno like
'BRS'"
self.KeyField = "pkid"
self.addFrom("arcust")
self.addField("city")
self.addField("fax")
self.addField("phone2")
self.addField("address1")
self.addField("address2")
self.addField("phone1")
self.addField("myzip")
self.addField("state")
self.addField("country")
self.addField("maddress1")
self.addField("maddress2")
self.addField("mcity")
self.addField("mstate")
self.addField("mzip")
self.addField("email")
self.addField("invlang")
self.addField("continent")
self.addField("country")
self.addField("status")
self.addField("ship1")
self.addField("ship2")
self.addField("mailnotes")
self.addField("doc1")
self.addField("doc2")
self.addField("pack1")
self.addField("pack2")
self.addField("pkid")
def validateRecord(self):
"""Returning anything other than an empty string from
this method will prevent the data from being saved.
"""
ret = ""
# Add your business rules here.
return ret
arcustBizobj = ArcustBizobj(self.Connection)
self.addBizobj(arcustBizobj)
I hope this helps!
--
John Fabiani
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users