Didn't seem to work for me - I suspect because I was querying a different 
table in the database and (I think) the temp cursor only relates to the 
current bizObj.
            Rodgy

----- Original Message ----- 
From: "Uwe Grauer" <[email protected]>
To: "Dabo Users list" <[email protected]>
Sent: Monday, January 19, 2009 7:43 PM
Subject: Re: [dabo-users] Validation before Delete


> Roger Lovelock wrote:
>> Worked out the solution - see below!
>>
>>  def beforeDelete(self):
>>      ret = ""
>>      # if a member has this type do not allow delete
>
>>      app = self.Application
>>      conn = app.getConnectionByName("LodgeBooks")
>>      con = conn.getConnection()
>>      c = con.cursor()
>
> Here you could also use:
>      c = self.getTempCursor()
>
> Uwe
>
>
[excessive quoting removed by server]

_______________________________________________
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/d5a37f73959b48ff8cb34aa4b101d...@roger

Reply via email to