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
_______________________________________________
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/dabo-users/[EMAIL PROTECTED]