main logo
Subject: Re: [dabo-users] Philosophy and then there is Realities
Author: Paul McNett

Posted: 2007/09/30 15:36:41
 
View Entire Thread
New Search


johnf wrote:
> What about creating a way to define a function for a cell?

Don't we already have this? IOW, set DataSource to the biz and DataField
to a method of your bizobj, for instance:

grd.DataSource = bizProducts
col.DataField = "formatQty"

and then in the biz:

def formatQty(self):
qty = self.Record.qty
if self.kilos:
qty = qty * 2.2
return qty


> So what do you think of providing an easy interface to defining a cell with a
> function??? I think your last suggestion to Larry should work but it's
> requires that developer have insight (training). So I'd like your thoughts
> (or others can add their .02) on making it easier.

I haven't really been following this thread, but asking for a grid cell
that gets its value from a function sounds like stuff we've already put
into DataField.

--
pkm ~ http://paulmcnett.com



 
©2007 Paul McNett
<-- Prior Message New Search Next Message -->